curl --location --request POST 'http://dev-cn.your-api-server.com/OCR/Model//UploadUrls/' \
--header 'Content-Type: application/json' \
--data-raw '{
"data": [
{
"filename": "https://nanonets.s3-us-west-2.amazonaws.com/test-images/test1.jpg",
"object": [
{
"bndbox": {
"xmax": 100,
"xmin": 1,
"ymax": 100,
"ymin": 1
},
"name": "{{category1}}"
}
]
}
],
"urls": [
"https://nanonets.s3-us-west-2.amazonaws.com/test-images/test1.jpg"
]
}'
{
"Data": [
{
"filename": "example.jpeg",
"id": "00000000-0000-0000-0000-000000000000",
"object": [
{
"bndbox": {
"xmax": 100,
"xmin": 1,
"ymax": 100,
"ymin": 1
},
"name": "category1",
"ocr_text": "text inside the bounding box"
}
],
"size": {
"height": 1024,
"width": 1024
}
}
],
"Meta": {
"Accuracy": 0,
"Categories": [
{
"count": 0,
"name": "category1"
},
{
"count": 0,
"name": "category2"
}
],
"ModelID": "00000000-0000-0000-0000-000000000000",
"ModelType": "ocr",
"State": 0,
"Status": "Current Status"
}
}