Method, device and equipment for identifying safety belt of driver and conductor and medium

Through preprocessing and feature extraction network analysis of in-car images, the seat belt wearing status of drivers and passengers can be accurately identified, which solves the problem of low recognition accuracy in the existing technology and improves detection accuracy and ride safety.

CN118609098APending Publication Date: 2024-09-06CHINA FAW CO LTD +1
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410655105.4
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

Technical Problem

Existing seat belt recognition technology relies on simple physical sensors, which cannot accurately determine the specific position and wearing status of the seat belt. It is easily interfered by light and clothing, resulting in low accuracy of wearing status recognition.

Method used

By obtaining the image of the target monitoring area in the car for pre-processing, a standardized image is generated, a pre-established feature extraction network is used to determine the deep feature map of the grid to be detected, and the safety belt is judged based on the matching degree between the reference feature map and the deep feature map. Wearing condition.

Benefits of technology

It improves the accuracy of seat belt wearing detection, reduces calculation complexity, enhances ride safety, and avoids the impact of factors such as lighting and clothing on detection accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118609098A
    Figure CN118609098A
Patent Text Reader

Abstract

The invention discloses a driver and conductor safety belt identification method, device and equipment and a medium. The method comprises the following steps: acquiring a current image in a target monitoring area in a vehicle, and preprocessing the current image to generate a standardized image; determining a plurality of grids to be detected in the standardized image according to the standardized image and a preset grid division rule; obtaining a deep feature map of each to-be-detected grid by using a pre-established feature extraction network, and determining a grid belonging to the safety belt in the to-be-detected grids according to a plurality of pre-generated reference feature maps and the deep feature map of each to-be-detected grid; and determining a safety belt identification result of the driver and the conductor according to the number of the grids belonging to the safety belt and a preset safety belt grid number range. By adopting the technical scheme, the wearing condition of the safety belt of the driver and the conductor in the vehicle can be detected in real time, the detection accuracy is effectively improved, the calculation complexity is reduced, and the riding safety of the driver and the conductor is further improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image detection technology, and in particular to a method, device, equipment and medium for identifying seat belts of drivers and passengers. Background Art

[0002] In order to improve the driving safety of vehicles, it is necessary to test a number of safety factors of the vehicle through automobile safety technology. Seat belts are an important structure to ensure personal safety. Testing whether drivers and passengers are wearing seat belts effectively can effectively reduce the personal safety impact caused by vehicle accidents.

[0003] Existing seat belt recognition technology mostly relies on simple physical sensors, which cannot accurately determine the specific position and wearing status of the seat belts, and are easily affected by factors such as lighting conditions and the driver's clothing. When the driver and passengers have non-standard wearing postures or the seat belts are partially blocked, the accuracy of seat belt wearing status recognition is low. Summary of the invention

[0004] The present invention provides a method, device, equipment and medium for identifying seat belts of drivers and passengers, which can perform real-time detection of the seat belt wearing status of drivers and passengers in a vehicle, effectively improve the detection accuracy and reduce the calculation complexity, thereby improving the riding safety of drivers and passengers.

[0005] According to one aspect of the present invention, there is provided a method for identifying a seat belt of a driver and a passenger, comprising:

[0006] Obtain the current image within the target monitoring area in the vehicle, and pre-process the current image to generate a standardized image;

[0007] According to the standardized image and a preset grid division rule, a plurality of grids to be detected are determined in the standardized image;

[0008] Using a pre-established feature extraction network, a deep feature map of each to-be-detected grid is obtained, and based on a plurality of pre-generated reference feature maps and the deep feature map of each to-be-detected grid, a grid belonging to a seat belt is determined in the to-be-detected grid;

[0009] The seat belt recognition results of the driver and passengers are determined based on the number of grids belonging to the seat belt and a preset range of the number of seat belt grids.

[0010] According to another aspect of the present invention, there is provided a seat belt identification device for a driver and a passenger, comprising:

[0011] An image preprocessing module is used to obtain the current image in the target monitoring area inside the vehicle, and preprocess the current image to generate a standardized image;

[0012] A to-be-detected grid determination module is used to determine a plurality of to-be-detected grids in the standardized image according to the standardized image and a preset grid division rule;

