Web Demos

BARCODE READER SDK DEMO

Explore the flexibe barcode reading settings to optimize for your specific usage scenario.

WEB TWAIN SDK DEMO

Try the most popular web scanner features: scan images, import local images and PDF files, edit, save to local, upload to database, and etc.

BARCODE READER JAVASCRIPT DEMO

Transform any camera-equipped devices into real-time, browser-based barcode and QR code scanners.

MRZ SCANNER WEB DEMO

Detects the machine-readable zone of a passport, scans the text, and parses into human-readable data.

APP STORE DEMOS

BARCODE READER SDK FOR IOS

BARCODE READER SDK FOR ANDROID

VIEW MORE DEMOS >
Resource Base
Table of contents

Android CameraEnhancer Class

CameraEnhancer is the class that provides multifunctional APIs on frame preprocessing and camera controlling.

class com.dynamsoft.dce.CameraEnhancer

Initialization Methods

Method Description
initLicenseFromDLS Initialize the Camera Enhancer from the license server with a license.

Frame preprocessing methods

Method Description
AcquireListFrame Get the latest frame from the frame queue when this API is activated.
enableFastMode Set true/false to turn on/off DCE fast mode.
getEnabledFastModeStatus Get the current status of fast mode (on/off).
enableFrameFilter Set true/false to turn on/off DCE frame filter.
getEnabledFrameFilterStatus Get the status (on/off) of DCE frame filter mode.
enableSensorControl Set true/false to turn on/off DCE sensor control.
getEnabledSensorControlStatus Get the status (on/off) of DCE sensor control mode.
setSensorControlThreshold Enable user to change sensor sensitivity (default value is 50).

Regular camera methods

Method Description
getDeviceLevel Make an evaluation on the current device and define its level for further use.
setAutoModeLevelParam Set auto mode level parameter.
updateCameraSetting Update camera, filter and focus settings from Json.
getVersion Check current DCE version
getCameraCurrentState Get camera current state.
getCameraDesiredState Get camera desired state.
setCameraDesiredState Set Camera on/off.
pauseCamera Pause Camera.
resumeCamera Resume Camera.
startScanning Start scanning.
stopScanning Stop scanning.
addCameraListener Add camera listener (on preview original, filtered or fast frames).
removeCameraListener Remove camera listener.
getTorchCurrentState Get torch current state.
getTorchDesiredState Get torch desired state.
setTorchDesiredState Set torch state.
addTorchListener Add torch listener.
getCameraPosition Get current camera position.
switchCameraPosition Switch camera position front/back.
getResolution Get current resolution setting.
setResolution Set resolution.
getResolutionList Get all available resolutions
setMaxFrameRate Set max frame rate.

Focus & zoom methods

Method Description
setAutoFocusPosition Set auto focus position (Change the default auto focus position).
setManualFocusPosition Set manual focus position (This focus position is only effected once for each time the API is called).
setFocalLength Set focal length between 0 to 10 to enable fixed focal length mode. In fixed focal length mode, all focus parameters can’t be changed until this mode is quit. To quit fixed focal length mode, please set focal length equals to -1.
enableDCEAutoFocus Set true/false to turn on/off DCE auto focus.
getEnabledDCEAutoFocusStatus Get the status (on/off) of DCE auto focus.
enableDefaultAutoFocus Set true/false to turn on/off default auto focus.
getEnabledDefaultAutoFocusStatus Get the status (on/off) of camera default auto focus.
enableRegularAutoFocus If this is true, camera will auto focus every 3 seconds. This focus mode will start automatically if DCE auto focus is enabled. Users can manually quit this focus mode when DCE auto focus is activated.
getEnabledRegularAutoFocusStatus Get the current status (on/off) of this auto focus mode.
setRegularAutoFocusParam Set the time interval and terminate time for the regular auto focus
enableAutoFocusOnSharpnessChange If this is enabled, camera will autofocus when clarity change is detected. This focus mode will start automatically if DCE autofocus is enabled. Users can manually quit this focus mode when DCE autofocus is activated.
getEnabledAutoFocusOnSharpnessChangeStatus Get the current status (on/off) of this auto focus mode.
enableAutoZoom Set enableAutoZoom value true to enable auto zoom mode.
getEnabledAutoZoomStatus Get the status (on/off) of auto zoom mode.
setZoomFactor Set zoom factor.

This page is compatible for:

Version 1.0

Is this page helpful?

YesYes NoNo

In this article:

version 1.0.3

  • Latest version
  • Version 3.0.1
  • Version 3.0.0
  • Version 2.3.5
  • Version 2.3.2
  • Version 2.3.1
  • Version 2.3.0
  • Version 2.1.4
  • Version 2.1.3
  • Version 2.1.0
  • Version 2.0.0
  • Version 1.0.3
  • Version 1.0.1
  • Version 1.0.0
Change +
© 2003–2023 Dynamsoft. All rights reserved.
Privacy Statement / Site Map / Home / Purchase / Support