Skip to content

Instantly share code, notes, and snippets.

@kscottz
Created January 27, 2012 17:20
Show Gist options
  • Select an option

  • Save kscottz/1689874 to your computer and use it in GitHub Desktop.

Select an option

Save kscottz/1689874 to your computer and use it in GitHub Desktop.
impleCV:1>cam = Camera(1)
SimpleCV:2>img = cam.getImage().scale(.4)
SimpleCV:3>img.show()
SimpleCV:3><SimpleCV.Display.Display instance at 0x107d69908>
SimpleCV:4>img = cam.getImage().scale(.4)
SimpleCV:5>img.show()
SimpleCV:5><SimpleCV.Display.Display instance at 0x107d694d0>
SimpleCV:6>img.findBarcode()
/Library/Python/2.6/site-packages/SimpleCV-1.2-py2.6.egg/SimpleCV/ImageClass.py:1933: RuntimeWarning: tmpnam is a potential security risk to your program
SimpleCV:6><SimpleCV.Features.Detection.Barcode object at 0x101403f10>
SimpleCV:7>bc = img.findBarcode()
SimpleCV:8>bc
SimpleCV:8><SimpleCV.Features.Detection.Barcode object at 0x101403e10>
SimpleCV:9>bc.data
SimpleCV:9>'731015028481\n'
SimpleCV:10>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment