AAMVA kod kreskowy prawa jazdy
Kod 2D na odwrocie każdego amerykańskiego prawa jazdy to symbol PDF417 kodujący dane posiadacza zgodnie ze Standardem AAMVA Card Design Standard. Pierwotnie określony w 2000 roku, obecna wersja 10 (2020). To materiał referencyjny dla tworzenia parserów, testowania kiosków i autoryzowanych przepływów pracy emitentów.
Kanoniczne źródło:AAMVA Card Design Standard v10 (2020-09).
Symbolika kodu kreskowego: PDF417 (ISO/IEC 15438).
Poprzednie wersje: v8 (2013), v9 (2016), v10 (2020).
Symbolika kodu kreskowego: PDF417 (ISO/IEC 15438).
Poprzednie wersje: v8 (2013), v9 (2016), v10 (2020).
Tylko legalne użycie. Ta strona referencji dokumentuje kodowanie AAMVA, by deweloperzy mogli budować zgodne parsery, uruchamiać testy kiosków weryfikacji wieku z danymi syntetycznymi i wspierać autoryzowane przepływy emitentów. Tworzenie podrobionego dokumentu tożsamości to oszustwo ścigane jako przestępstwo we wszystkich stanach USA (18 U.S.C. § 1028 dodaje federalne zagrożenie do 15 lat).
Czym to jest
An AAMVA barcode is a PDF417 symbol whose decoded payload begins with a fixed header, then one "subfile" per data domain. The core subfile is DL (driver license).
Header structure:
@
ANSI <IIN><version><jurisdiction version><subfile count>DL<subfile offset><subfile length>Kody elementów
| Code | Meaning | Format |
|---|---|---|
DAA | Customer name (legacy) | LAST,FIRST,MIDDLE |
DAC | First name | Text |
DCS | Last name | Text |
DBB | Date of birth | MMDDYYYY |
DBA | License expiration | MMDDYYYY |
DBD | License issue date | MMDDYYYY |
DBC | Sex (1=male, 2=female, 9=N/A) | 1 digit |
DAQ | License number | Alphanumeric |
DAG | Street address | Text |
DAI | City | Text |
DAJ | State | Alpha |
DAK | ZIP code | 5 or 9 digits |
DAY | Eye colour | BLU/BRO/GRN/GRY/HZL/BLK… |
DCA | Vehicle class | A/B/C/D/M… |
Numer identyfikacyjny emitenta (IIN)
| State | IIN | State | IIN |
|---|---|---|---|
| California | 636014 | New York | 636001 |
| Texas | 636015 | Florida | 636010 |
| Illinois | 636035 | Pennsylvania | 636025 |
| Ohio | 636023 | Georgia | 636055 |
Różnice wersji
| Version | Published | Key changes |
|---|---|---|
| v8 | 2013 | Added compliance header (@\x1e\r). Baseline for modern parsers. |
| v9 | 2016 | Clarified DCF format. Added truncation flags. |
| v10 | 2020 | Added document-image elements; relaxed height units. |
Co mają prawdziwe dokumenty, a naprawione kody PDF417 nie
- Holograms, state seal, laminate patterns, optically variable devices.
- UV/IR features, inks visible only under UV or IR illumination.
- Microprinting, 0.2mm text embedded in the card.
- Tactile features, raised surfaces on name and birth date.
- Cryptographic attestation (Mobile DL), ISO/IEC 18013-5 mDL digital-signature layer.
Kanoniczne wektory testowe
| Case | Inputs | Expected header substring |
|---|---|---|
| California v10, synthetic | jurisdiction=CA | ANSI 636014100002DL |
| Texas v10, synthetic | jurisdiction=TX | ANSI 636015100002DL |
| New York v9, synthetic | jurisdiction=NY | ANSI 636001090002DL |
Typowe pułapki
- Missing compliance header. Parsers that skip the
@\x1e\rprefix will reject the payload. - Wrong date format. AAMVA uses
MMDDYYYY, notYYYY-MM-DD. - Height units. v10 accepts both inches (
070 in) and centimetres (178 cm). Older versions accept inches only. - Name truncation flags.
DDE/DDF/DDGmust beT,N, orU. - Jurisdiction-specific element codes. States add
ZA-ZZprefixed codes. Unknown codes should be skipped, not rejected. - IIN mismatch. A California licence with a Texas IIN parses but fails post-parse validity checks.
Kompatybilność skanerów
| Reader | Support | Notes |
|---|---|---|
| iOS Camera (iOS 17+) | License-aware | Wallet app recognises AAMVA payloads and can offer to add as an ID card. |
| Android Camera | Not native | Requires an ID-verification app. |
| Commercial ID-verification SDK (IDEMIA, Jumio, Onfido) | Full parse | Industry-standard for age-verification kiosks and online KYC. |
| Industrial PDF417 scanner (Zebra, Honeywell) | Full parse | Most modern firmware includes AAMVA parsing. |
Zobacz też
- /drivers-license-aamva-barcode-generator/, generator z listą kontrolną zgodności.
- /standards/, powrót do indeksu standardów.