Face to ID Match
Provides a three-factor consistency verification service for name, ID number, and facial photo. By comparing the photo with identity information, it returns consistency status and similarity score, assisting in determining user identity authenticity.
Documentation
API Capabilities
This API provides a consistency verification service for facial features and ID card information. By inputting the user's name, ID card number, and a live-captured facial photo, the system will compare these three elements for a match, returning the comparison result (consistent or inconsistent), a similarity score, and a comparison threshold. This API can serve as an important auxiliary tool in real-name authentication processes.
Request and Response
- Request Parameters: Real name (
name), 18-digit ID card number (idCardNo), and a valid network address for the facial photo (facePhotoUrl) must be provided. - Return Results: The
resultfield indicates the comparison conclusion (e.g., "Consistent"), thesimilarityfield represents the facial similarity score (between 0-1), and thethresholdfield is the recommended judgment threshold. When the similarity is greater than or equal to the threshold, it is generally considered consistent.
Use Cases
- Financial Account Opening and Transactions: In financial services such as banking, securities, and insurance, assist in verifying user identity and preventing fraud risks.
Integration Examples
Includes ready-to-use Shell, Python, Go, Java, and PHP examples for direct integration.
Request Example
{
"name": "张三",
"idCardNo": "110105199003078887",
"facePhotoUrl": "https://example.com/face.jpg"
}Response Example
{
"code": "SUCCESS",
"message": "success",
"data": {
"result": "一致",
"similarity": 0.92,
"threshold": 0.7
}
}Request Fields
The fields below are derived from example JSON for integration reference only.
| Path | Type | Sample |
|---|---|---|
| name | string | 张三 |
| idCardNo | string | 110105199003078887 |
| facePhotoUrl | string | https://example.com/face.jpg |
Response Fields
The fields below are derived from example JSON for integration reference only.
| Path | Type | Sample |
|---|---|---|
| code | string | SUCCESS |
| message | string | success |
| data | object | {...} |
| data.result | string | 一致 |
| data.similarity | number | 0.92 |
| data.threshold | number | 0.7 |