Intelligent anti-collision method, system, device and storage medium based on deep learning

By installing cameras in car rearview mirrors and using deep learning technology to identify non-motor vehicles in rear images, the problem of low detection accuracy of existing car anti-collision systems is solved and higher detection accuracy and safety are achieved.

CN113239827BActive Publication Date: 2024-08-23GUANGDONG GAOHANG INTELLECTUAL PROPERTY OPERATION CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110547309.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-05-19
Publication Date
2024-08-23
Estimated Expiration
2041-05-19

AI Technical Summary

Technical Problem

The detection accuracy of the existing automobile anti-collision system is low, the ultrasonic detector is greatly affected by temperature, and the directionality of infrared ranging is poor, making it difficult to accurately detect non-motorized vehicles behind.

Method used

An intelligent anti-collision method based on deep learning is adopted. By installing a camera in the car's rearview mirror, the trained SSD network model is used to identify non-motor vehicles in rear images to improve detection accuracy.

Benefits of technology

It improves the detection accuracy of the automobile anti-collision system, reduces the influence of temperature, enhances the directionality of detection, and ensures safety when parking.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113239827B
    Figure CN113239827B
Patent Text Reader

Abstract

The embodiment of the present invention discloses an intelligent anti-collision method, system, computer device and storage medium based on deep learning. The method is applied to the anti-collision system of a car, and the rearview mirror of the car is equipped with a camera. The method includes: the anti-collision system detects whether the speed of the car is zero; if the speed of the car is zero, the image behind the car is obtained through the camera; then the image is processed for non-motor vehicle recognition through the trained SSD network model to obtain a recognition result; finally, anti-collision alarm processing is performed according to the recognition result. In the embodiment of the present invention, when it is detected that the car is parked, the anti-collision system of the car can judge the image behind the vehicle through the SSD network model, and then judge whether there is a non-motor vehicle behind the vehicle. The method is less affected by temperature and has strong detection directionality, thereby improving the detection accuracy of the anti-collision system of the car.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of artificial intelligence technology, and in particular to an intelligent collision avoidance method, system, computer device and storage medium based on deep learning. Background Art

[0002] On traffic roads, non-motor vehicles are relatively small, and the riding routes are very close to those of cars in the horizontal direction. After the car stops, passengers or drivers often ignore the observation of whether there are non-motor vehicles coming from behind the vehicle before opening the door and prepare to open the door to get off. This can easily lead to an accident in which the door is suddenly opened and the non-motor vehicles behind do not have time to slow down and hit the door. Therefore, passengers or drivers do not pay attention to the vehicles behind when getting off the car. This behavior can easily lead to accidents, so some cars have added anti-collision systems.

[0003] At present, the detection methods of domestic anti-collision systems are mainly ultrasonic detectors and infrared detectors, but the propagation speed of ultrasonic waves is greatly affected by the external temperature, which has a great impact on its detection accuracy; while infrared ranging has the advantages of low price, easy production and safety, but currently the directionality of infrared ranging is poor and its detection accuracy is not high. Therefore, there is an urgent need for an anti-collision system with high detection accuracy. Summary of the invention

[0004] The embodiments of the present invention provide a deep learning-based intelligent collision avoidance method, system, computer device and storage medium, which can improve the detection accuracy of the automobile collision avoidance system.

[0005] In a first aspect, an embodiment of the present invention provides an intelligent collision avoidance method based on deep learning, the method is applied to a collision avoidance system of a car, the rearview mirror of the car is equipped with a camera, and the method comprises:

[0006] Detecting whether the speed of the car is zero;

[0007] If the speed of the car is zero, acquiring an image behind the car through the camera;

[0008] Performing non-motor vehicle recognition processing on the image through the trained SSD network model to obtain a recognition result;

[0009] If it is determined according to the recognition result that there is no non-motor vehicle behind the automobile, no anti-collision alarm is issued;

[0010] If it is determined according to the recognition result that there is a non-motor vehicle behind the automobile, anti-collision alarm processing is performed according to the type of the non-motor vehicle.

[0011] In a second aspect, an embodiment of the present invention further provides an intelligent collision avoidance device based on deep learning, which includes a unit for executing the above method.

[0012] In a third aspect, an embodiment of the present invention further provides an anti-collision system, comprising a control module and a camera, wherein the camera is used to be installed on a rearview mirror of a car, the control module has a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the above method when executing the computer program.

[0013] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the storage medium stores a computer program, wherein the computer program includes program instructions, and the program instructions can implement the above method when executed by a processor.

[0014] The embodiment of the present invention provides an intelligent anti-collision method, system, computer device and storage medium based on deep learning. The method is applied to the anti-collision system of a car, and the rearview mirror of the car is equipped with a camera. The method includes: the anti-collision system detects whether the speed of the car is zero; if the speed of the car is zero, the image behind the car is obtained through the camera; then the image is processed for non-motor vehicle recognition through the trained SSD network model to obtain a recognition result; finally, anti-collision alarm processing is performed according to the recognition result. In the embodiment of the present invention, when it is detected that the car is parked, the anti-collision system of the car can judge the image behind the vehicle through the SSD network model, and then judge whether there is a non-motor vehicle behind the vehicle. In this solution, the acquisition of the image and the deep learning processing are less affected by the temperature, so its detection accuracy is less affected by the temperature, and the solution is to obtain the image of the corresponding position through the camera, and the detection directionality is strong, thereby improving the detection accuracy of the anti-collision system of the car. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying any creative work.

[0016] Figure 1 A schematic diagram of an application scenario of an intelligent collision avoidance method based on deep learning provided by an embodiment of the present invention;

[0017] Figure 2 A schematic diagram of a flow chart of an intelligent collision avoidance method based on deep learning provided by an embodiment of the present invention;

[0018] Figure 3A schematic diagram of a sub-process of an intelligent anti-collision method based on deep learning provided in an embodiment of the present invention;

[0019] Figure 4 A schematic diagram of a sub-process of an intelligent anti-collision method based on deep learning provided in an embodiment of the present invention;

[0020] Figure 5 A schematic diagram of a sub-process of an intelligent anti-collision method based on deep learning provided in an embodiment of the present invention;

[0021] Figure 6 A schematic diagram of a sub-process of an intelligent anti-collision method based on deep learning provided in an embodiment of the present invention;

[0022] Figure 7 A schematic block diagram of an intelligent anti-collision device based on deep learning provided by an embodiment of the present invention;

[0023] Figure 8 A schematic block diagram of a control module provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0024] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are 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 are within the scope of protection of the present invention.

[0025] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.

[0026] It should also be understood that the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0027] It should be further understood that the term "and / or" used in the present description and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0028] See also Figure 1 , Figure 1Schematic diagram of an application scenario of an intelligent anti-collision method based on deep learning provided by an embodiment of the present invention. When a car is detected to be parked, the car can obtain an image behind the car through a camera installed in the rearview mirror, and then perform image recognition through a trained SSD (Single Shot Multi-Box Detector) network model to obtain a recognition result, which includes whether there is a non-motor vehicle behind the car and the type of non-motor vehicle, and finally perform anti-collision alarm processing according to the recognition result.

[0029] In some embodiments, cameras are installed on the rearview mirrors on both sides of the car. In other embodiments, since non-motor vehicles generally travel on the main driver's side after the vehicle is parked, a camera can be installed only on the rearview mirror on the main driver's side. Of course, the camera on the main driver's side can also obtain the situation of non-motor vehicles behind the co-driver's side.

[0030] The executor of the deep learning-based intelligent collision avoidance method may be the collision avoidance system provided in an embodiment of the present invention, wherein the collision avoidance system includes a control module and a camera, wherein the camera is installed on the rearview mirror of the car, and the control module may be integrated into the central controller of the car, or may be integrated into other chips, such as an artificial intelligence (AI) edge computing development board, which may be embedded between the rearview mirror housing and the rearview lens, wherein the control module may be implemented in hardware or software, for example, in some embodiments, the control module is the AI ​​edge computing development board provided in this embodiment.

[0031] In some embodiments, when the rearview mirrors on both sides of the vehicle are equipped with cameras and the control module is integrated into the central controller of the car, the control module can simultaneously process the images captured by the rearview mirror cameras on both sides; when the control module is integrated into the AI ​​edge computing development board in the rearview mirror, the AI ​​edge computing development board can only process the images captured by the camera on the corresponding side.

[0032] See also Figure 2 , Figure 2 This is a flow chart of an intelligent anti-collision method based on deep learning provided by an embodiment of the present application. The method includes the following steps S110-150.

[0033] S110, detecting whether the speed of the vehicle is zero, if so, executing step S120, if not, continuing to execute step S110.

[0034] In this embodiment, if the speed of the car is zero, it means that the car is in a parked state. At this time, the occupants of the car may open the door, so it is necessary to start judging whether there is a non-motor vehicle coming from behind the vehicle.

[0035] It should be noted that the rear of the vehicle mentioned in this embodiment is bounded by the vehicle rearview mirror, that is, the direction from the rearview mirror to the front of the vehicle is the front of the vehicle, and the direction from the rearview mirror to the rear of the vehicle is the rear of the vehicle.

[0036] In this embodiment, the speed needs to be detected during the entire driving process of the car.

[0037] In some embodiments, Figure 3 As shown, step S110 includes:

[0038] S111. Obtain current vehicle information through the vehicle diagnostic system.

[0039] In this embodiment, the on-board diagnostics system (OBD) can read the internal vehicle information in real time, such as the vehicle engine speed, hourly speed, etc., that is, the vehicle information includes the vehicle engine speed information and speed information, etc.

[0040] S112: Determine whether the vehicle speed is zero according to the vehicle-borne information.

[0041] In this embodiment, specifically, whether the current vehicle speed is zero is determined based on the engine speed in the vehicle information. When the engine stops rotating, the vehicle speed at this time is determined to be zero, and when it does not stop rotating, the vehicle speed is not zero.

[0042] In some embodiments, the OBD system can send the vehicle information to the in-vehicle infotainment system (IVI). The IVI system determines the vehicle speed based on the vehicle information. When it is detected that the vehicle speed is zero, the parking information is sent to the anti-collision system. When the anti-collision system detects the parking information, it determines that the current speed of the car is zero. At this time, the anti-collision system in this embodiment includes the IVI system.

[0043] In other embodiments, the OBD system may directly send the vehicle information to the control module in the collision avoidance system, and the control module directly determines the vehicle speed based on the vehicle information.

[0044] S120: Acquire an image of the rear of the vehicle through a camera.

[0045] In this embodiment, the image behind the car is acquired by a camera installed on the rearview mirror of the car.

[0046] In some embodiments, Figure 4 As shown, step S120 includes:

[0047] S121. Send an image acquisition instruction to a camera, so that the camera acquires an image according to the image acquisition instruction.

[0048] In this embodiment, when it is determined that the current speed of the vehicle is zero, an image acquisition instruction is sent to the camera, so that the camera acquires the current rear image of the vehicle according to the acquisition instruction.

[0049] In some embodiments, the camera will acquire a video stream from behind the car in real time. After receiving an image acquisition instruction, the camera will extract the current frame image as the image from behind the current car, where the current frame image may include 1 frame image or multiple frames (such as 3 frames) of images, that is, the acquired image from behind the car may include one frame or multiple frames. When there are multiple frames, the accuracy of subsequent image recognition can be improved (that is, there may be blurred images. If multiple frames are acquired, the situation where inaccurate recognition is caused by recognition based on blurred frame images can be reduced).

[0050] In some embodiments, when it is detected that the vehicle speed is zero, an image acquisition instruction can be sent to the camera through the IVI system, so that the camera acquires the image according to the image acquisition instruction. That is, in this embodiment, the control module in the collision avoidance system can communicate directly with the camera or through the IVI system, which is not limited here.

[0051] S122: Receive an image sent by a camera.

[0052] That is, the current image behind the car is obtained through the camera.

[0053] In some embodiments, the present embodiment may receive images sent by the camera through the IVI system, and the anti-collision system may also directly receive images sent by the camera, which is not specifically limited here.

[0054] S130, performing non-motor vehicle recognition processing on the image through the trained SSD network model to obtain a recognition result.

[0055] The SSD network model in this application adopts the SSD-Inception framework, with the Inception sub-model as the front-end multi-scale feature extractor and the SSD sub-model as the back-end feature identifier.

[0056] At this time, in some embodiments, such as Figure 5 As shown, step S130 includes:

[0057] S131. Perform multi-scale feature extraction on the image through the Inception sub-model in the SSD network model to obtain features of multiple sizes.

[0058] Specifically, the Inception sub-model uses different convolution kernel sizes to extract multi-scale features from the image and obtain features of multiple sizes.

[0059] In some embodiments, since Inception-V2 sets batch_normal at input, the training converges faster and the learning is more efficient after adding batch_normal, the use of dropout can be reduced, and the feature extraction speed is faster. The anti-collision system in this application has very strict requirements on the reaction speed, so the framework of the Inception sub-model in this embodiment can specifically be Inception-V2.

[0060] S132. Decompose the features of multiple sizes respectively through the Inception sub-model to obtain processed features of multiple sizes.

[0061] The Inception sub-model in this embodiment is provided with feature decomposition convolution (1*1 convolution and N*1 and N*1 convolution). After acquiring features of multiple sizes, this embodiment can decompose features of multiple sizes respectively through the feature decomposition convolution in the Inception sub-model. This step can realize network parameter compression and calculation acceleration, and improve the recognition speed of the SSD network model.

[0062] That is, in this embodiment, after anchoring and compressing the image, the processed image is recognized.

[0063] Specifically, step S132 includes: extracting a target lane image in the image through a lane extraction submodel in the SSD network model; and then performing multi-scale feature extraction on the target lane image through an Inception submodel in the SSD network model to obtain features of multiple sizes.

[0064] The lane extraction sub-model is used to extract the target lane image in the image. The target lane is the lane that the door may threaten when the person in the car opens the door. Specifically, the target lane is the entire longitudinal lane corresponding to 2 meters laterally outward from the corresponding door side. In this embodiment, only feature extraction is performed on the extracted target lane image, which can reduce the parameters of feature extraction and subsequent image recognition, and further speed up the recognition speed.

[0065] Among them, the lane extraction sub-model can be a convolutional neural network (CNN).

[0066] S133, performing non-motor vehicle recognition processing on the processed features of multiple sizes through the SSD sub-model in the SSD network model to obtain a recognition result.

[0067] In some embodiments, the SSD sub-model is composed of multiple convolutional layers, which are used to combine the Defaultboxes corresponding to the features of the above-mentioned multiple sizes, and suppress some overlapping or incorrect Defaultboxes through the Non Maximum Suppression (NMS) method to generate the final Defaultboxes set (i.e., recognition result).

[0068] In some other embodiments, step S133 includes:

[0069] Through the SSD sub-model in the SSD network model, the category confidence of each feature in the processed features of multiple sizes is obtained; the features whose category confidence is less than the preset confidence threshold are filtered to obtain multiple filtered features; the filtered features are subjected to non-maximum suppression processing to obtain recognition results.

[0070] That is, for each feature (Defaultboxes), first determine its category (the one with the highest confidence) and confidence value according to the category confidence, and filter out the prediction boxes belonging to the background. Then filter out the prediction boxes with a lower threshold according to the confidence threshold (such as 0.5). Decode the remaining prediction boxes, and get their true position parameters according to the prior boxes. Generally, they need to be sorted in descending order according to the confidence, and then only retain the top-k (such as 400) prediction boxes. Finally, perform the NMS algorithm to filter out those prediction boxes with large overlaps to get the final recognition result.

[0071] In some embodiments, before step S130, the method further includes:

[0072] Positive samples and negative samples are collected in actual scenes from the perspective of a car rearview mirror, wherein the positive samples are image samples containing non-motor vehicles and labeled with different types of non-motor vehicles, and the negative samples are image samples that do not contain non-motor vehicles. The preset SSD network model is trained based on the positive samples and negative samples to obtain a trained SSD network model. Specifically, the preset SSD network model is trained based on the positive samples and negative samples to determine whether the preset SSD network model converges. If converged, the trained SSD network model is output.

[0073] It should be noted that before training the model, you also need to select the model:

[0074] In terms of detection model selection, deep learning-based object detection methods can be divided into two types. The first type is represented by the SSD network model, which captures images equally at different positions and then uses a recognizer to directly classify the images. The entire detection task can be completed in just one step, so this detection method is faster.

[0075] The second type is represented by the Faster R-CNN model, which generates a set of scale candidate boxes at different locations of the image through a region proposal mechanism, and then uses a convolutional neural network to classify the candidate boxes. Generally, this type of detection method has better accuracy, but the recognition speed is relatively slow.

