Safety belt wearing posture detection method, device and equipment and storage medium
By performing image segmentation and key point detection on images of people in the car, the seat belt area and key point area are determined, which solves the problem of insufficient detection of seat belt wearing posture in the existing technology and achieves accurate and effective detection of seat belt wearing posture. Protect.
Patent Information
- Application Number
- CN202410655099.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-24
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-05-24
AI Technical Summary
The existing technology lacks detection of the wearing posture of the seat belt, which may reduce its protective effect in the event of an accident and increase the risk of injury to the driver and passengers.
By obtaining images of people in the car, perform image segmentation and key point detection, determine the seat belt area and key point area, divide the first and second key point sub-areas, and judge whether the seat belt wearing posture is correct based on the area ratio or proportion of these areas. .
It achieves accurate detection of seat belt wearing posture, improves detection efficiency, reduces misjudgments and missed judgments, and ensures effective protection of seat belts in emergencies.
Smart Images

Figure CN118609097A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image processing technology, and in particular to a seat belt wearing posture detection method, device, equipment and storage medium. Background Art
[0002] When driving a vehicle, wearing a seat belt can provide protection for occupants in an emergency and reduce the risk of injury in an accident.
[0003] In the prior art, the wearing inspection of seat belts usually only determines whether the seat belts are fastened, but lacks the detection of the wearing posture of the seat belts. Incorrect wearing posture of seat belts may reduce the protective effect of the seat belts in the event of an accident and increase the risk of injury to the driver and passengers. Therefore, it is necessary to detect the wearing posture of seat belts. Summary of the invention
[0004] The present invention provides a seat belt wearing posture detection method, device, equipment and storage medium to detect the seat belt wearing posture, ensure detection accuracy and improve detection efficiency.
[0005] According to one aspect of the present invention, a method for detecting a seat belt wearing posture is provided, the method comprising:
[0006] Acquire an image of a person in the vehicle, and perform image segmentation on the image of the person in the vehicle to obtain a seat belt area in the image of the person in the vehicle;
[0007] Performing key point detection on the image of the person in the vehicle to obtain a key point area composed of key points; and determining whether the person in the vehicle is wearing a seat belt according to the seat belt area and the key point area;
[0008] When determining that the occupant wears a seat belt, determining, according to the seat belt area and the key point area, a first key point sub-area and a second key point sub-area formed by dividing the seat belt area in the key point area;
[0009] According to the first key point sub-region and the second key point sub-region, it is determined whether the seat belt wearing posture of the occupant is correct.
[0010] Optionally, determining whether the seat belt wearing posture of the occupant is correct according to the first key point sub-region and the second key point sub-region includes:
[0011] Whether the seat belt wearing posture of the occupant is correct is determined according to the area values of the first key point sub-region and the second key point sub-region.
[0012] Optionally, determining whether the seat belt wearing posture of the occupant is correct according to the area values of the first key point sub-region and the second key point sub-region includes:
[0013] an area ratio between the first key point sub-region and the second key point sub-region according to the area values of the first key point sub-region and the second key point sub-region;
[0014] When the area ratio is within a preset ratio range, it is determined that the seat belt wearing posture of the occupant is correct;
[0015] Otherwise, it is determined that the seat belt wearing posture of the occupant is incorrect.
[0016] Optionally, the preset ratio range is an interval of [0.5, 2].
[0017] Optionally, determining whether a person in the vehicle is wearing a seat belt according to the seat belt area and the key point area includes:
[0018] Whether the occupant of the vehicle is wearing a seat belt is determined according to the area values of the seat belt area and the key point area.
[0019] Optionally, determining whether a person in the vehicle wears a seat belt according to the area values of the seat belt area and the key point area includes:
[0020] Determining the area ratio of the safety belt area in the key point area according to the area values of the safety belt area and the key point area;
[0021] When the area ratio is less than a preset ratio threshold, it is determined that the occupant of the vehicle is not wearing a seat belt;
[0022] Otherwise, make sure that everyone in the vehicle is wearing seat belts.
[0023] Optionally, performing key point detection on the image of the person in the vehicle to obtain a key point area composed of key points includes:
[0024] Key points of the body in the image of the person in the vehicle including the neck, left shoulder, right shoulder, left thigh and right thigh are detected to obtain a key point area in a pentagonal shape consisting of the key points.
[0025] According to another aspect of the present invention, a device for detecting a seat belt wearing posture is provided, the device comprising:
[0026] A seat belt area determination module is used to obtain an image of a person in the vehicle and perform image segmentation on the image of the person in the vehicle to obtain a seat belt area in the image of the person in the vehicle;
[0027] A seat belt wearing detection module is used to perform key point detection on the image of the person in the vehicle to obtain a key point area composed of key points; and determine whether the person in the vehicle is wearing a seat belt based on the seat belt area and the key point area;
[0028] A key point sub-region determining module, for determining, when determining that the occupant of the vehicle is wearing a seat belt, a first key point sub-region and a second key point sub-region formed by dividing the seat belt region in the key point region according to the seat belt region and the key point region;
[0029] The seat belt wearing posture detection module is used to determine whether the seat belt wearing posture of the occupant is correct according to the first key point sub-region and the second key point sub-region.
[0030] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0031] at least one processor; and
[0032] a memory communicatively connected to the at least one processor; wherein,
[0033] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the seat belt wearing posture detection method described in any embodiment of the present invention.
[0034] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the seat belt wearing posture detection method described in any embodiment of the present invention when executed.
[0035] According to another aspect of the present invention, a computer program product is provided, comprising a computer program, wherein when the computer program is executed by a processor, the seat belt wearing posture detection method according to any embodiment of the present invention is implemented.
[0036] The technical solution of the embodiment of the present invention obtains an image of the person in the car and performs image segmentation on the image of the person in the car to obtain a seat belt area in the image of the person in the car; performs key point detection on the image of the person in the car to obtain a key point area composed of key points; and determines whether the person in the car is wearing a seat belt based on the seat belt area and the key point area; when determining whether the person in the car is wearing a seat belt, determines a first key point sub-area and a second key point area formed by dividing the seat belt area in the key point area based on the seat belt area and the key point area; determines whether the seat belt wearing posture of the person in the car is correct based on the first key point area and the second key point area, thereby solving the problem of detecting the seat belt wearing posture. By detecting the seat belt wearing condition through the seat belt area and the key point area, the detection efficiency can be improved on the basis of ensuring the detection accuracy.
[0037] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0039] Figure 1 is a flow chart of a seat belt wearing posture detection method provided according to Embodiment 1 of the present invention;
[0040] Figure 2 is a schematic diagram of seat belt segmentation and key point detection provided according to the first embodiment of the present invention;
[0041] Figure 3 is a schematic diagram of a key point sub-region provided according to Embodiment 1 of the present invention;
[0042] Figure 4 is a flow chart of a seat belt wearing posture detection method provided according to Embodiment 2 of the present invention;
[0043] Figure 5 is a structural schematic diagram of a seat belt wearing posture detection device provided according to Embodiment 3 of the present invention;
[0044] Figure 6 It is a structural schematic diagram of an electronic device for implementing the seat belt wearing posture detection method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0045] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0046] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0047] Embodiment 1
[0048] Figure 1 This is a flow chart of a seat belt wearing posture detection method provided according to the first embodiment of the present invention. This embodiment can be applied to detecting the seat belt wearing posture of a person in a vehicle. The method can be executed by a seat belt wearing posture detection device. The seat belt wearing posture detection device can be implemented in the form of hardware and / or software. The seat belt wearing posture detection device can be configured in an electronic device such as a vehicle controller or a vehicle processor. Figure 1 As shown, the method includes:
[0049] Step 110: Acquire an image of the person in the vehicle, and perform image segmentation on the image of the person in the vehicle to obtain a seat belt area in the image of the person in the vehicle.
[0050] In an embodiment of the present invention, the image of the person in the vehicle may be an image of the driver or passenger in the vehicle. The image of the person in the vehicle may include images of the upper body and the abdominal area of the person. The image of the person in the vehicle may be captured by a camera, a video recorder or other shooting device. Specifically, in order to improve the accuracy of seat belt wearing detection, a shooting device with a resolution greater than a preset resolution may be used to capture real-time images of the person inside the vehicle. Exemplarily, if the seat belt wearing condition of the driver or the co-driver is detected, the shooting device may be installed on the dashboard or the A-pillar of the vehicle. If the seat belt wearing condition of the rear passengers of the vehicle is detected, the shooting device may be installed on the B-pillar or the internal roof of the vehicle. The specific number of shooting devices may be adjusted according to the actual seat belt wearing detection requirements.
[0051] In order to further improve the accuracy of seat belt wearing posture detection in different environments, a camera with an adaptive exposure adjustment function can be used. The camera with an adaptive exposure adjustment function can obtain clear images of people in the car under different lighting conditions, such as daylight, shadow or night, thereby improving the accuracy of seat belt wearing posture detection.
[0052] Before performing image segmentation on the image of the person in the vehicle, a preprocessing operation can also be performed on the image of the person in the vehicle. The preprocessing operation includes but is not limited to: image denoising, brightness adjustment, and contrast enhancement. Through the image preprocessing operation, the image quality can be improved, providing a more accurate visual basis for the detection of the wearing posture of the seat belt.
[0053] The image segmentation of the image of the person in the car may be to segment the seat belt from the background in the image. Specifically, the image segmentation may be to obtain the oblique seat belt area in the image of the person in the car. For example, Figure 2 1 is a schematic diagram of seat belt segmentation and key point detection according to the first embodiment of the present invention. Figure 2 As shown, the green seat belt area is the oblique seat belt area obtained by image segmentation.
[0054] The image segmentation method is not specifically limited in the embodiments of the present invention. For example, the seat belt can be segmented out of the image by a deep learning model or a traditional image processing method. Exemplarily, the segmentation of the seat belt area can be achieved by training a semantic segmentation model such as hrnet. The segmentation accuracy of the seat belt area can be pixel-level. By performing image segmentation through a deep learning model, various body shapes of people can be considered, the accuracy of seat belt segmentation can be improved, and the applicability and robustness of seat belt wearing posture detection can be improved.
[0055] Before training the semantic segmentation model, images of people in the vehicle can be collected and annotated to generate training samples for the semantic segmentation model. The image annotation can be to annotate the diagonal seat belt area and the background in the image of the people in the vehicle. For example, the diagonal seat belt area and the background can be recorded as 1 and 0, respectively. In an embodiment of the present invention, advanced image processing or deep learning technology can be used through image annotation to accurately segment and identify the diagonal seat belt and background on the person, and the seat belt area segmentation provides a basis for judging the wearing status and posture correctness of the seat belt.
[0056] In some specific applications, the image segmentation of the image of the person in the vehicle can also segment the transverse seat belt area based on the segmentation of the oblique seat belt area.
[0057] Step 120: perform key point detection on the image of the person in the vehicle to obtain a key point area composed of key points; and determine whether the person in the vehicle is wearing a seat belt based on the seat belt area and the key point area.
[0058] Among them, key point detection can be implemented by using a key point detection model. For example, the key point detection model can be a model such as CenterNet. Key points include but are not limited to: the neck, left shoulder, right shoulder, left thigh, and right thigh of the person in the car. Figure 2 As shown in the figure, the area surrounded by the yellow line is the key point area. The key point area obtained by key point detection can provide a basis for seat belt wearing posture detection and improve the accuracy of seat belt wearing posture detection.
[0059] Before performing key point detection, images of people in the vehicle can be collected and annotated to generate key point detection model training samples. Image annotation can be performed by annotating key points of people in the image of people in the vehicle, such as neck, left shoulder, right shoulder, left thigh, and right thigh. In an embodiment of the present invention, advanced key point detection technology can be used through image annotation to accurately detect key points of people and determine key point areas. Key point detection provides a basis for judging the wearing status and correctness of seat belts.
[0060] Specifically, in an optional implementation of the embodiment of the present invention, performing key point detection on the image of the person in the car to obtain a key point area composed of key points includes: performing key point detection on the body of the person in the car image including the neck, left shoulder, right shoulder, left thigh, and right thigh to obtain a key point area composed of key points in the shape of a pentagon. Figure 2 The key point areas shown can describe the body posture of the occupants of the vehicle.
[0061] Determining whether the occupant is wearing a seat belt based on the seat belt area and the key point area may be performed by determining the position and / or proportion of the seat belt area in the key point area. For example, when the position of the seat belt area in the key point area meets a preset position condition, and / or when the proportion of the seat belt area in the key point area meets a preset proportion condition, it may be determined that the occupant is wearing a seat belt. Otherwise, it is determined that the occupant is not wearing a seat belt.
[0062] In an optional implementation of the embodiment of the present invention, determining whether the occupant is wearing a seat belt based on the seat belt area and the key point area includes: determining whether the occupant is wearing a seat belt based on the area values of the seat belt area and the key point area.
[0063] The inventors have found that in actual applications, when a person wears a seat belt correctly, the seat belt usually covers a certain area of the person's body. When a person does not wear a seat belt correctly, the person's body area may not be covered by the seat belt, or the coverage area is small. Based on the above considerations, in an embodiment of the present invention, it is possible to determine whether the person in the car is wearing a seat belt by the area value of the seat belt area and the key point area. For example, when the area ratio or difference between the seat belt area and the key point area meets the corresponding preset area condition, it can be determined that the person in the car is wearing a seat belt. Otherwise, it is determined that the person in the car is not wearing a seat belt.
[0064] Furthermore, in an optional implementation of the embodiment of the present invention, whether the occupant of the vehicle is wearing a seat belt is determined based on the area values of the seat belt area and the key point area, including: determining the area ratio of the seat belt area in the key point area based on the area values of the seat belt area and the key point area; when the area ratio is less than a preset ratio threshold, determining that the occupant of the vehicle is not wearing a seat belt; otherwise, determining that the occupant of the vehicle is wearing a seat belt.
[0065] The preset percentage threshold may be any value within the interval [15%, 30%]. Optionally, the preset percentage threshold is 20%. The technical solution of the embodiment of the present invention determines whether a person is wearing a seat belt by the percentage of the seat belt area within the pentagon of the person's body, and can conveniently and accurately detect whether a person is wearing a seat belt.
[0066] It should be noted that in order to improve the accuracy of seat belt wearing detection, when performing detection by area ratio, the ratio of the area value of the seat belt area within the key point area to the area value of the key point area is used as the area ratio. The seat belt area not within the key point area does not participate in the area ratio calculation. The calculation form of the area value is not specifically limited in the embodiments of the present invention.
[0067] Step 130: When determining whether the occupant of the vehicle wears a seat belt, determine, according to the seat belt area and the key point area, a first key point sub-area and a second key point sub-area formed by dividing the seat belt area in the key point area.
[0068] Figure 3 Schematic diagram of a key point sub-region provided according to the first embodiment of the present invention. Figure 3 As shown, the seat belt area can divide the key point area into two parts, upper and lower parts, which are respectively determined as a first key point sub-area and a second key point sub-area.
[0069] Step 140: Determine whether the seat belt wearing posture of the occupant is correct based on the first key point sub-region and the second key point sub-region.
[0070] The inventor has studied the actual wearing of seat belts and found that when a person wears the seat belt correctly, the seat belt can cover the person's body smoothly, and the first key point sub-area and the second key point area generated by the seat belt division meet certain balance conditions. In an embodiment of the present invention, it is possible to determine whether the seat belt wearing posture of the person in the car is correct based on the relationship between the first key point area and the second key point area. For example, it is possible to determine whether the seat belt wearing posture of the person in the car is correct based on whether one or more of the area ratio, perimeter, shape, etc. between the first key point area and the second key point area meet the corresponding balance conditions.
[0071] The technical solution of this embodiment obtains an image of the person in the car and performs image segmentation on the image of the person in the car to obtain the seat belt area in the image of the person in the car; performs key point detection on the image of the person in the car to obtain a key point area composed of key points; and determines whether the person in the car is wearing a seat belt based on the seat belt area and the key point area; when determining whether the person in the car is wearing a seat belt, determines a first key point sub-area and a second key point sub-area formed by dividing the seat belt area in the key point area based on the seat belt area and the key point area; determines whether the seat belt wearing posture of the person in the car is correct based on the first key point area and the second key point area, thereby solving the problem of detecting the seat belt wearing posture. By detecting the seat belt wearing condition through the seat belt area and the key point area, the detection efficiency can be improved on the basis of ensuring the detection accuracy.
[0072] Embodiment 2
[0073] Figure 4 It is a flow chart of a seat belt wearing posture detection method provided according to the second embodiment of the present invention. This embodiment is a further refinement of the above technical solution. The technical solution in this embodiment can be combined with various optional solutions in one or more of the above embodiments.
[0074] Specifically, in an optional implementation of an embodiment of the present invention, determining whether the seat belt wearing posture of the occupant in the vehicle is correct based on the first key point sub-area and the second key point sub-area, including: determining whether the seat belt wearing posture of the occupant in the vehicle is correct based on the area values of the first key point sub-area and the second key point sub-area.
[0075] like Figure 4 As shown, the method includes:
[0076] Step 210: Acquire an image of the person in the vehicle, and perform image segmentation on the image of the person in the vehicle to obtain a seat belt area in the image of the person in the vehicle.
[0077] Step 220: perform key point detection on the image of the person in the vehicle to obtain a key point area composed of key points.
[0078] In an optional implementation of an embodiment of the present invention, key point detection is performed on the image of the person in the car to obtain a key point area composed of key points, including: key point detection is performed on the torso in the image of the person in the car including the neck, left shoulder, right shoulder, left thigh, and right thigh to obtain a key point area composed of key points in the shape of a pentagon.
[0079] Step 230: Determine whether the occupant of the vehicle is wearing a seat belt based on the seat belt area and the key point area.
[0080] In an optional implementation of the embodiment of the present invention, determining whether the occupant is wearing a seat belt based on the seat belt area and the key point area includes: determining whether the occupant is wearing a seat belt based on the area values of the seat belt area and the key point area.
[0081] In an optional implementation of an embodiment of the present invention, determining whether a person in the vehicle is wearing a seat belt is based on the area values of the seat belt area and the key point area, including: determining the area ratio of the seat belt area in the key point area based on the area values of the seat belt area and the key point area; when the area ratio is less than a preset ratio threshold, determining that the person in the vehicle is not wearing a seat belt; otherwise, determining that the person in the vehicle is wearing a seat belt.
[0082] Optionally, the preset percentage threshold is 20%.
[0083] Step 240: When determining whether the occupant of the vehicle wears a seat belt, determine, according to the seat belt area and the key point area, a first key point sub-area and a second key point sub-area formed by dividing the seat belt area in the key point area.
[0084] Step 250: Determine whether the seat belt wearing posture of the occupant is correct based on the area values of the first key point sub-region and the second key point sub-region.
[0085] Among them, in order to ensure the accuracy of seat belt wearing posture detection, the area values of the first key point area and the second key point area can be used to determine whether the seat belt wearing posture of the occupant is correct. There are many ways to use the area values of the first key point area and the second key point area to determine whether the seat belt wearing posture of the occupant is correct. For example, according to the area ratio or area difference between the first key point area and the second key point area, determine whether the seat belt wearing posture of the occupant is correct.
[0086] In an optional implementation of an embodiment of the present invention, determining whether the seat belt wearing posture of the occupant in the vehicle is correct is based on the area values of the first key point area and the second key point area, including: based on the area values of the first key point area and the second key point area, the area ratio between the first key point area and the second key point area; when the area ratio is within a preset ratio range, determining that the seat belt wearing posture of the occupant in the vehicle is correct; otherwise, determining that the seat belt wearing posture of the occupant in the vehicle is incorrect.
[0087] Among them, the inventors found in actual research that the ideal condition for wearing a safety belt is that the area of the first key point sub-area and the second key point sub-area are relatively uniform, that is, the area ratio of the two is close to one to one. In the case of incorrect wearing of the safety belt, such as the safety belt is loosened, hung behind the shoulders, or other incorrect wearing methods, the area ratio between the first key point sub-area and the second key point sub-area will be offset. For example, if the safety belt is too concentrated in the upper part, or too concentrated in the lower part, it may cause an imbalance in the area ratio. Therefore, in an embodiment of the present invention, a preset ratio range can be set according to the above conditions.
[0088] Taking into account the impact of various factors on seat belt wearing, such as different body shapes of people, in order to ensure the accuracy of seat belt wearing posture detection, in an optional implementation of the embodiment of the present invention, the preset ratio range is the interval [0.5, 2].
[0089] Specifically, in actual applications, when the area ratio of the smaller area value to the larger area value in the first key point sub-region and the second key point sub-region is less than 0.5, it is determined that the seat belt wearing posture is incorrect; otherwise, it is determined that the seat belt wearing posture is correct.
[0090] Based on the above implementation, the method may further include: when the seat belt is not worn or the seat belt is worn in an incorrect posture, an abnormal seat belt wearing alarm is issued. The abnormal alarm may be an audio and / or visual prompt alarm. In the embodiment of the present invention, the abnormal alarm may be a real-time feedback mechanism, thereby accurately and timely prompting the occupants to wear the seat belt in the correct posture to ensure driving safety.
[0091] The technical solution of the embodiment of the present invention obtains an image of a person in a vehicle and performs image segmentation on the image of the person in the vehicle to obtain a seat belt area in the image of the person in the vehicle; performs key point detection on the image of the person in the vehicle to obtain a key point area composed of key points; determines whether the person in the vehicle is wearing a seat belt based on the seat belt area and the key point area; when determining whether the person in the vehicle is wearing a seat belt, determines a first key point sub-area and a second key point area formed by dividing the seat belt area in the key point area based on the seat belt area and the key point area; determines whether the seat belt wearing posture of the person in the vehicle is correct based on the area values of the first key point area and the second key point area, thereby solving the problem of detecting the seat belt wearing posture. By detecting the seat belt wearing situation through the seat belt area and the key point area, a comprehensive judgment of the seat belt wearing situation can be achieved, thereby improving the detection efficiency while ensuring the detection accuracy; reducing the possibility of misjudgment and missed judgment, and being able to timely discover incorrect safety wearing postures.
[0092] In the technical solution of the embodiment of the present invention, the acquisition, storage and application of user personal information (such as images of people in the car, etc.) are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0093] Embodiment 3
[0094] Figure 5 Schematic diagram of a seat belt wearing posture detection device provided according to Embodiment 3 of the present invention. Figure 5 As shown, the device includes: a seat belt area determination module 510, a seat belt wearing detection module 520, a key point sub-area determination module 530 and a seat belt wearing posture detection module 540. Among them:
[0095] The seat belt area determination module 510 is used to obtain an image of a person in the vehicle and perform image segmentation on the image of the person in the vehicle to obtain a seat belt area in the image of the person in the vehicle;
[0096] The seat belt wearing detection module 520 is used to perform key point detection on the image of the occupant of the vehicle to obtain a key point area composed of key points; and determine whether the occupant of the vehicle is wearing a seat belt according to the seat belt area and the key point area;
[0097] The key point sub-region determining module 530 is used to determine, when determining whether the occupant of the vehicle wears a seat belt, a first key point sub-region and a second key point sub-region formed by dividing the seat belt region in the key point region according to the seat belt region and the key point region;
[0098] The seat belt wearing posture detection module 540 is used to determine whether the seat belt wearing posture of the occupant is correct according to the first key point sub-region and the second key point sub-region.
[0099] Optionally, the seat belt wearing posture detection module 540 includes:
[0100] The seat belt wearing posture detection unit is used to determine whether the seat belt wearing posture of the occupant is correct according to the area values of the first key point sub-region and the second key point sub-region.
[0101] Optional, seat belt wearing posture detection unit, including:
[0102] an area ratio determination subunit, configured to determine an area ratio between the first key point subregion and the second key point subregion based on the area values of the first key point subregion and the second key point subregion;
[0103] The seat belt wearing posture detection subunit is used to determine that the seat belt wearing posture of the occupant is correct when the area ratio is within a preset ratio range; otherwise, it is determined that the seat belt wearing posture of the occupant is incorrect.
[0104] Optionally, the preset ratio range is an interval of [0.5, 2].
[0105] Optionally, the seat belt wearing detection module 520 includes:
[0106] The seat belt wearing detection unit is used to determine whether the occupant is wearing a seat belt based on the area values of the seat belt area and the key point area.
[0107] Optional, seat belt wearing detection unit, including:
[0108] The area ratio determination subunit is used to determine the area ratio of the seat belt area in the key point area according to the area values of the seat belt area and the key point area;
[0109] The seat belt wearing detection subunit is used to determine that the occupant is not wearing a seat belt when the area ratio is less than a preset ratio threshold; otherwise, it is determined that the occupant is wearing a seat belt.
[0110] Optionally, the seat belt wearing detection module 520 includes:
[0111] The key point area determination unit is used to detect key points of the body in the image of the person in the car, including the neck, left shoulder, right shoulder, left thigh, and right thigh, and obtain a key point area composed of key points in the shape of a pentagon.
[0112] The seat belt wearing posture detection device provided in the embodiment of the present invention can execute the seat belt wearing posture detection method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0113] Embodiment 4
[0114] Figure 6A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0115] like Figure 6 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0116] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0117] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a seat belt wearing posture detection method.
[0118] In some embodiments, the seat belt wearing posture detection method can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the seat belt wearing posture detection method described above can be performed. Alternatively, in other embodiments, the processor 11 can be configured to perform the seat belt wearing posture detection method in any other appropriate manner (for example, by means of firmware).
[0119] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0120] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0121] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0122] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0123] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0124] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0125] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0126] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for detecting a seat belt wearing posture, characterized in that: include: Acquire an image of a person in the vehicle, and perform image segmentation on the image of the person in the vehicle to obtain a seat belt area in the image of the person in the vehicle; Performing key point detection on the image of the person in the vehicle to obtain a key point area composed of key points; and determining whether the occupant of the vehicle is wearing a seat belt according to the seat belt area and the key point area; When determining that the occupant wears a seat belt, determining, according to the seat belt area and the key point area, a first key point sub-area and a second key point sub-area formed by dividing the seat belt area in the key point area; According to the first key point sub-region and the second key point sub-region, it is determined whether the seat belt wearing posture of the occupant is correct.
2. The method according to claim 1, characterized in that Determining whether the seat belt wearing posture of the occupant is correct according to the first key point sub-region and the second key point sub-region includes: Whether the seat belt wearing posture of the occupant is correct is determined according to the area values of the first key point sub-region and the second key point sub-region.
3. The method according to claim 2, characterized in that Determining whether the seat belt wearing posture of the occupant is correct according to the area values of the first key point sub-region and the second key point sub-region includes: an area ratio between the first key point sub-region and the second key point sub-region according to the area values of the first key point sub-region and the second key point sub-region; When the area ratio is within a preset ratio range, it is determined that the seat belt wearing posture of the occupant is correct; Otherwise, it is determined that the seat belt wearing posture of the occupant is incorrect.
4. The method according to claim 3, characterized in that The preset ratio range is the interval [0.5, 2].
5. The method according to claim 1, characterized in that Determining whether a person in the vehicle wears a seat belt according to the seat belt area and the key point area includes: Whether the occupant of the vehicle is wearing a seat belt is determined according to the area values of the seat belt area and the key point area.
6. The method according to claim 5, characterized in that Determining whether a person in the vehicle wears a seat belt according to the area values of the seat belt area and the key point area includes: Determining the area ratio of the safety belt area in the key point area according to the area values of the safety belt area and the key point area; When the area ratio is less than a preset ratio threshold, it is determined that the occupant of the vehicle is not wearing a seat belt; Otherwise, make sure that everyone in the vehicle is wearing seat belts.
7. The method according to claim 1, characterized in that Perform key point detection on the image of the person in the vehicle to obtain a key point area composed of key points, including: Key points of the body in the image of the person in the vehicle including the neck, left shoulder, right shoulder, left thigh and right thigh are detected to obtain a key point area in a pentagonal shape consisting of the key points.
8. A seat belt wearing posture detection device, characterized in that: include: A seat belt area determination module is used to obtain an image of a person in the vehicle and perform image segmentation on the image of the person in the vehicle to obtain a seat belt area in the image of the person in the vehicle; A seat belt wearing detection module is used to perform key point detection on the image of the person in the vehicle to obtain a key point area composed of key points; and determining whether the occupant of the vehicle is wearing a seat belt according to the seat belt area and the key point area; A key point sub-region determining module, for determining, when determining that the occupant of the vehicle is wearing a seat belt, a first key point sub-region and a second key point sub-region formed by dividing the seat belt region in the key point region according to the seat belt region and the key point region; The seat belt wearing posture detection module is used to determine whether the seat belt wearing posture of the occupant is correct according to the first key point sub-region and the second key point sub-region.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the seat belt wearing posture detection method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the seat belt wearing posture detection method according to any one of claims 1 to 7 when executed.
Citation Information
Patent Citations
Seat belt wearing detection method and device, electronic equipment and storage medium
CN113870205A
Device and method for determining seatbelt wearing
CN116353540A
Car safe driving initiative early warning system
CN205365407U
Occupant attitude estimation device
JP2010211705A
Human detector and human detection method
JP2019177851A
Cited By
Hanging basket personnel dangerous behavior monitoring method and system based on vision assistance
CN121214497A
Safety belt wearing posture detection method and apparatus, device, and storage medium
WO2025241400A1
Method and apparatus for determining state of safety protection device, and readable storage medium
WO2026097773A1
