Resource Base
Table of contents

iOS API Reference - Frame Preprocessing Methods

You are viewing a history document page of DCE v1.0.3.

Method Description
acquireListFrame Get the latest frame from the frame queue when this API is activated.
enableFastMode Set the value true/false to turn on/off DCE fast mode
enableSensorControl Set true/false to turn on/off DCE sensor control.
setSensorControlThreshold Make settings on sensor control threshold
enableFrameFilter Set true/false to turn on/off DCE frame filter.
setMaxFrameRate Set max frame rate

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.

- (FramePackage*)AcquireListFrame;

Code Snippet

  • Objective-C
  • Swift
  1. FramePackage *fg = [self.camera AcquireListFrame];
    
  2. 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.

@property (nonatomic, assign) BOOL enableFastMode;

Parameters

true: enable the fast mode.
false: disable the fast mode.

Code Snippet

  • Objective-C
  • Swift
  1. [dce enableFastMode:true];
    //To check the status of DCE fast mode
    [dce getEnableFastMode];
    
  2. dce.enableFastMode = true
    

enableSensorControl

Turn on (off) sensor control

@property (nonatomic, assign) BOOL enableSensorControl;

Parameters

true: enable the sensor filter.
false: disable the sensor filter.

Code Snippet

  • Objective-C
  • Swift
  1. [dce enableSensorControl:true];
    //To check the status of the DCE sensor control
    BOOL res= [dce enableSensorControl];
    
  2. 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.

- (void)setSensorControlThreshold:(double)sensor NS_SWIFT_NAME(setSensorControlThreshold(_:));

Parameters

int: A int value that stands for the sensor filter threshold.

Code Snippet

  • Objective-C
  • Swift
  1. [dce setSensorControlThreshold:55];
    
  2. dce.setSensorControlThreshold(55)
    

enableFrameFilter

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

Parameters

true: enable the frame sharpness filter.
false: disable the frame sharpness filter.

Code Snippet

  • Objective-C
  • Swift
  1. [dce enableFrameFilter:true];
    //To check the status of the DCE frame filter
    BOOL res= [dce enableFrameFilter];
    
  2. dce.enableFrameFilter(true)
    //To check the status of the DCE frame filter
    let res = dce.enableFrameFilter
    

setMaxFrameRate

Set max frame rate.

- (void)setMaxFrameRate:(int)maxFrameRate NS_SWIFT_NAME(setMaxFrameRate(_:));

Parameters

int: A int value that stands for the max frame rate.

Code Snippet

  • Objective-C
  • Swift
  1. [dce setMaxFrameRate:24];
    
  2. 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 4.x
    • Version 4.2.0
    • Version 4.0.2
    • Version 4.0.1
    • Version 4.0.0
  • Version 3.x
    • Version 3.0.3
    • Version 3.0.2
    • Version 3.0.1
    • Version 3.0.0
  • Version 2.x
    • Version 2.3.21
    • Version 2.3.20
    • Version 2.3.12
    • Version 2.3.11
    • Version 2.3.10
    • Version 2.3.5
    • Version 2.3.4
    • Version 2.3.3
    • Version 2.3.2
    • Version 2.3.1
    • Version 2.3.0
    • Version 2.1.4
    • Version 2.1.3
    • Version 2.1.1
    • Version 2.0.0
Change +