Get Models API

To get the list of Neural Network Models Available in the system.

Method
GET
Input Parameters
None
Output Result
JSON
Example
[
{"modelname":"face-td-large","dataset":[{"name":"AdamSandler","status":"1"},{"name":"KateMoss","status":"1"},{"name":"VictoriaBeckham","status":"1"}]}
,
{"modelname":"indoor17","dataset":[{"name":"pet","status":"0"},{"name":"person","status":"1"},{"name":"pen/pencil","status":"0"},{"name":"remote","status":"0"},{"name":"phone","status":"0"}]}
]

Process Image API

This API can be used to process an image that is captured.

Method
POST
Input Parameters
  • - The file which needs to be processed
  • (optional) - A label given to identify the file
  • - The name of the model to be used to process the image (This needs to be one among the models which we get from getmodels API above. E.g. indoor17
Output Result
JSON
Example
{"errorcode":0, "message":[{"category":"person","confidence":"25.46"},{"category":"door","confidence":"11.00"},{"category":"bottle","confidence":"10.84"},{"category":"toy","confidence":"6.64"},{"category":"hand","confidence":"6.60"}]}

Process Video API

This API can be used to process a video which is captured.

Method
POST
Input Parameters
  • - The file which needs to be processed
  • (optional) - A label given to identify the file
  • - The name of the model to be used to process the video (This needs to be one among the models which we get from getmodels API above. E.g. indoor17
Output Result
JSON
Example
{"message": { "videostart":"07:45:04","videofps":"29.97002997003","videoframes":"295","detections":[{"start_time":"00:00:03,169","thumbnail":"thumb-95.jpg","end_time":"00:00:03,670","text":"person"},{"start_time":"00:00:03,703","thumbnail":"thumb-111.jpg","end_time":"00:00:03,903","text":"person"}]}, "errorcode": "0" }