Skip to content

Instantly share code, notes, and snippets.

@UnaNancyOwen UnaNancyOwen/json.md
Last active Oct 26, 2018

Embed
What would you like to do?
NuiTrack SDK Instances JSON Specification

NuiTrack SDK Instances JSON Specification

Pattern

  1. Not Found Human

    {
        "Timestamp": "0000000000000000",
        "Instances":
        [
        ]
    }
  2. Found Human, But Not Detect Face (e.g. Found 2 Humans)

    {
        "Timestamp": "0000000000000000",
        "Instances":
        [
            {
                "id": "1",
                "class": "human"
            },
            {
                "id": "2",
                "class": "human"
            }
        ]
    }
  3. Detect Face (e.g. Found 2 Humans, But Detect Face Only 1 Human)

    {
        "Timestamp": "0000000000000000",
        "Instances":
        [
            {
                "id": "1",
                "class": "human",
                "face":
                {
                    "rectangle":
                    {
                       "left": "0.0000",
                       "top": "0.0000",
                       "width": "0.0000",
                       "height": "0.0000"
                     },
                     "landmark":
                     [
                         {
                             "x": "0.0000",
                             "y": "0.0000"
                         },
                         {
                             "x": "0.0000",
                             "y": "0.0000"
                         },
                         {
                             "x": "0.0000",
                             "y": "0.0000"
                         },
                         {
                             "x": "0.0000",
                             "y": "0.0000"
                         },
                         {
                             "x": "0.0000",
                             "y": "0.0000"
                         },
                         {
                             "x": "0.0000",
                             "y": "0.0000"
                         },
                         {
                             "x": "0.0000",
                             "y": "0.0000"
                         },
                         {
                             "x": "0.0000",
                             "y": "0.0000"
                         },
                         {
                             "x": "0.0000",
                             "y": "0.0000"
                         },
                         {
                             "x": "0.0000",
                             "y": "0.0000"
                         },
                         {
                             "x": "0.0000",
                             "y": "0.0000"
                         },
                         {
                             "x": "0.0000",
                             "y": "0.0000"
                         },
                         {
                             "x": "0.0000",
                             "y": "0.0000"
                         },
                         {
                             "x": "0.0000",
                             "y": "0.0000"
                         },
                         {
                             "x": "0.0000",
                             "y": "0.0000"
                         },
                         {
                             "x": "0.0000",
                             "y": "0.0000"
                         },
                         {
                             "x": "0.0000",
                             "y": "0.0000"
                         },
                         {
                             "x": "0.0000",
                             "y": "0.0000"
                         },
                         {
                             "x": "0.0000",
                             "y": "0.0000"
                         },
                         {
                             "x": "0.0000",
                             "y": "0.0000"
                         },
                         {
                             "x": "0.0000",
                             "y": "0.0000"
                         },
                         {
                             "x": "0.0000",
                             "y": "0.0000"
                         },
                         {
                             "x": "0.0000",
                             "y": "0.0000"
                         },
                         {
                             "x": "0.0000",
                             "y": "0.0000"
                         },
                         {
                             "x": "0.0000",
                             "y": "0.0000"
                         },
                         {
                             "x": "0.0000",
                             "y": "0.0000"
                         },
                         {
                             "x": "0.0000",
                             "y": "0.0000"
                         },
                         {
                             "x": "0.0000",
                             "y": "0.0000"
                         },
                         {
                             "x": "0.0000",
                             "y": "0.0000"
                         },
                         {
                             "x": "0.0000",
                             "y": "0.0000"
                         },
                         {
                             "x": "0.0000",
                             "y": "0.0000"
                         }
                     ],
                     "left_eye":
                     {
                         "x": "0.0000",
                         "y": "0.0000"
                     },
                     "right_eye":
                     {
                         "x": "0.0000",
                         "y": "0.0000"
                     },
                     "angles":
                     {
                         "yaw": "0.0000",
                         "pitch": "0.0000",
                         "roll": "0.0000"
                     },
                     "emotions":
                     {
                         "happy": "0.0000",
                         "neutral": "0.0000",
                         "angry": "0.0000",
                         "surprise": "0.0000"
                     },
                     "age":
                     {
                         "type": "kid",
                         "years": "0.0000"
                     },
                     "gender": "male" 
                }
            },
            {
                "id": "2",
                "class": "human"
            }
        ]
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.