Scanning a barcode from an image | Flutter Barcode Scanner
Future<BarcodeScannerResult> detectBarcodesOnImage(
Uri imageFileUri,
BarcodeScannerConfiguration barcodeScannerConfiguration
)
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.
Set the imageFileUri property 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 a part of the BarcodeScannerConfiguration.
With BarcodeFormatCommonConfiguration we can configure the scanner for all barcode formats at once. In addition, we can have configurations for a specific barcode format or a format group. For example, BarcodeFormatCommonTwoDConfiguration.
The result object:
result.barcodes- List of recognized barcodes as items. See the barcode item structure here.
loading...
Want to scan longer than one minute?
Generate a free trial license to test the Scanbot SDK thoroughly.
Get free trial licenseScanbot SDK is part of the Apryse SDK product family
A mobile scan is just the start. With Apryse SDKs, you can expand mobile workflows into full cross‑platform document processing. Whether you need to edit PDFs, add secure digital signatures, or use a fast, customizable document viewer and editor, Apryse gives you the tools to build powerful features quickly.
Learn more
