Image threshold with a side-by-side view using SimpleCV.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
|from SimpleCV import Image, Color, Display|
|# Make a function that does a half and half image.|
|result = left|
|# crop the right image to be just the right side.|
|crop = right.crop(right.width/2.0,0,right.width/2.0,right.height)|
|# now paste the crop on the left image.|
|result = result.blit(crop,(left.width/2,0))|
|# return the results.|
|# Load an image from imgur.|
|img = Image('http://i.imgur.com/lfAeZ4n.png')|
|# binarize the image using a threshold of 90|
|# and invert the results.|
|output = img.binarize(90).invert()|
|# create the side by side image.|
|result = halfsies(img,output)|
|# show the resulting image.|
|# save the results to a file.|
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
please can any one give me brief about
How to start developing an Image processing Software...Or Machine Vision System...
I heard that there are many opensource codes which i can use to develop vision systems.
I am trying to google from...Where..I can go ahead..??
My requirement is to prepare Machine vision software for known facts that can handled by vision systems
later on i will move to the OCR and OCV applications.
please if anybody can help me in this....
Than you in advance..!!