Automate

Automate

Make your phone or tablet smarter with automation

Get it on Google Play

Barcode scan

An action block that scan barcodes in an image.

The fiber will pause until the image has been processed and scanning completed.

The result of the scanning is assigned the output arrays, all having the same length. Each element of the content array is the raw, encoded, content of a barcode found in the image. An array of formats where each element is the format of the barcode. An array of bounding boxes may be assigned, where each element is the bounds of the barcode.

Machine Learning (ML) data for each barcode format may have to be downloaded before performing such scanning.

This block requires a device with a working Google Play services installed.

Note! This feature requires Android 5+.

Input arguments

  • Image URIURI or filename of image content to scan for barcodes.
  • Format — format of barcodes to scan for, default is all formats.

Output variables

  • Content — variable to assign an array of content of each scanned barcode.
  • Formats — variable to assign an array of format of each scanned barcode.
  • Bounding boxes — variable to assign an array of [left,top,right,bottom] bounds of each scanned barcode, in pixels, or null if unavailable.
Note! This documentation is also accessible within the app from Help & feedback menu.