[0076] The anti-collision system proposed in this application needs to accurately complete the recognition of the rear photo of the car in the shortest possible time. Since SSD eliminates the region proposal mechanism and the feature resampling part, it becomes the fastest method among all deep learning methods, and the SSD model consists of a feature extractor and some additional convolutional layers. The added layers use multi-scale feature maps for detection, that is, they allow the detector to make predictions at different sizes. Especially for scenes in the rearview lens where pedestrians, bicycles or bicycles and other objects will constantly change in the rearview mirror picture due to speed, the imaging scale of the object and the size of different types of objects will constantly change. Multi-scale detection can not only adapt to the discrimination of objects of different categories, but also has good detection characteristics for the scale ratio of the same object caused by different distances. Therefore, this embodiment uses a faster SSD network model with multi-scale detection as the recognition model.

[0077] S140: If it is determined based on the recognition result that there is no non-motor vehicle behind the vehicle, no anti-collision alarm is issued.

[0078] In this embodiment, if it is determined according to the recognition result that there is no non-motor vehicle in the acquired image, it means that it is safe to open the door at this time and there is no need to issue an anti-collision alarm.

[0079] S150: If it is determined according to the recognition result that there is a non-motor vehicle behind the automobile, an anti-collision alarm process is performed according to the type of the non-motor vehicle.

[0080] In some embodiments, if it is determined based on the recognition results that there is a non-motor vehicle behind the car, then when the people in the car want to open the door, they need to pay attention. At this time, the anti-collision system will issue an anti-collision alarm to the people in the car. The anti-collision alarm can be made according to the type of non-motor vehicle identified. Specifically, if the identified non-motor vehicle belongs to a category I non-motor vehicle, a first-level anti-collision alarm is issued; if the identified non-motor vehicle belongs to a category II non-motor vehicle, a second-level anti-collision alarm is issued.

[0081] Among them, the first category of non-motor vehicles includes motorcycles and electric vehicles, and the second category of non-motor vehicles includes bicycles and scooters.

[0082] In some embodiments, performing a first-level anti-collision alarm may specifically include sending a first-level anti-collision signal to the IVI system, causing the IVI system to emit an urgent alarm sound; performing a second-level anti-collision alarm may specifically include sending a second-level anti-collision signal to the IVI system, causing the IVI system to emit a normal voice alarm.

[0083] In some embodiments, the solution may further include, if it is determined according to the recognition result that there is a non-motor vehicle behind the car, further detecting whether the door switch of the car is triggered; if the door switch is triggered, an anti-collision alarm is issued according to the type of non-motor vehicle. Specifically, if the door switch is triggered, it means that the person in the car is ready to open the door and get off the car. At this time, an anti-collision alarm is immediately issued to the person opening the door, reminding the person opening the door to pay attention to the non-motor vehicle outside the door and to open the door carefully or wait before opening the door.

[0084] If a non-motor vehicle is detected behind the vehicle but the door switch is not triggered, it means that although the vehicle has stopped, the occupants are not getting out. The vehicle may have stopped temporarily, for example, to wait for someone, to wait for a traffic light, or to be stuck in a traffic jam. In this case, no anti-collision alarm is required, and the process returns to step S110 after a preset time. The preset time can be set by the user, for example, 5 seconds, and the specific value is not limited here.

[0085] Specifically, in some embodiments, the anti-collision system also includes an anti-collision alarm device, which can be installed on the vehicle door. When a non-electric vehicle is detected and someone in the vehicle opens the door, an alarm signal is sent through the device corresponding to the door. For example, when a non-motor vehicle is detected approaching from the rear of the vehicle and someone in the vehicle is preparing to open the door, the anti-collision system sends an alarm command to the anti-collision alarm device on the door whose door switch is triggered, and the corresponding anti-collision alarm device sends an alarm according to the alarm command. Specifically, the warning can be sound + light. For example, if a Class I motor vehicle is detected, a rapid alarm sound and a rapidly flashing light are issued. If a Class II motor vehicle is detected, a normal alarm sound and a normal flashing light are issued.

[0086] In some embodiments, an infrared detector is installed at the rear of the car. Figure 6 , step S150 includes:

[0087] S151. If it is determined according to the recognition result that there is a non-motor vehicle behind the vehicle, the distance between the non-motor vehicle and the vehicle is determined according to the infrared detector.

[0088] When it is determined based on the recognition results that there is a non-motor vehicle behind the car, it is necessary to use the infrared rangefinder to determine the distance between the non-motor vehicle and the car. That is, if the non-motor vehicle is relatively close to the car, an alarm will be issued at this time. If it is still relatively far away, the non-motor vehicle at this time does not pose a threat to opening the car door, and no alarm will be issued at this time.

[0089] S152: If the distance is less than the distance threshold, perform anti-collision alarm processing according to the type of non-motor vehicle.

[0090] In this embodiment, the distance threshold can be 5 meters or other values. The specific value can be flexibly configured as needed. The distance threshold is not limited here. At this time, if it is determined that there is a non-motor vehicle behind the car and the non-motor vehicle is less than 5 meters away from the car, then an anti-collision alarm is required. This embodiment adds an infrared detector to further detect the distance of the non-motor vehicle. When the non-motor vehicle is at a safe distance for opening the door, the user is not alarmed and the user can open the door safely, thereby improving the user experience.

[0091] As the number of motor vehicles in cities continues to increase, the frequency of traffic accidents in cities is also increasing. In these traffic accidents, drivers or passengers often fail to pay attention to the situation behind them when parking and opening doors due to bad driving habits or weak safety awareness, and knock down bicycles or electric vehicles passing by on both sides, causing serious traffic accidents. This application uses an anti-collision system. When the car is stationary, the camera installed in the rearview mirror takes a picture of the back of the door and uses the SSD-Inception combination module to quickly and accurately identify and judge the captured image. According to the type of non-motor vehicle identified, different levels of alarms are issued in the car to remind people in the car to pay attention to vehicles coming from behind and open the door carefully.

[0092] In summary, the anti-collision system in the present application detects whether the speed of the car is zero; if the speed of the car is zero, the image behind the car is obtained through the camera; then the image is processed for non-motor vehicle recognition through the trained SSD network model to obtain a recognition result; finally, anti-collision alarm processing is performed according to the recognition result. In an embodiment of the present invention, when it is detected that the car is parked, the anti-collision system of the car can judge the image behind the vehicle through the SSD network model, and then judge whether there is a non-motor vehicle behind the vehicle. In this solution, the acquisition of the image and the deep learning processing are less affected by the temperature, so its detection accuracy is less affected by the temperature, and this solution is to obtain the image of the corresponding position through the camera, and its detection directionality is strong, thereby improving the detection accuracy of the anti-collision system of the car.

[0093] Figure 7is a schematic block diagram of an intelligent anti-collision device based on deep learning provided by an embodiment of the present invention. Figure 7 As shown, corresponding to the above intelligent anti-collision method based on deep learning, the present invention also provides an intelligent anti-collision device based on deep learning, which is configured in an anti-collision system, and the anti-collision system is applied to a car. Specifically, the anti-collision system includes a control module and a camera, and the camera is installed on the rearview mirror of the car. Specifically, please refer to Figure 7 The deep learning-based intelligent anti-collision device includes a detection unit 701, an acquisition unit 702, an identification unit 703 and an anti-collision alarm unit 704.

[0094] A detection unit 701, used to detect whether the speed of the vehicle is zero;

[0095] An acquisition unit 702, configured to acquire an image behind the vehicle through the camera when the speed of the vehicle is zero;

[0096] The recognition unit 703 is used to perform non-motor vehicle recognition processing on the image through the trained SSD network model to obtain a recognition result;

[0097] The anti-collision alarm unit 704 is used to not issue an anti-collision alarm if it is determined according to the recognition result that there is no non-motor vehicle behind the car; if it is determined according to the recognition result that there is a non-motor vehicle behind the car, then issue an anti-collision alarm according to the type of the non-motor vehicle.

[0098] In some embodiments, the identification unit 703 is specifically used to:

[0099] Performing multi-scale feature extraction on the image through the Inception sub-model in the SSD network model to obtain features of multiple sizes;

[0100] Decomposing the features of the multiple sizes respectively by the Inception sub-model to obtain processed features of the multiple sizes;

[0101] The processed features of the multiple sizes are processed for non-motor vehicle recognition through the SSD sub-model in the SSD network model to obtain the recognition result.

[0102] In some embodiments, the identification unit 703 is further specifically configured to:

[0103] Extracting a target lane image in the image by using a lane extraction submodel in the SSD network model;

[0104] Multi-scale feature extraction is performed on the target lane image through the Inception sub-model in the SSD network model to obtain features of multiple sizes.

[0105] In some embodiments, the identification unit 703 is further specifically configured to:

[0106] Obtaining, by means of an SSD sub-model in the SSD network model, a category confidence of each feature in the processed features of the plurality of sizes;

[0107] Filtering the features whose category confidence is less than a preset confidence threshold to obtain a plurality of filtered features;

[0108] The filtered features are subjected to non-maximum suppression processing to obtain the recognition result.

[0109] In some embodiments, the anti-collision alarm unit 704 is specifically used for:

[0110] If it is determined according to the recognition result that there is a non-motor vehicle behind the vehicle, detecting whether a door switch of the vehicle is triggered;

[0111] If the door switch is triggered, anti-collision warning processing is performed according to the type of the non-motor vehicle.

[0112] In some embodiments, the anti-collision alarm unit 704 is specifically used for:

[0113] If it is determined according to the recognition result that there is a non-motor vehicle behind the automobile, the distance between the non-motor vehicle and the automobile is determined according to the infrared detector;

[0114] If the distance is less than the distance threshold, anti-collision warning processing is performed according to the type of the non-motor vehicle.

[0115] In some embodiments, the anti-collision alarm unit 704 is specifically used for:

[0116] Identify the type of the non-motor vehicle and obtain a non-motor vehicle type result;

[0117] If the non-motor vehicle is determined to be a Class I non-motor vehicle according to the non-motor vehicle type result, a first-level collision avoidance alarm is issued;

[0118] If the non-motor vehicle is determined to be a second-class non-motor vehicle according to the non-motor vehicle type result, a second-class anti-collision alarm is issued.

[0119] In some embodiments, the anti-collision alarm unit 704 is further specifically used for:

[0120] Detecting whether a door switch of the automobile is triggered;

[0121] If the door switch is triggered, an anti-collision alarm is performed according to the type of the non-motor vehicle.

[0122] If the door switch is not triggered, the process returns to the step of detecting whether the speed of the vehicle is zero after a preset time.

[0123] In some embodiments, the detection unit 701 is specifically used for:

[0124] Obtain current vehicle information through the on-board diagnostic system;

[0125] Determine whether the vehicle speed of the vehicle is zero according to the vehicle-mounted information.

[0126] In some embodiments, the acquisition unit 702 is specifically used to:

[0127] If the speed of the car is zero, sending an image acquisition instruction to the camera, so that the camera acquires the image according to the image acquisition instruction;

[0128] Receive the image sent by the camera.

[0129] It should be noted that those skilled in the art can clearly understand that the specific implementation process of the above-mentioned anti-collision system 400 and each unit can refer to the corresponding description in the aforementioned method embodiment, and for the convenience and brevity of description, it will not be repeated here.

[0130] The above-mentioned intelligent anti-collision device based on deep learning can be implemented in the form of a computer program, which can be used in Figure 8 The collision avoidance system shown operates on the control module.

[0131] See also Figure 8 , Figure 8 800 is a schematic block diagram of a control module provided in an embodiment of the present application. The control module 800 can be a central controller of a car, or an AI edge computing development board embedded between the rearview mirror housing and the rearview lens of the car.

[0132] See also Figure 8 The control module 800 includes a processor 802 , a memory and a network interface 805 connected via a system bus 801 , wherein the memory may include a storage medium 803 and an internal memory 804 .

[0133] The storage medium 803 may store an operating system 8031 ​​and a computer program 8032. The computer program 8032 includes program instructions, and when the program instructions are executed, the processor 802 may execute an intelligent anti-collision method based on deep learning.

[0134] The processor 802 is used to provide computing and control capabilities to support the operation of the entire control module 800 .

[0135] The internal memory 804 provides an environment for the operation of the computer program 8032 in the storage medium 803. When the computer program 8032 is executed by the processor 802, the processor 802 can execute an intelligent collision avoidance method based on deep learning.

[0136] The network interface 805 is used to communicate with other devices over the network. Those skilled in the art will appreciate that Figure 8 The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the control module 800 to which the scheme of the present application is applied. The specific control module 800 may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0137] The processor 802 is used to run the computer program 8032 stored in the memory to implement the following steps:

[0138] Detecting whether the speed of the car is zero;

[0139] If the speed of the car is zero, acquiring an image behind the car through the camera;

[0140] Performing non-motor vehicle recognition processing on the image through the trained SSD network model to obtain a recognition result;

[0141] If it is determined according to the recognition result that there is no non-motor vehicle behind the automobile, no anti-collision alarm is issued;

[0142] If it is determined according to the recognition result that there is a non-motor vehicle behind the automobile, anti-collision alarm processing is performed according to the type of the non-motor vehicle.

[0143] In one embodiment, when the processor 802 implements the step of performing non-motor vehicle recognition processing on the image by using the trained SSD network model to obtain a recognition result, the processor 802 specifically implements the following steps:

[0144] Performing multi-scale feature extraction on the image through the Inception sub-model in the SSD network model to obtain features of multiple sizes;

[0145] Decomposing the features of the multiple sizes respectively by the Inception sub-model to obtain processed features of the multiple sizes;

[0146] The processed features of the multiple sizes are processed for non-motor vehicle recognition through the SSD sub-model in the SSD network model to obtain the recognition result.

[0147] In one embodiment, when the processor 802 implements the step of performing multi-scale feature extraction on the image through the Inception sub-model in the SSD network model, the processor 802 specifically implements the following steps:

[0148] Extracting a target lane image in the image by using a lane extraction submodel in the SSD network model;

[0149] Multi-scale feature extraction is performed on the target lane image through the Inception sub-model in the SSD network model to obtain features of multiple sizes.

[0150] In one embodiment, when the processor 802 performs non-motor vehicle recognition processing on the processed features of multiple sizes through the SSD sub-model in the SSD network model to obtain the recognition result, the processor 802 specifically implements the following steps:

[0151] Obtaining, by means of an SSD sub-model in the SSD network model, a category confidence of each feature in the processed features of the plurality of sizes;

[0152] Filtering the features whose category confidence is less than a preset confidence threshold to obtain a plurality of filtered features;

[0153] The filtered features are subjected to non-maximum suppression processing to obtain the recognition result.

[0154] In one embodiment, when the processor 802 performs the step of performing an anti-collision alarm processing according to the type of the non-motor vehicle if it is determined according to the recognition result that there is a non-motor vehicle behind the automobile, the processor 802 specifically implements the following steps:

[0155] If it is determined according to the recognition result that there is a non-motor vehicle behind the vehicle, detecting whether a door switch of the vehicle is triggered;

[0156] If the door switch is triggered, anti-collision warning processing is performed according to the type of the non-motor vehicle.

[0157] In one embodiment, the processor 802 implements the following steps when an infrared detector is installed at the rear of the car and when it is determined according to the recognition result that there is a non-motor vehicle behind the car and an anti-collision alarm processing step is performed according to the type of the non-motor vehicle:

[0158] If it is determined according to the recognition result that there is a non-motor vehicle behind the automobile, the distance between the non-motor vehicle and the automobile is determined according to the infrared detector;

[0159] If the distance is less than the distance threshold, anti-collision warning processing is performed according to the type of the non-motor vehicle.

[0160] In one embodiment, when the processor 802 implements the step of performing the anti-collision alarm processing according to the type of the non-motor vehicle, it further implements the following steps:

[0161] Identify the type of the non-motor vehicle and obtain a non-motor vehicle type result;

[0162] If the non-motor vehicle is determined to be a Class I non-motor vehicle according to the non-motor vehicle type result, a first-level collision avoidance alarm is issued;

[0163] If the non-motor vehicle is determined to be a second-class non-motor vehicle according to the non-motor vehicle type result, a second-class anti-collision alarm is issued.

[0164] In one embodiment, when the processor 802 implements the step of acquiring the image behind the car through the camera if the speed of the car is zero, the processor 802 specifically implements the following steps:

[0165] If the speed of the car is zero, sending an image acquisition instruction to the camera, so that the camera acquires the image according to the image acquisition instruction;

[0166] Receive the image sent by the camera.

