Skip to content

Response structure

  • POST /api/classify?sync=true — returns the full result immediately
  • GET /api/result/{id} — returns the result for a given classification
{
"id": "664371916d24ab9cf81140ec",
"status": {
"classify": "done",
"video": "done"
},
"parentId": "000000000000000000000000",
"cameraId": "134188-VI08",
"analyse_id": 3373550353,
"tenant": "tenant",
"duration": 2968236,
"duration_seconds": 2,
"model": "noname",
"version": "2.0.16123",
"error_code": 0,
"error_msg": "",
"risk": "intrusion",
"labels": ["intrusion", "person"],
"scores": {
"flag": 0.049,
"plant": 0.030,
"web": 0.009,
"NOTHING": 0.0005,
"intrusion": 0.973,
"person": 0.973,
"rain": 0.002,
"spider": 0.007,
"text": 0.0006,
"wind": 0.021,
"animal": 0.035,
"other": 0.028,
"vehicule": 0.101
},
"video": {
"videoname": "video.mov",
"filesize": 786800,
"specs": {
"height": 320,
"original.width": 640,
"duration": 4.217772,
"fps": 3.08,
"nframes": 13,
"original.fps": 3,
"original.height": 360,
"original.nframes": 12,
"width": 568
}
},
"timing": {
"total": 2593.50306
},
"metadata": {
"no_trans": "20818",
"parc_origine": "RO",
"camera_id": 134188
},
"created_at": "2024-05-14T16:13:37.156+02:00",
"started_at": "2024-05-14T16:13:37.156+02:00"
}
FieldTypeDescription
idstringUnique classification identifier (classify_id).
statusobjectStatus of the classification and video processing.
parent_idstringIdentifier of the parent object.
camera_idstringCamera identifier, derived from metadata.
analyse_idintAnalysis identifier.
tenantstringTenant identifier (mandatory).
durationintClassification duration in milliseconds.
duration_secondsintClassification duration in seconds.
modelstringModel used for classification.
versionstringModel version.
error_codeintError code (0 if no error).
error_msgstringError message (empty if no error).
riskstringRisk level: safe, danger, or intrusion.
labelsstring[]Labels assigned by the analysis.
scoresobjectConfidence scores for each label (0.0–1.0).
videoobjectVideo file details (name, size, specs).
timingobjectProcessing timing details.
metadataobjectOptional metadata submitted with the video.
created_atstringISO 8601 timestamp when the analysis was created.
started_atstringISO 8601 timestamp when the analysis started.