Skip to content

Instantly share code, notes, and snippets.

@kscottz
Created December 22, 2012 19:45
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 kscottz/4360664 to your computer and use it in GitHub Desktop.
Save kscottz/4360664 to your computer and use it in GitHub Desktop.
#SimpleCV Shell
SimpleCV:1> cd ../Downloads/
/Users/katherinescott/Downloads
SimpleCV:2> p = Image("positive.png")
SimpleCV:3> n = Image("negative.png")
SimpleCV:4> r = (p/2)+(n/2)
SimpleCV:5> r.show()
SimpleCV:5: <SimpleCV.Display Object resolution:((384, 384)), Image Resolution: (384, 384) at memory location: (0x106908b90)>
SimpleCV:6> r.save("FixedThatForYou.png")
SimpleCV:6: 1
# See http://persistent.info/web-experiments/temporal-dithering/
# You can use sc = ScreenCamera() on Linux
# sc.getImage() to automatically do the screen capture.
# It should be fairly easy to make a metric that determines if succesive screen captures form a positive and negative pair.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment