Data
CCTV camera Item
CCTV camera Item represents digital IP camera with image capturing and video streaming capabilities.The CCTV camera Item must have class set to CctvCamera
.
Item metadata
All camera-specific data is defined inside Item meta
object. It stores .
{
"height": 4.5,
"snapshotResolution": "1920x1080",
"videoResolution": "320x216",
"light": "Ir",
"control": "None"
}
Where:
height
Camera height (in meters)snapshotResolution
Resolution of snapshot images (as width × height in pixels)videoResolution
Resolution of video stream (as width × height in pixels)light
Light type (Ir
,Led
orNone
)control
Control functions (Full
,Zoom
orNone
)
Snapshot data
Snapshot data contains latest image captured from camera. This data is updated periodically based on processing of CameraSnapshotCapturedEvent
event. The snapshot data is stored in Item under the snapshot
data key.
{
"timestamp": "2016-09-25T00:00:00.000Z",
"contentId": "aa2d250e2b65414ba68fc2211486d4ab"
}
Where:
timestamp
Date and time when image was capturedcontentId
ID of uploaded content
Events
CameraSnapshotCapturedEvent
Event with type CameraSnapshotCapturedEvent
is dedicated to send an image captured from camera.
Following steps must be taken when sending captured image via event:
- Capture image from camera in web format, like PNG or JPEG
- Upload the image via Content API
- Register a
CameraSnapshotCapturedEvent
with content ID specified incontentId
property.
Payload
{
"contentId": "aa2d250e2b65414ba68fc2211486d4ab"
}
Where:
contentId
ID of uploaded image