curl --location --request POST 'http://dev-cn.your-api-server.com/OCR/FullText' \
--form 'file=@""'
{
"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
}
]
}
]
}
]
}