Skip to main content

Crate aamva

Crate aamva 

Source
Expand description

AAMVA DL / ID (PDF417) reader.

Covers AAMVA Card Design Standard versions 01–10 (MMDDCCYY dates for USA jurisdictions, CCYYMMDD for Canada, both tolerated).

Re-exports§

pub use data::AamvaHeader;
pub use data::AamvaLicense;
pub use data::Compliance;
pub use data::Country;
pub use data::EyeColor;
pub use data::HairColor;
pub use data::Height;
pub use data::Sex;
pub use data::SubfileDesignator;
pub use data::Truncation;
pub use error::AamvaError;
pub use parser::parse;
pub use pdf417::decode_pdf417_from_image_bytes;
pub use pdf417::decode_pdf417_from_luma8;

Modules§

data
Parsed AAMVA DL / ID data model.
error
Error types for the AAMVA DL / ID parser.
parser
AAMVA DL / ID payload parser.
pdf417
PDF417 barcode detection via the rxing crate.

Functions§

parse_license_from_image_bytes
Scan the PDF417 on PNG/JPEG image bytes and parse the AAMVA payload.
parse_license_from_luma8
Scan the PDF417 on a luma8 buffer and parse the AAMVA payload.