Return Parameters
Field | Required | Type | Description |
---|---|---|---|
person_num |
Yes | uint64 | Total number of people detected (including driver and passengers), 0 represents no driver detected. |
driver_num |
Yes | uint64 | The number of detected drivers. If it is greater than 1, the best driver target frame is selected for attribute analysis by considering the size and position of the human body frame, and the largest human body on the left side of the screen is taken as the driver by default. |
person_info |
Yes | object[] | Driverโs attribute and behavior information; if no driver is detected, this item is empty. |
- location` |
No | object | Detected driverโs location. |
- - left |
No | int | The left starting position of the detection area in the original image. |
- - top |
No | int | The top starting position of the detection area in the original image. |
- - width |
No | int | Width of the detection area. |
- - height |
No | int | Height of the detection area. |
- attributes` |
No | object | Driverโs attribute and behavior content. |
- - smoke |
No | object | Smoking. |
- - - score` |
No | float | Corresponding probability score. |
- - - threshold` |
No | float | Suggested threshold, only for reference. In actual application, select an appropriate score threshold based on test conditions. |
- - cellphone |
No | object | Using a mobile phone. |
- - - score` |
No | float | Corresponding probability score. |
- - - threshold` |
No | float | Suggested threshold, only for reference. In actual application, select an appropriate score threshold based on test conditions. |
- - not_buckling_up |
No | object | Not wearing a seat belt. |
- - score |
No | float | Corresponding probability score. |
- - - threshold` |
No | float | Suggested threshold, only for reference. In actual application, select an appropriate score threshold based on test conditions. |
- - both_hands_leaving_wheel |
No | object | Both hands leaving the steering wheel. |
- - score |
No | float | Corresponding probability score. |
- - - threshold` |
No | float | Suggested threshold, only for reference. In actual application, select an appropriate score threshold based on test conditions. |
- - not_facing_front |
No | object | Not facing forward. |
- - score |
No | float | Corresponding probability score. |
- - - threshold` |
No | float | Suggested threshold, only for reference. In actual application, select an appropriate score threshold based on test conditions. |
- - no_face_mask |
No | object | Not wearing a face mask correctly, including situations where a mask is worn but the mouth and nose are exposed. |
- - score |
No | float | Corresponding probability score. |
- - - threshold` |
No | float | Suggested threshold, only for reference. In actual application, select an appropriate score threshold based on test conditions. |
- - yawning |
No | object | Yawning. In actual application, it can be combined with eyes closed to comprehensively judge fatigue, to avoid being misjudged in situations like ordinary mouth opening or talking. |
- - score |
No | float | Corresponding probability score. |
- - - threshold` |
No | float | Suggested threshold, only for reference. In actual application, select an appropriate score threshold based on test conditions. |
- - eyes_closed |
No | object | Eyes closed. In actual application, it can be combined with yawning to comprehensively judge fatigue, to avoid being misjudged in normal situations like blinking. |
- - score |
No | float | Corresponding probability score. |
- - - threshold` |
No | float | Suggested threshold, only for reference. In actual application, select an appropriate score threshold based on test conditions. |
- - head_lowered |
No | object | Head lowered. In actual application, it can be combined with eyes closed and not facing forward to comprehensively judge distraction or fatigue, to avoid being misjudged by a single attribute. |
- - score |
No | float | Corresponding probability score. |
- - - threshold` |
No | float | Suggested threshold, only for reference. In actual application, select an appropriate score threshold based on test conditions. |