[0013] A grid detection module, used to obtain a deep feature map of each grid to be detected by using a pre-established feature extraction network, and determine the grid belonging to the seat belt in the grid to be detected based on a plurality of pre-generated reference feature maps and the deep feature map of each grid to be detected;

[0014] The seat belt recognition module is used to determine the seat belt recognition results of the driver and passengers according to the number of grids belonging to the seat belt and the preset range of the number of seat belt grids.

[0015] According to another aspect of the present invention, there is provided an electronic device, the electronic device comprising:

[0016] at least one processor; and

[0017] a memory communicatively connected to the at least one processor; wherein,

[0018] The memory stores a computer program that can be executed 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 identification method for drivers and passengers described in any embodiment of the present invention.

[0019] 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 driver and passenger seat belt identification method described in any embodiment of the present invention when executed.

[0020] The technical solution of the embodiment of the present invention processes the current image in the target monitoring area in the vehicle to generate a standardized image, determines multiple grids to be detected in the standardized image, uses a pre-established feature extraction network to obtain a deep feature map of each grid to be detected, and determines the grids belonging to the seat belts in the grids to be detected based on the pre-generated multiple reference feature maps and the deep feature map of each grid to be detected. According to the number of grids belonging to the seat belts and a preset range of the number of seat belt grids, the seat belt recognition results of the driver and passengers are determined. This method can perform real-time detection of the seat belt wearing status of the driver and passengers in the vehicle, avoids the influence of factors such as light or clothing on the seat belt detection accuracy, effectively improves the detection accuracy and reduces the calculation complexity, thereby improving the riding safety of the driver and passengers.

[0021] 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

[0022] 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.

[0023] Figure 1 is a flow chart of a method for identifying seat belts for drivers and passengers provided according to Embodiment 1 of the present invention;

[0024] Figure 2 is a flow chart of another method for identifying seat belts for drivers and passengers provided according to Embodiment 2 of the present invention;

[0025] Figure 3 is a schematic structural diagram of a seat belt identification device for drivers and passengers provided according to a third embodiment of the present invention;

[0026] Figure 4 The present invention is a schematic diagram of the structure of an electronic device for implementing the method for identifying seat belts for drivers and passengers according to an embodiment of the present invention. DETAILED DESCRIPTION

[0027] 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.

[0028] 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.

[0029] Embodiment 1

[0030] Figure 1This is a flowchart of a method for identifying a driver's seat belt provided in the first embodiment of the present invention. This embodiment is applicable to the case of detecting the wearing of a driver's seat belt by a passenger in a vehicle. The method can be performed by a driver's seat belt identification device. The driver's seat belt identification device can be implemented in the form of hardware and / or software, and can generally be configured in a vehicle computer with image processing and data processing functions. Figure 1 As shown, the method includes:

[0031] S110, obtaining a current image within the target monitoring area in the vehicle, and preprocessing the current image to generate a standardized image.

[0032] Optionally, cameras can be configured in the vehicle to obtain images of the driver and passengers. A camera can be configured for each position, or a single camera that can monitor all seats in the vehicle can be configured. The camera can be used to obtain a real-time video stream in the target monitoring area corresponding to the camera, and the current image can be captured in the real-time video stream.

[0033] Optionally, image preprocessing may include but is not limited to image processing operations such as brightness adjustment, contrast optimization, and denoising.

[0034] Optionally, standard image parameters such as standard brightness and contrast of the image may be preset. After acquiring the current image, various parameters of the current image are adjusted according to the difference between the various parameters of the current image and the standard image parameters to obtain a standardized image after the image parameters are adjusted.

[0035] The advantage of this setting is that it avoids the situation where the seat belt detection results are affected by multiple factors such as lighting and camera parameters, thereby ensuring the accuracy of the seat belt detection results.

[0036] S120 , determining a plurality of to-be-detected grids in the standardized image according to the standardized image and a preset grid division rule.

[0037] The grid division rules include rectangular positioning points, grid density and selection conditions of the grid to be detected.

[0038] Optionally, the grid to be detected may refer to a grid that may belong to a seat belt. By identifying each grid to be detected in the standardized image, when performing seat belt detection, only the grid to be detected needs to be judged, which greatly reduces the amount of calculation.

