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.
Transform any camera-equipped devices into real-time, browser-based barcode and QR code scanners.
Dynamsoft Document Normalizer (DDN) is an SDK designed to detect quadrilaterals (quads for short) such as document/table boundaries and more from images, then perform document normalization on the images in the detected quads. Document normalization includes a set of functions such as border cropping/deskewing/perspective correction/contrast and brightness adjustment, etc. Additionally, the resulting normalized image can be used for further processing such as Optical Character Recognition (OCR).
DDN powers your software development in the following aspects:
With DDN, you can efficiently embed the functionality of quadrilateral detection and document normalization in your mobile, desktop and server applications. DDN also provides various image processing features, allowing you to customize DDN and meet your business needs.
With DDN, you can extract the four corner coordinates of one or multiple documents/tables.
Figure 1 – Document boundary detection
Figure 2 – Table boundary detection
Figure 3 – Multiple boundaries in one detection
Don’t worry if your documents/tables are blurry, damaged, too colorful or peculiar in any way. DDN provides various image processing settings for full customization. Our default settings are sufficient for most cases. However, additional tweaks can be made for your specific cases to achieve greater speed and accuracy.
Do you want to convert a document photo that is randomly taken, to a document image that looks like a carefully scanned document? With DDN, you can easily extract documents from photos and normalize them in various ways.
Trims the current image, removing the space around the borders.
It is usually used to straighten scanned documents. Deskewing is the process of removing skew by rotating the image by the same degree but in the opposite direction.
It is usually used to correct perspective distortion introduced by the camera’s perspective relation to the target.
Change the colour space of the output normalized image. DDN supports outputting colour, grayscale and binary images.
Figure 4 – Original image and output colour/grayscale/binary image
Adjust the brightness and contrast of the output normalized image.
In order to cope with various scenarios, DDN provides a variety of image processing modes at each stage of the algorithm process to maintain great scalability.
These modes can be configured not only through API but also through a configuration template (as file, string, JSON etc.). Furthermore, the these modes can be customized according to customer scenarios to allow for a more smoother and more seamless performance in the customer’s application.
DDN SDK consists of the following four modules:
DynamsoftDocumentNormalizer: Provide APIs related to document quad detection and various document normalization for still pictures and live video. The main class is DocumentNormalizer, which detects document/table boundaries and perform document normalization including border cropping, deskewing, perspective correction, colour conversion, brightness, and contrast adjustment.
DynamsoftIntermediateResult: Designed to process intermediate results that are produced during the process of decoding a barcode, recognizing a label, or normalizing a document. The APIs are for internal use only and are not public yet.
DynamsoftImageProcessing: Includes image processing algorithms and APIs. The APIs are for internal use only and are not public yet.
DynamsoftCore: The core library of DDN SDK, including common basic structures and license related APIs.
In real life, document capture is often done through mobile devices. In order to simplify the integration cost of camera control, camera preview, interactive editing functions, and more, we recommend that you use Dynamsoft Camera Enhancer(DCE) SDK cooperates with DDN to complete mobile document capture. The DCE SDK provides three primary classes:
CameraEnhancer: It provides basic camera control functions as well as advanced features such as video buffering, frame filtering and fast mode for fast camera module integration.
DCECameraView: It is designed to display the camera preview, overlay, scan region, etc.
DCEImageEditorView: It supports previewing still images, displaying graphic items (rectangles, quads, text, etc.) and interactively adjusting the vertices of graphic items.
Figure 5 – DCECameraView and DCEImageEditorView
If you are interested in the specific steps to integrate DDN with DCE, please refer to the following articles:
In government or large corporations, paper documents usually need to be digitized and stored in an electronic format. We often do so by taking photos of the documents or scanning the documents. However, the captured document images can potentially not follow the same pattern. You may encounter images taken at different angles, in different lighting levels, bluriness…etc. With DDN, you can normalize or standardize the document images with ease. DDN also provides various settings so you can customize the outcome of the normalized document image to meet your needs.
Figure 5 – Document scanning and archiving
In many scenarios, identity documents such as id card/passport need to be quickly located and identified. However, the captured images of id card/passport might not be uniformed. You may encounter images taken with different angles, lightings, clearness…etc. With DDN, you can detect the boundaries of identity document images and normalize the region of interest (ROI) with ease. Therefore, easing the information extraction process of ID document images.
Figure 6 – Identity documents
In retail, DDN can help detect the price label boundaries in images. Additionally, the extracted images can be used for recognition to extract text information.
Figure 7 – Price label boundaries
DDN is designed to be cross-platform. The core of DDN is written in C/C++ for performance. The library is wrapped for Java, Objective-C and other programming languages so that users can use DDN on iOS, Android, Windows, and Linux. Below is a list of supported OSes and corresponding programming languages:
This page is compatible for:
In this article: