Table of contents
Swift
Objective-C

API Overview

Dynamsoft Barcode Reader (DBR) SDK is built on the Dynamsoft Capture Vision (DCV) architecture.

Main APIs

Category Library Description
Orchestration DynamsoftCaptureVisionRouter Core Capture Vision Router APIs for configuring settings, starting or stopping capture, and registering receivers.
Input & UI Enhancement DynamsoftCameraEnhancer APIs for camera control, image enhancement, and camera UI.
Functional Modules DynamsoftBarcodeReader
DynamsoftCodeParser
APIs for functional modules, mainly for decoded results and result processing.
Infrastructure & Utility DynamsoftLicense
DynamsoftCore
DynamsoftUtility
Licensing, basic structures, intermediate results, and utility APIs.

CaptureVisionRouter

The main class DSCaptureVisionRouter acts as the SDK entry point and provides the following essential APIs:

Configure Settings

API Description
initSettingsFromFile Load settings from a custom template file.
DSSimplifiedCaptureVisionSettings Access commonly used settings through a DSSimplifiedCaptureVisionSettings object.

Start/Stop Capture

API Description
startCapturing Start processing input frames with the selected template.
stopCapturing Stop the current capture process.

Receive Results

Implement DSCapturedResultReceiver to receive capture results.

API Description
onDecodedBarcodesReceived Callback for receiving barcode decoding results as a DSDecodedBarcodesResult object.
onParsedResultReceived Callback for receiving parsed results as a DSParsedResult object.
onCapturedResultReceived Callback for receiving all result types as a DSCapturedResult object.

Input - CameraEnhancer

DSCameraEnhancer is a built-in implementation of DSImageSourceAdapter. It combines camera control, image enhancement, and a UI system designed for the Dynamsoft Capture Vision architecture.

Result

Result Basic Item Type
DSDecodedBarcodesResult DSBarcodeResultItem CRIT_BARCODE
DSParsedResult DSParsedResultItem CRIT_PARSED_RESULT

This page is compatible for: