Packagecom.tuarua.firebase.ml.vision.barcode
Classpublic class BarcodeDetector
InheritanceBarcodeDetector Inheritance flash.events.EventDispatcher



Public Methods
 MethodDefined By
  
close():void
Closes the barcode detector and release its model resources.
BarcodeDetector
  
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
Public Constants
 ConstantDefined By
  NAME : String = VisionBarcodeANE
[static]
BarcodeDetector
Method Detail
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.

Constant Detail
NAMEConstant
public static const NAME:String = VisionBarcodeANE