Skip to content

Instantly share code, notes, and snippets.

@796F
Created August 4, 2017 17:58
Show Gist options
  • Save 796F/7bb1bd061af578cc470b3b6ab1e0c1d9 to your computer and use it in GitHub Desktop.
Save 796F/7bb1bd061af578cc470b3b6ab1e0c1d9 to your computer and use it in GitHub Desktop.
api

###example response for an anal scene

{
  "url": "https://link.to-some-anal.com/video.mp4",
  "ref_id": "my-custom-ref"
}
{
  "message": "Process Okay",
  "errors": [],
  "ref_id": "my-custom-ref"
  "process_time": 52.13,
  "scenes": [ //cut into separate scenes
    {
      "id": 1,
      "start": 3,
      "end": 33,
      "actors": [ //each scene has detected actors using facial recognition
        {
          "name": "Unknown Male", //no face to recognize, or face not in database, will default to unknown male
          "gender": "male",
          "profile_id": undefined,
          "height": undefined,
          "weight": undefined,
          "hair_color": "blonde"
        },
        {
          "name": "Famous Female", //faces recognized will have metadata
          "gender": "female",
          "profile_id": 123, //profile id can be used to pull detailed metadata on documented actors.  
          "height": 5.19,
          "weight": 100,
          "hair_color": "black"
        }
      ],
      "tags": [ //features trained for that were detected in all frames of this scene.
        "anal",
        "behind",
        "male"
      ],
      "objects": [

      ],
      "transcript": "oh yes baby ... i love scene 1"
    },

    // and the next scene ...

    {
      "id": 2,
      "start": 34,
      "end": 59,
      "actors": [
        ...
      ],
      "tags": [
        ...
      ],
      "objects": [
        ...
      ],
      "transcript": "yes more baby ... lets do scene 2"
    }
  ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment