Package io.anyline2.camera
Class NativeBarcodeDetector
- java.lang.Object
-
- io.anyline2.camera.NativeBarcodeDetector
-
public class NativeBarcodeDetector extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description NativeBarcodeDetector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
disableBarcodeDetection()
Disables the barcode detection if it has been enabled before.void
enableBarcodeDetection(NativeBarcodeResultListener barcodeResultListener, java.util.List<BarcodeFormat> format)
Allows to search for barcodes simultaneously on the same image.io.anyline2.camera.NativeBarcodeDetectionRunnable
getNativeBarcodeDetectionRunnable()
boolean
isBarcodeDetectionEnabled()
boolean
isBarcodeDetectionOperational()
void
restartBarcodeDetection()
-
-
-
Method Detail
-
enableBarcodeDetection
public void enableBarcodeDetection(@NonNull NativeBarcodeResultListener barcodeResultListener, java.util.List<BarcodeFormat> format)
Allows to search for barcodes simultaneously on the same image. Barcodes may be searched on the full preview image, or in the cutout area only.The listener will be called every time an image is analyzed and barcodes are found e.g. the results are independent from the module's result.
- Parameters:
barcodeResultListener
- the listener will be called whenever barcodes have been found on an image, note that is independent from the module's result listener
-
disableBarcodeDetection
public void disableBarcodeDetection()
Disables the barcode detection if it has been enabled before.
-
isBarcodeDetectionEnabled
public boolean isBarcodeDetectionEnabled()
-
isBarcodeDetectionOperational
public boolean isBarcodeDetectionOperational()
-
restartBarcodeDetection
public void restartBarcodeDetection()
-
getNativeBarcodeDetectionRunnable
public io.anyline2.camera.NativeBarcodeDetectionRunnable getNativeBarcodeDetectionRunnable()
-
-