Safety Suite Detection
- Data streams in JSON format are output to the specified DIS channels or webhook URLs, including structured data and images.
- Result example:
{ "stream_id": "001", "event_type":589824, "task_id":"d92a3de2be594710a981dc673bf5a570", "timestamp": 1527603463, "message_id": "0DD1BEA6-634B-11E8-8B0B-407D0FAD9218", "data":{ "event_set":[ { "bounding_box":{ "x":100, "y":200, "w":80, "h":150 }, "type_cloth":0, "type_hat":0 }, { "bounding_box":{ "x":200, "y":300, "w":70, "h":150 }, "type_cloth":0, "type_hat":1 } ] }, "image_base64": "/3j24AAQSkZJRgABAQAAAQABAAD/2wBDAAIBAQE..." }
- JSON format
Field
Type
Description
stream_id
String
Camera ID
event_type
Uint64
Event type of the output message.
The value is fixed to 589824, which is 0x 0000 0000 0009 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
data
Object
For details about the output content, see data parameters.
image_base64
String
Base64 encoding results of the video image when the alarm is triggered
- data parameters
Field
Type
Description
event_set
List<Object>
List of events generated
- event_set parameters
Field
Type
Description
bounding_box
Object
Rectangle for the alarm object
type_hat
Int
Type of the work hat detection alarm. This parameter is valid when hat_detection_sw is enabled. The value can be:- 0: The person is wearing the work hat.
- 1: The person is not wearing the work hat.
type_cloth
Int
Type of the work clothes detection alarm. This parameter is valid when cloth_detection_sw is enabled. The options are as follows:- 0: A person does not wear the work clothes
- 1: A person wears the work clothes
- bounding_box parameters
Field
Type
Description
x
Int
Horizontal coordinate of the upper-left corner of a bounding box
y
Int
Vertical coordinate of the upper-left corner of a bounding box
w
Int
Width of a bounding box
h
Int
Height of a bounding box
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