Crowd Density Monitoring
- Data streams in JSON format are output to the specified DIS channels or webhook URLs, including structured data and images.
- Result example:
{ "event_type": 524288, "task_id": "d1cde51e12eb47aaaafa36c2b4584b5c", "stream_id": "test_camera", "timestamp": 1527603463, "message_id": "E87B6D7C-4FFD-11EA-AD9D-34B354BC6688", "image_base64": "/3j24AAQSkZJRgABAQAAAQABAAD/2wBDAAIBAQE...", "data": { "scene_type": 1, "alarm_type": 2, "event_set": [{ "crowd_count": 14, "banner_count": 5, "polygon": [ [400, 200], [1280, 200], [1280, 720], [400, 720] ] }] } }
- JSON format
Field
Type
Description
stream_id
String
Camera ID
event_type
Uint64
Event type of the output message. The value is fixed to 524288, which is 0x 0000 0000 0008 0000 in hexadecimal format.
task_id
String
Task ID
timestamp
Uint64
Time when the alarm is triggered
message_id
String
Alarm ID in the form of a UUID
image_base64
String
Base64 encoding results of the video image when the alarm is triggered
data
Object
Service input content
- data parameters
Field
Type
Description
scene_type
Int
Scenario type. The value is fixed to 1.
alarm_type
Int
Alarm type. The value can be 0, 1, or 2. A larger value indicates a more important alarm type. If the value is 0, no alarm is reported, that is, the number of people or the number of banners does not exceed the alarm threshold. If the value is 1, only the number of detected people exceeds the alarm threshold. If the value is 2, the number of people and the number of banners both exceed the threshold.
event_set
List<Object>
Output results list, including the polygonal area of each alarm and the alarm statistics of each region, including the number of people and banners.
- event_set parameters
Field
Type
Description
polygon
List<Object>
Polygon area, which is formed by points in sequence, for example, [[400, 200], [1280, 200], [1280, 720] [400, 720]].
The polygon area is the detection area specified by the user.
crowd_count
Int
Number of people in the current region
banner_count
Int
Number of banners in the current region
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot