detectBarcodesOnImage static method
Future<BarcodeScanningResult>
detectBarcodesOnImage(
- Uri file, {
- List<
BarcodeFormat> barcodeFormats = const <BarcodeFormat>[], - BarcodeAdditionalParameters? additionalParameters,
- List<
BarcodeDocumentFormat> acceptedDocumentFormats = const <BarcodeDocumentFormat>[],
Detect barcodes from image file uri.
The Barcode Scanner is able to recognize 1D- and 2D-barcodes.
barcodeFormats
barcode type(s) that should be recognized.
acceptedDocumentFormats
barcode document type(s) that should be recognized.
Implementation
static Future<BarcodeScanningResult> detectBarcodesOnImage(Uri file,
{List<BarcodeFormat> barcodeFormats = const <BarcodeFormat>[],
BarcodeAdditionalParameters? additionalParameters,
List<BarcodeDocumentFormat> acceptedDocumentFormats =
const <BarcodeDocumentFormat>[]}) async {
return await SharedCalls.detectBarcodesFromImage(_channel, file,
barcodeFormats: barcodeFormats,
additionalParameters: additionalParameters,
acceptedDocumentFormats: acceptedDocumentFormats);
}