BarcodeDetector class

Detector for performing barcode scanning on an input image.

A barcode detector is created via barcodeDetector([BarcodeDetectorOptions options]) in GoogleVision:

final GoogleVisionImage image =
    GoogleVisionImage.fromFilePath('path/to/file');

final BarcodeDetector barcodeDetector =
    GoogleVision.instance.barcodeDetector();

final List<Barcode> barcodes = await barcodeDetector.detectInImage(image);

Properties

hashCode int
The hash code for this object.
no setterinherited
options BarcodeDetectorOptions
The options for configuring this detector.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() Future<void>
Release resources used by this detector.
detectInImage(GoogleVisionImage visionImage) Future<List<Barcode>>
Detects barcodes in the input image.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited