Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@UnaNancyOwen
Last active October 26, 2018 16:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save UnaNancyOwen/13703bfdd61f61e4a9df09b32c145989 to your computer and use it in GitHub Desktop.
Save UnaNancyOwen/13703bfdd61f61e4a9df09b32c145989 to your computer and use it in GitHub Desktop.
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