Region-of-interest-based safety belt wearing detection method, device and equipment
By determining the preset lines and dots of the seat belt in the image of the person in the car, defining the area of interest, and inputting the classification model, the problem of misjudgment in the existing seat belt wearing detection is solved, the detection accuracy and adaptability are improved, and the Accurate judgment and alarm on seat belt wearing status.
Patent Information
- Application Number
- CN202410655097.3
- 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
Existing seat belt wearing detection methods cannot accurately distinguish whether the seat belt is actually worn, resulting in misjudgment, resulting in low detection accuracy.
By obtaining images of people in the car, determine the oblique and transverse seat belt preset lines, draw target circles and sector areas, define areas of interest, and input them into the seat belt wearing classification model to determine whether the people in the car are wearing seat belts.
It improves the accuracy of seat belt wearing detection, reduces interference from non-interesting areas, enhances the adaptability and stability of detection, and can promptly alarm if the seat belt is not worn.
Smart Images

Figure CN118609096A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of image processing, and in particular to a method, device and equipment for detecting seat belt wearing based on a region of interest. 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 is usually just to determine whether the seat belt is fastened. However, in actual application, some people avoid wearing the seat belt by simply locking the seat belt in the buckle position. Therefore, the seat belt wearing detection method of the prior art will determine the above situation as wearing the seat belt, resulting in low accuracy of the seat belt wearing detection. Summary of the invention
[0004] The present invention provides a method, a device and an apparatus for detecting seat belt wearing based on a region of interest, so as to improve the accuracy of seat belt wearing detection.
[0005] According to one aspect of the present invention, a seat belt wearing detection method based on a region of interest is provided, the method comprising:
[0006] Acquire an image of a person in the vehicle;
[0007] Determine a preset oblique seat belt line according to the preset start and end points of the seat belt in the image of the person in the vehicle, and determine a first point on the perpendicular midline of the preset oblique seat belt line;
[0008] Draw a first target circle with the first circle point as the center and the length between the first circle center and the starting point or the end point of the preset starting and ending points as the radius;
[0009] Determine a target region of interest according to the first target circle, the first center of the circle, and the preset start and end points;
[0010] The target region of interest is input into a preset seat belt wearing classification model to determine whether the occupant of the vehicle is wearing a seat belt.
[0011] Optionally, determining a target region of interest according to the first target circle, the first center of the circle, and the preset start and end points includes:
[0012] In the first target circle, determining a first arc formed by the preset start and end points;
[0013] A first region of interest formed by the oblique seat belt preset line and the first arc is used as a target region of interest; or
[0014] According to the first circle point and the preset start and end points, a first sector-shaped area is determined in the first target circle, and the first sector-shaped area is used as a target region of interest.
[0015] Optionally, determining a target region of interest according to the first target circle, the first center of the circle, and the preset start and end points includes:
[0016] 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 circle endpoint is determined on the transverse seat belt preset line;
[0017] Draw a second target circle 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;
[0018] A target region of interest is determined according to the first target circle, the first circle center, the preset start and end points, the second target circle, and the second circle endpoints.
[0019] Optionally, determining a target region of interest according to the first target circle, the first circle center, the preset start and end points, the second target circle, and the second circle endpoints includes:
[0020] Determine a first region of interest or a first sector region according to the first target circle, the first center of the circle, and the preset start and end points;
[0021] Determine a second sector area according to a second target circle, the preset end point, the second circle end point, and an intersection point between the second target circle and the preset oblique seat belt line;
[0022] A second region of interest formed by overlapping the first region of interest or the first fan-shaped region and the second fan-shaped region is used as a target region of interest.
[0023] Optionally, determining 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 determining a first point on the perpendicular midline of the preset oblique seat belt line includes:
[0024] 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;
[0025] Determining a second circle endpoint on the transverse seat belt preset line includes:
[0026] The intersection of the transverse seat belt preset line and the seat preset boundary vertical line is determined as the second circle endpoint.
[0027] Optionally, the method further includes:
[0028] When it is determined that the occupants of the vehicle are not wearing seat belts, an abnormal seat belt wearing alarm is issued.
[0029] According to another aspect of the present invention, a seat belt wearing detection device based on a region of interest is provided, the device comprising:
[0030] An in-vehicle person image acquisition module is used to acquire an in-vehicle person image of the vehicle;
[0031] A first point determination module, configured 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 determine a first point on a perpendicular midline of the preset oblique seat belt line;
[0032] A first target circle drawing module, used to draw a first target circle with the first circle point as the center and the length between the first circle center and the starting point or the end point of the preset starting and ending points as the radius;
[0033] A target region of interest determination module, configured to determine a target region of interest according to the first target circle, the first center of the circle, and the preset start and end points;
[0034] The seat belt wearing detection module is used to input the target area of interest into a preset seat belt wearing classification model to determine whether the occupant of the vehicle is wearing a seat belt.
[0035] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0036] at least one processor; and
[0037] a memory communicatively connected to the at least one processor; wherein,
[0038] 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 detection method based on the region of interest described in any embodiment of the present invention.
[0039] 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 detection method based on the region of interest described in any embodiment of the present invention when executed.
[0040] According to another aspect of the present invention, a computer program product is provided, including a computer program, wherein when the computer program is executed by a processor, the method for detecting seat belt wearing based on a region of interest according to any embodiment of the present invention is implemented.
[0041] The technical solution of the embodiment of the present invention is as follows: acquiring an image of a person in a vehicle; determining 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 determining a first circle point on the perpendicular midline of the preset oblique seat belt line; drawing a first target circle with the first circle point as the center and the length between the first circle center and the starting point or end point in the preset start and end points as the radius; determining a target region of interest according to the first target circle, the first circle center, and the preset start and end points; inputting the target region of interest into a preset seat belt wearing classification model to determine whether the person in the vehicle is wearing a seat belt, thereby solving the problem of seat belt wearing detection, and being able to detect the seat belt wearing condition based on the region of interest, reducing interference from non-interested regions, improving detection accuracy, and having good adaptability.
[0042] 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
[0043] 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.
[0044] Figure 1 is a flow chart of a seat belt wearing detection method based on a region of interest provided according to Embodiment 1 of the present invention;
[0045] Figure 2 is a schematic diagram of determining a target region of interest provided according to Embodiment 1 of the present invention;
[0046] Figure 3 is a flow chart of a seat belt wearing detection method based on a region of interest provided according to Embodiment 2 of the present invention;
[0047] Figure 4 is a schematic diagram of determining a target region of interest provided according to Embodiment 2 of the present invention;
[0048] Figure 5 is a structural schematic diagram of a seat belt wearing detection device based on a region of interest provided according to Embodiment 3 of the present invention;
[0049] Figure 6 It is a structural schematic diagram of an electronic device for implementing the seat belt wearing detection method based on the region of interest according to an embodiment of the present invention. DETAILED DESCRIPTION
[0050] 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.
[0051] 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.
[0052] Embodiment 1
[0053] Figure 1 This is a flowchart of a seat belt wearing detection method based on an area of interest provided according to the first embodiment of the present invention. This embodiment can be applied to detecting the seat belt wearing status of people in a vehicle. The method can be performed by a seat belt wearing detection device based on an area of interest. The seat belt wearing detection device based on an area of interest can be implemented in the form of hardware and / or software. The seat belt wearing detection device based on an area of interest can be configured in an electronic device such as a vehicle controller or a vehicle processor. Figure 1 As shown, the method includes:
[0054] Step 110: Acquire an image of the person inside the vehicle.
[0055] 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.
[0056] 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 wearing detection.
[0057] Before obtaining the image of the person in the car for processing, the image of the person in the car 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 to provide a more accurate visual basis for seat belt wearing detection.
[0058] Step 120: determine a preset oblique seat belt line according to the preset start and end points of the seat belt in the image of the occupant, and determine a first point on the perpendicular midline of the preset oblique seat belt line.
[0059] The preset start and end points of the seat belt can 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 can be determined on the perpendicular midline of the oblique seat belt preset line.
[0060] In an optional implementation of an embodiment of the present invention, in order to improve the reliability of seat belt wearing detection, 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.
[0061] Figure 2 FIG. 1 is a schematic diagram of determining a target region of interest according to Embodiment 1 of the present invention. Figure 2 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.
[0062] Step 130: Draw a first target circle with the first circle point as the center and the length between the first circle center and the starting point or the end point of the preset starting and ending points as the radius.
[0063] Step 140: Determine a target region of interest according to the first target circle, the first center of the circle, and the preset start and end points.
[0064] The target region of interest may be a region that can represent the wearing status of the seat belt. By performing image recognition on the target region of interest instead of on the image of the person in the vehicle, the interference of the background on the seat belt wearing detection can be eliminated. For example, the interference of factors such as lighting changes and driver's clothing can be effectively reduced, the misjudgment rate can be reduced, and the stability and reliability of the detection results can be ensured.
[0065] In the embodiment of the present invention, the target region of interest may be a local area in the first target circle. Specifically, the target region of interest may be an overlapping area between a connecting line formed by the first center of the circle and the preset start and end points and the first target circle.
[0066] In the embodiment of the present invention, there are many ways to determine the target region of interest. Figure 2 As shown, the first region of interest or the first fan-shaped region can be determined according to the first target circle, the first center of the circle, and the preset start and end points; and the first region of interest or the first fan-shaped region can be used as the target region of interest.
[0067] In an optional implementation of an embodiment of the present invention, a target area of interest is determined based on a first target circle, a first center of a circle, and preset start and end points, including: determining a first arc formed by preset start and end points in the first target circle; taking a first area of interest formed by a preset line of the oblique seat belt and the first arc as the target area of interest; or, determining a first sector area in the first target circle based on the first circle point and the preset start and end points, and taking the first sector area as the target area of interest.
[0068] like Figure 2 As shown, the first arc can be an orange arc. Specifically, the first arc is an arc on the first target circle from a preset starting point (seat belt storage point) to a preset end point (seat belt buckle point) close to the lateral seat belt area. Figure 2 For the main driver's seat shown, the first arc can be a shorter arc near the lower right corner, i.e., an orange arc, determined by the preset start and end points in the first target circle. For another example, for the co-pilot seat, the first arc can be a shorter arc near the lower left corner, determined by the preset start and end points in the first target circle. The first arc is close to the length when the seat belt is worn correctly.
[0069] The first region of interest may be a closed area formed by the oblique seat belt preset line and the first arc. For example, the first region of interest may be as follows Figure 2 The first sector area may be a closed area formed by connecting lines of the first dot and the preset start and end points, and the first arc. For example, the first sector area may be as follows: Figure 2 The blue and purple areas are shown.
[0070] In the embodiment of the present invention, the first region of interest or the first fan-shaped region is used as the target region of interest for image recognition, which can eliminate the interference of the background on the seat belt wearing detection to a certain extent, reduce the misjudgment rate, and ensure the stability and reliability of the detection result. The first region of interest is more representative of the seat belt wearing state than the first fan-shaped region, and the first region of interest is smaller. Therefore, the use of the first region of interest as the target region of interest for image recognition has higher recognition reliability and accuracy than the use of the first fan-shaped region for image recognition, and the data processing amount in image recognition is smaller, and the recognition efficiency is higher.
[0071] Step 150: Input the target region of interest into a preset seat belt wearing classification model to determine whether the occupant of the vehicle is wearing a seat belt.
[0072] Among them, the preset seat belt wearing classification model can be a classification model designed based on a convolutional neural network. For example, the main structural unit of the preset seat belt wearing classification model is a 3×3 convolution layer. When its step size is 2, downsampling processing is implemented, the size of the feature map is halved, and the efficient transmission and gradient propagation of information between different layers are realized through residual connection; finally, the feature map is averaged and pooled, and then sent to the fully connected layer to obtain a two-dimensional output, which represents the classification probability of wearing a seat belt and not wearing a seat belt. The sum of the classification probabilities of wearing a seat belt and not wearing a seat belt is 1. If the probability of wearing a seat belt is less than the probability of not wearing a seat belt, it indicates that the current occupant is not wearing a seat belt; otherwise, it indicates that the current occupant is wearing a seat belt.
[0073] In the embodiment of the present invention, the preset seat belt wearing classification model can be generated by training using sample data in the form of a target region of interest. The sample data can be a kind of labeled data, that is, it can be marked whether the seat belt is worn.
[0074] The above-mentioned seat belt wearing detection method is not limited to the detection of seat belt wearing conditions of any vehicle type or any position in the vehicle, and has high adaptability.
[0075] Based on the above implementation, the method may further include: when it is determined that the occupant is not wearing a seat belt, issuing an abnormal seat belt wearing alarm. 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 a seat belt to ensure driving safety.
[0076] The technical solution of this embodiment is as follows: by acquiring an image of a person in a vehicle; determining 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 determining a first point on the perpendicular midline of the preset oblique seat belt line; drawing a first target circle with the first point as the center and the length between the first center and the starting point or the end point in the preset start and end points as the radius; determining a target region of interest according to the first target circle, the first center, and the preset start and end points; inputting the target region of interest into a preset seat belt wearing classification model to determine whether the person in the vehicle is wearing a seat belt, thereby solving the problem of detecting seat belt wearing, and being able to detect the seat belt wearing condition based on the region of interest, reducing the interference of non-interest regions on the detection, improving the detection accuracy, and having good adaptability.
[0077] Embodiment 2
[0078] Figure 3 It is a flow chart of a seat belt wearing detection method based on an area of interest provided 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 various optional solutions in one or more of the above embodiments.
[0079] Specifically, in an optional implementation of an embodiment of the present invention, a target area of interest is determined based on a first target circle, a first center, and preset start and end points, including: in an image of a person in the vehicle, a transverse seat belt preset line is determined based on a preset end point of the seat belt, and a second circle endpoint is determined on the transverse seat belt preset line; a 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 endpoint as the radius; a target area of interest is determined based on the first target circle, the first center, the preset start and end points, the second target circle, and the second circle endpoint.
[0080] like Figure 3 As shown, the method includes:
[0081] Step 310: Acquire an image of the person inside the vehicle.
[0082] Step 320: determine a preset oblique seat belt line according to the preset start and end points of the seat belt in the image of the occupant, and determine a first point on the perpendicular midline of the preset oblique seat belt line.
[0083] Step 330: Draw a first target circle with the first circle point as the center and the length between the first circle center and the starting point or the end point of the preset starting and ending points as the radius.
[0084] Step 340: 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 circle endpoint on the preset transverse seat belt line.
[0085] Among them, starting from the preset end point of the seat belt, according to the direction of fastening the seat belt, it is horizontally extended to obtain the transverse seat belt preset line. For example, when performing a seat belt wearing test on the main driver, it can be started from the preset end point of the seat belt and horizontally extended to the right to obtain the transverse seat belt preset line. Or, when performing a safety wearer test on the co-pilot, it can be started from the preset end point of the seat belt and horizontally extended to the left to obtain the transverse seat belt preset line. The second circle endpoint can be selected on the transverse seat belt preset line. Exemplarily, starting from the preset end point, the second circle endpoint can be determined 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 person in the car close to the preset starting point can be used as a 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.
[0086] In an optional implementation of the embodiment of the present invention, determining the second circle endpoint on the transverse seat belt preset line includes: determining the intersection of the transverse seat belt preset line and the vertical line of the seat preset boundary as the second circle endpoint.
[0087] Figure 4 FIG. 1 is a schematic diagram of determining a target region of interest according to Embodiment 2 of the present invention. Figure 4 As shown in the figure, the blue horizontal line is the preset line of the transverse seat belt, and the green point on the preset line of the transverse seat belt is the endpoint of the second circle. Figure 4 As shown, when the main driver's seat is tested for wearing the seat belt, the preset boundary vertical line of the seat can be the inner boundary vertical line of the right door, that is, the second circle endpoint can be the intersection of the transverse seat belt and the right door. When the front passenger seat is tested for wearing the seat belt, the preset boundary vertical line of the seat can be the inner boundary vertical line of the left door, that is, the second circle endpoint can be the intersection of the transverse seat belt and the left door. When the middle position of the rear row is tested for wearing the seat belt, the second circle endpoint can be the intersection of the transverse seat belt and the seat preset boundary vertical line in the vertical direction of the preset starting point of the seat belt. When the seat belt wearing test is performed on other positions in the rear row, the method for determining the second circle endpoint can refer to the main driver's seat and the front passenger seat, which will not be repeated here.
[0088] Step 350: Draw a second target circle with the preset end point as the center and the length between the preset end point and the second circle endpoint as the radius.
[0089] Step 360: Determine the target region of interest according to the first target circle, the first circle center, the preset start and end points, the second target circle, and the second circle endpoints.
[0090] Among them, the target area of interest is determined according to the first target circle, the first center of the circle, the preset starting and end points, the second target circle, and the second circle endpoints. It can be based on the first area of interest determined according to the first target circle, the first center of the circle, and the preset starting and end points, or the first fan-shaped area, to further extract an area that better represents the seat belt wearing condition.
[0091] For example, according to the second target circle and the second circle endpoint, the second sector area can be determined, and the overlapping area of the second sector area and the first region of interest, or the first sector area can be used as the target region of interest. The region of interest originally determined according to the first target circle, the first center of the circle, and the preset start and end points can be further reduced by the second target circle and the second circle endpoint, so as to further avoid the influence of the background on the seat belt wearing detection and improve the detection accuracy.
[0092] In an optional implementation of an embodiment of the present invention, a target area of interest is determined based on a first target circle, a first center, preset start and end points, a second target circle, and the second circle endpoints, including: determining a first area of interest, or a first fan-shaped area, based on the first target circle, the first center, and preset start and end points; determining a second fan-shaped area based on a second target circle, a preset end point, the second circle endpoint, and the intersection of the second target circle and a preset line of the oblique seat belt; and using a second area of interest formed by overlapping the first area of interest or the first fan-shaped area with the second fan-shaped area as the target area of interest.
[0093] Among them, according to the first target circle, the first center of the circle, and the preset starting and ending points, the first area of interest or the first fan-shaped area is determined, including: in the first target circle, a first arc formed by the preset starting and ending points is determined; the first area of interest formed by the preset line of the oblique seat belt and the first arc is used as the target area of interest; or, according to the first circle point and the preset starting and ending points, the first fan-shaped area is determined in the first target circle, and the first fan-shaped area is used as the target area of interest.
[0094] In the embodiment of the present invention, the second sector area is a closed area formed by the connection line between the preset end point and the second circle end point, the oblique seat belt preset line, and the second target circle. The second sector area can represent the wearing condition of the seat belt. Figure 4 As shown, the second sector area can be a closed area formed by the red oblique seat belt preset line, the blue transverse seat belt preset line and the second target circle (purple arc line).
[0095] like Figure 4As shown, the second region of interest formed by the overlap of the first region of interest or the first sector-shaped region and the second sector-shaped region may be a yellow region.
[0096] The target region of interest determined in the above manner best represents the wearing condition of the seat belt, and avoids the influence of the seat belt on the detection of the wearing of the seat belt due to its own hanging in the first region of interest or the first sector area even when the seat belt is not worn. The second region of interest can effectively filter the area above the shoulders of the occupants, reduce the probability of misclassification, and make the target region of interest more targeted.
[0097] Step 370: Input the target region of interest into a preset seat belt wearing classification model to determine whether the occupant of the vehicle is wearing a seat belt.
[0098] Step 380: When it is determined that the occupant of the vehicle is not wearing a seat belt, an abnormal seat belt wearing alarm is issued.
[0099] The technical solution of the embodiment of the present invention is as follows: acquiring an image of a person in the vehicle; determining a preset line of an oblique seat belt according to preset start and end points of a seat belt in the image of the person in the vehicle, and determining a first point on the perpendicular midline of the preset line of the oblique seat belt; drawing a first target circle with the first point as the center and the length between the first center and the starting point or the end point in the preset start and end points as the radius; determining a preset line of a transverse seat belt according to a preset end point of the seat belt in the image of the person in the vehicle, and determining a second circle end point on the preset line of the transverse seat belt; drawing a second target circle 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 target area of interest is determined by setting the start and end points, the second target circle, and the endpoint of the second circle; the target area of interest is determined according to the first target circle, the first center, the preset start and end points, the second target circle, and the endpoint of the second circle; when it is determined that the occupants of the vehicle are not wearing seat belts, an abnormal seat belt wearing alarm is issued, which solves the problem of seat belt wearing detection, and the seat belt wearing situation can be detected based on the area of interest, reducing the interference of non-interest areas on the detection, improving the detection accuracy, and having good adaptability; when the driver is not wearing the seat belt, it can prompt adjustment in time to improve driving safety; promote the development and application of intelligent driving technology, and provide support for future intelligent transportation construction.
[0100] 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.
[0101] Embodiment 3
[0102] Figure 5is a schematic diagram of the structure of a safety belt wearing detection device based on a region of interest provided according to Embodiment 3 of the present invention. Figure 5 As shown, the device includes: a vehicle interior person image acquisition module 510, a first circle determination module 520, a first target circle drawing module 530, a target interest region determination module 540 and a seat belt wearing detection module 550. Among them:
[0103] The vehicle interior personnel image acquisition module 510 is used to acquire the vehicle interior personnel image;
[0104] A first point determination module 520, for determining 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 determining a first point on the perpendicular midline of the preset oblique seat belt line;
[0105] A first target circle drawing module 530, for drawing a first target circle with the first circle point as the center and the length between the first circle center and the starting point or the end point of the preset starting and ending points as the radius;
[0106] A target region of interest determination module 540, configured to determine a target region of interest according to the first target circle, the first center of the circle, and the preset start and end points;
[0107] The seat belt wearing detection module 550 is used to input the target region of interest into a preset seat belt wearing classification model to determine whether the occupant of the vehicle is wearing a seat belt.
[0108] Optionally, the target region of interest determination module 540 includes:
[0109] A first arc determining unit, used for determining a first arc formed by preset start and end points in a first target circle;
[0110] a target region of interest determining unit, configured to use a first region of interest formed by the oblique seat belt preset line and the first arc as the target region of interest; or
[0111] The first sector area determination unit is used to determine a first sector area in the first target circle according to the first circle point and the preset start and end points, and use the first sector area as the target region of interest.
[0112] Optionally, the target region of interest determination module 540 includes:
[0113] A second circle endpoint determination unit is used to determine a transverse seat belt preset line according to a preset end point of the seat belt in the image of the person in the vehicle, and determine a second circle endpoint on the transverse seat belt preset line;
[0114] A second target circle drawing unit, used to draw a second target circle with a preset end point as the circle center and a length between the preset end point and an end point of the second circle as the radius;
[0115] The target region of interest determination unit is used to determine the target region of interest according to the first target circle, the first circle center, the preset start and end points, the second target circle, and the second circle endpoints.
[0116] Optionally, the target region of interest determination unit is specifically configured to:
[0117] Determine a first region of interest or a first sector region according to the first target circle, the first center of the circle, and the preset start and end points;
[0118] Determine a second sector area according to the second target circle, the preset end point, the second circle end point, and the intersection of the second target circle and the preset line of the oblique safety belt;
[0119] A second region of interest formed by overlapping the first region of interest or the first fan-shaped region and the second fan-shaped region is used as the target region of interest.
[0120] Optionally, the first point determination module 520 includes:
[0121] A first round point determination unit 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 a first round point;
[0122] Optionally, the second circle endpoint determination unit includes:
[0123] The second circle endpoint determination subunit is used to determine the intersection of the transverse seat belt preset line and the seat preset boundary vertical line as the second circle endpoint.
[0124] Optionally, the device further includes:
[0125] The abnormal alarm module is used to issue a seat belt wearing abnormality alarm when it is determined that the occupants of the vehicle are not wearing seat belts.
[0126] The seat belt wearing detection device based on the region of interest provided in the embodiment of the present invention can execute the seat belt wearing detection method based on the region of interest provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0127] Embodiment 4
[0128] Figure 6A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0129] like Figure 6 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0130] 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.
[0131] 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, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The processor 11 executes the various methods and processes described above, such as a seat belt wearing detection method based on an area of interest.
[0132] In some embodiments, the seat belt wearing detection method based on the region of interest 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 wearing detection method based on the region of interest described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the seat belt wearing detection method based on the region of interest in any other appropriate manner (e.g., by means of firmware).
[0133] 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.
[0134] 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.
[0135] 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.
[0136] 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).
[0137] 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.
[0138] 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.
[0139] 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.
[0140] 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 seat belt wearing detection method based on region of interest, It is characterized in that include: Acquire an image of a person in the vehicle; Determine a preset oblique seat belt line according to the preset start and end points of the seat belt in the image of the person in the vehicle, and determine a first point on the perpendicular midline of the preset oblique seat belt line; Draw a first target circle with the first circle point as the center and the length between the first circle center and the starting point or the end point of the preset starting and ending points as the radius; Determine a target region of interest according to the first target circle, the first center of the circle, and the preset start and end points; The target region of interest is input into a preset seat belt wearing classification model to determine whether the occupant of the vehicle is wearing a seat belt.
2. The method according to claim 1, It is characterized in that Determining a target region of interest according to the first target circle, the first center of the circle, and the preset start and end points includes: In the first target circle, determining a first arc formed by the preset start and end points; A first region of interest formed by the oblique seat belt preset line and the first arc is used as a target region of interest; or According to the first circle point and the preset start and end points, a first sector-shaped area is determined in the first target circle, and the first sector-shaped area is used as a target region of interest.
3. The method according to claim 1, It is characterized in that Determining a target region of interest according to the first target circle, the first center of the circle, and the preset start and end points includes: 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 circle endpoint is determined on the transverse seat belt preset line; Draw a second target circle 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; A target region of interest is determined according to the first target circle, the first circle center, the preset start and end points, the second target circle, and the second circle endpoints.
4. The method according to claim 3, It is characterized in that Determining a target region of interest according to the first target circle, the first circle center, the preset start and end points, the second target circle, and the second circle endpoints includes: Determine a first region of interest or a first sector region according to the first target circle, the first center of the circle, and the preset start and end points; Determine a second sector area according to a second target circle, the preset end point, the second circle end point, and an intersection point between the second target circle and the preset oblique seat belt line; A second region of interest formed by overlapping the first region of interest or the first fan-shaped region and the second fan-shaped region is used as a target region of interest.
5. The method according to claim 3, It is characterized in that Determining a preset oblique seat belt line according to the preset start and end points of the seat belt in the image of the person in the vehicle, and determining a first point on the perpendicular midline of the preset oblique seat belt line, including: 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 circle endpoint on the transverse seat belt preset line includes: The intersection of the transverse seat belt preset line and the seat preset boundary vertical line is determined as the second circle endpoint.
6. The method according to claim 1, It is characterized in that Also includes: When it is determined that the occupants of the vehicle are not wearing seat belts, an abnormal seat belt wearing alarm is issued.
7. A seat belt wearing detection device based on a region of interest, It is characterized in that include: An in-vehicle person image acquisition module is used to acquire an in-vehicle person image of the vehicle; A first point determination module, configured 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 determine a first point on a perpendicular midline of the preset oblique seat belt line; A first target circle drawing module, used to draw a first target circle with the first circle point as the center and the length between the first circle center and the starting point or the end point of the preset starting and ending points as the radius; A target region of interest determination module, configured to determine a target region of interest according to the first target circle, the first center of the circle, and the preset start and end points; The seat belt wearing detection module is used to input the target area of interest into a preset seat belt wearing classification model to determine whether the occupant of the vehicle is wearing a seat belt.
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 wearing detection method based on the region of interest 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 wearing detection method based on a region of interest 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 computer program implements the seat belt wearing detection method based on a region of interest according to any one of claims 1 to 6.
Citation Information
Cited By
Seat belt wearing detection method and apparatus based on region of interest, and device
WO2025241402A1
