Updated on 2024-02-29 GMT+08:00

Staff On-Duty Detection

  • Data streams in JSON format are output to the specified DIS channels or webhook URLs, including structured data and images.
  • Result example:
    {
    	"event_type": 458752,
    	"task_id": "01d0d8c40f24441c897db868e17a65db",
    	"stream_id": "test",
    	"timestamp": 1527603463,
    	"message_id": "0DD1BEA6-634B-11E8-8B0B-407D0FAD9218",
    	"image_base64": "/3j24AAQSkZJRgABAQAAAQABAAD/2wBDAAIBAQE...",
    	"data": {
    		"event_set": [{
    			"polygon": [
    				[484, 465],
    				[1850, 450],
    				[1905, 1013],
    				[515, 1050]
    			],
    			"counter": 1,
    			"person_set": [{
    				"bounding_box": {
    					"x": 876,
    					"y": 446,
    					"w": 142,
    					"h": 147
    				}
    			}]
    		}, {
    			"polygon": [
    				[484, 125],
    				[1800, 125],
    				[495, 677],
    				[1800, 677]
    			],
    			"counter": 1,
    			"person_set": [{
    				"bounding_box": {
    					"x": 876,
    					"y": 446,
    					"w": 142,
    					"h": 147
    				}
    			}]
    		}]
    	}
    
    }
  • JSON format

    Field

    Type

    Description

    stream_id

    String

    Camera ID

    event_type

    Uint64

    Event type of the output message. The value is fixed to 458752, which is 0x 0000 0000 0007 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 output content

  • data parameter description

    Field

    Type

    Description

    event_set

    List<Object>

    List of events generated

  • event_set parameters

    Field

    Type

    Description

    polygon

    List<Object>

    A set of points that form a polygon, for example, [[484,465],[1850,450],[1905,1013],[515,1050]]

    counter

    Int

    Number of staff off-duty

    person_set

    List<Object>

    Bounding box for the alarm object

  • 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

    Height of a bounding box

    h

    Int

    Width of a bounding box