[0039] Optionally, since the camera shooting position is fixed, and the fixed end and buckle position of the seat belt are also fixed, for each standardized picture, the fixed end of the seat belt and the buckle are at fixed pixel points in the picture, and then a grid division rule can be generated based on the pixel points where the fixed end of the seat belt and the buckle are located in the standardized picture.

[0040] Optionally, the grid division rule may include: generating a rectangle according to the pixel points of the fixed end of the safety belt and the pixel points of the buckle; and dividing the rectangle into a plurality of grids of the same size according to a preset grid density.

[0041] In an optional example, after determining the pixel points of the fixed end of the seat belt and the pixel points of the buckle, a rectangular frame can be generated in the standardized image with the pixel points as the diagonal endpoints of the rectangle, and then the grid is divided in the rectangular frame according to the grid density. The grid density can refer to the number of rows and columns in the rectangle. For example, a grid of 8 rows and 6 columns can be divided in the rectangle, but this is only an example and does not limit the grid density.

[0042] It is understandable that, in a rectangular frame, the seat belt generally only occupies a few grids above and below the diagonal of the rectangular frame, while the rest of the grid may be the torso of the driver or passenger. In order to avoid interference from the characteristics of the driver's clothing or other factors, the selection conditions for the grids to be detected can also be determined in the grid division rules. For example, the grids occupied by the diagonal and the two grids above and below the diagonal are both used as grids to be detected. This not only reduces the amount of grid calculation, but also avoids the influence of interference factors on the detection results.

[0043] S130, using a pre-established feature extraction network to obtain a deep feature map of each grid to be detected, and determining a grid belonging to a seat belt in the grid to be detected based on a plurality of pre-generated reference feature maps and the deep feature map of each grid to be detected.

[0044] Optionally, the feature extraction network may be a convolutional neural network, which downsamples a larger-sized grid to be detected to generate a small-sized deep feature map.

[0045] Optionally, the reference feature map can be understood as a deep feature map output by the feature extraction network after the grid sample belonging to the seat belt is input into the feature extraction network, and each reference feature map can represent the seat belt feature.

[0046] Optionally, the Euclidean distance between the deep feature map of the current grid to be detected and each reference feature map can be calculated, and the minimum value of the Euclidean distance calculation can be compared with a preset distance threshold. If it is greater than the threshold, the current grid to be detected is determined to be a grid belonging to the seat belt. Otherwise, the current grid to be detected is another target and does not belong to the seat belt grid, so it can be ignored.

[0047] S140: Determine seat belt recognition results for the driver and passengers based on the number of grids belonging to the seat belt and a preset range of the number of seat belt grids.

[0048] Optionally, after determining the seat belt grid for each grid to be detected, the number of grids that belong to the seat belt grid in the standardized image can be further determined, and based on a preset seat belt grid number range, it can be determined whether the number of grids that belong to the seat belt grid in the standardized image is within the seat belt grid number range. If so, it is determined that the driver and passengers in the standardized image are wearing seat belts properly. If not, it is determined that the driver and passengers in the standardized image are not wearing seat belts properly, and the sound and light alarm device in the car is activated to remind the driver and passengers to wear seat belts.

[0049] The technical solution of the embodiment of the present invention processes the current image in the target monitoring area in the vehicle to generate a standardized image, determines multiple grids to be detected in the standardized image, uses a pre-established feature extraction network to obtain a deep feature map of each grid to be detected, and determines the grids belonging to the seat belts in the grids to be detected based on the pre-generated multiple reference feature maps and the deep feature map of each grid to be detected. According to the number of grids belonging to the seat belts and a preset range of the number of seat belt grids, the seat belt recognition results of the driver and passengers are determined. This method can perform real-time detection of the seat belt wearing status of the driver and passengers in the vehicle, avoids the influence of factors such as light or clothing on the seat belt detection accuracy, effectively improves the detection accuracy and reduces the calculation complexity, thereby improving the riding safety of the driver and passengers.

[0050] Embodiment 2

[0051] Figure 2 This is a flowchart of a method for identifying a seat belt for a driver and a passenger provided in Embodiment 2 of the present invention. Based on the above embodiments, this embodiment specifically describes a method for identifying a seat belt for a driver and a passenger. Figure 2 As shown, the method includes:

[0052] S210, obtaining an image sample in the target monitoring area in the vehicle, and determining a rectangular area and a plurality of grids of the same size evenly divided in the rectangular area in the image sample according to the image sample and a preset grid division rule.

[0053] The image samples are images taken by a target camera configured in the target monitoring area. The drivers and passengers in the image samples are in a state of wearing seat belts in a standardized manner, and each image parameter in the image samples meets the preset standard image parameters.

[0054] Optionally, in the process of generating the reference feature map and in the process of detecting the seat belt, the grid division rules used are the same, that is, the arrangement and size of each grid divided in the image sample are the same as the grid divided for the standardized image in the actual detection process.

[0055] S220, determining each image sample grid belonging to the seat belt in the image sample, and inputting each image sample grid into a pre-established feature extraction network, respectively, and using a feature map output by the feature extraction network as a reference feature map.

[0056] In an optional example, the image sample grid can be divided into a grid of 6*8 size, and image sample grids belonging to seat belts are selected from the grids. For example, if all 9 grids contain seat belts, these 9 grids are determined as image sample grids, and then the 9 image sample grids are input into the feature extraction network to generate a reference feature map corresponding to each image sample grid.

[0057] S230: intercepting a current image in the target monitoring area according to a real-time video stream sent by a target camera configured in the target monitoring area.

[0058] S240: Determine the parameters to be adjusted of the current image according to the preset standard image parameters, and adjust the parameters of the current image according to the parameters to be adjusted to generate a standardized image.

[0059] S250 , determining a rectangular area in the standardized image according to the rectangular positioning points, and evenly dividing the rectangular area into a plurality of grids of the same size according to the grid density.

[0060] S260 , determining a plurality of to-be-detected grids from the grids divided in the rectangular area according to the to-be-detected grid selection condition.

[0061] S270: Input the to-be-detected grid of the first size into a pre-established feature extraction network, and obtain a deep feature map of the to-be-detected grid of the second size output by the feature extraction network.

[0062] Wherein, the feature extraction network is a convolutional neural network model.

[0063] Optionally, the first size is the initial size of the grid to be detected, the first size is larger than the second size, and the second size is the size of the deep feature map extracted after downsampling. For example, if the initial size of the grid to be detected is 224*224, after downsampling through a 3*3 filter and a convolutional layer with a step size of 2, a 7*7 deep feature map can be obtained, but the first size, the second size and the parameters in the feature extraction network are not limited.

[0064] S280, determining a grid belonging to a seat belt among the grids to be detected based on a plurality of pre-generated reference feature maps and a deep feature map of each grid to be detected.

[0065] Wherein, according to the pre-generated multiple reference feature maps and the deep feature maps of each to-be-detected grid, determining the grid belonging to the seat belt in the to-be-detected grid may include:

[0066] Calculate the Euclidean distance between each reference feature map and the deep feature map of the target grid to be detected, and determine the minimum Euclidean distance that matches the deep feature map of the target grid to be detected according to the calculation results;

[0067] Determine whether the minimum Euclidean distance is less than a preset distance threshold;

[0068] If so, the target to-be-detected grid is determined as a grid belonging to the seat belt; if not, the target to-be-detected grid is ignored.

[0069] Optionally, the target grid to be detected may refer to the grid to be detected currently performing seat belt detection, and the Euclidean distance between the reference feature map and the deep feature map of the target grid to be detected may be obtained by calculating the cosine value between the reference feature map vector and the deep feature map vector.

[0070] Continuing with the previous example, if the minimum Euclidean distance between the deep feature map of the target grid to be detected and each reference feature map is D, but D is greater than the preset distance threshold M, then the target grid to be detected is determined to be a grid belonging to the seat belt. If there is at least one Euclidean distance less than the preset distance threshold M, the target grid to be detected is ignored.

[0071] S290: Determine seat belt recognition results for the driver and passengers based on the number of grids belonging to the seat belt and a preset range of the number of seat belt grids.

[0072] Wherein, determining the seat belt recognition result of the driver and passenger according to the number of grids belonging to the seat belt and the preset range of the number of seat belt grids may include:

[0073] Determine whether the number of grids belonging to the seat belt is within a preset range of the number of grids of the seat belt;

[0074] If so, it is determined that the drivers and passengers in the target monitoring area have properly worn seat belts;

[0075] If not, it is determined that the driver and passengers in the target monitoring area are not wearing seat belts properly, and the sound and light alarm device in the car is activated.

[0076] Optionally, the number of seat belt grids can be preset in the range of AB, for example 8-11. When the number of grids belonging to the seat belts is greater than or equal to A and less than or equal to B, it is determined that the drivers and passengers in the target monitoring area have worn seat belts properly. Otherwise, it is determined that the drivers and passengers in the target monitoring area have not worn seat belts properly, and the sound and light alarm device in the car is activated.

[0077] The technical solution of the embodiment of the present invention processes the current image in the target monitoring area in the vehicle to generate a standardized image, determines multiple grids to be detected in the standardized image, uses a pre-established feature extraction network to obtain a deep feature map of each grid to be detected, and determines the grids belonging to the seat belts in the grids to be detected based on the pre-generated multiple reference feature maps and the deep feature map of each grid to be detected. According to the number of grids belonging to the seat belts and a preset range of the number of seat belt grids, the seat belt recognition results of the driver and passengers are determined. This method can perform real-time detection of the seat belt wearing status of the driver and passengers in the vehicle, avoids the influence of factors such as light or clothing on the seat belt detection accuracy, effectively improves the detection accuracy and reduces the calculation complexity, thereby improving the riding safety of the driver and passengers.

[0078] Embodiment 3

[0079] Figure 3 This is a schematic diagram of the structure of a seat belt identification device for drivers and passengers provided in the third embodiment of the present invention. Figure 3 As shown, the device includes: an image preprocessing module 310 , a to-be-detected grid determination module 320 , a grid detection module 330 and a seat belt recognition module 340 .

[0080] The image preprocessing module 310 is used to obtain the current image in the target monitoring area inside the vehicle, and preprocess the current image to generate a standardized image.

[0081] The to-be-detected grid determination module 320 is used to determine a plurality of to-be-detected grids in the standardized image according to the standardized image and a preset grid division rule.

[0082] The grid detection module 330 is used to obtain the deep feature map of each grid to be detected by using a pre-established feature extraction network, and determine the grid belonging to the seat belt in the grid to be detected based on multiple pre-generated reference feature maps and the deep feature map of each grid to be detected.

[0083] The seat belt recognition module 340 is used to determine the seat belt recognition results of the driver and passengers according to the number of grids belonging to the seat belt and the preset range of the number of seat belt grids.

[0084] The technical solution of the embodiment of the present invention processes the current image in the target monitoring area in the vehicle to generate a standardized image, determines multiple grids to be detected in the standardized image, uses a pre-established feature extraction network to obtain a deep feature map of each grid to be detected, and determines the grids belonging to the seat belts in the grids to be detected based on the pre-generated multiple reference feature maps and the deep feature map of each grid to be detected. According to the number of grids belonging to the seat belts and a preset range of the number of seat belt grids, the seat belt recognition results of the driver and passengers are determined. This method can perform real-time detection of the seat belt wearing status of the driver and passengers in the vehicle, avoids the influence of factors such as light or clothing on the seat belt detection accuracy, effectively improves the detection accuracy and reduces the calculation complexity, thereby improving the riding safety of the driver and passengers.

[0085] Based on the above embodiments, the image preprocessing module 310 can be specifically used for:

[0086] According to the real-time video stream sent by the target camera configured in the target monitoring area, the current image in the target monitoring area is intercepted;

[0087] According to the preset standard image parameters, the parameters to be adjusted of the current image are determined, and the parameters of the current image are adjusted according to the parameters to be adjusted to generate a standardized image.

[0088] On the basis of the above embodiments, the grid division rules include rectangular positioning points, grid density and selection conditions of the grid to be detected;

[0089] The to-be-detected grid determination module 320 may be specifically used for:

[0090] Determine a rectangular area in the standardized image according to the rectangular positioning points, and evenly divide the rectangular area into a plurality of grids of the same size according to the grid density;

[0091] According to the to-be-detected grid selection condition, a plurality of to-be-detected grids are determined from the grids divided in the rectangular area.

[0092] On the basis of the above embodiments, the grid detection module 330 may include a deep feature map acquisition unit and a feature comparison unit;

[0093] The deep feature map acquisition unit can be specifically used for:

[0094] Inputting a first-size to-be-detected grid into a pre-established feature extraction network, and obtaining a deep feature map of a second-size to-be-detected grid output by the feature extraction network;

[0095] Wherein, the feature extraction network is a convolutional neural network model.

[0096] Based on the above embodiments, the feature comparison unit can be specifically used for:

[0097] Calculate the Euclidean distance between each reference feature map and the deep feature map of the target grid to be detected, and determine the minimum Euclidean distance that matches the deep feature map of the target grid to be detected according to the calculation results;

[0098] Determine whether the minimum Euclidean distance is less than a preset distance threshold;

[0099] If so, the target to-be-detected grid is determined as a grid belonging to the seat belt; if not, the target to-be-detected grid is ignored.

[0100] Based on the above embodiments, the seat belt identification module 340 can be specifically used for:

[0101] Determine whether the number of grids belonging to the seat belt is within a preset range of the number of grids of the seat belt;

[0102] If so, it is determined that the drivers and passengers in the target monitoring area have properly worn seat belts;

[0103] If not, it is determined that the driver and passengers in the target monitoring area are not wearing seat belts properly, and the sound and light alarm device in the car is activated.

[0104] On the basis of the above embodiments, a reference feature map acquisition module may also be included, which is specifically used to:

[0105] Acquire an image sample in the target monitoring area in the vehicle, and determine a rectangular area and a plurality of grids of the same size evenly divided in the rectangular area in the image sample according to the image sample and a preset grid division rule;

[0106] The image samples are images taken by the target cameras configured in the target monitoring area, the drivers and passengers in the image samples are in a state of wearing seat belts in a standardized manner, and all image parameters in the image samples meet the preset standard image parameters;

[0107] Each image sample grid belonging to the seat belt is determined in the image sample, and each image sample grid is input into a pre-established feature extraction network, and the feature map output by the feature extraction network is used as a reference feature map.

[0108] The seat belt recognition device for drivers and passengers provided in the embodiments of the present invention can execute the seat belt recognition method for drivers and passengers 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 4 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 4 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.

[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 any general and / or dedicated processing component with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the seat belt identification method for drivers and passengers described in an embodiment of the present invention. That is:

[0114] Obtain the current image within the target monitoring area in the vehicle, and pre-process the current image to generate a standardized image;

[0115] According to the standardized image and a preset grid division rule, a plurality of grids to be detected are determined in the standardized image;

[0116] Using a pre-established feature extraction network, a deep feature map of each to-be-detected grid is obtained, and based on a plurality of pre-generated reference feature maps and the deep feature map of each to-be-detected grid, a grid belonging to a seat belt is determined in the to-be-detected grid;

[0117] The seat belt recognition results of the driver and passengers are determined based on the number of grids belonging to the seat belt and a preset range of the number of seat belt grids.

[0118] In some embodiments, the seat belt identification method for the driver and occupant 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 identification method for the driver and occupant described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the seat belt identification method for the driver and occupant in any other appropriate manner (e.g., by means of firmware).

[0119] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0120] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0121] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0122] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0123] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0124] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0125] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0126] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for identifying seat belts for drivers and passengers, characterized in that: include: Obtain the current image within the target monitoring area in the vehicle, and pre-process the current image to generate a standardized image; According to the standardized image and a preset grid division rule, a plurality of grids to be detected are determined in the standardized image; Using a pre-established feature extraction network, a deep feature map of each to-be-detected grid is obtained, and based on a plurality of pre-generated reference feature maps and the deep feature map of each to-be-detected grid, a grid belonging to a seat belt is determined in the to-be-detected grid; The seat belt recognition results of the driver and passengers are determined based on the number of grids belonging to the seat belt and a preset range of the number of seat belt grids.

