Skip to content

Instantly share code, notes, and snippets.

@vighneshbirodkar
Last active December 20, 2015 00:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vighneshbirodkar/6039643 to your computer and use it in GitHub Desktop.
Save vighneshbirodkar/6039643 to your computer and use it in GitHub Desktop.
from SimpleCV import Image
from SimpleCV.DisplayNew import GtkDisplay
from socket import setdefaulttimeout
setdefaulttimeout(None)
d1 = GtkDisplay(title = "Resize to fit", fit = GtkDisplay.RESIZE)
d2 = GtkDisplay(title = "Crop to fit", fit = GtkDisplay.CROP)
img = Image('lenna')
fs = img.findLines()
fs.draw()
d1.showImage(img)
d2.showImage(img)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment