id-card-ocr

Extract structured OCR fields from Chinese second-generation ID card images.

23|4|Updated May 7, 2026
One-click install
npx skills add https://github.com/qq5855144/GitHubM --skill id-card-ocr
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: id-card-ocr
Source: https://github.com/qq5855144/GitHubM/tree/main/.skills/id-card-ocr
Command: npx skills add https://github.com/qq5855144/GitHubM --skill id-card-ocr

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill removes the manual burden of reading and typing Chinese second-generation ID card information from images, helping teams quickly capture identity details for registration, verification, and review workflows.

Core Features & Use Cases

  • Front and back recognition: Extracts name, gender, ethnicity, birth date, address, ID number, issuing authority, issue date, and expiry date.
  • Optional quality and risk checks: Supports PS detection, risk type detection, image quality checks, and direction correction for more reliable results.
  • Deployment-friendly integration: Works through a managed API gateway and Edge Function flow for web and MiniProgram applications.
  • Use case: A customer onboarding system uploads an ID card photo, selects the card side, and receives structured JSON fields for automatic form filling and validation.

Quick Start

Use this skill to recognize the front or back of an uploaded Chinese ID card image and return structured OCR fields for your verification workflow.

Frequently Asked Questions about id-card-ocr

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract text from a Chinese ID card image for KYC verification?

To extract text from a Chinese ID card image for KYC verification, you upload the photo and select the card side to receive normalized OCR fields like name, ID number, and address. This process works through a managed API gateway and Edge Function, returning structured JSON data for automated registration workflows.

Can I use Baidu OCR to parse both front and back sides of a second-generation ID card?

Yes, you can parse both the front and back sides of a second-generation ID card using this Baidu OCR integration. Front side extraction captures name and birth date, while back side extraction returns issuing authority and expiry dates, providing complete identity details for user onboarding.

What image quality and risk checks are available for ID card OCR data extraction?

ID card OCR data extraction includes optional image quality checks and risk type detection to ensure reliable results. The process supports PS detection and direction correction, validating uploaded photos before returning structured text fields for identity verification workflows.

Does this ID card OCR solution work with web and mobile MiniProgram applications?

This ID card OCR solution works directly with web and MiniProgram applications through an Edge Function flow. It accepts image or URL input, processes the identity card photo via a managed API gateway, and returns structured JSON fields suitable for automatic form filling.

How do I integrate identity verification into a customer onboarding system using Edge Functions?

To integrate identity verification into a customer onboarding system using Edge Functions, submit an ID card photo and specify the card side to the API. The gateway returns normalized OCR fields with quality and risk checks, enabling automatic validation and form filling for KYC workflows.

What structured data fields are returned when extracting information from a Chinese ID card?

Extracting information from a Chinese ID card returns structured data fields including name, gender, ethnicity, birth date, address, and ID number from the front. The back side provides the issuing authority, issue date, and expiry date, delivering normalized JSON for identity verification.