2. The method according to claim 1, characterized in that Obtain the current image within the target monitoring area in the vehicle, and preprocess the current image to generate a standardized image, including: According to the real-time video stream sent by the target camera configured in the target monitoring area, the current image in the target monitoring area is intercepted; According to the preset standard image parameters, the parameters to be adjusted of the current image are determined, and the parameters of the current image are adjusted according to the parameters to be adjusted to generate a standardized image.

3. The method according to claim 1, characterized in that The grid division rules include rectangular positioning points, grid density and selection conditions of the grid to be detected; According to the standardized image and the preset grid division rule, a plurality of grids to be detected are determined in the standardized image, including: Determine a rectangular area in the standardized image according to the rectangular positioning points, and evenly divide the rectangular area into a plurality of grids of the same size according to the grid density; According to the to-be-detected grid selection condition, a plurality of to-be-detected grids are determined from the grids divided in the rectangular area.

4. The method according to claim 1, characterized in that: Using the pre-established feature extraction network, the deep feature map of each grid to be detected is obtained, including: Inputting a first-size to-be-detected grid into a pre-established feature extraction network, and obtaining a deep feature map of a second-size to-be-detected grid output by the feature extraction network; Wherein, the feature extraction network is a convolutional neural network model.

5. The method according to claim 1, characterized in that According to the pre-generated multiple reference feature maps and the deep feature maps of each to-be-detected grid, a grid belonging to a seat belt is determined in the to-be-detected grid, including: Calculate the Euclidean distance between each reference feature map and the deep feature map of the target grid to be detected, and determine the minimum Euclidean distance that matches the deep feature map of the target grid to be detected according to the calculation results; Determine whether the minimum Euclidean distance is less than a preset distance threshold; If so, the target to-be-detected grid is determined as a grid belonging to the seat belt; if not, the target to-be-detected grid is ignored.

6. The method according to claim 1, characterized in that According to the number of grids belonging to the seat belt and the preset range of the number of seat belt grids, the seat belt recognition results of the driver and passengers are determined, including: Determine whether the number of grids belonging to the seat belt is within a preset range of the number of grids of the seat belt; If so, it is determined that the drivers and passengers in the target monitoring area have properly worn seat belts; If not, it is determined that the driver and passengers in the target monitoring area are not wearing seat belts properly, and the sound and light alarm device in the car is activated.

7. The method according to claim 3, characterized in that Before obtaining the current image in the target monitoring area in the vehicle and preprocessing the current image to generate a standardized image, the following steps are also included: Acquire an image sample in the target monitoring area in the vehicle, and determine a rectangular area and a plurality of grids of the same size evenly divided in the rectangular area in the image sample according to the image sample and a preset grid division rule; The image samples are images taken by the target cameras configured in the target monitoring area, the drivers and passengers in the image samples are in a state of wearing seat belts in a standardized manner, and all image parameters in the image samples meet the preset standard image parameters; Each image sample grid belonging to the seat belt is determined in the image sample, and each image sample grid is input into a pre-established feature extraction network, and the feature map output by the feature extraction network is used as a reference feature map.

8. A seat belt identification device for drivers and passengers, characterized in that: include: An image preprocessing module is used to obtain the current image in the target monitoring area inside the vehicle, and preprocess the current image to generate a standardized image; A to-be-detected grid determination module is used to determine a plurality of to-be-detected grids in the standardized image according to the standardized image and a preset grid division rule; A grid detection module, used to obtain a deep feature map of each grid to be detected by using a pre-established feature extraction network, and determine the grid belonging to the seat belt in the grid to be detected based on a plurality of pre-generated reference feature maps and the deep feature map of each grid to be detected; The seat belt recognition module is used to determine the seat belt recognition results of the driver and passengers according to the number of grids belonging to the seat belt and the preset range of the number of seat belt grids.

9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the seat belt recognition method for drivers and passengers described in any one of claims 1 to 7 of the present invention.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the driver and passenger seat belt recognition method according to any one of claims 1 to 7 when executed.

Citation Information

Patent Citations

  • Construction site accident prediction method and device based on image recognition

    CN112163497A

  • Safety belt detection method and device, computer equipment and storage medium

    CN113486835A

  • Safety belt detection method, device and equipment and storage medium

    CN114550144A

  • Child seat detection for seat occupancy classification system

    CN117373003A

  • Safety belt wearing detection method, device and equipment and medium

    CN118038416A