Resource Base
Table of contents

iOS 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.

Objective-C:

    FramePackage *fg = [self.camera AcquireListFrame];

Swift:

    let fg = self.dce.acquireListFrame() 

enableFastMode

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 decode efficiency. It is recommended to be enabled when decoding a single barcode.

Objective-C:

    [dce enableFastMode:true];
    //To check the status of DCE fast mode
    [dce getEnableFastMode];

Swift:

    dce.enableFastMode = true

enableSensorControl

Turn on (off) sensor control

Objective-C:

    [dce enableSensorControl:true];
    //To check the status of the DCE sensor control
    BOOL res= [dce enableSensorControl];

Swift:

    dce.enableSensorControl(true)
    //To check the status of the DCE sensor control
    let res = dce.enableSensorControl

setSensorControlThreshold

This API is designed for developers to apply different sensor sensitivity settings on different devices. The default value is 50.

Objective-C:

    [dce setSensorControlThreshold:55];

Swift:

    dce.setSensorControlThreshold(55)

enableFrameFilter

Turn on(off) DCE filter (recommended to be true).

Objective-C:

    [dce enableFrameFilter:true];
    //To check the status of the DCE frame filter
    BOOL res= [dce enableFrameFilter];

Swift:

    dce.enableFrameFilter(true)
    //To check the status of the DCE frame filter
    let res = dce.enableFrameFilter

setMaxFrameRate

Set max frame rate.

Objective-C:

    [dce setMaxFrameRate:24];

Swift:

    dce.setMaxFrameRate(24)

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