Scanning a Barcode from an Image
ScanbotSDK.detectBarcodesOnImage(args: DetectBarcodesOnImageArgs)
This method provides the functionality of detecting barcodes from a still image, e.g. a JPG image from Photo Library or other source. The image must be passed as a file URI.
Send the imageFileUri
as a part of the input arguments and in addition you can choose which barcode formats to accept, min/max length or any other
property that is part of the DetectBarcodesOnImageArguments.
The result object:
result.status
-OK
If the scanning is completed,CANCELED
if the user has canceled the operation (tapped on the "cancel" button).result.barcodes?
- Optional List of recognized barcodes as items. See the barcode item structure here.
Scanning Barcodes From Image
loading...
Want to scan longer than one minute?
Generate a free trial license to test the Scanbot SDK thoroughly.
Get your free Trial LicenseWhat do you think of this documentation?
What can we do to improve it? Please be as detailed as you like.