NanoNets
  1. Get Full Text
NanoNets
  • Image Classification Model Predict
    • Prediction for image File
      POST
    • Prediction for image URLs
      POST
  • Image Classification Model
    • Get Model by Id
      GET
    • Create New Model
      POST
    • Get All Models
      GET
  • Image Classification Model Train
    • Train Model
      POST
  • Image Classification Model Upload
    • Upload training images by File
      POST
    • Upload training images by Url
      POST
  • OCR Predict
    • Get Prediction File By Page ID
      GET
    • Get All Prediction Files
      GET
    • Get Prediction File By File ID
      GET
    • Prediction for image file
      POST
    • Async Prediction for image file
      POST
    • Prediction for image url
      POST
    • Async Prediction for image url
      POST
  • Get Full Text
    • Get Full Text
      POST
  • OCR Model
    • Create New Model
      POST
    • Get Model by Id
      GET
  • OCR Train
    • Train Model
      POST
  • OCR Upload
    • Upload training images by File
      POST
    • Upload training images by Url
      POST
  1. Get Full Text

Get Full Text

开发环境
http://dev-cn.your-api-server.com
开发环境
http://dev-cn.your-api-server.com
POST
/OCR/FullText
Use this API to recieve the word and full text information in a file. More info on https://nanonets.com

请求参数

Body 参数multipart/form-data

返回响应

🟢200Model Object
application/json
Body

🟠400File missing. Check if you have included a file in the request OR Incorrect image. Check if file you included is a valid PNG or JPEG or PDF
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://dev-cn.your-api-server.com/OCR/FullText' \
--form 'file=@""'
响应示例响应示例
200 - response
{
    "result": [
        {
            "filename": "MY_FILE_NAME_1.pdf",
            "page_data": [
                {
                    "page": 0,
                    "raw_text": "this contains all the text in the page",
                    "words": [
                        {
                            "text": "text of word 1",
                            "xmax": 380,
                            "xmin": 159,
                            "ymax": 1439,
                            "ymin": 1258
                        },
                        {
                            "text": "text of word 2",
                            "xmax": 380,
                            "xmin": 159,
                            "ymax": 1439,
                            "ymin": 1258
                        },
                        {
                            "text": "text of word 3",
                            "xmax": 380,
                            "xmin": 159,
                            "ymax": 1439,
                            "ymin": 1258
                        }
                    ]
                },
                {
                    "page": 1,
                    "raw_text": "this contains all the text in the page",
                    "words": [
                        {
                            "text": "text of word 1",
                            "xmax": 380,
                            "xmin": 159,
                            "ymax": 1439,
                            "ymin": 1258
                        },
                        {
                            "text": "text of word 2",
                            "xmax": 380,
                            "xmin": 159,
                            "ymax": 1439,
                            "ymin": 1258
                        }
                    ]
                },
                {
                    "page": 2,
                    "raw_text": "this contains all the text in the page",
                    "words": [
                        {
                            "text": "text of word 3",
                            "xmax": 380,
                            "xmin": 159,
                            "ymax": 1439,
                            "ymin": 1258
                        }
                    ]
                }
            ]
        },
        {
            "filename": "MY_FILE_NAME_2.jpg",
            "page_data": [
                {
                    "page": 0,
                    "raw_text": "this contains all the text in the page",
                    "words": [
                        {
                            "text": "text of word 1",
                            "xmax": 380,
                            "xmin": 159,
                            "ymax": 1439,
                            "ymin": 1258
                        },
                        {
                            "text": "text of word 2",
                            "xmax": 380,
                            "xmin": 159,
                            "ymax": 1439,
                            "ymin": 1258
                        }
                    ]
                }
            ]
        }
    ]
}
修改于 2024-05-29 05:52:24
上一页
Async Prediction for image url
下一页
Create New Model
Built with