tencent cloud

RecognizeBrazilRNMOCR
最后更新时间:2025-04-28 16:23:36
RecognizeBrazilRNMOCR
最后更新时间: 2025-04-28 16:23:36

1. API Description

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

This interface supports identification of the front and back of Brazilian RNM license. The default interface request frequency limit is 5 times per second.

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: RecognizeBrazilRNMOCR.
Version Yes String Common Params. The value used for this API: 2018-11-19.
Region No String Common Params. This parameter is not required.
ImageBase64 No String Base64 value of the image. Supported image formats: PNG, JPG, JPEG, GIF format is not supported yet. Supported image size: The downloaded image should not exceed 7M after Base64 encoding. Image downloading time should not exceed 3 seconds.
ImageUrl No String URL address of the image. Supported image formats: PNG, JPG, JPEG, GIF format is not supported yet. Supported image size: The downloaded image should not exceed 7M after Base64 encoding. Image download time should not exceed 3 seconds. URLs of images stored in Tencent Cloud can guarantee higher download speed and stability. It is recommended that images be stored in Tencent Cloud. The speed and stability of URLs not stored in Tencent Cloud may be affected to a certain extent.
BackImageBase64 No String Base64 value of the image on the back of the card. Supported image formats: PNG, JPG, JPEG, GIF format is not supported yet. Supported image size: The downloaded image should not exceed 7M after Base64 encoding. Image download time should not exceed 3 seconds. An ImageUrl and ImageBase64 must be provided. If both are provided, only ImageUrl will be used.
BackImageUrl No String The URL address of the image on the back of the card. Supported image formats: PNG, JPG, JPEG, GIF format is not supported yet. Supported image size: The downloaded image does not exceed 7M after Base64 encoding. The image download time does not exceed 3 seconds. The URL of the image stored in Tencent Cloud can ensure higher download speed and stability. It is recommended to store the image in Tencent Cloud. The speed and stability of the URL stored outside Tencent Cloud may be affected to a certain extent.
ReturnHeadImage No Boolean Whether to return portrait photos.

3. Output Parameters

Parameter Name Type Description
SOBRENOME String Last name
NOME String First name
DATADENASCIMENTO String Date of Birth
SEXO String Gender
MEMBERSHIP String Parents name
NACIONALIDADE String Nationality
VALIDADE String Expiry Date
RNM String RNM
CPF String CPF
CLASSIFICATION String
PRAZODERESIDENCIA String
ISSUANCE String Issue Date
AMPAROLEGAL String Legal basis
MRZ String Machine readable zone code
PortraitImage String PortraitImage
PortraitImageBack String PortraitImage(Back)
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 RecognizeBrazilRNMOCR

Input Example

POST / HTTP/1.1
Host: ocr.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: RecognizeBrazilRNMOCR
<public parameters>

{
    "ImageBase64": "/9j/4AAQSkZJRg.....s97n//2Q==",
    "ImageUrl": "",
    "BackImageBase64": "/9j/4AAQSkZJRg.....s97n//2Q==",
    "BackImageUrl": "",
    "ReturnHeadImage": false
}

Output Example

{
    "Response": {
        "AMPAROLEGAL": "AAAA. 37, XXX.",
        "CLASSIFICATION": "AAAA",
        "CPF": "111.111.111-11",
        "DATADENASCIMENTO": "10/06/1992",
        "ISSUANCE": "29/11/2020 XX/XX/XX",
        "MEMBERSHIP": "BBBB AAA/XXX XXX",
        "MRZ": "I BBBBB 4 00000AAA0000 6 AAA",
        "NACIONALIDADE": "AAAA",
        "NOME": "AAAA",
        "PRAZODERESIDENCIA": "Indeterminado",
        "PortraitImage": "",
        "PortraitImageBack": "",
        "RNM": "V11111-P",
        "RequestId": "50a1a4d1-1468-4097-a44e-bea39e17bf47",
        "SEXO": "",
        "SOBRENOME": "XXXX",
        "VALIDADE": "07/07/2031"
    }
}

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 File download failed.
FailedOperation.ImageDecodeFailed Image decoding failed.
FailedOperation.UnKnowError Unknown error.
FailedOperation.UnOpenError The service is not activated.
LimitExceeded.TooLargeFileError The file is too large.
ResourceUnavailable.ResourcePackageRunOut The account resource package is exhausted.
本页内容是否解决了您的问题?
您也可以 联系销售 提交工单 以寻求帮助。

文档反馈