[0167] It should be understood that in the embodiment of the present application, the processor 802 may be a central processing unit (CPU), and the processor 802 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0168] It can be understood by those skilled in the art that all or part of the processes in the method for implementing the above embodiment can be completed by instructing the relevant hardware through a computer program. The computer program includes program instructions, and the computer program can be stored in a storage medium, which is a computer-readable storage medium. The program instructions are executed by at least one processor in the computer system to implement the process steps of the embodiment of the above method.

[0169] Therefore, the present invention also provides a storage medium. The storage medium may be a computer-readable storage medium. The storage medium stores a computer program, wherein the computer program includes program instructions. When the program instructions are executed by a processor, the processor executes the following steps:

[0170] Detecting whether the speed of the car is zero;

[0171] If the speed of the car is zero, acquiring an image behind the car through the camera;

[0172] Performing non-motor vehicle recognition processing on the image through the trained SSD network model to obtain a recognition result;

[0173] If it is determined according to the recognition result that there is no non-motor vehicle behind the automobile, no anti-collision alarm is issued;

[0174] If it is determined according to the recognition result that there is a non-motor vehicle behind the automobile, anti-collision alarm processing is performed according to the type of the non-motor vehicle.

[0175] In one embodiment, when the processor executes the program instructions to implement the step of performing non-motor vehicle recognition processing on the image through the trained SSD network model to obtain a recognition result, the following steps are specifically implemented:

[0176] Performing multi-scale feature extraction on the image through the Inception sub-model in the SSD network model to obtain features of multiple sizes;

[0177] Decomposing the features of the multiple sizes respectively by the Inception sub-model to obtain processed features of the multiple sizes;

[0178] The processed features of the multiple sizes are processed for non-motor vehicle recognition through the SSD sub-model in the SSD network model to obtain the recognition result.

[0179] In one embodiment, when the processor executes the program instructions to implement the step of performing multi-scale feature extraction on the image through the Inception sub-model in the SSD network model, the following steps are specifically implemented:

[0180] Extracting a target lane image in the image by using a lane extraction submodel in the SSD network model;

[0181] Multi-scale feature extraction is performed on the target lane image through the Inception sub-model in the SSD network model to obtain features of multiple sizes.

[0182] In one embodiment, when the processor executes the program instructions to implement the step of performing non-motor vehicle recognition processing on the processed features of multiple sizes through the SSD sub-model in the SSD network model to obtain the recognition result, the following steps are specifically implemented:

[0183] Obtaining, by means of an SSD sub-model in the SSD network model, a category confidence of each feature in the processed features of the plurality of sizes;

[0184] Filtering the features whose category confidence is less than a preset confidence threshold to obtain a plurality of filtered features;

[0185] The filtered features are subjected to non-maximum suppression processing to obtain the recognition result.

[0186] In one embodiment, when the processor executes the program instructions to implement the step of performing an anti-collision alarm processing step according to the type of the non-motor vehicle if it is determined according to the recognition result that there is a non-motor vehicle behind the vehicle, the processor specifically implements the following steps:

[0187] If it is determined according to the recognition result that there is a non-motor vehicle behind the vehicle, detecting whether a door switch of the vehicle is triggered;

[0188] If the door switch is triggered, anti-collision warning processing is performed according to the type of the non-motor vehicle.

[0189] In one embodiment, the processor implements the following steps when executing the program instructions to install an infrared detector at the rear of the car, and when determining that there is a non-motor vehicle behind the car according to the recognition result, performing the anti-collision alarm processing step according to the type of the non-motor vehicle:

[0190] If it is determined according to the recognition result that there is a non-motor vehicle behind the car, the distance between the non-motor vehicle and the car is determined according to the infrared detector;

[0191] If the distance is less than the distance threshold, anti-collision warning processing is performed according to the type of the non-motor vehicle.

[0192] In one embodiment, when the processor executes the program instructions to implement the step of performing the anti-collision alarm processing according to the type of the non-motor vehicle, the processor further implements the following steps:

[0193] Identify the type of the non-motor vehicle and obtain a non-motor vehicle type result;

[0194] If the non-motor vehicle is determined to be a Class I non-motor vehicle according to the non-motor vehicle type result, a first-level collision avoidance alarm is issued;

[0195] If the non-motor vehicle is determined to be a second-class non-motor vehicle according to the non-motor vehicle type result, a second-class anti-collision alarm is performed.

[0196] In one embodiment, when the processor executes the program instructions to implement the step of acquiring an image behind the car through the camera if the speed of the car is zero, the processor specifically implements the following steps:

[0197] If the speed of the car is zero, sending an image acquisition instruction to the camera, so that the camera acquires the image according to the image acquisition instruction;

[0198] Receive the image sent by the camera.

[0199] The storage medium may be a USB flash drive, a mobile hard disk, a read-only memory (ROM), a magnetic disk, or an optical disk, etc., which are computer-readable storage media that can store program codes.

[0200] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0201] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of each unit is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.

[0202] The steps in the method of the embodiment of the present invention can be adjusted in order, combined and deleted according to actual needs. The units in the device of the embodiment of the present invention can be combined, divided and deleted according to actual needs. In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0203] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, terminal, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention.

