IP Library Granted Patent US 12,430,930
Granted Patent B2
US 12,430,930 · App. 17/720,024 · Granted Sep 30, 2025

Safety belt detection method, apparatus, computer device and storage medium

Inventors: Yuqian Zeng (Shanghai, CN); Tao Zhang (Shanghai, CN)
Assignee: Black Sesame Technologies Inc.
G06V20/597G06V10/26G06V10/764G06V10/7715G06V10/82G06V40/161
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,430,930
App. No.
17/720,024
Granted
Sep 30, 2025
Kind
B2
Abstract

A safety belt detection method, apparatus, computer device, and computer readable storage medium are disclosed. In the detection method, an image to be detected is obtained. The image to be detected is inputted into a detection network which includes an image classification branch network and an image segmentation branch network. A classification result, which indicates whether a driver is wearing a safety belt and is output from the image classification branch network, is obtained. A segmentation image, which indicates a position information of the safety belt and is output from the image segmentation branch network, is obtained. A detection result of the safety belt, indicating whether the driver wears the safety belt normatively, is obtained based on the classification result and the segmentation image.

Claims (57)

1. A safety belt detection method, comprising:

obtaining an image to be detected, further comprising:

capturing an original image by a camera;

detecting a face in the original image based on a predetermined algorithm to obtain a face bounding box and a head posture information;

determining whether a part below the face in the original image meets a predetermined size;

determining a detection result as insufficient detection area if the predetermined size is not met;

dynamically cropping the part below the face in the original image based on the face bounding box and the head posture information to obtain a cropped image if the predetermined size is met; and

preprocessing the cropped image to obtain the image to be detected;

inputting the image to be detected into a detection network, wherein the detection network comprises an image classification branch network and an image segmentation branch network;

obtaining a classification result output from the image classification branch network and a segmentation image output from the image segmentation branch network, wherein the classification result indicates whether a driver is wearing a safety belt, and the segmentation image indicates a position information of the safety belt;

obtaining a detection result of the safety belt based on the classification result and the segmentation image; wherein the detection result indicates whether the driver wears the safety belt normatively; and

the segmentation image is reduced by a predetermined proportion relative to the image to be detected without encoding as the image to be detected input to the detection network, and pixel positions of the segmentation image are mapped corresponding to pixel positions of the image to be detected, to locate the positions of seat belt pixels in the image to be detected.

2. The safety belt detection method of claim 1 , wherein after obtaining an original image through a camera, the safety belt detection method further comprises: detecting a human hand in the original image based on a human hand detection algorithm to obtain a human hand bounding box: obtaining a safety belt bounding box in the original image based on a position and a size of the face bounding box; and determining that the detection result is that the safety belt is covered when the hand bounding box is located at a predetermined position relative to the face bounding box and an overlapped area of the hand bounding box and the safety belt bounding box is greater than a set threshold.

3. The safety belt detection method of claim 1 , wherein the detection network further comprises a backbone network; and

before obtaining a classification result output from the image classification branch network and obtaining a segmentation image output from the image segmentation branch network, the method further comprises:

obtaining a convolution of the image to be detected by the backbone network to generate a feature map of the image to be detected, and using the feature map as an input of the image classification branch network and the image segmentation branch network.

4. The safety belt detection method of claim 1 , wherein the step of obtaining a detection result of the safety belt based on the classification result and the segmentation image further comprises:

fitting a centerline of the safety belt from the segmentation image according to a predetermined rule;

calculating parameters related to the centerline; and

obtaining the detection result of the safety belt based on the parameters and the classification result.

5. The safety belt detection method of claim 4 , wherein the step of fitting a centerline of the safety belt from the segmentation image according to a predetermined rule further comprises:

obtaining a center point of the safety belt area in a row or column either row by row or column by column according to the segmentation image;

fitting all center points in the segmentation image to obtain the centerline of the safety belt;

wherein the parameters related to the centerline comprises: an included angle between the centerline and a predetermined direction, and a relative position between the centerline and the driver's shoulder.

6. The safety belt detection method of claim 1 , wherein before obtaining the image to be detected, the method further comprises:

selecting training images, and training the image classification branch network, wherein the training images are divided into label images of wearing safety belt and label images of not wearing safety belt;

reducing the label images of wearing safety belt according to the predetermined proportion, and using the reduced label images to train the image segmentation branch network.

7. A safety belt detection apparatus, comprising a processor, wherein the processor performs the steps of:

obtaining an image to be detected, further comprising:

capturing an original image by a camera;

detecting a face in the original image based on a predetermined algorithm to obtain a face bounding box and a head posture information;

determining whether a part below the face in the original image meets a predetermined size;

determining a detection result as insufficient detection area if the predetermined size is not met;

dynamically cropping the part below the face in the original image based on the face bounding box and the head posture information to obtain a cropped image if the predetermined size is met; and

preprocessing the cropped image to obtain the image to be detected;

inputting the image to be detected into a detection network, wherein the detection network comprises an image classification branch network and an image segmentation branch network;

obtaining a classification result output from the image classification branch network and a segmentation image output from the image segmentation branch network, wherein the classification result indicates whether a driver is wearing a safety belt, and the segmentation image indicates a position information of the safety belt;

obtaining a detection result of the safety belt based on the classification result and the segmentation image: wherein the detection result indicates whether the driver wears the safety belt normatively; and

the segmentation image is reduced by a predetermined proportion relative to the image to be detected without encoding as the image to be detected input to the detection network, and pixel positions of the segmentation image are mapped corresponding to pixel positions of the image to be detected, to locate the positions of seat belt pixels in the image to be detected.

8. The safety belt detection apparatus of claim 7 , wherein the processor further performs the steps of detecting a human hand in the original image based on a human hand detection algorithm to obtain a human hand bounding box;

obtaining a safety belt bounding box in the original image based on a position and a size of the face bounding box; and determining that the detection result is that the safety belt is covered when the hand bounding box is located at a predetermined position relative to the face bounding box and an overlapping area of the hand bounding box and the safety belt hounding box is greater than a set threshold.

9. The safety belt detection apparatus of claim 7 , wherein the detection network further comprises a backbone network; and

the image detection unit further comprises:

a feature extraction unit, configured to obtain a convolution of the image to be detected by the backbone network to generate a feature map of the image to be detected, and use the feature map as an input of the image classification branch network and the image segmentation branch network.

10. The safety belt detection apparatus of claim 7 , wherein the processor further performs the steps of:

fitting a centerline of the safety belt from the segmentation image according to a predetermined rule; and

calculating parameters related to the centerline; and

obtaining the detection result of the safety belt based on the parameters and the classification result.

11. The safety belt detection apparatus of claim 10 , wherein the processor further performs the steps of:

obtaining a center point of the safety belt area in a row or column, row by row, or column according to the segmentation image; and

fitting all center points in the segmentation image to obtain the centerline of the safety belt;

wherein the parameters related to the centerline comprises: an included angle between the centerline and a predetermined direction, and a relative position between the centerline and the driver's shoulder.

12. The safety belt detection apparatus of claim 7 , wherein the processor further performs the steps of:

selecting training images, and train the image classification branch network, wherein the training images are divided into label images of wearing safety belt and label images of not wearing safety belt; and

reducing the label images of wearing safety belt according to the predetermined proportion, and use the reduced label images to train the image segmentation branch network.

13. A computer device, comprising a memory on which a computer program is stored and a processor, wherein the processor, when executing the computer program, implements the safety belt detection method of claim 1 .

