Tencent Cloud Multi-Region Passport OCR
Paste the following prompt into your AI chat to install this skill:
Please follow https://skillhub.cn/install/skillhub.md to install @tencent-adm/tencentcloud-ocr-mlidpassport.
About this skill
Problem
Passport recognition is more structured than general document OCR. In real workflows, teams often need to extract fields such as name, passport number, date of birth, nationality, and validity dates from passports issued by different countries, crop the holder image, and detect risks such as copies, rephotographed images, PS edits, glare, or blur.
How It Works
This skill wraps the Tencent Cloud MLIDPassportOCR passport recognition API. It supports mainland China, China Hong Kong/Macao/Taiwan regions, and other countries or regions, covering 80+ countries/regions with machine-readable passports. Input can be ImageBase64 or ImageUrl; at least one is required, and ImageUrl takes priority when both are provided. Setting RetImage=true requests the holder image as Base64 data. The skill selects the domestic or international request path, parses both the MRZ machine-readable zone and the VRZ visual zone, and returns structured JSON results.
Key outputs include passport number, surname, given name, full name, date of birth, sex, expiration date, issuing country, nationality, and document type. For Thai passports where IssuingCountry=="THA", it additionally validates consistency between OCR fields and MRZ fields. For mainland China passports, Signature, IssuePlace, and IssuingAuthority return meaningful values. When requesting the ap-bangkok region, the CardCount field is also returned.
Scope and Notes
This skill is best suited for identity document extraction, form prefill, and data verification workflows. Be aware that WarnCardInfos alerts only apply to international station requests and return an empty array for domestic requests. The Warn and AdvancedInfo fields are deprecated. Images must meet size, download-time, and resolution constraints, and PDF input uses only the first page. The default rate limit is 5 requests per second, and TENCENTCLOUD_SECRET_ID and TENCENTCLOUD_SECRET_KEY must be configured before use.
Use Cases
- When processing travel records, extract name, passport number, birth date, and nationality from passport images for review systems.
- When verifying overseas customers, parse passport MRZ to check consistency between visual fields and machine-readable data.
- When onboarding international users, enable international alerts to detect copies, rephotographed images, PS edits, glare, and blur.
- When archiving identity documents, crop holder images and store name, nationality, and issue date fields.
Best For
- Operations staff who need to enter passport fields from different countries into review systems.
- Compliance engineers who verify overseas onboarding and need to detect copies or rephotographed passports.
- Backend developers who integrate passport OCR and parse MRZ and VRZ fields.
- System owners who archive multination documents and need holder images and issue information.
Related Skills
Collects daily conversations, task logs, and errors, then runs a nine-module review to surface blind spots, generate actions, and update memory.
Local long-term memory for AI agents that appends key facts and daily logs, supports cross-session context and search recall, and auto-archives old diaries to gzip files.
Run a grilling session to interact with or test AI agents.
A systematic prompt optimization skill that refines prompts using a four-step distillation framework (diagnose, structure, think, compress) and methodologies from four prompting masters.