Module
detect_schema_from_image
pdf_to_image
output_path.
schema_to_flat
detect_schema_from_image()) to a flat field_name -> value dict suitable for the verification pipeline.
Flattening rules:
header.field_name->field_nameitems[i].field_name->item_{i+1}_field_nametotals.field_name->field_nameobservations->observationsNonevalues are omitted
upload_and_generate
- If PDF, convert to image via
pdf_to_image() - Detect schema via
detect_schema_from_image() - Save
detected_schema.jsonandground_truth.json - Generate verified photos for each preset
- Save per-image
_verification.jsonand_occlusion.json