that’s a detailed insight on the possible ways… thank u so much @John6666
To make things simpler instead of relying completely on the VML Models. i think we better use
step 1) card Registration: once the passport is identified we will manually update the JSON file as below
{
“passport_type”: “UAE-passport”,
“fields”: {
“Type”: {
“location”: “top left area”,
“value_type”: “text”
},
“Country Code”: {
“location”: “top center-left”,
“value_type”: “text”
},
“Passport No”: {
“location”: “top right”,
“value_type”: “alphanumeric”
},
“Names”: {
“location”: “middle right”,
“value_type”: “text”
},
“Nationality”: {
“location”: “middle right below name”,
“value_type”: “text”
},
“Date of Birth”: {
“location”: “middle right”,
“value_type”: “date”
},
“Sex”: {
“location”: “middle right”,
“value_type”: “text”
},
“Place of Birth”: {
“location”: “middle right”,
“value_type”: “text”
},
“Date of Expiry”: {
“location”: “middle right”,
“value_type”: “date”
},
“Date of Issue”: {
“location”: “middle right”,
“value_type”: “date”
},
“Issuing Authority”: {
“location”: “bottom right”,
“value_type”: “text”
},
“Holder’s Signature”: {
“location”: “bottom right”,
“value_type”: “signature”
}
},
“face_on_passport”: true,
“face_location”: “middle left side (photo region)”,
“faces_count”: 1,
“background_designs”: {
“type”: “geometric pattern”,
“description”: “interlocked grid pattern with UAE emblem watermark”,
“location”: “entire card background”
},
“MRZ_isavailable”: true,
“MRZ_location”: “bottom middle of the passport”
}
Step 2) card validation: During validation we will be using json file and extract relavant fields from json and validate accordingly
With this approach we can solve 80% of problem, but only challenge i see is
During validation how can i check card background is tampered or original based on confidence score without VLM model getting hallucinated ?
Thanks
vijay