SOC2GDPR

Verify UK Passport Extractor — KYC Ready

KYC compliance requires processing thousands of identity documents. Manual verification creates bottlenecks and increases fraud risk.

21
Fields Extracted
180s
Max Processing

What This Template Does

AI-powered extraction using gemini-2.5-flash. Part of 113 production-ready templates.

Capabilities

  • Identity Extraction
  • Mrz Parsing
  • Passport Verification
  • Passport
  • Kyc

Output Schema

{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "UK Passport Extraction Schema",
  "description": "JSON Schema for extracted data from United Kingdom passports",
  "type": "object",
  "required": [
    "document_type",
    "passport_number",
    "surname",
    "given_names",
    "nationality",
    "date_of_birth",
    "sex",
    "expiry_date"
  ],
  "properties": {
    "document_type": {
      "type": "string",
      "const": "uk_passport",
      "description": "Document typ
...

Quick Start

$ pip install doclayer
$ doclayer process document.pdf --agent identity.uk-passport

See It In Action

Real extraction example showing input document and structured output.

Input Document
[UK PASSPORT DATA PAGE - POST-BREXIT FORMAT]

BRITISH PASSPORT
UNITED KINGDOM OF GREAT BRITAIN
AND NORTHERN IRELAND

Type: P
Code: GBR
Passport No: 547832916

Surname: FLETCHER
Given names: EMMA LOUISE

Nationality: BRITISH CITIZEN
Date of birth: 08 SEP 1992
Sex: F
Place of birth: EDINBURGH

Date of issue: 10 JUN 2023
Date of expiry: 10 JUN 2033
Authority: HMPO

[Photo of holder]
[Biometric chip symbol visible]
[Blue passport cover]

MRZ:
P<GBRFLETCHER<<EMMA<LOUISE<<<<<<<<<<<<<<<<<<<<
5478329162
Extracted Data
{
  "document_type": "uk_passport",
  "passport_number": "547832916",
  "surname": "FLETCHER",
  "given_names": "EMMA LOUISE",
  "full_name": "EMMA LOUISE FLETCHER",
  "nationality": "BRITISH CITIZEN",
  "nationality_code": "GBR",
  "date_of_birth": "1992-09-08",
  "sex": "F",
  "place_of_birth": "EDINBURGH",
  "issue_date": "2023-06-10",
  "expiry_date": "2033-06-10",
  "issuing_authority": "HMPO",
  "mrz_line_1": "P<GBRFLETCHER<<EMMA<LOUISE<<<<<<<<<<<<<<<<<<<<",
  "mrz_line_2": "5478329162GBR9209081F3306109<<<<<<<<<<<<<<04",
  "mrz_valid": true,
  "biometric": true,
  "passport_type": "P",
  "observations": "",
  "document_format": "post_brexit",
  "document_status": "valid"
}

Post-Brexit UK passport with blue cover design and current format. Tests extraction of British passports issued after EU departure with updated documentation style.

Frequently Asked Questions

What documents can UK Passport Extractor process?

The UK Passport Extractor template processes identity documents including various formats and layouts. See the instructions for specific document types supported.

How accurate is the UK Passport Extractor extraction?

The UK Passport Extractor template uses Gemini 2.5 Flash for high-accuracy extraction. Results include confidence scores for each field.

Can I customize the UK Passport Extractor template?

Yes, you can modify the extraction schema, add custom fields, or adjust the instructions to match your specific requirements.

Start Extracting Data Today

Process your first document in under 5 minutes. No credit card required.