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:
heightCamera height (in meters)snapshotResolutionResolution of snapshot images (as width × height in pixels)videoResolutionResolution of video stream (as width × height in pixels)lightLight type (Ir,LedorNone)controlControl functions (Full,ZoomorNone)
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:
timestampDate and time when image was capturedcontentIdID 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
CameraSnapshotCapturedEventwith content ID specified incontentIdproperty.
Payload
{
"contentId": "aa2d250e2b65414ba68fc2211486d4ab"
}
Where:
contentIdID of uploaded image