Response structure
Endpoints
Section titled “Endpoints”POST /api/classify?sync=true— returns the full result immediatelyGET /api/result/{id}— returns the result for a given classification
Example response
Section titled “Example response”{ "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"}Field reference
Section titled “Field reference”| Field | Type | Description |
|---|---|---|
id | string | Unique classification identifier (classify_id). |
status | object | Status of the classification and video processing. |
parent_id | string | Identifier of the parent object. |
camera_id | string | Camera identifier, derived from metadata. |
analyse_id | int | Analysis identifier. |
tenant | string | Tenant identifier (mandatory). |
duration | int | Classification duration in milliseconds. |
duration_seconds | int | Classification duration in seconds. |
model | string | Model used for classification. |
version | string | Model version. |
error_code | int | Error code (0 if no error). |
error_msg | string | Error message (empty if no error). |
risk | string | Risk level: safe, danger, or intrusion. |
labels | string[] | Labels assigned by the analysis. |
scores | object | Confidence scores for each label (0.0–1.0). |
video | object | Video file details (name, size, specs). |
timing | object | Processing timing details. |
metadata | object | Optional metadata submitted with the video. |
created_at | string | ISO 8601 timestamp when the analysis was created. |
started_at | string | ISO 8601 timestamp when the analysis started. |