Now that you are familiar with the barcode, let’s quickly get an overview of the tutorial steps: Using a barcode scanner in conjunction with a data source The default zoom is at 50, you can increase it to 70 or more to allow holding your phone to within the desired distance from the barcode (to accommodate tight spaces, etc) Brightness: helps add more light into the picture if you need to scan in dark conditions Camera: Set to the specific value of your device (1,2, 3) that selects the front or the back camera. Zoom: Works just like the zoom feature of a camera. Properties controlling the camera quality This is just to accommodate the device memory constraints while still providing a good scanning experience. On phones, this value needs to be lowered between 45 to 35. By default, this is set to 60 scan per second for fast detection. Please refer to the “Barcode types supported” section of the article for more details. BarcodeType: Used to instruct the scanner on the expected barcode type to recognize. When a successful scan occurs a red line highlights the barcode being scanned. Here’s couple of key properties to get you familiar with the barcode control before starting our tutorial: Barcode specific propertiesīarcodedetection: Shows a live detection rectangle while searching for barcodes. This design makes the barcode scanner handle gracefully batch scanning scenarios. Since the camera is in continues capture mode, the barcode scanner detects live the barcode in focus.
Key best practices and how to fine tune the barcode scanner parameters to device specific limitations.Īs soon as you add a barcode scanner to your canvas you’ll quickly notice it looks a just like the camera control.