This API is designed for users to acquire a single frame. When this API is activated, it will fetch the latest frame from the DCE frame queue.
Java:
mCameraEnhancer.AcquireListFrame(true);
Kotlin:
mCameraEnhancer!!.AcquireListFrame(true)
This API is designed for users to setup DCE fast mode. DCE fast mode will cut frames into small images that contains barcode areas to improve decoding efficiency. It is recommended to be enabled when decoding single barcodes.
Java:
//To enable fast mode
mCameraEnhancer.enableFastMode(true);
//To get the value(status) of fast mode
boolean x = mCameraEnhancer.getEnabledFastModeStatus();
Kotlin:
//To enable fast mode
mCameraEnhancer!!.enableFastMode(true)
//To get the value(status) of fast mode
var x:Boolean? = mCameraEnhancer!!.enabledFastModeStatus
Use enableFrameFilter
to turn on/off frame filter.
Java:
mCameraEnhancer.enableFrameFilter(true);
Kotlin:
mCameraEnhancer!!.enableFrameFilter(true)
To check the status of frame filter mode, please use getEnabledFrameFilterStatus
Java:
boolean x = mCameraEnhancer.getEnabledFrameFilterStatus();
Kotlin:
var x:Boolean? = mCameraEnhancer!!.enabledFrameFilterStatus
Set max frame rate.
Java:
mCameraEnhancer.setMaxFrameRate(24);
Kotlin:
mCameraEnhancer!!.setMaxFrameRate(24)
Use enableSensorControl
to turn on/off sensor control mode.
Java:
mCameraEnhancer.enableSensorControl(true);
Kotlin:
mCameraEnhancer!!.enableSensorControl(true)
To check the status of sensor control mode, please use getEnabledSensorControlStatus
Java:
boolean x = mCameraEnhancer.getEnabledSensorControlStatus();
Kotlin:
var x:Boolean? = mCameraEnhancer!!.enabledSensorControlStatus
This API is designed for developers to apply different sensor sensitivity settings on different devices. The default value is 50.
Java:
mCameraEnhancer.setSensorControlThreshold(55);
Kotlin:
mCameraEnhancer!!.setSensorControlThreshold(55)
latest version