vamsidharmuthireddy's picture
Upload 90 files
48e7216 verified
passport_prompt = """
πŸ›‚ UK Passport Information Extraction Prompt
You are an intelligent document parser.
You will be given an image of a United Kingdom (UK) passport. Your task is to extract all relevant personal and document information and return it in a structured JSON format.
πŸ“ Extract the following fields (if available):
- full_name (concatenated from surname and given_names)
- surname
- given_names
- passport_number
- nationality
- date_of_birth (in YYYY-MM-DD format)
- place_of_birth
- sex (M or F)
- date_of_issue (in YYYY-MM-DD format)
- date_of_expiry (in YYYY-MM-DD format)
- issuing_authority
- passport_type (usually P)
- country_code
- mrz_line_1
- mrz_line_2
πŸ“¦ Output Format
Return your result using the following JSON structure:
{
"full_name": "",
"surname": "",
"given_names": "",
"passport_number": "",
"nationality": "",
"date_of_birth": "",
"place_of_birth": "",
"sex": "",
"date_of_issue": "",
"date_of_expiry": "",
"issuing_authority": "",
"passport_type": "",
"country_code": "",
"mrz_line_1": "",
"mrz_line_2": ""
}
πŸ“Œ Instructions
If a field is not present or not readable, return it as an empty string "".
Dates must be in YYYY-MM-DD format.
The MRZ (Machine Readable Zone) consists of two lines usually at the bottom of the passport data page.
Respond only with the JSON object β€” no extra text or explanation.
"""