Safety belt wearing posture detection method, device and equipment and storage medium
By performing image segmentation and tangent drawing on images of people in the vehicle, the seat belt wearing posture is determined, which solves the problem of insufficient seat belt wearing posture detection in the existing technology, improves detection accuracy and robustness, and ensures vehicle driving safety.
Patent Information
- Application Number
- CN202410655096.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-24
- Publication Date
- 2024-09-06
AI Technical Summary
The existing technology lacks effective 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 acquiring images of people in the vehicle, perform image segmentation to determine the oblique and transverse seat belt areas, calculate the area area, and draw tangent lines when the area exceeds the threshold, and judge the correctness of the seat belt wearing posture based on the angle between the tangent lines, providing Abnormal alarm.
It improves the accuracy and robustness of seat belt wearing posture detection, ensures vehicle driving safety, reduces dependence on complex backgrounds, simplifies the detection process, and enhances the safety features of smart car systems.
Smart Images

Figure CN118609095A
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, so as to detect the seat belt wearing posture and improve the detection accuracy and robustness, thereby ensuring the vehicle driving safety.
[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 corresponding seat belt segmentation result; the seat belt segmentation result includes a diagonal seat belt area and a transverse seat belt area;
[0007] When the sum of the areas of the oblique seat belt area and the transverse seat belt area is greater than a preset area threshold, a transverse seat belt tangent line and an oblique seat belt tangent line are drawn in the in-vehicle person image in a geometric manner;
[0008] Whether the seat belt wearing posture of the occupant is correct is determined based on the angle between the transverse seat belt tangent line and the oblique seat belt tangent line.
[0009] Optionally, drawing a transverse seat belt tangent line and an oblique seat belt tangent line in the in-vehicle person image by geometric means includes:
[0010] In the image of the person in the vehicle, a preset oblique seat belt line is determined according to preset start and end points of the seat belt, and a first round point is determined on the perpendicular midline of the preset oblique seat belt line;
[0011] In the vehicle occupant image, a transverse seat belt preset line is determined according to a preset end point of the seat belt, and a second dot is determined on the transverse seat belt preset line;
[0012] A first concentric circle and a second concentric circle are drawn with the first circle point and the second circle point as the circle points respectively; and an oblique seat belt tangent line and a transverse seat belt tangent line are determined respectively among the tangent lines of the first concentric circle and the second concentric circle.
[0013] Optionally, determining a first point on the perpendicular midline of the oblique seat belt preset line includes:
[0014] On the perpendicular midline of the oblique seat belt preset line, a point that is half the length of the oblique seat belt preset line from the oblique seat belt preset line is determined as a first round point;
[0015] Determining a second round point on the transverse seat belt preset line includes:
[0016] On the transverse seat belt preset line, a point whose distance from the diagonal seat belt preset line is half the length of the diagonal seat belt preset line is determined as the second round point.
[0017] Optionally, determining the oblique seat belt tangent and the transverse seat belt tangent respectively among the tangents of the first concentric circle and the second concentric circle includes:
[0018] In the first concentric circle, determine a first target circle that does not contain a non-diagonal safety belt area on the same side as the diagonal safety belt area and has maximum contact with the diagonal safety area;
[0019] Draw a tangent line between the first target circle and the oblique safety belt area as the oblique safety belt tangent line;
[0020] In the second concentric circle, determine a second target circle that does not include a non-lateral safety belt area in the circle at the same side as the lateral safety belt and has maximum contact with the lateral safety area;
[0021] A tangent line between the second target circle and the transverse safety belt area is drawn as the transverse safety belt tangent line.
[0022] Optionally, determining whether the seat belt wearing posture of the occupant is correct according to the angle between the transverse seat belt tangent line and the oblique seat belt tangent line includes:
[0023] When the angle between the transverse seat belt tangent line and the oblique seat belt tangent line is within a preset angle range, it is determined that the seat belt wearing posture of the occupant is correct;
[0024] Otherwise, it is determined that the seat belts of the occupants are worn in the wrong posture.
[0025] Optionally, the method further includes:
[0026] When the sum of the areas of the oblique seat belt area and the transverse seat belt area is not greater than a preset area threshold, it is determined that the seat belt wearing posture of the occupant is incorrect.
[0027] Optionally, the method further includes:
[0028] When it is determined that the seat belt wearing posture of the occupant is incorrect, an abnormal seat belt wearing alarm is issued.
[0029] According to another aspect of the present invention, a device for detecting a seat belt wearing posture is provided, the device comprising:
[0030] A seat belt segmentation result 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 corresponding seat belt segmentation result; the seat belt segmentation result includes an oblique seat belt area and a transverse seat belt area;
[0031] A seat belt tangent drawing module, used for drawing a transverse seat belt tangent and a diagonal seat belt tangent in the vehicle occupant image by a geometric method when the sum of the areas of the diagonal seat belt area and the transverse seat belt area is greater than a preset area threshold;
[0032] 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 angle between the transverse seat belt tangent line and the oblique seat belt tangent line.
[0033] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0034] at least one processor; and
[0035] a memory communicatively connected to the at least one processor; wherein,
[0036] 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.
[0037] 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.
[0038] 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.
[0039] The technical solution of the embodiment of the present invention obtains an image of a person in the vehicle and performs image segmentation on the image of the person in the vehicle to obtain a corresponding seat belt segmentation result; the seat belt segmentation result includes a diagonal seat belt area and a transverse seat belt area; when the sum of the areas of the diagonal seat belt area and the transverse seat belt area is greater than a preset area threshold, a transverse seat belt tangent and a diagonal seat belt tangent are drawn in the image of the person in the vehicle in a geometric manner; based on the angle between the transverse seat belt tangent and the diagonal seat belt tangent, whether the seat belt wearing posture of the person in the vehicle is correct is determined, thereby solving the problem of detecting the seat belt wearing posture, and determining whether the seat belt wearing posture is correct through a dual mechanism of the area of the seat belt area and the angle between the seat belt tangents, thereby improving detection accuracy and robustness and ensuring vehicle driving safety.
[0040] 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
[0041] 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.
[0042] Figure 1 is a flow chart of a seat belt wearing posture detection method provided according to Embodiment 1 of the present invention;
[0043] Figure 2 is a schematic diagram of a seat belt segmentation result provided according to the first embodiment of the present invention;
[0044] Figure 3 is a flow chart of a seat belt wearing posture detection method provided according to Embodiment 2 of the present invention;
[0045] Figure 4 This is a schematic diagram of dot positioning in a geometric manner provided in Embodiment 2 of the present invention;
[0046] Figure 5 is a structural schematic diagram of a seat belt wearing posture detection device provided according to Embodiment 3 of the present invention;
[0047] 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
[0048] 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.
[0049] 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.
[0050] Embodiment 1
[0051] 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:
[0052] Step 110: Acquire an image of the occupant of the vehicle, and perform image segmentation on the image of the occupant to obtain a corresponding seat belt segmentation result.
[0053] 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.
[0054] 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.
[0055] 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.
[0056] 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 seat belt segmentation result includes the oblique seat belt area and the transverse seat belt area. For example, Figure 2 FIG. 1 is a schematic diagram of a seat belt segmentation result provided according to the first embodiment of the present invention. Figure 2 As shown, the white seat belt area is the oblique seat belt area obtained by image segmentation, and the orange seat belt area is the lateral seat belt area obtained by image segmentation.
[0057] 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.
[0058] 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 transverse seat belt area in the image of the people in the vehicle. 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 two different parts of the seat belt diagonally across the person and the seat belt across the abdomen. The accurate segmentation of the diagonal seat belt area and the transverse seat belt area provides a basis for judging the wearing status and correctness of the seat belt.
[0059] Step 120: When the sum of the areas of the diagonal seat belt area and the transverse seat belt area is greater than a preset area threshold, a transverse seat belt tangent line and a diagonal seat belt tangent line are geometrically drawn in the in-vehicle occupant image.
[0060] In the embodiment of the present invention, the sum of the areas of the oblique seat belt area and the transverse seat belt area can be calculated by mathematical methods. The specific area calculation method is not limited in the embodiment of the present invention. The preset area threshold can be a fixed area value or an area ratio value. For example, the preset area threshold can be any value in the interval [300,500], and the unit of the preset area threshold is square centimeters; optionally, the preset area threshold is 300, 350, 400, 450 or 500 square centimeters. Alternatively, the preset area threshold can be an interval The preset area threshold means the ratio of the sum of the areas to the area of the image of the person in the vehicle; optionally, the preset area threshold means the ratio of the diagonal seat belt area and the transverse seat belt area to the entire image of the person in the vehicle
[0061] The lateral seat belt tangent line and the diagonal seat belt tangent line may be line segments representing the lateral seat belt area and the diagonal seat belt area, respectively. Figure 2 The red line shown in the figure is the lateral seat belt tangent line, and the green line is the diagonal seat belt tangent line.
[0062] There are many ways to determine the transverse seat belt tangent and the diagonal seat belt tangent. Exemplarily, the transverse seat belt tangent and the diagonal seat belt tangent can be determined by geometrically fitting the transverse seat belt area and the diagonal seat belt area. Alternatively, the transverse seat belt tangent can be obtained by connecting the first transverse point and the second transverse point in the transverse seat belt area in the image of the person in the car. Among them, the first transverse point and the second transverse point are the starting point and the end point of the transverse seat belt in the transverse seat belt area, respectively. The transverse seat belt tangent formed by the first transverse point and the second transverse point can be parallel to the horizontal line. The diagonal seat belt tangent can be obtained by connecting the first diagonal point and the second diagonal point in the diagonal seat belt area. Among them, the first diagonal point and the second diagonal point are the end point and the midpoint of the diagonal seat belt in the diagonal seat belt area, respectively. Alternatively, the transverse seat belt tangent and the diagonal seat belt tangent can be determined by drawing concentric circles. The points of the concentric circles can be located geometrically.
[0063] Step 130: Determine whether the seat belt wearing posture of the occupant is correct based on the angle between the transverse seat belt tangent and the oblique seat belt tangent.
[0064] In an optional implementation of an embodiment of the present invention, whether the seat belt wearing posture of the occupant in the vehicle is correct is determined based on the angle between the transverse seat belt tangent and the diagonal seat belt tangent, including: when the angle between the transverse seat belt tangent and the diagonal seat belt tangent is within a preset angle 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.
[0065] Among them, the preset angle range may be less than 90 degrees. Optionally, the preset angle range may be greater than or equal to 20 degrees and less than 90 degrees. Judging the angle between the tangent lines of the seat belt by geometric relationship can provide an intuitive and effective measurement method for the wearing posture of the seat belt, and solve the problem of detecting the wearing posture of the seat belt. In an embodiment of the present invention, the seat belt wearing posture detection of the occupants can be realized by the preset angle range. When the seat belt wearing posture detection is performed on the occupants in different positions, the preset angle range may be different. For example, when the seat belt wearing posture detection is performed on the person in the main driving position or the co-pilot position, the preset angle range may be greater than or equal to 20 degrees and less than 90 degrees. For another example, when the seat belt wearing posture detection is performed on the person in the back seat, the preset angle range may be greater than or equal to 30 degrees and less than 90 degrees. By limiting the angle between the transverse seat belt tangent and the oblique seat belt tangent by the preset angle range, the actual influence of different body shapes on the wearing of the seat belt can be considered, and reliable detection of the seat belt wearing posture can be achieved on this basis.
[0066] In an optional implementation of the embodiment of the present invention, the method further includes: when the sum of the areas of the diagonal seat belt area and the transverse seat belt area is not greater than a preset area threshold, determining that the seat belt wearing posture of the occupant is incorrect. In the technical solution of the embodiment of the present invention, when the areas of the diagonal seat belt area and the transverse seat belt area are too small or do not exist, the seat belt wearing posture detection result can be determined as an incorrect wearing posture, specifically, it can be that the seat belt is not worn. The area judgment method can avoid excessive reliance on complex image backgrounds, simplify the seat belt wearing posture detection method, and improve the efficiency of seat belt wearing posture detection.
[0067] The technical solution of the embodiment of the present invention obtains an image of a person in the vehicle and performs image segmentation on the image of the person in the vehicle to obtain a corresponding seat belt segmentation result; the seat belt segmentation result includes a diagonal seat belt area and a transverse seat belt area; when the sum of the areas of the diagonal seat belt area and the transverse seat belt area is greater than a preset area threshold, a transverse seat belt tangent and a diagonal seat belt tangent are drawn in the image of the person in the vehicle in a geometric manner; based on the angle between the transverse seat belt tangent and the diagonal seat belt tangent, whether the seat belt wearing posture of the person in the vehicle is correct is determined, thereby solving the problem of detecting the seat belt wearing posture, and determining whether the seat belt wearing posture is correct through a dual mechanism of the area of the seat belt area and the angle between the seat belt tangents, thereby improving detection accuracy and robustness and ensuring vehicle driving safety.
[0068] Embodiment 2
[0069] Figure 3 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.
[0070] Specifically, in an optional implementation of an embodiment of the present invention, a transverse seat belt tangent and a diagonal seat belt tangent are drawn in a vehicle occupant image by geometric means, including: in the vehicle occupant image, a diagonal seat belt preset line is determined according to preset start and end points of the seat belt, and a first dot is determined on the perpendicular midline of the diagonal seat belt preset line; in the vehicle occupant image, a transverse seat belt preset line is determined according to a preset end point of the seat belt, and a second dot is determined on the transverse seat belt preset line; a first concentric circle and a second concentric circle are drawn with the first dot and the second dot as dots respectively; and the diagonal seat belt tangent and the transverse seat belt tangent are determined respectively in the tangents of the first concentric circle and the second concentric circle.
[0071] like Figure 3 As shown, the method includes:
[0072] Step 210: Acquire an image of the occupant of the vehicle, and perform image segmentation on the image of the occupant to obtain a corresponding seat belt segmentation result.
[0073] The seat belt segmentation result includes the diagonal seat belt area and the transverse seat belt area.
[0074] Step 220: When the sum of the areas of the diagonal seat belt area and the transverse seat belt area is greater than a preset area threshold, in the image of the person in the vehicle, a diagonal seat belt preset line is determined according to the preset start and end points of the seat belt, and a first dot is determined on the perpendicular midline of the diagonal seat belt preset line.
[0075] The preset start and end points of the seat belt may be the storage point of the seat belt and the buckle point of the seat belt, respectively. The line segment formed by the connection line of the preset start and end points of the seat belt is the oblique seat belt preset line. The first round point may be determined on the perpendicular midline of the oblique seat belt preset line.
[0076] In an optional implementation of an embodiment of the present invention, in order to improve the reliability of detection of seat belt wearing posture, a first dot is determined on the perpendicular bisector of the diagonal seat belt preset line, including: on the perpendicular bisector of the diagonal seat belt preset line, a point whose distance from the diagonal seat belt preset line is half the length of the diagonal seat belt preset line is determined as the first dot.
[0077] Figure 4 FIG. 1 is a schematic diagram of a geometric point positioning method provided according to Embodiment 2 of the present invention. Figure 4 As shown in the figure, the red line is the preset line of the oblique seat belt, the green line perpendicular to the preset line of the oblique seat belt is the median vertical line, and the yellow dot on the median vertical line is the first dot.
[0078] Step 230: In the image of the person in the vehicle, determine a preset transverse seat belt line according to a preset end point of the seat belt, and determine a second dot on the preset transverse seat belt line.
[0079] Among them, starting from the preset end point of the seat belt, according to the direction of fastening the seat belt, horizontal extension is performed to obtain a transverse seat belt preset line. For example, when the seat belt wearing posture of the main driver is detected, it can be started from the preset end point of the seat belt and horizontally extended to the right to obtain a transverse seat belt preset line. Or, when the safety wearer posture of the co-pilot is detected, it can be started from the preset end point of the seat belt and horizontally extended to the left to obtain a transverse seat belt preset line. A second dot can be selected on the transverse seat belt preset line.
[0080] In an optional implementation of an embodiment of the present invention, in order to improve the detection accuracy of the seat belt wearing posture, a second dot is determined on the transverse seat belt preset line, including: on the transverse seat belt preset line, a point whose distance from the diagonal seat belt preset line is half the length of the diagonal seat belt preset line is determined as the second dot.
[0081] like Figure 4 As shown in the figure, the green line extending horizontally to the right from the preset end point of the seat belt is the preset transverse seat belt line. The blue dot on the preset transverse seat belt line is the second dot.
[0082] Step 240, draw a first concentric circle and a second concentric circle with the first circle point and the second circle point as the circle points respectively; and determine the oblique seat belt tangent line and the transverse seat belt tangent line respectively among the tangent lines of the first concentric circle and the second concentric circle.
[0083] Among the tangents of the first concentric circle, the tangent that can represent the oblique seat belt area can be determined as the oblique seat belt tangent. Among the tangents of the second concentric circle, the tangent that can represent the transverse seat belt area can be determined as the transverse seat belt tangent.
[0084] In order to improve the detection reliability of the seat belt wearing posture, in an optional implementation of the embodiment of the present invention, the diagonal seat belt tangent and the transverse seat belt tangent are respectively determined in the tangents of the first concentric circle and the second concentric circle, including: in the first concentric circle, determining a first target circle in the circle on the same side as the diagonal seat belt area that does not include a non-diagonal seat belt area and has maximum contact with the diagonal safety area; drawing the tangent of the first target circle and the diagonal seat belt area as the diagonal seat belt tangent; in the second concentric circle, determining a second target circle in the circle on the same side as the transverse seat belt that does not include a non-transverse seat belt area and has maximum contact with the transverse safety area; drawing the tangent of the second target circle and the transverse seat belt area as the transverse seat belt tangent.
[0085] In the first concentric circle, determine the first target circle that does not contain the non-diagonal seat belt area on the same side as the diagonal seat belt area and has the greatest contact with the diagonal safety area. For example, when the seat belt wearing posture of the main driver's seat is detected, Figure 2 As shown, in the first concentric circle, the lower right position inside the circle does not contain Figure 2 The non-white safety belt area in Figure 2 The circle with the largest contact of the white safety belt area in the image is the first target circle. The position where the first target circle is tangent to the oblique safety belt area is the first tangent point. By making a tangent line to the first target circle at the first tangent point, the oblique safety belt tangent line can be obtained. For example, the oblique safety belt tangent line is as follows: Figure 2 As shown by the green line in .
[0086] In the second concentric circle, determine a second target circle that does not contain a non-lateral seat belt area on the same side of the lateral seat belt and has the greatest contact with the lateral safety area. For example, when the seat belt wearing posture of the main driver's seat is detected, if Figure 2 As shown, in the second concentric circle, the upper left side of the circle does not contain Figure 2 In non-orange seat belt areas, and Figure 2 The circle with the largest orange safety belt area in the image is the second target circle. The position where the second target circle is tangent to the transverse safety belt area is the second tangent point. By making a tangent line to the second target circle at the second tangent point, the transverse safety belt tangent line can be obtained. For example, the transverse safety belt tangent line is as follows: Figure 2 As shown by the red line in .
[0087] By using the tangent determination method provided in the embodiment of the present invention, a more reliable line representing the oblique seat belt area and the transverse seat belt area can be obtained, thereby improving the reliability of seat belt wearing posture detection.
[0088] Step 250: When the angle between the transverse seat belt tangent and the oblique seat belt tangent is within a preset angle 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.
[0089] Step 260: When the sum of the areas of the oblique seat belt area and the transverse seat belt area is not greater than a preset area threshold, it is determined that the seat belt wearing posture of the occupant is incorrect.
[0090] Step 270: When it is determined that the seat belt wearing posture of the occupant is incorrect, an abnormal seat belt wearing alarm is issued.
[0091] 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 reminding the occupants to wear the seat belts in the correct posture to ensure driving safety.
[0092] The technical solution of the embodiment of the present invention obtains an image of the occupant of the vehicle and performs image segmentation on the image of the occupant to obtain a corresponding seat belt segmentation result; when the sum of the areas of the oblique seat belt area and the transverse seat belt area is greater than a preset area threshold, in the image of the occupant, a preset oblique seat belt line is determined according to the preset starting and ending points of the seat belt, and a first dot is determined on the perpendicular midline of the preset oblique seat belt line; in the image of the occupant, a preset transverse seat belt line is determined according to the preset end point of the seat belt, and a second dot is determined on the preset transverse seat belt line; a first concentric circle and a second concentric circle are drawn with the first dot and the second dot as dots respectively; and the oblique seat belt tangent and the transverse seat belt tangent are determined in the tangents of the first concentric circle and the second concentric circle respectively; when the angle between the transverse seat belt tangent and the oblique seat belt tangent is within the preset angle range, it is determined that the occupant's seat belt wearing posture is correct; otherwise, it is determined that the occupant's safety belt is not worn properly. The detection method detects the posture of the seat belt in the wrong way and the posture of the seat belt in the wrong way; when the sum of the areas of the oblique seat belt area and the transverse seat belt area is not greater than the preset area threshold, it is determined that the posture of the seat belt in the vehicle is wrong; when it is determined that the posture of the seat belt in the vehicle is wrong, an abnormal seat belt wearing alarm is issued, which solves the problem of detecting the posture of the seat belt, and determines whether the wearing posture of the seat belt is correct through the dual mechanisms of the area of the seat belt area and the angle between the tangents of the seat belt, thereby improving the detection accuracy and robustness and ensuring the driving safety of the vehicle; through image processing and computer vision technology, the intelligence level of seat belt detection is improved, and the dependence on manual inspection is reduced. At the same time, a more advanced safety feature tool is provided for the integration of intelligent vehicle systems, which can promote the advancement of intelligent vehicle technology; through the real-time feedback mechanism, the vehicle safety performance can be enhanced and the driving experience can be improved; in addition, the method is not limited to the detection of seat belts of specific models, brands and specific locations, and has wide applicability and promotion value.
[0093] 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) are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0094] Embodiment 3
[0095] 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 segmentation result determination module 510, a seat belt tangent drawing module 520 and a seat belt wearing posture detection module 530. Among them:
[0096] The seat belt segmentation result 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 corresponding seat belt segmentation result; the seat belt segmentation result includes a diagonal seat belt area and a transverse seat belt area;
[0097] A seat belt tangent drawing module 520 is used to draw a transverse seat belt tangent and a diagonal seat belt tangent in the vehicle occupant image by geometric means when the sum of the areas of the diagonal seat belt area and the transverse seat belt area is greater than a preset area threshold;
[0098] The seat belt wearing posture detection module 530 is used to determine whether the seat belt wearing posture of the occupant is correct according to the angle between the transverse seat belt tangent line and the oblique seat belt tangent line.
[0099] Optionally, the seat belt tangent drawing module 520 includes:
[0100] A first dot determination unit is used to determine a preset oblique seat belt line according to preset start and end points of the seat belt in the image of the person in the vehicle, and to determine a first dot on the perpendicular midline of the preset oblique seat belt line;
[0101] A second dot determination unit is used to determine a preset transverse seat belt line according to a preset end point of the seat belt in the image of the person in the vehicle, and to determine a second dot on the preset transverse seat belt line;
[0102] A seat belt tangent drawing unit is used to draw a first concentric circle and a second concentric circle with the first circle point and the second circle point as the circle points respectively; and determine the oblique seat belt tangent and the transverse seat belt tangent in the tangents of the first concentric circle and the second concentric circle respectively.
[0103] Optionally, the first round point determination unit includes:
[0104] A first round point determination subunit is used to determine, on the perpendicular midline of the oblique seat belt preset line, a point that is half the length of the oblique seat belt preset line from the oblique seat belt preset line as the first round point;
[0105] The second round point determination unit includes:
[0106] The second point determination subunit is used to determine, on the transverse seat belt preset line, a point whose distance from the diagonal seat belt preset line is half the length of the diagonal seat belt preset line as the second point.
[0107] Optional, safety belt tangent drawing unit, including:
[0108] A first target circle determination subunit is used to determine, in the first concentric circle, a first target circle that does not contain a non-oblique safety belt area at a position on the same side as the oblique safety belt area within the circle and has maximum contact with the oblique safety area;
[0109] The oblique safety belt tangent drawing subunit is used to draw the tangent line between the first target circle and the oblique safety belt area as the oblique safety belt tangent line;
[0110] A second target circle determination subunit is used to determine, in the second concentric circle, a second target circle that does not include a non-lateral safety belt area in the circle at the same side as the lateral safety belt and has maximum contact with the lateral safety area;
[0111] The transverse safety belt tangent drawing subunit is used to draw the tangent between the second target circle and the transverse safety belt area as the transverse safety belt tangent.
[0112] Optionally, the seat belt wearing posture detection module 530 includes:
[0113] The first seat belt wearing posture detection unit is used to determine that the seat belt wearing posture of the occupant is correct when the angle between the transverse seat belt tangent and the oblique seat belt tangent is within a preset angle range; otherwise, it is determined that the seat belt wearing posture of the occupant is incorrect.
[0114] Optionally, the device further includes:
[0115] The second seat belt wearing posture detection unit is used to determine that the seat belt wearing posture of the occupant is wrong when the sum of the areas of the oblique seat belt area and the transverse seat belt area is not greater than a preset area threshold.
[0116] Optionally, the device comprises:
[0117] The abnormal alarm module is used to issue a seat belt wearing abnormality alarm when it is determined that the seat belt wearing posture of the occupant is incorrect.
[0118] 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.
[0119] Embodiment 4
[0120] Figure 6 A 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.
[0121] like Figure 6As 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.
[0122] 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.
[0123] 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.
[0124] 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).
[0125] 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.
[0126] 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.
[0127] 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.
[0128] 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).
[0129] 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.
[0130] 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.
[0131] 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.
[0132] 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 corresponding seat belt segmentation result; The seat belt segmentation result includes a diagonal seat belt area and a transverse seat belt area; When the sum of the areas of the oblique seat belt area and the transverse seat belt area is greater than a preset area threshold, a transverse seat belt tangent line and an oblique seat belt tangent line are drawn in the in-vehicle person image in a geometric manner; Whether the seat belt wearing posture of the occupant is correct is determined based on the angle between the transverse seat belt tangent line and the oblique seat belt tangent line.
2. The method according to claim 1, characterized in that Drawing a transverse seat belt tangent line and an oblique seat belt tangent line in the vehicle interior person image by geometric means includes: In the image of the person in the vehicle, a preset oblique seat belt line is determined according to preset start and end points of the seat belt, and a first round point is determined on the perpendicular midline of the preset oblique seat belt line; In the vehicle occupant image, a transverse seat belt preset line is determined according to a preset end point of the seat belt, and a second dot is determined on the transverse seat belt preset line; A first concentric circle and a second concentric circle are drawn with the first circle point and the second circle point as the circle points respectively; and an oblique seat belt tangent line and a transverse seat belt tangent line are determined respectively among the tangent lines of the first concentric circle and the second concentric circle.
3. The method according to claim 2, characterized in that Determining a first point on the perpendicular midline of the oblique seat belt preset line includes: On the perpendicular midline of the oblique seat belt preset line, a point that is half the length of the oblique seat belt preset line from the oblique seat belt preset line is determined as a first round point; Determining a second round point on the transverse seat belt preset line includes: On the transverse seat belt preset line, a point whose distance from the diagonal seat belt preset line is half the length of the diagonal seat belt preset line is determined as a second round point.
4. The method according to claim 3, characterized in that In the tangents of the first concentric circle and the second concentric circle, the oblique seat belt tangent and the transverse seat belt tangent are determined respectively, including: In the first concentric circle, determine a first target circle that does not contain a non-diagonal safety belt area on the same side as the diagonal safety belt area and has maximum contact with the diagonal safety area; Draw a tangent line between the first target circle and the oblique safety belt area as the oblique safety belt tangent line; In the second concentric circle, determine a second target circle that does not include a non-lateral safety belt area in the circle at the same side as the lateral safety belt and has maximum contact with the lateral safety area; A tangent line between the second target circle and the transverse safety belt area is drawn as the transverse safety belt tangent line.
5. The method according to claim 1, characterized in that Determining whether the seat belt wearing posture of the occupant is correct according to the angle between the transverse seat belt tangent line and the oblique seat belt tangent line includes: When the angle between the transverse seat belt tangent line and the oblique seat belt tangent line is within a preset angle range, it is determined that the seat belt wearing posture of the occupant is correct; Otherwise, it is determined that the seat belts of the occupants are worn in the wrong posture.
6. The method according to claim 1, characterized in that Also includes: When the sum of the areas of the oblique seat belt area and the transverse seat belt area is not greater than a preset area threshold, it is determined that the seat belt wearing posture of the occupant is incorrect.
7. The method according to claim 6, characterized in that Also includes: When it is determined that the seat belt wearing posture of the occupant is incorrect, an abnormal seat belt wearing alarm is issued.
8. A seat belt wearing posture detection device, characterized in that: include: A seat belt segmentation result 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 corresponding seat belt segmentation result; the seat belt segmentation result includes an oblique seat belt area and a transverse seat belt area; A seat belt tangent drawing module, used for drawing a transverse seat belt tangent and a diagonal seat belt tangent in the vehicle occupant image by a geometric method when the sum of the areas of the diagonal seat belt area and the transverse seat belt area is greater than a preset area threshold; 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 angle between the transverse seat belt tangent line and the oblique seat belt tangent line.
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
Safety belt detection method based on driver monitoring system and corresponding equipment
CN110458093A
Safety belt detection method and device and electronic equipment
CN113269005A
Safety belt detection method, device and equipment and storage medium
CN114550144A
Safety belt wearing detection method, device and equipment and medium
CN118038416A
Road surface division mark recognition apparatus, and lane departure prevention apparatus
US20100060738A1
Cited By
Seat belt wearing posture detection method and apparatus, device and storage medium
WO2025241399A1