[0204] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. An intelligent collision avoidance method based on deep learning, characterized in that: The method is applied to an anti-collision system of an automobile, wherein a rearview mirror of the automobile is equipped with a camera, and the method comprises: Detecting whether the speed of the car is zero; If the speed of the car is zero, acquiring an image behind the car through the camera; Performing non-motor vehicle recognition processing on the image through the trained SSD network model to obtain a recognition result; If it is determined according to the recognition result that there is no non-motor vehicle behind the automobile, no anti-collision alarm is issued; If it is determined according to the recognition result that there is a non-motor vehicle behind the automobile, performing anti-collision alarm processing according to the type of the non-motor vehicle; The non-motor vehicle recognition processing is performed on the image by using the trained SSD network model to obtain a recognition result, including: Performing multi-scale feature extraction on the image through the Inception sub-model in the SSD network model to obtain features of multiple sizes; Decomposing the features of the multiple sizes respectively by the Inception sub-model to obtain processed features of the multiple sizes; Performing non-motor vehicle recognition processing on the processed features of multiple sizes through the SSD sub-model in the SSD network model to obtain the recognition result; Among them, the framework of the Inception sub-model is Inception-V2; The rear of the car is equipped with an infrared detector. If it is determined according to the recognition result that there is a non-motor vehicle behind the car, an anti-collision alarm process is performed according to the type of the non-motor vehicle, including: If it is determined according to the recognition result that there is a non-motor vehicle behind the automobile, the distance between the non-motor vehicle and the automobile is determined according to the infrared detector; If the distance is less than the distance threshold, performing anti-collision alarm processing according to the type of the non-motor vehicle; The anti-collision alarm processing according to the type of the non-motor vehicle includes: Identify the type of the non-motor vehicle and obtain a non-motor vehicle type result; If the non-motor vehicle is determined to be a Class I non-motor vehicle according to the non-motor vehicle type result, a first-level collision avoidance alarm is issued; If the non-motor vehicle is determined to be a Class II non-motor vehicle according to the non-motor vehicle type result, a Class II anti-collision alarm is issued; Among them, the first category of non-motor vehicles includes motorcycles and electric vehicles, and the second category of non-motor vehicles includes bicycles and scooters.

2. The method according to claim 1, characterized in that The performing multi-scale feature extraction on the image by using the Inception sub-model in the SSD network model includes: Extracting a target lane image in the image by using a lane extraction submodel in the SSD network model; Multi-scale feature extraction is performed on the target lane image through the Inception sub-model in the SSD network model to obtain features of multiple sizes.

3. The method according to claim 1, characterized in that The performing non-motor vehicle recognition processing on the processed features of the multiple sizes by using the SSD sub-model in the SSD network model to obtain the recognition result includes: Obtaining, by means of an SSD sub-model in the SSD network model, a category confidence of each feature in the processed features of the plurality of sizes; Filtering the features whose category confidence is less than a preset confidence threshold to obtain a plurality of filtered features; The filtered features are subjected to non-maximum suppression processing to obtain the recognition result.

4. The method according to claim 1, characterized in that: If it is determined according to the recognition result that there is a non-motor vehicle behind the automobile, anti-collision alarm processing is performed according to the type of the non-motor vehicle, including: If it is determined according to the recognition result that there is a non-motor vehicle behind the vehicle, detecting whether a door switch of the vehicle is triggered; If the door switch is triggered, anti-collision warning processing is performed according to the type of the non-motor vehicle.

5. An intelligent anti-collision device based on deep learning, characterized in that: The device is configured in a collision avoidance system of a car, wherein a camera is installed in a rearview mirror of the car, and the device comprises: A detection unit, used for detecting whether the speed of the vehicle is zero; an acquisition unit, configured to acquire an image of the rear of the vehicle through the camera when the speed of the vehicle is zero; A recognition unit, used for performing non-motor vehicle recognition processing on the image through a trained SSD network model to obtain a recognition result; an anti-collision alarm unit, configured to not perform an anti-collision alarm if it is determined according to the recognition result that there is no non-motor vehicle behind the automobile, and to perform an anti-collision alarm process according to the type of the non-motor vehicle if it is determined according to the recognition result that there is a non-motor vehicle behind the automobile; The non-motor vehicle recognition processing is performed on the image by using the trained SSD network model to obtain a recognition result, including: Performing multi-scale feature extraction on the image through the Inception sub-model in the SSD network model to obtain features of multiple sizes; Decomposing the features of the multiple sizes respectively by the Inception sub-model to obtain processed features of the multiple sizes; Performing non-motor vehicle recognition processing on the processed features of multiple sizes through the SSD sub-model in the SSD network model to obtain the recognition result; Among them, the framework of the Inception sub-model is Inception-V2; The rear of the car is equipped with an infrared detector. If it is determined according to the recognition result that there is a non-motor vehicle behind the car, an anti-collision alarm process is performed according to the type of the non-motor vehicle, including: If it is determined according to the recognition result that there is a non-motor vehicle behind the automobile, the distance between the non-motor vehicle and the automobile is determined according to the infrared detector; If the distance is less than the distance threshold, performing anti-collision alarm processing according to the type of the non-motor vehicle; The anti-collision alarm processing according to the type of the non-motor vehicle includes: Identify the type of the non-motor vehicle and obtain a non-motor vehicle type result; If the non-motor vehicle is determined to be a Class I non-motor vehicle according to the non-motor vehicle type result, a first-level collision avoidance alarm is issued; If the non-motor vehicle is determined to be a Class II non-motor vehicle according to the non-motor vehicle type result, a Class II anti-collision alarm is issued; Among them, the first category of non-motor vehicles includes motorcycles and electric vehicles, and the second category of non-motor vehicles includes bicycles and scooters.

6. A collision avoidance system, characterized in that: It comprises a control module and a camera, wherein the camera is used to be installed on a rearview mirror of a car, the control module comprises a memory and a processor, the memory stores a computer program, and the processor implements the method as claimed in any one of claims 1 to 4 when executing the computer program.

7. A storage medium, characterized in that: The storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the method according to any one of claims 1 to 4 can be implemented.