Skip to main content

Module

extract_fields

Blind extraction — the model reads the photo without knowing expected values. Uses Gemini 2.5 Flash with application/json response. Returns:

compare_against_ground_truth

Pure Python comparison — no model involved. Normalizes values by stripping whitespace, lowercasing, and removing $, ,, . characters. Returns:
Status classification logic:

build_occlusion_manifest

Cross-reference failed fields with variation config to explain why each field is or isn’t visible. Returns: Dict of field_name -> "visible" or:

verify_ground_truth

Full verification pipeline: blind extract then programmatic compare. The vision model never sees expected values. Returns: Same format as compare_against_ground_truth().

generate_verified_photo

See Generators.

generate_verified_dataset

See Generators.