0

Json Structure for images including bounding boxes flaskApi.

Input: https://www.yourdictionary.com/images/definitions/lg/10531.people.jpg

Output:

{
  "Classifier_id": "Emotion", 
  "Faces": [
    {
      "Face": 0, 
      "Class": "Happy", 
      "Score": 98, 
      "Coordinates": [
        {
          "Left": 83.83499830961227, 
          "Right": 98.06779772043228, 
          "Top": 167.8326236307621, 
          "Bottom": 209.8429992198944
        }
      ]
    }, 
    {
      "Face": 1, 
      "Class": "Happy", 
      "Score": 97, 
      "Coordinates": [
        {
          "Left": 209.43674445152283, 
          "Right": 227.1079123020172, 
          "Top": 121.58094590902328, 
          "Bottom": 168.82636773586273
        }
      ]
    }, 
    {
      "Face": 2, 
      "Class": "Happy", 
      "Score": 95, 
      "Coordinates": [
        {
          "Left": 113.83698880672455, 
          "Right": 132.69804418087006, 
          "Top": 164.42001646757126, 
          "Bottom": 208.63154530525208
        }
      ]
    }, 
    {
      "Face": 3, 
      "Class": "Happy", 
      "Score": 89, 
      "Coordinates": [
        {
          "Left": 156.98489546775818, 
          "Right": 177.92096734046936, 
          "Top": 149.8071569800377, 
          "Bottom": 207.82364720106125
        }
      ]
    }, 
  ]
}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.