Update an Analytics stream
Update an Analytics stream
Updating a stream involves deleting the old stream and creating a new one. If the {CaseType} parameter does not match, updating will not be possible.
{
"CameraGroupUid": "3bc11a36-06bf-4f5f-b45d-5ee3bf702b09",
"CaseType": "camera-obstacle",
"Regions": [
"minsk"
],
"Collections": [
"n5da4c68-4247-417f-9abc-b820fa75820v",
"m6da4c68-4247-417f-9abc-b720fa75820s"
],
"Pipeline": {
"Processing": {
"fps": 10,
"min_obj_size": 20
},
"Detector": {
"ScoreThreshold": 496
},
"Fences": [],
"Areas": [
[
0.25,
0.21
],
[
0.69,
0.21
],
[
0.89,
0.7
],
[
0.24,
0.72
],
[
0.27,
0.23
]
]
},
"Source": {
"Uid": "3bc21a36-06bf-4f5f-b45d-5cc3bf702b33",
"Url": "rtsp://labnsms3.navekscreen.video:5554/live/b1da4c68-4247-417f-9abc-b720fa75820a/?token=XnC-UVgDSUgL8WT8iFCki04pvw49lS2hYbq2EsuIB2MsBgzkNqg6S1-apHozSsFgPi409K_6gmMvJukxmyjFXwC7QQ1Y-3p1e8wdeI67gW5MJu7XWColxQmjH2Tn6tdRknyn_7VH2EdJu7to0N4t9g~~&"
}
}
PUT /api/streams/{stream-uid}/?format=json |
Parameters
array
Collections, An array of collection identifiers that will be applied when processing events for this stream, if necessary.
string
CaseType REQUIRED, Type of analytics.
array
Regions, An array of region (zone) identifiers.
string
CameraGroupUid, Identifier of the camera group that multiple streams are grouped under.
object
Source REQUIRED, Description of the video stream for analytics.
object
Pipeline, Stream configuration specifying the required parameters for the analytics to work.
204 |
Stream has been successfully updated |
404 |
Stream with UID not found |