Skip to main content

Scan from Image | Capacitor Barcode Scanner

To scan barcodes from an image (PNG or JPG file) use ScanbotBarcodeSDK.detectBarcodesOnImage function.

Scanning Barcodes From Image
loading...

Handing the Result

  • result.status - OK If the scanning is completed, CANCELED if the user has canceled the operation (tapped on the "cancel" button).
  • result.data?.barcodes - Optional List of recognized barcodes as items. See the barcode item structure here.

Arguments

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.

Want to scan longer than one minute?

Generate a free trial license to test the Scanbot SDK thoroughly.

Get your free Trial License

What do you think of this documentation?


On this page

Scroll to top