16

I am currently using Microsoft Azure Cognitive Services Handwriting Detection API. The API returns a set of values for the bounding box:

{
    "boundingBox": [
      2,
      52,
      65,
      46,
      69,
      89,
      7,
      95
    ],
    "text": "dog",
    .
    .
    .

I would like to make sense of these 8 parameters. What is their significance and what do they reflect? I tried hard finding about them in Microsoft API's documentation, but of no use. Kindly help me understand what these parameters mean or link me to some place where this doubt can be cleared. Also let me know if you need any more information.

Rohan Pillai
  • 917
  • 3
  • 17
  • 26
  • can you know how to draw a bounding box with those coordinates? any help is highly appreciated. – Ravi Dec 07 '19 at 02:44

2 Answers2

18

According to this, the API returns the four corners of the box in X,Y coordinates. So:

X top left, Y top left, X top right, Y top right, X bottom right, Y bottom right, X bottom left, Y bottom left

Maria Ines Parnisari
  • 16,584
  • 9
  • 85
  • 130
  • 1
    Official reference: https://westus.dev.cognitive.microsoft.com/docs/services/computer-vision-v3-2-preview-1/operations/5d9869604be85dee480c8750 – Burhan May 13 '21 at 00:47
6

This information is unnecessarily hidden. I finally found it in their edx course

enter image description here

Maria Ines Parnisari
  • 16,584
  • 9
  • 85
  • 130