CLOVA OCR overview

Prev Next

Available in Classic and VPC

CLOVA OCR (Optical Character Recognition) is a NAVER Cloud Platform service that recognizes transmitted documents or images and accurately extracts text and data in user-specified areas. It provides APIs in RESTful form for recognizing all text in images, recognizing text in images with templates deployed in a domain, and quickly extracting only the required text within a template.

Common CLOVA OCR settings

The following describes commonly used request and response formats in CLOVA OCR APIs.

Request

The following describes the common request format.

API URL

The request API URL is as follows:

API Gateway's unique invoke URL created in CLOVA OCR Builder
Note

To check the invoke URL, see the CLOVA OCR User Guide.

Request headers

The following describes the headers.

Field Required Description
X-OCR-SECRET Required Client secret created in NAVER Cloud Platform domain when integrating with API Gateway
Content-Type Required Request data format
  • application/json | multipart/form-data

Response

The following describes the common response format.

Response status codes

The following describes the response status codes.

HTTP status code Code Message Description
400 0001 URL is invalid. Invalid call URL entered.
  • Check that the POST URL you called is correct.
401 0002 Secret key validate failed. Entered secret key not validated.
  • Check if the X-OCR-SECRET:{Client Secret} value is accurate.
400 0011 Request body invalid. Entered request body value is invalid.
400 0021 Protocol version not support. Unsupported API version.
400 0022 Request domain invalid. Entered request domain value is invalid.
400 0023 API request count reach the upper limit. API call limit reached.
400 0025 Calls to this api have exceeded the rate limit. API call count exceeds rate limit.
400 0028 Table detection disabled: Please activate the table extractor button. Called with enableTableDetection: true under the table extration status of OFF.
500 0500 Unknown service error. Unknown service error occurred.
500 0501 OCR service error. OCR service error occurred.
500 1021 Not found deploy information. Please confirm the template is released. Template deployment history not found.
  • Need to check whether the template is deployed to the domain in NAVER Cloud Platform console.
500 1022 Service is blocked. Service temporarily unavailable.
Note

For response status codes common to NAVER Cloud Platform, see Ncloud API response status codes.

CLOVA OCR API

The following describes the APIs provided by the CLOVA OCR service.

API Description
General OCR Plain text and table extraction OCR
Template OCR Template OCR
Document OCR > Business card Business card information OCR
Document OCR > Business registration certificate Business registration certificate information OCR
Document OCR > Credit card Credit card information OCR
Document OCR > Receipt Receipt information OCR
Document OCR > ID card > Passport Passport information OCR
Document OCR > ID card > Alien registration card Alien registration card information OCR
Document OCR > ID card > Driver's license Driver's license information OCR
Document OCR > ID card > Resident registration card Resident registration card information OCR

CLOVA OCR related resources

NAVER Cloud Platform provides a variety of related resources to help users better understand CLOVA OCR APIs.