Domain name for API request: ocr.tencentcloudapi.com.
This API is used to recognize a South Korean driver's license.
A maximum of 20 requests can be initiated per second for this API.
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: RecognizeKoreanDrivingLicenseOCR. |
Version | Yes | String | Common Params. The value used for this API: 2018-11-19. |
Region | No | String | Common Params. This parameter is not required for this API. |
ImageBase64 | No | String | The Base64-encoded value 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. Either ImageUrl or ImageBase64 of the image must be provided. If both are provided, only ImageUrl is 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. The download speed and stability of non-Tencent Cloud URLs may be low. |
ReturnHeadImage | No | Boolean | Whether to return the identity photo. |
Parameter Name | Type | Description |
---|---|---|
ID | String | The ID card number. |
LicenseNumber | String | The license number. |
Number | String | The resident registration number. |
Type | String | The license class type. |
Address | String | The address. |
Name | String | The name. |
AptitudeTesDate | String | The renewal period. |
DateOfIssue | String | The issue date. |
Photo | String | The Base64-encoded identity photo. |
Sex | String | The gender. |
Birthday | String | The birth date in the format of dd/mm/yyyy. |
RequestId | String | The unique request ID, which is returned for each request. RequestId is required for locating a problem. |
This example shows you how to recognize a South Korean driver's license.
POST / HTTP/1.1
Host: ocr.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: RecognizeKoreanDrivingLicenseOCR
<Common request parameters>
{
"ReturnHeadImage": "false",
"ImageUrl": "https://xx/a.jpg"
}
{
"Response": {
"Address": "주 소 전북 전주 덕진 반월 763-1 전주월드컵경기장28",
"AptitudeTesDate": "28/02/2020~27/08/2020",
"Birthday": "13/07/1987",
"DateOfIssue": "28/02/2011",
"ID": "7043EX",
"LicenseNumber": "전북 11-006760-90",
"Name": "HUANG BOWEN",
"Number": "870713-5260590",
"Photo": "",
"RequestId": "4fd48a46-b911-4725-a0c4-f4be81866e12",
"Sex": "",
"Type": "2종보동"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
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 | File download failed. |
FailedOperation.ImageDecodeFailed | Image decoding failed. |
FailedOperation.OcrFailed | OCR failed. |
FailedOperation.UnKnowError | Unknown error. |
FailedOperation.UnOpenError | The service is not activated. |
InvalidParameter.EngineImageDecodeFailed | Image decoding failed. |
InvalidParameterValue.InvalidParameterValueLimit | Incorrect parameter value. |
LimitExceeded.TooLargeFileError | The file is too large. |
ResourcesSoldOut.ChargeStatusException | Exceptional billing status. |
本页内容是否解决了您的问题?