Skip to main content
POST
/
api
/
camera
/
updateCameraAIThresholds
Update camera AI thresholds
curl --request POST \
  --url https://api2.rhombussystems.com/api/camera/updateCameraAIThresholds \
  --header 'Content-Type: application/json' \
  --header 'x-auth-apikey: <api-key>' \
  --header 'x-auth-scheme: <x-auth-scheme>' \
  --data '
{
  "cameraUuid": "AAAAAAAAAAAAAAAAAAAAAA.v0",
  "consecutiveHumanFilter": 3,
  "consecutiveVehicleFilter": 3,
  "faceConfidenceThreshold": 0.8,
  "faceMatchConfidenceThreshold": 0.8,
  "humanConfidenceThreshold": 0.7,
  "lprConfidenceThreshold": 0.9,
  "maxEventDurationMs": 15000,
  "vehicleConfidenceThreshold": 0.7
}
'
{
  "error": true,
  "errorMsg": "<string>",
  "warningMsg": "<string>"
}

Authorizations

x-auth-apikey
string
header
required

Your API key for Rhombus.

Headers

x-auth-scheme
string
default:api-token
required

Authentication scheme indicator ("api-token").

Required string length: 9

Body

application/json

Request to update AI thresholds for a camera.

cameraUuid
string<DeviceFacetUuid> | null

RUUID with optional appended facet information

Example:

"AAAAAAAAAAAAAAAAAAAAAA.v0"

consecutiveHumanFilter
integer<int32> | null

Require this many consecutive frames of seeing a human to include that human detection in results. Set to 1 to always include detections, or higher to avoid false positives due to transient motion like bugs/spiders/rain. Default is 2 consecutive frames.

Example:

3

consecutiveVehicleFilter
integer<int32> | null

Require this many consecutive frames of seeing a vehicle to include that vehicle detection in results. Set to 1 to always include detections, or higher to avoid false positives due to transient motion like bugs/spiders/rain. Default is 2 consecutive frames.

Example:

3

faceConfidenceThreshold
number<float> | null

Confidence threshold for face detection. Set to 0 or null to use the default. Maximum range of 1. Default = 0.7

Example:

0.8

faceMatchConfidenceThreshold
number<float> | null

Confidence threshold for face matching (determining if two faces are the same person). Set to 0 or null to use the default. Maximum range of 1. Default = 0.7. We no longer support device specific face matching threshold. This property is deprecated and will be removed.

Example:

0.8

humanConfidenceThreshold
number<float> | null

Confidence threshold for human detection. Set to 0 or null to use the default. Maximum range of 1. Default = 0.6

Example:

0.7

lprConfidenceThreshold
number<float> | null

Confidence threshold for license plate detection and character recognition. Set to 0 or null to use the default. Maximum range of 1. Default = 0.8

Example:

0.9

maxEventDurationMs
integer<int32> | null

Set the max event duration for an alert in milliseconds. Default is 30000, lowering down to 4000 will result in faster alert delivery but shorter alert clips.

Example:

15000

vehicleConfidenceThreshold
number<float> | null

Confidence threshold for vehicle detection. Set to 0 or null to use the default. Maximum range of 1. Default = 0.6

Example:

0.7

Response

200 - application/json

OK

Response indicating the result of updating camera AI thresholds.

error
boolean | null
errorMsg
string | null
warningMsg
string | null