기능
화면에 보이는 바코드와 QR 코드를 검출합니다.
리턴
|
값 |
자료형 |
설명 |
|---|---|---|
|
ret |
int |
성공 시 1 - Barcode 검출 여부 |
|
Btype |
string |
검출된 Barcode의 타입 |
|
bdata |
string |
검출된 Barcode에 담겨진 정보 |
|
0,[],[] |
Int |
실패 – 측정데이터 없음 또는 입력 변수 오류 |
예제
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