Patsnap OCR

AI10 Generate an OCR recognition task

This interface provides the task of creating and downloading OCR recognition, generating jobs_id, through jobs_id Go to "[AI10] query and export the OCR recognition results". OCR recognition supports recognizing numbers, text information, table contents, and more in images or scanned PDF files. Additionally, it can analyze the layout and provide OCR recognition results in multiple formats that closely resemble the structure of the original document.

post/ai/ocr/task/create

Request

Request body

documentstring required

The images or scanned PDF files that require OCR recognition.

document_typestring required

The types of files that require OCR include: pdf, png, jpg.

ocr_formatstring required

Search for the type of OCR recoginition results, doc/html/xls/ppt/txt

Example request

{
  "document": "https://static-open.zhihuiya.com/sample/common_demo.png",
  "document_type": "png",
  "ocr_format": "doc",
  "document_lang": [
    "简体中文",
    "数字",
    "英语"
  ]
}

Response

Successful ai10 generate an ocr recognition task response.

statusboolean required

Status

error_msgstring

Error Message

error_codeinteger required

Error Code

Example response

{
  "data": {
    "job_id": "b4bdae6b4a65432d91f25b5c52bdfd80"
  },
  "error_msg": "The request parameter format is incorrect!"
}

Changes

No recorded changes to this operation across all 1 revision of this API.