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

Get Prediction File By File ID

开发环境
http://dev-cn.your-api-server.com
开发环境
http://dev-cn.your-api-server.com
GET
/Inferences/Model/{model_id}/InferenceRequestFiles/GetPredictions/{request_file_id}
This endpoint retrieves the results of a particular file by file id

请求参数

Path 参数

返回响应

🟢200Model Object
application/json
Body

🟠404Model does not exists. Check if you have entered correct model id with valid API key
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://dev-cn.your-api-server.com/Inferences/Model//InferenceRequestFiles/GetPredictions/'
响应示例响应示例
200 - response
{
    "moderated_images": [
        {
            "day_since_epoch": 0,
            "file_url": "uploadedfiles/<id>/PredictionImages/<original_image_name><timestamp_based_string>",
            "hour_of_day": 0,
            "id": "uuid",
            "is_moderated": true,
            "model_id": "<model_id>",
            "moderated_boxes": [
                null
            ],
            "original_file_name": "<filename>",
            "page": 0,
            "predicted_boxes": [
                {
                    "id": "uuid",
                    "label": "category1",
                    "ocr_text": "string",
                    "score": 0.9,
                    "status": "correctly_predicted",
                    "type": "field|table",
                    "xmax": 100,
                    "xmin": 0,
                    "ymax": 100,
                    "ymin": 0
                },
                {
                    "cells": [
                        {
                            "col": 1,
                            "col_span": 1,
                            "label": "col 1",
                            "row": 1,
                            "row_span": 1,
                            "score": 99.99,
                            "text": "ocr text 1",
                            "xmax": 258,
                            "xmin": 159,
                            "ymax": 1357,
                            "ymin": 1258
                        },
                        {
                            "col": 2,
                            "col_span": 1,
                            "label": "col 2",
                            "row": 1,
                            "row_span": 1,
                            "score": 99.99,
                            "text": "ocr text 2",
                            "xmax": 380,
                            "xmin": 258,
                            "ymax": 1357,
                            "ymin": 1258
                        },
                        {
                            "col": 1,
                            "col_span": 1,
                            "label": "col 1",
                            "row": 2,
                            "row_span": 1,
                            "score": 99.99,
                            "text": "ocr text 3",
                            "xmax": 258,
                            "xmin": 159,
                            "ymax": 1439,
                            "ymin": 1357
                        },
                        {
                            "col": 2,
                            "col_span": 1,
                            "label": "col 2",
                            "row": 2,
                            "row_span": 1,
                            "score": 99.99902,
                            "text": "ocr text 4",
                            "xmax": 380,
                            "xmin": 258,
                            "ymax": 1439,
                            "ymin": 1357
                        }
                    ],
                    "label": "",
                    "ocr_text": "table 1",
                    "score": 99.99,
                    "type": "table",
                    "xmax": 380,
                    "xmin": 159,
                    "ymax": 1439,
                    "ymin": 1258
                }
            ],
            "request_file_id": "uuid",
            "request_metadata": "metadata sent during prediction",
            "status": "Success",
            "updated_at": "timeuuid",
            "url": "uploadedfiles/<id>/PredictionImages/<image_name>",
            "verified_at": "timeuuid",
            "verified_by": "<person_name>"
        }
    ],
    "moderated_images_count": 0,
    "signed_urls": [
        null
    ],
    "unmoderated_images": [
        null
    ],
    "unmoderated_images_count": 1
}
修改于 2024-05-29 05:52:24
上一页
Get All Prediction Files
下一页
Prediction for image file
Built with