Comment on page

APIs

POST - Create a Stream in a Node for Hybrid Analytics

Request
Response
POST /streams/{node_number} HTTP/1.1
Host: {ip}:{port}
Access-Control-Allow-Origin: *
Content-Length: 101
{
"stream_address": "rtsp://10.7.2.50:554/VOD/command.mp4",
"stream_name": "command center",
"check_capability": true
}
{
"code": 200,
"message": "stream successfully created",
"node_num": 0,
"stream_address": "rtsp://10.7.2.50:554/VOD/command.mp4",
"stream_id": "5136c6c0916cd30c",
"stream_name": "command center",
"stream_custom_data": {
"service_capability": "NFV4-FR-H"
}
}

POST - Create a Face Recognition Pipeline

Request
Response
POST /pipeline/{node_number}/{stream_id}/NFV4H-FR HTTP/1.1
Host: {ip}:{port}
Access-Control-Allow-Origin: *
Content-Length: 70
{
"areas": [
{
"name": "Blacklist Area 1",
"points": [
{
"x": 0.0,
"y": 0.5
},
{
"x": 1.0,
"y": 0.5
}
],
}
],
"fr_primary_threshold": 0.4,
"fr_secondary_threshold": 0.4,
"dumping_confidence_threshold": 0.8,
"sampling_time_ms":100
}
{
"analytic_id": "NFV4-FR",
"code": 200,
"message": "pipeline successfully created",
"node_num": 0,
"stream_id": "5136c6c0916cd30c"
}
Key
Description
fr_primary_threshold
Primary face detection threshold. You can customize for your own need. Default = 0.9
fr_secondary_threshold
Secondary face detection threshold. You can customize for your own need. Default = 0.7
areas
Unique blacklist area per frame. You can draw more than one line.
points
Blacklist line points.

PUT - Edit Pipeline Configuration

Request
Response
PUT /pipeline/{node_number}/{stream_id}/NFV4H-FR HTTP/1.1
Host: {ip}:{port}
Access-Control-Allow-Origin: *
Content-Length: 70
{
"areas": [
{
"name": "Blacklist Area 1",
"points": [
{
"x": 0.0,
"y": 0.5
},
{
"x": 1.0,
"y": 0.5
}
],
}
],
"fr_primary_threshold": 0.9,
"fr_secondary_threshold": 0.7,
"dumping_confidence_threshold": 0.8
}

PUT - Update Stream in One Node

Request
Response
PUT /streams/{node_number}/{stream_id} HTTP/1.1
Host: {ip}:{port}
Access-Control-Allow-Origin: *
Content-Length: 218
{
"stream_address": "rtsp://10.7.2.50:554/VOD/command.mp4",
"stream_name": "command center",
"stream_latitude": -6.261376228442297,
"stream_longitude": 106.82364878415257,
"stream_custom_data": {},
"active": true / false,
"check_capability": true
}
{
"code": 200,
"message": "stream successfully updated",
"node_num": 0,
"stream_address": "rtsp://10.7.2.50:554/VOD/command.mp4",
"stream_id": "5136c6c0916cd30c",
"stream_name": "command center"
}