Safety belt loose state detection method, device and equipment and storage medium
By detecting the slack state of the seat belt in the vehicle and using image processing technology to determine the angle between the seat belt wearing boundary line and the target horizontal line, the problem of insufficient detection of the seat belt slack state in the existing technology is solved and the protective effect of the seat belt is improved. and driving safety.
Patent Information
- Application Number
- CN202410655106.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 detection of the slack state of the seat belt, which results in the reduction of the protective effect of the seat belt in emergency situations and the inability to effectively urge vehicle occupants to wear seat belts in a standardized manner.
By acquiring the image of the person in the vehicle, determine the target area of interest from the top of the shoulder to the seat belt storage position, extract the seat belt image, determine the angle between the seat belt wearing boundary line and the target horizontal line, determine the slack state of the seat belt, and determine the slack state of the seat belt. An abnormality alarm is issued below.
It achieves accurate detection of the slack state of the seat belt, improves the protective function of the seat belt, ensures that people in the car wear seat belts in a standardized manner, and significantly improves driving safety.
Smart Images

Figure CN118609099A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of image processing, and in particular to a method, device, equipment and storage medium for detecting the slack state of a seat belt. 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 the seat belt usually only determines whether the seat belt is fastened, but lacks the inspection of the wearing state of the seat belt. In practice, when the seat belt is too loose, the protective effect of the seat belt in an emergency will be greatly reduced. Therefore, it is very necessary to inspect the loose state of the seat belt to urge the occupants to wear the seat belt properly. Summary of the invention
[0004] The present invention provides a method, device, equipment and storage medium for detecting the relaxed state of a seat belt, so as to detect the relaxed state of the seat belt and urge people in the vehicle to wear the seat belt in a standardized manner.
[0005] According to one aspect of the present invention, a method for detecting a relaxed state of a seat belt is provided, the method comprising:
[0006] Acquire an image of a person in the vehicle, and determine a target region of interest from above the shoulder of the person in the vehicle to the seat belt storage position and including the seat belt in the image of the person in the vehicle;
[0007] Determine a seat belt wearing boundary line according to the seat belt image in the target area of interest, and determine an angle between the seat belt wearing boundary line and a target horizontal line;
[0008] The slack state of the seat belt is determined according to the angle.
[0009] Optionally, an image of a person in the vehicle is obtained, and a target region of interest from above the shoulder of the person in the vehicle to the seat belt storage position and including the seat belt is determined in the image of the person in the vehicle, including:
[0010] 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 person in the vehicle area and a seat belt area;
[0011] In the seat belt area, an area that does not overlap with the occupant area is extracted as a target region of interest.
[0012] Optionally, determining a seat belt wearing boundary line according to the seat belt in the target area of interest includes:
[0013] Determining a seat belt storage point and a boundary point of a lower edge of the seat belt according to the seat belt image in the target area of interest;
[0014] The seat belt storage point and the boundary point are connected to obtain a seat belt wearing boundary line.
[0015] Optionally, the target horizontal line is in the same direction as the transverse safety belt;
[0016] Determining a seat belt slack state according to the angle includes:
[0017] When the angle is smaller than a preset angle, it is determined that the seat belt is in a tight state; otherwise, it is determined that the seat belt is in a loose state.
[0018] Optionally, an image of a person in the vehicle is obtained, and a target region of interest from above the shoulder of the person in the vehicle to the seat belt storage position and including the seat belt is determined in the image of the person in the vehicle, including:
[0019] An image of a person in the vehicle is acquired, and a target region of interest from above the shoulder of the person in the vehicle to the seat belt storage position and including the seat belt is determined in the image of the person in the vehicle by means of geometric drawing.
[0020] Optionally, the method further includes:
[0021] When it is determined that the seat belt of the occupant is in a loose state, an abnormal seat belt wearing alarm is issued.
[0022] According to another aspect of the present invention, there is provided a device for detecting a relaxed state of a seat belt, the device comprising:
[0023] A target region of interest determination module is used to obtain an image of a person in the vehicle and determine a target region of interest from above the shoulder of the person in the vehicle to the seat belt storage position and including the seat belt in the image of the person in the vehicle;
[0024] An angle determination module, used to determine a seat belt wearing boundary line according to the seat belt image in the target area of interest, and determine an angle between the seat belt wearing boundary line and a target horizontal line;
[0025] The seat belt slack state determining module is used to determine the seat belt slack state according to the angle.
[0026] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0027] at least one processor; and
[0028] a memory communicatively connected to the at least one processor; wherein,
[0029] 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 slack state detection method described in any embodiment of the present invention.
[0030] 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 slack state detection method described in any embodiment of the present invention when executed.
[0031] 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 method for detecting a seat belt slack state according to any embodiment of the present invention is implemented.
[0032] The technical solution of the embodiment of the present invention obtains an image of the occupant of the vehicle, and determines a target area of interest from above the shoulder of the occupant to the seat belt storage position in the image of the occupant and including the seat belt; determines a seat belt wearing boundary line based on the seat belt image in the target area of interest, and determines an angle between the seat belt wearing boundary line and the target horizontal line; determines a seat belt relaxation state based on the angle, thereby solving the problem of detecting the seat belt relaxation state. The method detects the seat belt relaxation state based on the area of interest, so as to urge the occupants to wear the seat belts properly and enhance the protective function of the seat belts.
[0033] 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
[0034] 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.
[0035] Figure 1 is a flow chart of a method for detecting a seat belt slack state according to Embodiment 1 of the present invention;
[0036] Figure 2 is a schematic diagram of a target region of interest provided according to Embodiment 1 of the present invention;
[0037] Figure 3 is a schematic diagram of detecting a seat belt slack state according to Embodiment 1 of the present invention;
[0038] Figure 4 is a flow chart of a method for detecting a seat belt slack state according to a second embodiment of the present invention;
[0039] Figure 5 is a schematic diagram of determining a target region of interest based on a geometric drawing method according to a second embodiment of the present invention;
[0040] Figure 6 is a structural schematic diagram of a seat belt slack state detection device provided according to Embodiment 3 of the present invention;
[0041] Figure 7 It is a structural schematic diagram of an electronic device for implementing the seat belt slack state detection method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0042] 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.
[0043] 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.
[0044] Embodiment 1
[0045] Figure 1 This is a flowchart of a seat belt slack state detection method according to the first embodiment of the present invention. This embodiment is applicable to the case of detecting the slack state of seat belts worn by people in a vehicle. The method can be performed by a seat belt slack state detection device. The seat belt slack state detection device can be implemented in the form of hardware and / or software. The seat belt slack state 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:
[0046] Step 110: Acquire an image of the occupant of the vehicle, and determine a target region of interest from above the occupant's shoulder to the seat belt storage position and including the seat belt in the image of the occupant.
[0047] 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.
[0048] In order to further improve the accuracy of seat belt wearing 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 loosening state detection.
[0049] Before obtaining the image of the person in the vehicle for processing, the image of the person in the vehicle can also be preprocessed. 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 loose state of the seat belt.
[0050] In an embodiment of the present invention, the target region of interest is a region that can represent the relaxed state of the seat belt. The inventors found in actual research that when the seat belt is relaxed, it usually first manifests itself near the fixed point above the seat belt, that is, the storage position. Since the human body region has a certain influence on the detection of the relaxed state of the seat belt, for example, the human body clothing is blocked. There will be a high deviation in detecting the relaxed state of the seat belt through the human body region. Therefore, in an embodiment of the present invention, the area above the shoulder of the occupant to the seat belt storage position and including the seat belt in the image of the occupant is used as the target region of interest. Figure 2 FIG. 1 is a schematic diagram of a target region of interest provided according to Embodiment 1 of the present invention. Figure 2 As shown in the figure, the purple area is the target area of interest. The purple area and the yellow area together constitute the safety belt area.
[0051] In a specific application, when the seat belt slack state of the main driver is detected, the area from the left shoulder of the main driver (the right shoulder in the image of the person in the car) to the seat belt storage position and including the seat belt can be used as the target area of interest. When the seat belt slack state of the co-driver is detected, the area from the right shoulder of the co-driver (the left shoulder in the image of the person in the car) to the seat belt storage position and including the seat belt can be used as the target area of interest.
[0052] There are many ways to extract the target region of interest. For example, the image segmentation technology can be used to segment the target region of interest in the image. Alternatively, a geometric drawing method can be used to draw a map in the image of the person in the car to extract the target region of interest. Alternatively, the coordinate positioning method can be used to intercept the image in the image of the person in the car to obtain the target region of interest.
[0053] By extracting the target region of interest to evaluate the seat belt slack state, the influence of the background area and the human body area on the detection accuracy can be avoided, thereby improving the detection reliability.
[0054] Step 120: Determine a seat belt wearing boundary line based on the seat belt image in the target region of interest, and determine an angle between the seat belt wearing boundary line and the target horizontal line.
[0055] Among them, the seat belt image in the target region of interest can be obtained in a variety of ways according to the determination method of the target region of interest. For example, when the target region of interest is obtained by image segmentation, the seat belt image is consistent with the target region of interest. For another example, when the target region of interest is obtained by geometric drawing or coordinate positioning, the seat belt image in the target region of interest can be obtained by deep learning model recognition, image segmentation technology, or background calibration.
[0056] The seat belt wearing boundary line may be a lower boundary line, an upper boundary line, or a middle line when the seat belt is worn in the seat belt image. For example, Figure 3 1 is a schematic diagram of detecting the slack state of a seat belt according to the first embodiment of the present invention. Figure 3 As shown, the purple area is the target area of interest, and the green line is the seat belt wearing boundary line.
[0057] In an optional implementation of an embodiment of the present invention, a seat belt wearing boundary line is determined based on the seat belt in the target area of interest, including: determining the seat belt storage point and the boundary point of the lower edge of the seat belt based on the seat belt image in the target area of interest; connecting the seat belt storage point and the boundary point to obtain the seat belt wearing boundary line.
[0058] like Figure 3As shown in the figure, the yellow dot is the seat belt storage point, and the white dot is the boundary point of the lower edge of the seat belt. In actual application, when the seat belt slack state of the person on the main driver's side is detected, the rightmost point in the seat belt image can be determined as the boundary point of the lower edge of the seat belt. When the seat belt slack state of the person on the co-pilot side is detected, the leftmost point in the seat belt image can be determined as the boundary line of the lower edge of the seat belt. Figure 3 As shown, connect the seat belt storage point and the boundary point to get a green line, which is the seat belt wearing boundary line.
[0059] like Figure 3 As shown, the target horizontal line can be a line extending in the lateral direction of the seat belt. Specifically, when the seat belt slack state of the person on the main driver's side is detected, the target horizontal line can be a line extending horizontally to the right, that is, Figure 3 When detecting the seat belt slack state of a person on the front passenger seat side, the target horizontal line may be a line extending horizontally to the left.
[0060] Step 130: Determine the slack state of the seat belt according to the angle.
[0061] There are many situations in which the seat belt slack state can be determined based on the angle. Figure 3 As shown, when the target horizontal line is a line extending in the transverse direction of the seat belt, when the angle is less than a preset angle, the seat belt state is determined to be a tight state; otherwise, the seat belt state is determined to be a loose state.
[0062] Alternatively, when the target horizontal line is a line extending in the opposite direction of the lateral seat belt, when the angle is greater than the set angle, the seat belt state is determined to be a tight state; otherwise, the seat belt state is determined to be a loose state. The set angle can be any value greater than 90 degrees.
[0063] In an optional implementation of the embodiment of the present invention, the target horizontal line is in the same direction as the transverse seat belt; and the relaxed state of the seat belt is determined based on the angle, including: when the angle is less than a preset angle, determining that the seat belt is in a taut state; otherwise, determining that the seat belt is in a relaxed state.
[0064] The preset angle may be any value less than or equal to 90 degrees. For example, the preset angle may be any value between 45 degrees and 90 degrees. For example, the preset angle may be 90 degrees, 60 degrees, or 45 degrees.
[0065] Based on the above implementation, the method may further include: when it is determined that the seat belt is worn by the occupant in the vehicle in a loose state, 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 occupant to wear the seat belt to ensure driving safety.
[0066] The technical solution of this embodiment obtains an image of the occupant of the vehicle, and determines a target area of interest from above the shoulder of the occupant to the seat belt storage position in the image of the occupant, and including the seat belt; determines a seat belt wearing boundary line based on the seat belt image in the target area of interest, and determines an angle between the seat belt wearing boundary line and the target horizontal line; determines a seat belt relaxation state based on the angle, thereby solving the problem of detecting the seat belt relaxation state. The method detects the seat belt relaxation state based on the area of interest, so as to urge the occupants to wear the seat belts properly and enhance the protective function of the seat belts.
[0067] Embodiment 2
[0068] Figure 4 1 is a flow chart of a method for detecting the relaxed state of a seat belt according to Embodiment 2 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 each optional solution in one or more of the above embodiments. Figure 4 As shown, the method includes:
[0069] Step 410: Acquire an image of the occupant of the vehicle, and determine a target region of interest from above the occupant's shoulder to the seat belt storage position and including the seat belt in the image of the occupant.
[0070] In an optional implementation of an embodiment of the present invention, an image of a person in a vehicle is obtained, and a target region of interest from above the shoulder of the person in the vehicle to a storage position of a seat belt and including the seat belt in the image of the person in the vehicle is determined, including: obtaining an image of the person in the vehicle, and performing image segmentation on the image of the person in the vehicle to obtain a person in the vehicle region and a seat belt region; in the seat belt region, extracting a non-overlapping region with the person in the vehicle region as the target region of interest.
[0071] The image segmentation method is not specifically limited in the embodiments of the present invention. For example, the seat belt can be segmented out in the image by a deep learning model or a traditional image processing method. Exemplarily, the segmentation of the in-car personnel area and the seat belt area can be achieved by training a semantic segmentation model such as HRNet. The segmentation accuracy can be pixel-level. By performing image segmentation through a deep learning model, a variety of human body shapes can be considered, the accuracy of seat belt segmentation can be improved, and the applicability and robustness of seat belt slack state detection can be improved. When performing image segmentation, in addition to segmenting the in-car personnel area and the seat belt area, the background area can also be segmented.
[0072] 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 vehicle interior area and the seat belt area in the vehicle interior image. In the image annotation, the background area can also be annotated. 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 vehicle interior area and the seat belt area, providing a basis for judging the correctness of the seat belt relaxation state.
[0073] like Figure 2 As shown, the black area is the background area, the blue area is the area for the people in the car. The yellow area and the purple area together constitute the seat belt area. Among them, the purple area is the area in the seat belt area that does not overlap with the area for the people in the car, that is, the target area of interest.
[0074] By extracting the target region of interest through image segmentation technology, the extracted target region of interest can best represent the seat belt loose state, thereby improving the detection reliability of the seat belt loose state.
[0075] In an optional implementation of an embodiment of the present invention, an image of a person in a vehicle is obtained, and a target area of interest from above the shoulders of the person in the vehicle to a storage position of a seat belt, including the seat belt, is determined in the image of the person in the vehicle, including: an image of a person in the vehicle is obtained, and through geometric drawing, a target area of interest from above the shoulders of the person in the vehicle to a storage position of a seat belt, including the seat belt, is determined in the image of the person in the vehicle.
[0076] The geometric drawing method aims to obtain a target region of interest from above the shoulder of the occupant to the seat belt storage position in the occupant image, including the seat belt. The specific geometric drawing method is not specifically limited in the embodiments of the present invention.
[0077] Figure 5 FIG. 1 is a schematic diagram of determining a target region of interest based on a geometric drawing method according to Embodiment 2 of the present invention. Figure 5As shown, the preset line of the oblique seat belt is determined according to the preset starting and ending points of the seat belt in the image of the person in the vehicle (such as Figure 5 The red line shown in the figure) and the perpendicular line of the pre-set line of the oblique seat belt (such as Figure 5 The first dot is determined on the green line shown in FIG. 1 . The first dot is determined on the green line shown in FIG. 1 . The first dot is determined on the green line shown in FIG. 1 . The first dot is determined on the green line shown in FIG. 1 . The first dot is determined on the green line shown in FIG. 1 . The first dot is determined on the green line shown in FIG. 1 . The first dot is determined on the green line shown in FIG. 1 . The first dot is determined on the green line shown in FIG. 1 . Figure 5 shown as yellow dots).
[0078] The first target circle is drawn with the first point as the center and the length between the first center and the starting point or the end point of the preset start and end points as the radius. In the first target circle, a first arc formed by the preset start and end points (such as Figure 5 The first region of interest formed by the oblique seat belt preset line and the first arc is determined.
[0079] In the image of the person in the vehicle, the transverse seat belt preset line (such as Figure 5 The blue line shown in the figure) and determine the endpoint of the second circle on the transverse seat belt preset line (as shown in the figure) Figure 5 The second circle endpoint is determined on the transverse seat belt preset line, including: starting from the preset end point, determining the second circle endpoint at a certain distance on the transverse seat belt preset line. For example, the distance from the preset end point to the shoulder position of the occupant close to the preset starting point can be used as the reference distance. Starting from the preset end point, the second circle endpoint is determined on the transverse seat belt preset line along the transverse seat belt direction at intervals of the reference distance.
[0080] The second target circle is drawn with the preset end point as the center and the length between the preset end point and the second circle end point as the radius. The second region of interest (i.e., Figure 5 As shown, the closed area formed by the red line, blue line and purple arc).
[0081] In the first region of interest, the non-overlapping region with the second region of interest is extracted as the target region of interest, that is, Figure 5 The yellow area shown.
[0082] Through Figure 5 The geometric drawing method shown can obtain the target region of interest. Then, in the target region of interest, the seat belt image can be determined to detect the seat belt slack state. Figure 5In the manner shown in FIG. 1 , the target region of interest obtained includes the non-seat belt area, so further analysis is required. Figure 5 The target area of interest shown in the figure is used to extract the image of the seat belt image. Figure 2 The target region of interest obtained by the image segmentation method shown is the seat belt image, and no further image extraction is required.
[0083] Step 420: Determine the seat belt storage point and the boundary point of the lower edge of the seat belt according to the seat belt image in the target area of interest.
[0084] Step 430: Connect the seat belt storage point and the boundary point to obtain a seat belt wearing boundary line, and determine the angle between the seat belt wearing boundary line and the target horizontal line.
[0085] Among them, the target horizontal line is in the same direction as the transverse safety belt.
[0086] Step 440: When the angle is less than the preset angle, determine that the seat belt is in a tight state; otherwise, determine that the seat belt is in a loose state.
[0087] Step 450: When it is determined that the seat belt of the occupant is in a loose state, an abnormal seat belt wearing alarm is issued.
[0088] The technical solution of the embodiment of the present invention obtains an image of the occupant of the vehicle, and determines a target area of interest from above the shoulder of the occupant to the seat belt storage position in the image of the occupant, and including the seat belt; determines the seat belt storage point and the boundary point of the lower edge of the seat belt according to the seat belt image in the target area of interest; connects the seat belt storage point and the boundary point to obtain the seat belt wearing boundary line, and determines the angle between the seat belt wearing boundary line and the target horizontal line; the target horizontal line is in the same direction as the transverse seat belt; when the angle is less than a preset angle, determines that the seat belt is in a tight state; otherwise, determines that the seat belt is in a loose state; when it is determined that the occupant is in a loose state wearing the seat belt, issues an abnormal seat belt wearing alarm, thereby solving the problem of detecting the loose state of the seat belt. The method detects the slack state of the seat belt based on the region of interest, and only evaluates the slack state of the seat belt from the seat belt fixing point in the car to the human body, avoiding the influence of the human body on the detection result; the angle comparison method can minimize the complexity of detection and improve the detection efficiency; when the seat belt is loose, an abnormal alarm is issued, which can remind the driver to adjust it in time, so that the seat belt can play the maximum protective role in an emergency and significantly improve driving safety; this method improves the intelligent level of seat belt use, reduces the false alarm rate, and improves the system reliability; and this method is not limited to the detection of the slack state of the seat belt in a specific vehicle model, a specific location and a specific driving environment, and has a wide range of applicability and application prospects, which can promote the intelligent development of vehicles.
[0089] 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.
[0090] Embodiment 3
[0091] Figure 6 Schematic diagram of the structure of a seat belt slack state detection device provided according to the third embodiment of the present invention. Figure 6 As shown, the device includes: a target region of interest determination module 610, an angle determination module 620 and a seat belt slack state determination module 630. Among them:
[0092] The target region of interest determination module 610 is used to obtain an image of a person in the vehicle and determine a target region of interest from above the shoulder of the person in the vehicle to the seat belt storage position and including the seat belt in the image of the person in the vehicle;
[0093] An angle determination module 620, for determining a seat belt wearing boundary line according to the seat belt image in the target area of interest, and determining an angle between the seat belt wearing boundary line and the target horizontal line;
[0094] The seat belt slack state determining module 630 is used to determine the seat belt slack state according to the included angle.
[0095] Optionally, the target region of interest determination module 610 includes:
[0096] An image segmentation unit 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 person in the vehicle area and a seat belt area;
[0097] The first target region of interest determining unit is used to extract a non-overlapping region with the vehicle occupant region in the seat belt region as the target region of interest.
[0098] Optionally, the angle determination module 620 is specifically configured to:
[0099] According to the seat belt image in the target area of interest, the seat belt storage point and the boundary point of the lower edge of the seat belt are determined;
[0100] Connect the seat belt storage point and the boundary point to obtain the seat belt wearing boundary line.
[0101] Optionally, the target horizontal line is in the same direction as the transverse seat belt;
[0102] The seat belt slack state determination module 630 includes:
[0103] The seat belt slack state determining unit is used to determine that the seat belt state is a tight state when the included angle is less than a preset angle; otherwise, determine that the seat belt state is a slack state.
[0104] Optionally, the target region of interest determination module 610 includes:
[0105] The second target region of interest determination unit is used to obtain an image of the occupant of the vehicle and determine a target region of interest from above the occupant's shoulder to the seat belt storage position and including the seat belt in the image of the occupant through geometric drawing.
[0106] Optionally, the device further includes:
[0107] The abnormal alarm module is used to issue an abnormal seat belt wearing alarm when it is determined that the seat belt is in a loose state.
[0108] The seat belt slack state detection device provided in the embodiment of the present invention can execute the seat belt slack state detection method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0109] Embodiment 4
[0110] Figure 7 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.
[0111] like Figure 7As 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.
[0112] 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.
[0113] 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 special 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 slack state detection method.
[0114] In some embodiments, the seat belt slack state detection method may 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 may 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 slack state detection method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the seat belt slack state detection method in any other appropriate manner (e.g., by means of firmware).
[0115] 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.
[0116] 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.
[0117] 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.
[0118] 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).
[0119] 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.
[0120] 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.
[0121] 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.
[0122] 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 slack state, It is characterized in that include: Acquire an image of a person in the vehicle, and determine a target region of interest from above the shoulder of the person in the vehicle to the seat belt storage position and including the seat belt in the image of the person in the vehicle; Determine a seat belt wearing boundary line according to the seat belt image in the target area of interest, and determine an angle between the seat belt wearing boundary line and a target horizontal line; The slack state of the seat belt is determined according to the angle.
2. The method according to claim 1, It is characterized in that Acquire an image of a person in the vehicle, and determine a target region of interest from above the shoulder of the person in the vehicle to the seat belt storage position and including the seat belt in the image of the person in the vehicle, including: 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 person in the vehicle area and a seat belt area; In the seat belt area, an area that does not overlap with the occupant area is extracted as a target region of interest.
3. The method according to claim 1, It is characterized in that Determining a seat belt wearing boundary line according to the seat belt in the target area of interest includes: Determining a seat belt storage point and a boundary point of a lower edge of the seat belt according to the seat belt image in the target area of interest; The seat belt storage point and the boundary point are connected to obtain a seat belt wearing boundary line.
4. The method according to claim 1, It is characterized in that The target horizontal line is in the same direction as the transverse safety belt; Determining a seat belt slack state according to the angle includes: When the angle is smaller than a preset angle, determining that the seat belt is in a tight state; Otherwise, it is determined that the seat belt state is a loose state.
5. The method according to claim 1, It is characterized in that Acquire an image of a person in the vehicle, and determine a target region of interest from above the shoulder of the person in the vehicle to the seat belt storage position and including the seat belt in the image of the person in the vehicle, including: An image of a person in the vehicle is acquired, and a target region of interest from above the shoulder of the person in the vehicle to the seat belt storage position and including the seat belt is determined in the image of the person in the vehicle by means of geometric drawing.
6. The method according to claim 1, It is characterized in that Also includes: When it is determined that the seat belt of the occupant is in a loose state, an abnormal seat belt wearing alarm is issued.
7. A device for detecting the slack state of a seat belt, It is characterized in that include: A target region of interest determination module is used to obtain an image of a person in the vehicle and determine a target region of interest from above the shoulder of the person in the vehicle to the seat belt storage position and including the seat belt in the image of the person in the vehicle; An angle determination module, used to determine a seat belt wearing boundary line according to the seat belt image in the target area of interest, and determine an angle between the seat belt wearing boundary line and a target horizontal line; The seat belt slack state determining module is used to determine the seat belt slack state according to the angle.
8. An electronic device, It is 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 slack state detection method according to any one of claims 1 to 6.
9. A computer-readable storage medium, It is 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 slack state detection method according to any one of claims 1 to 6 when executed.
10. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the method for detecting a seat belt slack state according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Detection method for standard wearing of safety belt, reminding system for standard wearing of safety belt and control method for reminding system
CN105946786A
Safety belt detection method based on driver monitoring system and corresponding equipment
CN110458093A
Internal combustion engine with heat accumulating device
US20020005178A1
Intrusion detecting apparatus for a vehicle
US5808544A
Cited By
Seat belt slack state detection method and apparatus, device, and storage medium
WO2025241401A1
