Dynamsoft Barcode Reader extracts data from driving license PDF417

Dynamsoft Barcode Reader SDK is a multi-functional barcode reading control that can embed the barcode reading function into web or desktop applications with just a few lines of code. This can save months of development time and cost. Can support a variety of image file formats and DIB format obtained from a camera or scanner. Using Dynamsoft Barcode Reader SDK, you can create powerful and practical barcode scanner software to meet your business needs.

Click to download the latest version of Dynamsoft Barcode Reader

Insert picture description here

According to AAMVA's card design standards, the PDF417 two-dimensional bar code symbol is the minimum mandatory machine-readable technology that must be possessed in a driver’s license/identity certificate that meets the regulations. The barcode encodes key information about the cardholder, including name, date of birth, gender, eye color, height, etc.

There are two ways to extract data from the computer’s driver license:
use OCR technology to recognize the characters printed on the ID,
use barcode recognition technology to decode PDF417 symbols, and then parse them into a human-readable format.
Generally speaking, the latter is better than The former is more accurate and cost-effective. In this article, we discussed how to use barcode technology to extract text from a driving license.
Extract data from the driver's license PDF417 on the mobile phone

Option 1: Decode PDF417 from the camera in the web application

If you want to read a driver's license from a camera source, please refer to the instructions in the article: How to recognize a US driver's license in JavaScript.

Download the full sample

Option 2: Read the driver’s license in the Android and iOS native apps

If you want to read the driver's license in the native application, please refer to the instructions in the article: How to recognize a US driver's license on Android Mobile Apps.

Parse PDF417 results into human-readable format

