Skip to content

Instantly share code, notes, and snippets.

@shifei010
Created October 7, 2012 04:25
Show Gist options
  • Save shifei010/3847102 to your computer and use it in GitHub Desktop.
Save shifei010/3847102 to your computer and use it in GitHub Desktop.
sl4a Read Barcode
import android
droid = android.Android()
(id, result, error) = droid.scanBarcode()
print result['extras']['SCAN_RESULT'], error
@AdeleB
Copy link

AdeleB commented Oct 13, 2014

Nice share! barcode recognition!
(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