BarcodeDetector class
Detector for performing barcode scanning on an input image.
A barcode detector is created via
barcodeDetector([BarcodeDetectorOptions options])
in FirebaseVision:
final FirebaseVisionImage image =
FirebaseVisionImage.fromFilePath('path/to/file');
final BarcodeDetector barcodeDetector =
FirebaseVision.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(
FirebaseVisionImage 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