tencent cloud

APIs

RecognizePhilippinesVoteIDOCR

다운로드
포커스 모드
폰트 크기
마지막 업데이트 시간: 2026-07-02 16:21:40

1. API Description

Domain name for API request: ocr.intl.tencentcloudapi.com.

This API is used to recognize a Philippine voters ID card. It can recognize fields such as first name, family name, date of birth, civil status, citizenship, address, precinct, and voter's identification number (VIN).

The API request rate is limited to 20 requests/sec by default.

A maximum of 20 requests can be initiated per second for this API.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.

Parameter Name Required Type Description
Action Yes String Common Params. The value used for this API: RecognizePhilippinesVoteIDOCR.
Version Yes String Common Params. The value used for this API: 2018-11-19.
Region Yes String Common Params. For more information, please see the list of regions supported by the product. This API only supports: ap-singapore.
ReturnHeadImage Yes Boolean Whether to return the identity photo.
ImageBase64 No String The Base64-encoded value of an image.
Supported image formats: PNG, JPG, and JPEG. GIF is currently not supported.
Supported image size: The downloaded image after Base64 encoding can be up to 7 MB. The download time of the image cannot exceed 3s.
Either the ImageUrl or ImageBase64 of the image must be provided. If both are provided, only ImageUrl will be used.
ImageUrl No String The URL of the image.
Supported image formats: PNG, JPG, and JPEG. GIF is currently not supported.
Supported image size: The downloaded image after Base64 encoding can be up to 7 MB. The download time of the image cannot exceed 3s.
We recommend that you store the image in Tencent Cloud for higher download speed and stability.
For a non-Tencent Cloud URL, the download speed and stability may be affected.

3. Output Parameters

Parameter Name Type Description
HeadPortrait TextDetectionResult The Base64-encoded identity photo.
VIN TextDetectionResult The voter's identification number (VIN).
LastName TextDetectionResult The last name.
FirstName TextDetectionResult The first name.
MiddleName TextDetectionResult
Birthday TextDetectionResult The date of birth.
CivilStatus TextDetectionResult The civil status.
Citizenship TextDetectionResult The citizenship.
Address TextDetectionResult The address.
PrecinctNo TextDetectionResult The precinct.
RequestId String The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.

4. Example

Example1 RecognizePhilippinesVoteIDOCR

RecognizePhilippinesVoteIDOCR

Input Example

POST / HTTP/1.1
Host: ocr.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: RecognizePhilippinesVoteIDOCR
<Common Request Parameters>

{
    "ReturnHeadImage": "false",
    "ImageUrl": "https://ocr-demo-1254418846.cos.ap-guangzhou.myqcloud.com/***/fakeurl.jpg"
}

Output Example

{
    "Response": {
        "Address": {
            "Value": " IPIL,ZAMBOANGA CITY"
        },
        "Birthday": {
            "Value": "March 13,1985"
        },
        "Citizenship": {
            "Value": "Filipino"
        },
        "CivilStatus": {
            "Value": "Single"
        },
        "FirstName": {
            "Value": "ROYO"
        },
        "HeadPortrait": {
            "Value": ""
        },
        "MiddleName": {
            "Value": "Tudtud"
        },
        "LastName": {
            "Value": "Royo"
        },
        "PrecinctNo": {
            "Value": "0398B"
        },
        "RequestId": "1234-1234-1234-1234",
        "VIN": {
            "Value": "7502-0398B-G0987ANT10000"
        }
    }
}

5. Developer Resources

SDK

TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.

Error Code Description
FailedOperation.DownLoadError Failed to download the file.
FailedOperation.ImageDecodeFailed Failed to decode the image.
FailedOperation.OcrFailed OCR recognition failed. This error may be caused by unstable network connections, service anomalies, or other issues.
FailedOperation.UnKnowError Unknown error.
FailedOperation.UnOpenError The service has not been activated.
InvalidParameter.EngineImageDecodeFailed Image decoding failed.
InvalidParameterValue.InvalidParameterValueLimit Incorrect parameter value.
LimitExceeded.TooLargeFileError The file size exceeds the limit
ResourcesSoldOut.ChargeStatusException The billing status is abnormal.

도움말 및 지원

문제 해결에 도움이 되었나요?

피드백