将PDF417值解码后,我们可以将其解析为单独的字段。
driverLicenseFields = [
{ ‘abbreviation’: ‘DAA’, ‘description’: ‘Full Name’ }
, { ‘abbreviation’: ‘DAB’, ‘description’: ‘Last Name’ }
, { ‘abbreviation’: ‘DAB’, ‘description’: ‘Family Name’ }
, { ‘abbreviation’: ‘DAC’, ‘description’: ‘First Name’ }
, { ‘abbreviation’: ‘DAC’, ‘description’: ‘Given Name’ }
, { ‘abbreviation’: ‘DAD’, ‘description’: ‘Middle Name or Initial’ }
, { ‘abbreviation’: ‘DAD’, ‘description’: ‘Middle Name’ }
, { ‘abbreviation’: ‘DAE’, ‘description’: ‘Name Suffix’ }
, { ‘abbreviation’: ‘DAF’, ‘description’: ‘Name Prefix’ }
, { ‘abbreviation’: ‘DAG’, ‘description’: ‘Mailing Street Address1’ }
, { ‘abbreviation’: ‘DAH’, ‘description’: ‘Mailing Street Address2’ }
, { ‘abbreviation’: ‘DAI’, ‘description’: ‘Mailing City’ }
, { ‘abbreviation’: ‘DAJ’, ‘description’: ‘Mailing Jurisdiction Code’ }
, { ‘abbreviation’: ‘DAK’, ‘description’: ‘Mailing Postal Code’ }
, { ‘abbreviation’: ‘DAL’, ‘description’: ‘Residence Street Address1’ }
, { ‘abbreviation’: ‘DAM’, ‘description’: ‘Residence Street Address2’ }
, { ‘abbreviation’: ‘DAN’, ‘description’: ‘Residence City’ }
, { ‘abbreviation’: ‘DAO’, ‘description’: ‘Residence Jurisdiction Code’ }
, { ‘abbreviation’: ‘DAP’, ‘description’: ‘Residence Postal Code’ }
, { ‘abbreviation’: ‘DAQ’, ‘description’: ‘License or ID Number’ }
, { ‘abbreviation’: ‘DAR’, ‘description’: ‘License Classification Code’ }
, { ‘abbreviation’: ‘DAS’, ‘description’: ‘License Restriction Code’ }
, { ‘abbreviation’: ‘DAT’, ‘description’: ‘License Endorsements Code’ }
, { ‘abbreviation’: ‘DAU’, ‘description’: ‘Height in FT_IN’ }
, { ‘abbreviation’: ‘DAV’, ‘description’: ‘Height in CM’ }
, { ‘abbreviation’: ‘DAW’, ‘description’: ‘Weight in LBS’ }
, { ‘abbreviation’: ‘DAX’, ‘description’: ‘Weight in KG’ }
, { ‘abbreviation’: ‘DAY’, ‘description’: ‘Eye Color’ }
, { ‘abbreviation’: ‘DAZ’, ‘description’: ‘Hair Color’ }
, { ‘abbreviation’: ‘DBA’, ‘description’: ‘License Expiration Date’ }
, { ‘abbreviation’: ‘DBB’, ‘description’: ‘Date of Birth’ }
, { ‘abbreviation’: ‘DBC’, ‘description’: ‘Sex’ }
, { ‘abbreviation’: ‘DBD’, ‘description’: ‘License or ID Document Issue Date’ }
, { ‘abbreviation’: ‘DBE’, ‘description’: ‘Issue Timestamp’ }
, { ‘abbreviation’: ‘DBF’, ‘description’: ‘Number of Duplicates’ }
, { ‘abbreviation’: ‘DBG’, ‘description’: ‘Medical Indicator Codes’ }
, { ‘abbreviation’: ‘DBH’, ‘description’: ‘Organ Donor’ }
, { ‘abbreviation’: ‘DBI’, ‘description’: ‘Non-Resident Indicator’ }
, { ‘abbreviation’: ‘DBJ’, ‘description’: ‘Unique Customer Identifier’ }
, { ‘abbreviation’: ‘DBK’, ‘description’: ‘Social Security Number’ }
, { ‘abbreviation’: ‘DBL’, ‘description’: ‘Date Of Birth’ }
, { ‘abbreviation’: ‘DBM’, ‘description’: ‘Social Security Number’ }
, { ‘abbreviation’: ‘DBN’, ‘description’: ‘Full Name’ }
, { ‘abbreviation’: ‘DBO’, ‘description’: ‘Last Name’ }
, { ‘abbreviation’: ‘DBO’, ‘description’: ‘Family Name’ }
, { ‘abbreviation’: ‘DBP’, ‘description’: ‘First Name’ }
, { ‘abbreviation’: ‘DBP’, ‘description’: ‘Given Name’ }
, { ‘abbreviation’: ‘DBQ’, ‘description’: ‘Middle Name’ }
, { ‘abbreviation’: ‘DBQ’, ‘description’: ‘Middle Name or Initial’ }
, { ‘abbreviation’: ‘DBR’, ‘description’: ‘Suffix’ }
, { ‘abbreviation’: ‘DBS’, ‘description’: ‘Prefix’ }
, { ‘abbreviation’: ‘DCA’, ‘description’: ‘Virginia Specific Class’ }
, { ‘abbreviation’: ‘DCB’, ‘description’: ‘Virginia Specific Restrictions’ }
, { ‘abbreviation’: ‘DCD’, ‘description’: ‘Virginia Specific Endorsements’ }
, { ‘abbreviation’: ‘DCE’, ‘description’: ‘Physical Description Weight Range’ }
, { ‘abbreviation’: ‘DCF’, ‘description’: ‘Document Discriminator’ }
, { ‘abbreviation’: ‘DCG’, ‘description’: ‘Country territory of issuance’ }
, { ‘abbreviation’: ‘DCH’, ‘description’: ‘Federal Commercial Vehicle Codes’ }
, { ‘abbreviation’: ‘DCI’, ‘description’: ‘Place of birth’ }
, { ‘abbreviation’: ‘DCJ’, ‘description’: ‘Audit information’ }
, { ‘abbreviation’: ‘DCK’, ‘description’: ‘Inventory Control Number’ }
, { ‘abbreviation’: ‘DCL’, ‘description’: ‘Race Ethnicity’ }
, { ‘abbreviation’: ‘DCM’, ‘description’: ‘Standard vehicle classification’ }
, { ‘abbreviation’: ‘DCN’, ‘description’: ‘Standard endorsement code’ }
, { ‘abbreviation’: ‘DCO’, ‘description’: ‘Standard restriction code’ }
, { ‘abbreviation’: ‘DCP’, ‘description’: ‘Jurisdiction specific vehicle classification description’ }
, { ‘abbreviation’: ‘DCQ’, ‘description’: ‘Jurisdiction-specific’ }
, { ‘abbreviation’: ‘DCR’, ‘description’: ‘Jurisdiction specific restriction code description’ }
, { ‘abbreviation’: ‘DCS’, ‘description’: ‘Family Name’ }
, { ‘abbreviation’: ‘DCS’, ‘description’: ‘Last Name’ }
, { ‘abbreviation’: ‘DCT’, ‘description’: ‘Given Name’ }
, { ‘abbreviation’: ‘DCT’, ‘description’: ‘First Name’ }
, { ‘abbreviation’: ‘DCU’, ‘description’: ‘Suffix’ }
, { ‘abbreviation’: ‘DDA’, ‘description’: ‘Compliance Type’ }
, { ‘abbreviation’: ‘DDB’, ‘description’: ‘Card Revision Date’ }
, { ‘abbreviation’: ‘DDC’, ‘description’: ‘HazMat Endorsement Expiry Date’ }
, { ‘abbreviation’: ‘DDD’, ‘description’: ‘Limited Duration Document Indicator’ }
, { ‘abbreviation’: ‘DDE’, ‘description’: ‘Family Name Truncation’ }
, { ‘abbreviation’: ‘DDF’, ‘description’: ‘First Names Truncation’ }
, { ‘abbreviation’: ‘DDG’, ‘description’: ‘Middle Names Truncation’ }
, { ‘abbreviation’: ‘DDH’, ‘description’: ‘Under 18 Until’ }
, { ‘abbreviation’: ‘DDI’, ‘description’: ‘Under 19 Until’ }
, { ‘abbreviation’: ‘DDJ’, ‘description’: ‘Under 21 Until’ }
, { ‘abbreviation’: ‘DDK’, ‘description’: ‘Organ Donor Indicator’ }
, { ‘abbreviation’: ‘DDL’, ‘description’: ‘Veteran Indicator’ }
, { ‘abbreviation’: ‘PAA’, ‘description’: ‘Permit Classification Code’ }
, { ‘abbreviation’: ‘PAB’, ‘description’: ‘Permit Expiration Date’ }
, { ‘abbreviation’: ‘PAC’, ‘description’: ‘Permit Identifier’ }
, { ‘abbreviation’: ‘PAD’, ‘description’: ‘Permit IssueDate’ }
, { ‘abbreviation’: ‘PAE’, ‘description’: ‘Permit Restriction Code’ }
, { ‘abbreviation’: ‘PAF’, ‘description’: ‘Permit Endorsement Code’ }
, { ‘abbreviation’: ‘ZVA’, ‘description’: ‘Court Restriction Code’ }
]

Read PDF417 from the scanner

If you copy the driver's license on paper, you can use Dynamic Web TWAIN to digitize it from a document scanner first.

To see how it works, you can try it out in the demo here.

Please note that the demo also has a document scanning function, which is supported by Dynamsoft's Web TWAIN SDK.

Insert picture description here

This article is reproduced from [Huidu Technology] evget welcomes any form of reprinting, but please be sure to indicate the source, do not modify the relevant links of the original text, and respect the results of the work of others
. 1/6/39999.html

Guess you like

Origin blog.csdn.net/RoffeyYang/article/details/112266693