Resource Base
Table of contents

Android API Reference - Frame Preprocessing Methods

AcquireListFrame

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)

Fast Mode

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

enableFrameFilter

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

setMaxFrameRate

Set max frame rate.

Java:

    mCameraEnhancer.setMaxFrameRate(24);

Kotlin:

    mCameraEnhancer!!.setMaxFrameRate(24)

enableSensorControl

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

setSensorControlThreshold

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)

This page is compatible for:

Version 1.0

Is this page helpful?

YesYes NoNo

In this article:

latest version

    • Latest version
    • Version 1.0.1
    • Version 1.0
    Change +
    © 2003–2021 Dynamsoft. All rights reserved.
    Privacy Statement / Site Map / Home / Purchase / Support