Barcode Scanner
Zia Barcode Scanner enables you to scan the most commonly used linear and 2D barcode formats and decode the encoded data. Barcode Scanner can detect formats like Codabar, EAN-13, ITF, UPC-A, QR Code, and more.
You can provide an input file of the format .jpg/.jpeg or .png to the open() method. This method returns the image file object as a response. Refer to the API documentation for the request and response formats.
You can specify the barcode format using setFormat. If you enter the format as ALL, Barcode Scanner automatically detects the format. It provides the decoded information as the response.
The zia reference used below is already defined in the component instance page.
copyimg = open('sample.jpg', 'rb') result = zia.scan_barcode(img, options={'format': 'code39'})
A sample response is shown below :
copy{ "content":"https://demo.dynamsoft.com/dbr_wasm/barcode_reader_javascript.html" }
Last Updated 2024-01-04 12:37:42 +0530 +0530
Yes
No
Send your feedback to us