Skip to content

Instantly share code, notes, and snippets.

@redlotus
Created February 10, 2015 10:39
Show Gist options
  • Save redlotus/7f18c7b4a511ebb410bb to your computer and use it in GitHub Desktop.
Save redlotus/7f18c7b4a511ebb410bb to your computer and use it in GitHub Desktop.
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)
numpy
scipy
nose
opencv
simplecv
pygame
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment