Skip to main content
POST
/
api
/
camera
/
updateCameraLineCrossingThresholds
Update camera line crossing thresholds
curl --request POST \
  --url https://api2.rhombussystems.com/api/camera/updateCameraLineCrossingThresholds \
  --header 'Content-Type: application/json' \
  --header 'x-auth-apikey: <api-key>' \
  --header 'x-auth-scheme: <x-auth-scheme>' \
  --data '
{
  "cameraUuid": "AAAAAAAAAAAAAAAAAAAAAA.v0",
  "directions": [
    "INGRESS"
  ],
  "inverted": false,
  "objectType": "HUMAN",
  "pointA": {
    "x": 0.5,
    "y": 0.5
  },
  "pointB": {
    "x": 0.5,
    "y": 0.5
  }
}
'
{
  "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 line crossing thresholds for a camera.

cameraUuid
string<DeviceFacetUuid> | null

RUUID with optional appended facet information

Example:

"AAAAAAAAAAAAAAAAAAAAAA.v0"

directions
(enum<string> | null)[] | null

Set of crossing directions to monitor.

Set of crossing directions to monitor.

Available options:
INGRESS,
EGRESS
inverted
boolean | null

By default, INGRESS events occur when the following condition is met for the following line types: an entity moves from top -> bottom when a horizontal line is defined, an entity moves from left -> right when a vertical line is defined, an entity moves from top-left -> bottom-right when an upwards sloping line is defined, and an entity moves from top-right to bottom-left when a downwards sloping line is defined. Setting this value to true will switch INGRESS to EGRESS events and vice-versa.

Example:

false

objectType
enum<string> | null

Type of object to monitor for line crossing.

Available options:
HUMAN,
VEHICLE,
FACE,
LPR,
POSE,
CLIP_EMBED,
UNKNOWN
pointA
object

(X,Y) coordinate expressed as a percentage of the camera's resolution.Minimum range is 0.1 and maximum range is 0.9. Leaving this value as null will disable line-crossing.

pointB
object

(X,Y) coordinate expressed as a percentage of the camera's resolution.Minimum range is 0.1 and maximum range is 0.9. Leaving this value as null will disable line-crossing.

Response

200 - application/json

OK

Response indicating the result of updating camera line crossing thresholds.

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