Hello @sakai
Thanks for using Microsoft Q&A platform, I think you are mentioning Form Recognizer OCR API and you have questions about the value of boundingBoxes, below I will give an example to explain it so that you can convert it to the coordinate you want to use:
Example:
'boundingBox': [
57.1,
683.3,
100.2,
683.3,
100.2,
673.3,
57.1,
673.3
]
Those values represent the vertices of the bounding box as below:
(57.1,683.3) X1,Y1---->x2,y2(100.2,683.3)
| |
| |
(57.1,673.3) X4,Y4<----x3,y3(100.2,673.3)
The (0,0) is on the bottom left as you can see.
// Azure Bounding box is like this
// 0---->1
// | |
// Y | |
// ↑ 3<----2
// Origin . → X
If you want to measure the boundingBoxes, you can use above vertices to do the calculation.
Hope this helps!
Regards,
Yutong
-Please kindly accept the answer if you feel helpful, thanks!