14. A non-transitory computer readable storage medium having stored thereon a computer program, wherein the computer program, when executed by a processor, implements the safety belt detection method of claim 1 .

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Apr 21, 2022
From: ZENG, YUQIAN; ZHANG, TAO
To: BLACK SESAME TECHNOLOGIES INC.
Reel/Frame 059663/0146 →
Priority Claims (1)
CN 202110814892.9 · Jul 19, 2021 · national
Continuity (1)
Related Publication 20230017759A1 · Jan 19, 2023
References Cited (42)
US 6608910B1 · Srinivasa et al. · 2003 [cited by applicant]
US 8744123B2 · Bobbitt · 2014 [cited by examiner]
US 10501048B2 · Szawarski · 2019 [cited by examiner]
US 10684626B1 · Martin · 2020 [cited by examiner]
US 20070092110A1 · Xu · 2007 [cited by examiner]
US 20150248591A1 · Shi · 2015 [cited by examiner]
US 20160078306A1 · Artan · 2016 [cited by examiner]
US 20180157938A1 · Wang · 2018 [cited by examiner]
US 20190213406A1 · Porikli · 2019 [cited by examiner]
US 20190258263A1 · Wendel · 2019 [cited by examiner]
US 20190325605A1 · Ye · 2019 [cited by examiner]
US 20190340462A1 · Pao · 2019 [cited by examiner]
US 20190362156A1 · Muppala · 2019 [cited by examiner]
US 20200074638A1 · Yang · 2020 [cited by examiner]
US 20200110041A1 · Ziehl · 2020 [cited by examiner]
US 20200171977A1 · Jales Costa · 2020 [cited by examiner]
US 20200272825A1 · Zhang · 2020 [cited by applicant]
US 20210019560A1 · Yang et al. · 2021 [cited by applicant]
CN 106127153A · 2016 [cited by applicant]
CN 107529659A · 2018 [cited by applicant]
CN 108898054 · 2018 [cited by applicant]
CN 108898054A · 2018 [cited by applicant]
CN 109460699A · 2019 [cited by applicant]
CN 109978037A · 2019 [cited by applicant]
CN 110084184A · 2019 [cited by examiner]
CN 110310255A · 2019 [cited by examiner]
CN 110807430A · 2020 [cited by applicant]
CN 110853047A · 2020 [cited by applicant]
CN 111814636A · 2020 [cited by applicant]
CN 112132040 · 2020 [cited by applicant]
CN 112132040A · 2020 [cited by applicant]
CN 112339773A · 2021 [cited by applicant]
CN 112700444A · 2021 [cited by applicant]
JP 2004334786A · 2004 [cited by applicant]
JP 5136473B2 · 2013 [cited by examiner]
WO 2018003212A1 · 2018 [cited by applicant]
WO 2019129032A1 · 2019 [cited by applicant]
Hoel Kervadec, Jose Dolz, Meng Tang, Eric Granger, Yuri Boykow, Ismail Ben Ayed, Constrained-CNN Losses for Weakly Supervised Segmentation, Computer Vision and Pattern Recognition (cs. CV), Feb. 2019. [cited by applicant]
Shujiao Sun, Huining Yuan, Yushan Zheng, Haopeng Zhang, and Zhiguo Jiang, Cancer Sensitive Cascaded Networks (CSC-Net) for Efficient Histopathology Whole Slide Image Segmentation, 2020 IEEE 17th International Symposium … [cited by applicant]
Wei Cheng, Seatbelt Automatic Recognition Algorithm Based on Image Analysis, China National Knowledge Infrastructure Databases, May 15, 2017. [cited by applicant]
Baoquan Xu, Research on CT Image Organ Segmentation Algorithm Based on Cascaded Vnet-S Network, China National Knowledge Infrastructure Databases, Mar. 15, 2020. [cited by applicant]
Yun feng Li, Xi Xi Han, Sheng yang Li, Non-contact Dimension Measurement of Mechanical Parts Based on Image Processing, 8th International Congress on Image and Signal Processing, 2015. [cited by applicant]