Created
October 7, 2012 04:25
-
-
Save shifei010/3847102 to your computer and use it in GitHub Desktop.
sl4a Read Barcode
This file contains hidden or 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
import android | |
droid = android.Android() | |
(id, result, error) = droid.scanBarcode() | |
print result['extras']['SCAN_RESULT'], error |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nice share! barcode recognition!
(id, result, error) = droid.scanBarcode()
print result['extras']['SCAN_RESULT'], error