NanoNets
  1. OCR Predict
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. OCR Predict

Async Prediction for image url

开发环境
http://dev-cn.your-api-server.com
开发环境
http://dev-cn.your-api-server.com
POST
/OCR/Model/{model_id}/LabelUrls/
This endpoint allows you to process a file on your OCR model and get the results

请求参数

Path 参数

Query 参数

Body 参数application/x-www-form-urlencoded

返回响应

🟢200message can contain 3 status messages 1. success - File has been successfully processed 2. pending - File is in the queue and will be processed 3. failure - There was an issue while processing the file. It has been retried 3 times. It is recommended to re
application/json
Body

🟢202Request partially successful. One or more urls might not be correct or got no response
🟠400Urls missing. Check if you have an included array of image urls
🟠402Exhausted Free API Calls You have exhausted your free API calls please change your plan <a href="https://app.nanonets.com/user/apps">here</a>
🟠404Model does not exists. Check if the model id exists
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://dev-cn.your-api-server.com/OCR/Model//LabelUrls/?async=true' \
--data-urlencode 'urls='
响应示例响应示例
200 - response
{
    "message": "Success",
    "result": [
        {
            "input": "string",
            "message": "Success",
            "result": [
                {
                    "file_url": "uploadedfiles/00000000-0000-0000-0000-000000000000/PredictionImages/original_file_name-xxxx.jpeg",
                    "filepath": "uploadedfiles/00000000-0000-0000-0000-000000000000/PredictionImages/filename.jpeg",
                    "id": "00000000-0000-0000-0000-000000000000",
                    "input": "filename.jpg",
                    "message": "Success",
                    "page": 55,
                    "prediction": [],
                    "request_file_id": "00000000-0000-0000-0000-000000000000",
                    "request_metadata": "metadata sent during prediction"
                }
            ]
        }
    ]
}
修改于 2024-05-29 05:52:24
上一页
Prediction for image url
下一页
Get Full Text
Built with