Skip to main content

Compare RGB Palmprint

1. Interface Description

Interface request domain: open.intl.palm.tencent.com Interface description: Upload RGB palm image and 1:1 compare with specified user, single-factor authentication. Default interface request rate limit: 20 times/second

2. Input Parameters

Parameter NameRequiredTypeDescription
RgbImageYesImageRGB image data, Data and ImageType are required
CompareUserIdYesStringUser ID to compare with.

3. Output Parameters

Parameter NameTypeDescription
IsMatchBooleanWhether matched.
ScoreIntegerSimilarity score, percentage.
AlgorithmVersionStringAlgorithm version.
PalmDirectionPalmDirectionTypePalm direction.

4. Example

Input Example

POST /palm/openai/compare_rgb_palm HTTP/1.1
Host: open.intl.palm.tencent.com
Content-Type: application/json; charset=utf-8
Authorization: ak_*********************************

{
"RgbImage": {
"Data": "base64 image data",
"ImageType": 1
},
"CompareUserId": "user001"
}

Output Example

{
"code": 0,
"message": "ok",
"requestId": "4d5912a82af144f8a982c2da031c1035",
"data": {
"IsMatch": true,
"Score": 95,
"AlgorithmVersion": "v2.0",
"PalmDirection": 1
}
}