Camera groups
A camera group is a collection of cameras set up in the same location or used for similar purposes.
List camera groups
To list camera groups, use the following method:
GET /camera-groups/
The REQUEST contains the following QUERY-STRING PARAMETERS:
Name |
Type |
Description |
---|---|---|
|
date-time |
Select camera groups with |
|
date-time |
Select camera groups with |
|
number |
Select camera groups with |
|
date-time |
Select camera groups with |
|
date-time |
Select camera groups with |
|
number |
Select camera groups with |
|
number |
Select camera groups with |
|
integer |
Select camera groups with IDs greater than or equal to the specified value. |
|
array of integers |
Select camera groups with the specified IDs. |
|
integer |
Number of results to return per page. |
|
string |
Select camera groups whose name contains the specified text, regardless of case. |
|
string |
Field for sorting the request results. Available fields: |
|
string |
Pagination cursor value. |
To find a specific camera group ID in the response, specify values for the limit
and ordering
parameters to narrow and organize the search results.
CURL example
curl -X GET "http://<findface-ip:port>/camera-groups/?limit=3&ordering=id" \
-H "Authorization: Token <token>"
If the response is successful (OK: 200), it returns a JSON object that contains the following parameters:
Name |
Type |
Description |
---|---|---|
|
string┃null |
Next page. |
|
string┃null |
Previous page. |
|
[{…}] |
Array containing the following parameters. Example. |
Note
* – means required parameters. 🆁 – read only.
Name |
Type |
Description |
---|---|---|
|
integer 🆁 |
Camera group ID. |
|
date-time 🆁 |
Timestamp indicating when the camera group was created. |
|
date-time 🆁 |
Timestamp indicating when the camera group was last updated. |
|
boolean |
|
|
string |
Name of the camera group. Constraints: Min 1┃Max 256 chars. |
|
string |
Extended description. Constraints: Min 0┃Max 2048 chars. |
|
boolean |
|
|
integer |
Event deduplication timeout. Default: 15. Constraints: Min 0 ┃ Max 10000. |
|
object |
One or more labels used to allocate a specific |
|
number┃null |
Confidence threshold for face detection in the camera group. Constraints: Min 0┃Max 1. |
|
number┃null |
Confidence threshold for body detection in the camera group. Constraints: Min 0┃Max 1. |
|
number┃null |
Confidence threshold for vehicle detection in the camera group. Constraints: Min 0┃Max 1. |
Response example
{
"next_page": null,
"prev_page": null,
"results": [
{
"id": -1,
"created_date": "2025-01-16T13:44:36.531501Z",
"modified_date": "2025-01-16T13:44:36.531519Z",
"active": true,
"name": "Video archive default Camera Group",
"comment": "",
"deduplicate": false,
"deduplicateDelay": 15,
"labels": {},
"face_threshold": null,
"body_threshold": null,
"car_threshold": null
}
]
}
Create a camera group
To add a new camera group, use the following method:
POST /camera-groups/
The REQUEST BODY is required and contains an application/json object with the following parameters:
Name |
Type |
Description |
---|---|---|
|
boolean |
If |
|
string |
Name of the camera group. Constraints: Min 1┃Max 256 chars. |
|
string |
Extended description. Constraints: Min 0┃Max 2048 chars. |
|
boolean |
If |
|
integer |
Event deduplication timeout. Default: 15. Constraints: Min 0 ┃ Max 10000. |
|
object |
One or more labels used to allocate a specific |
|
number┃null |
Confidence threshold for face detection in the camera group. Constraints: Min 0┃Max 1. |
|
number┃null |
Confidence threshold for body detection in the camera group. Constraints: Min 0┃Max 1. |
|
number┃null |
Confidence threshold for vehicle detection in the camera group. Constraints: Min 0┃Max 1. |
CURL example
curl -X POST "http://<findface-ip:port>/camera-groups/" \
-H "Authorization: Token <token>" \
-H "Content-Type: application/json" \
-d '{"active":true,"name":"Office camera group","comment":"AAAAAA","deduplicate":false,"deduplicateDelay":0,"labels":{},"face_threshold":0,"body_threshold":0,"car_threshold":0}'
Request example
Tip
This example is provided for reference only. Substitute your own values in the corresponding fields. You only need to fill in the required fields; all other fields will use their default values.
For example, you can send these parameters:
{
"active": false,
"name": "Test_camera_group",
"comment": "AAAAAA",
"deduplicate": false,
"deduplicateDelay": 0,
"labels": {},
"face_threshold": 0,
"body_threshold": 0,
"car_threshold": 0
}
If the response is successful (Created: 201), it returns a JSON object that contains parameters. Example.
Response example
{
"id": 2,
"created_date": "2025-01-23T12:14:09.885006Z",
"modified_date": "2025-01-23T12:14:09.885030Z",
"active": false,
"name": "Test_camera_group",
"comment": "AAAAAA",
"deduplicate": false,
"deduplicateDelay": 0,
"labels": {},
"face_threshold": 0,
"body_threshold": 0,
"car_threshold": 0
}
Use the camera group ID in the POST
request to create a new camera.
Useful requests
GET /camera-groups/
POST /camera-groups/
GET /camera-groups/{id}/
DELETE /camera-groups/{id}/
PATCH /camera-groups/{id}/
GET /camera-groups/count/