Introduction to Dynamsoft Code Parser
When working with IDs, driver licenses, or sometimes even general barcodes, you may encounter results (usually as a plain string) that are “unreadable” but contain all the useful information you need. Dynamsoft Code Parser (DCP) is an SDK designed for parsing these types of results into human-readable information.
For the initial release, DCP is only available for web applications as “DCP JavaScript Edition”. Based on JavaScript and WebAssembly, DCP JavaScript Edition can run in all major modern browsers on all major platforms.
Usage Scenarios
- AAMVA driver’s license
Countries covered: USA, Canada.
All versions of the AAMVA Driver’s License/Identification Specification used in the US and Canada are supported. The PDF417 barcodes on driver licenses with magnetic stripes, which follow the AAMVA Magnetic Stripe standard, are capable to get parsed.
- South African driver’s license
The fields parsed from the South African driver’s license are currently limited to some personal information, while the full information will be parsed in a future release.
- Aadhaar Card in India
The normal QR codes or Secure QR codes on eAadhaar, Aadhaar Letter and Aadhaar PVC Card are all capable to be parsed.
- Coming soon
Future releases will support more scenarios such as international COVID-19 vaccination certificates, machine readable zones and ID parsing.
Supported Platforms
Platforms | Languages |
---|---|
JavaScript |
Future versions will support more platforms, such as Android/Mobile, etc.
How to use
There are mainly four steps to use a CodeParser, the following takes the JavaScript edtion for example:
-
Initialize license
Before you begin, you must set up a license that allows you to use DCP. You can visit https://www.dynamsoft.com/customer/license/trialLicense?utm_source=github&product=dcp&package=js to get your own trial license good for 30 days.
-
Create Code Parser instance
With a license in place, you can create a Code Parser instance to use. For the JavaScript edition, the SDK is designed to download and compile the WASM resources (the engine files) automaticly before creating an instance.
-
Set code format
The 2nd last step is to set the code format (see EnumCodeFormat) of the document image that you want to get information from.
-
Parse code
Lastly, call the method
parseData()
to do the actual parsing and get results in a specific format (see EnumResultInfoType).
Next Step
Learn how to use DCP to add code parsing capabilities to your web application: