Features
It detects barcodes and QR codes displayed on the screen.
Return
|
Value |
Data Type |
Description |
|---|---|---|
|
ret |
int |
1 on success - Barcode detected |
|
Btype |
string |
Detected barcode type |
|
bdata |
string |
Information contained in the detected barcode |
|
0,[],[] |
Int |
Fail – no measurement data or input variable error |
Example
Python
svm_connect() # Connect to vision
ret, btype, bdata = svm_detect_barcode()
tp_popup("Detection={0}, Type={1}, Data={2}".format(ret,btype,bdata))
svm_disconnect() # Disconnect to vision