Skip to main content
Skip table of contents

svm_get_detect_barcode()

Features

It detects barcodes and QR codes displayed on the screen.

Return

ValueData TypeDescription

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

PY
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
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.