Created
February 10, 2015 10:39
-
-
Save redlotus/7f18c7b4a511ebb410bb to your computer and use it in GitHub Desktop.
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 Color, Camera, Display | |
cam = Camera() | |
display = Display() | |
message = 'Last item scanned: ' | |
result = 'None' | |
while (display.isNotDone()): | |
img = cam.getImage() | |
barcode = img.findBarcode() | |
if (barcode is not None): | |
result = str(barcode.data) | |
img.drawText(message + result, color = Color.GREEN, fontsize = 40) | |
img.save(display) |
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
numpy | |
scipy | |
nose | |
opencv | |
simplecv | |
pygame |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment