Package | com.tuarua.firebase.ml.vision.barcode |
Class | public class BarcodeDetector |
Inheritance | BarcodeDetector ![]() |
Method | Defined By | ||
---|---|---|---|
close():void Closes the barcode detector and release its model resources. | BarcodeDetector | ||
closeCamera():void
Closes the Camera. | BarcodeDetector | ||
detect(image:VisionImage, listener:Function):void
Detects barcodes in the given image. | BarcodeDetector | ||
inputFromCamera(listener:Function):void
Opens the Camera, scans for and detects a barcode. | BarcodeDetector |
Constant | Defined By | ||
---|---|---|---|
NAME : String = VisionBarcodeANE [static] | BarcodeDetector |
close | () | method |
public function close():void
Closes the barcode detector and release its model resources.
closeCamera | () | method |
public function closeCamera():void
Closes the Camera.
detect | () | method |
public function detect(image:VisionImage, listener:Function):void
Detects barcodes in the given image.
Parameters
image:VisionImage — The image to use for detecting barcodes.
| |
listener:Function — Closure to call back on the main queue with barcodes detected or error.
|
inputFromCamera | () | method |
public function inputFromCamera(listener:Function):void
Opens the Camera, scans for and detects a barcode.
Parameters
listener:Function — Closure to call back on the main queue with barcodes detected.
|
NAME | Constant |
public static const NAME:String = VisionBarcodeANE