Table of contents
Swift
Objective-C

SDK Overview: Modules and Main APIs

This page provides an overview of the various modules and highlights the most essential APIs that form the backbone of Dynamsoft Barcode Reader SDK.

Modules Summary

The Dynamsoft Barcode Reader (DBR) SDK is built on the Dynamsoft Capture Vision (DCV) framework, which includes multiple modules working together to achieve barcode reading. The hierarchical structure diagram below illustrates the various modules of the DBR SDK (with modules at the top depending on those below).

region-def

Modules hierarchical of the DBR SDK

The table below describes details the functionalities of these modules:

File Description
DynamsoftBarcodeReader(DBR) The Dynamsoft Barcode Reader module recognizes and decodes multiple barcode formats such as QR codes, Code 39, Code 128, and Data Matrix, among many others.
DynamsoftCore(Core) The Dynamsoft Core module lays the foundation for Dynamsoft SDKs based on the DCV (Dynamsoft Capture Vision) architecture. It encapsulates the basic classes, interfaces, and enumerations shared by these SDKs.
DynamsoftCaptureVisionRouter(CVR) The Dynamsoft Capture Vision Router module is the cornerstone of the Dynamsoft Capture Vision (DCV) architecture. It focuses on coordinating batch image processing and provides APIs for setting up image sources and result receivers, configuring workflows with parameters, and controlling processes.
DynamsoftImageProcessing(DIP) The Dynamsoft Image Processing module facilitates digital image processing and supports operations for other modules, including the Barcode Reader, Label Recognizer, and Document Normalizer.
DynamsoftLicense(License) The Dynamsoft License module manages the licensing aspects of Dynamsoft SDKs based on the DCV (Dynamsoft Capture Vision) architecture.
DynamsoftCameraEnhancer(DCE) The Dynamsoft Camera Enhancer module controls the camera, transforming it into an image source for the DCV (Dynamsoft Capture Vision) architecture through ISA implementation. It also enhances image quality during acquisition and provides basic viewers for user interaction.
DynamsoftUtility(Utility) The Dynamsoft Utility module defines auxiliary classes, including the ImageManager, and implementations of the CRF (Captured Result Filter) and ISA (Image Source Adapter) . These are shared by all Dynamsoft SDKs based on the DCV (Dynamsoft Capture Vision) architecture.
DynamsoftCodeParser(DCP) The Dynamsoft Code Parser module converts data strings, typically encrypted in barcodes and machine-readable zones, into human-readable information.
DynamsoftCodeParserDedicator(DCPD) The Dynamsoft Code Parser Dedicator module provides auxiliary functionality to enhance and extend the capabilities of DCP module.

Main APIs

Capture Vision Router

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

Image Source Adapter

The DSImageSourceAdapter class is an abstract class representing an adapter for image sources, providing a framework for fetching, buffering, and managing images from various sources. It serves as the input for the DSCaptureVisionRouter. You can either use the typical implementations of DSImageSourceAdapter or implement your own.

Class DSCameraEnhancer is one of the typical implementations of DSImageSourceAdapter. It is a class that not only implements the video frame obtaining APIs but also enable you to improve the video quality by adjusting the camera settings.

Captured Result Receiver

To receive the results of video streaming barcode decoding, you need to implement the DSCapturedResultReceiver with the callback method onDecodedBarcodesReceived. The result you received in the callback method is a DSDecodedBarcodesResult object, which contains all the decoded barcodes from the processed video frame.

Camera View

DSCameraView is a view class that design for visualizing the real time video streaming and the barcode decoding result. If the DSCameraEnhancer is set as the input of your CVR, the decoded barcodes will be highlighted automatically on the DSCameraView.

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article: