Vehicle early warning method, device, electronic device and storage medium

Through radar detection technology, the vehicle position and speed are judged in the visually obstructed area, whether the warning conditions are met, and the vehicle behind the rear is prompted with warning information, which solves the problem of vehicle collision caused by visual differences or blind spots of the driver and improves driving safety.

CN115424455BActive Publication Date: 2024-11-29NANJING HURYS INTELLIGENT TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211057217.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-31
Publication Date
2024-11-29
Estimated Expiration
2042-08-31

AI Technical Summary

Technical Problem

In areas with large changes in light intensity and in bad weather, drivers may experience visual differences or visual blind spots, resulting in vehicle collisions and affecting driving safety.

Method used

Through radar detection technology, the position and speed information of the vehicle in the visually obstructed area is determined, the relative distance and speed are calculated, and whether the warning conditions are met are determined, and the warning information is prompted to the rear vehicle to remind you to slow down.

Benefits of technology

It effectively avoids vehicle collisions caused by driver visual discomfort and improves the safety of vehicle driving.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115424455B_ABST
    Figure CN115424455B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention discloses a vehicle warning method, device, electronic device and storage medium. The method includes: determining the position information of the front vehicle and the rear vehicle in the radar detection area at the current moment, and determining the speed information of the front vehicle and the rear vehicle; determining the relative distance information between the front vehicle and the rear vehicle according to the position information of the front vehicle and the rear vehicle; determining whether the vehicle warning conditions are met according to the relative distance information, the speed information of the front vehicle and the speed information of the rear vehicle; if met, prompting the rear vehicle with warning information to remind the rear vehicle to slow down. This technical solution can timely warn vehicles in the vehicle driving area with visual differences and visual blind spots through radar detection to remind the driver to slow down, avoid vehicle collisions caused by visual discomfort of the driver, and help improve the safety of vehicle driving.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of vehicle technology, and in particular to a vehicle early warning method, device, electronic equipment and storage medium. Background Art

[0002] With the development of vehicle technology, cars have gradually become popular in people's lives, making people pay more and more attention to vehicle driving safety. During vehicle driving, it is often encountered areas with large changes in light intensity, such as near the entrances and exits of tunnels and caves. In these areas with large changes in light intensity, since the human eye cannot immediately adapt to the sudden changes in light intensity, the driver will experience temporary "blindness", that is, the driver will have visual differences. In addition, when the vehicle is driving in bad weather such as rain, snow, and fog, there will be visual blind spots, making it impossible for the driver to judge the road conditions ahead in a timely and accurate manner. In the above situation, if the vehicle does not maintain a safe speed and distance, a vehicle collision may occur, thereby causing a traffic accident. Therefore, how to timely warn vehicles in vehicle driving areas with visual differences and visual blind spots to improve vehicle driving safety is one of the issues worthy of attention during vehicle driving. Summary of the invention

[0003] The present invention provides a vehicle warning method, device, electronic device and storage medium, which can timely warn vehicles in vehicle driving areas with visual differences and visual blind spots through radar detection, thereby avoiding vehicle collisions caused by driver's visual discomfort and helping to improve the safety of vehicle driving.

[0004] According to one aspect of the present invention, a vehicle early warning method is provided, the method comprising:

[0005] Determine the position information of the preceding vehicle and the following vehicle in the radar detection area at the current moment, and determine the speed information of the preceding vehicle and the following vehicle; wherein the radar detection area includes an area where vision is obstructed due to visual perception differences and / or visual blind spots during vehicle driving;

[0006] Determining relative distance information between the leading vehicle and the trailing vehicle based on the leading vehicle position information and the trailing vehicle position information;

[0007] Determining whether a vehicle warning condition is met according to the relative distance information, the preceding vehicle speed information, and the following vehicle speed information;

[0008] If the conditions are met, a warning message is provided to the following vehicle to remind the following vehicle to decelerate.

[0009] Optionally, determining the position information of the preceding vehicle and the following vehicle in the radar detection area at the current moment includes:

[0010] Determine a current radar image of the radar detection area;

[0011] Separating the background and foreground in the current radar image to obtain a target radar image after the background is removed; wherein the foreground of the target radar image corresponds to at least one front vehicle area and at least one rear vehicle area;

[0012] According to the target radar image, the position information of the preceding vehicle and the position information of the following vehicle are determined.

[0013] Optionally, determine the current radar image of the radar detection area, including:

[0014] Scanning the front vehicle and the rear vehicle entering the radar detection area at the current moment by microwave radar to obtain the current radar image at the current moment;

[0015] The value of each pixel in the current radar image is used to describe the signal strength of the radar reflection wave when the radar scans the detection position point, and the current radar image is a grayscale image.

[0016] Optionally, separating the background and foreground in the current radar image to obtain a target radar image after the background is removed includes:

[0017] Determine a preset number of previous radar images acquired before the current radar image; the previous radar images include radar images acquired within a proximate time before the current radar image is acquired or radar images acquired by closing a radar detection area;

[0018] Performing image cumulative averaging on a preset number of previous radar images to obtain a cumulative average image corresponding to the previous radar image;

[0019] The background and foreground in the current radar image are separated according to the cumulative average image to obtain the target radar image after background removal.

[0020] Optionally, separating the background and foreground in the current radar image according to the cumulative average image to obtain a target radar image after the background is removed includes:

[0021] Performing image difference processing on the current radar image and the cumulative average image of the previous radar image to obtain an image after image difference processing;

[0022] By performing binarization on the image after image difference processing, the background and foreground in the current radar image are separated to obtain the target radar image after background removal.

[0023] Optionally, determining the position information of the preceding vehicle and the position information of the following vehicle according to the target radar image includes:

[0024] Performing edge detection on the target radar image to obtain an edge detection map of the target radar image;

[0025] According to the edge detection map of the target radar image, the front vehicle position information and the rear vehicle position information corresponding to the foreground of the target radar image are determined.

[0026] Optionally, performing edge detection on the target radar image to obtain an edge detection map of the target radar image includes:

[0027] The target radar image is subjected to morphological processing to obtain a processed radar image; a front vehicle region and a rear vehicle region in the foreground of the target radar image are divided into different sub-regions due to the separation of the foreground and the background;

[0028] Gaussian smoothing is performed on the processed radar image, and edge detection is performed on the processed radar image after Gaussian smoothing to obtain an edge detection map of the target radar image.

[0029] Optionally, performing morphological processing on the target radar image to obtain a processed radar image includes:

[0030] Performing a morphological dilation operation on the target radar image to obtain an expanded radar image; the morphological dilation operation is used to eliminate internal holes and / or gaps between different sub-regions corresponding to the foreground and the neighboring regions;

[0031] A morphological erosion operation is performed on the expanded radar image to obtain an eroded radar image, which is used as the processed radar image.

[0032] Optionally, determining the preceding vehicle position information and the following vehicle position information corresponding to the foreground of the target radar image according to the edge detection map of the target radar image includes:

[0033] Extracting the positions of the outer boundary inflection points of the front vehicle region and the rear vehicle region in the foreground of the target radar image according to the edge detection map of the target radar image; the positions of the outer boundary inflection points are described by pixel row and column identifiers corresponding to the outer boundary inflection points;

[0034] Determining the geometric center positions of the front vehicle region and the rear vehicle region according to the positions of the outer boundary inflection points of the front vehicle region and the rear vehicle region in the foreground of the target radar image;

[0035] The leading vehicle position information and the rear vehicle position information are determined based on the geometric center positions of the leading vehicle area and the rear vehicle area.

[0036] Optionally, determining whether a vehicle warning condition is met according to the relative distance information, the preceding vehicle speed information, and the following vehicle speed information includes:

[0037] If the relative distance information is less than a preset distance threshold, and the speed information of the preceding vehicle is less than the speed information of the following vehicle, it is determined that the vehicle warning condition is met.

[0038] Optionally, determining whether a vehicle warning condition is met according to the relative distance information, the preceding vehicle speed information, and the following vehicle speed information includes:

[0039] If the relative distance information is less than a preset distance threshold, the preceding vehicle speed information is less than a preset speed threshold, and the preceding vehicle speed information is less than the following vehicle speed information, it is determined that the vehicle warning condition is met.

[0040] Optionally, determining whether a vehicle warning condition is met according to the relative distance information, the preceding vehicle speed information, and the following vehicle speed information includes:

[0041] Determining relative speed information between the leading vehicle and the trailing vehicle according to the leading vehicle speed information and the trailing vehicle speed information;

[0042] determining a collision time between the leading vehicle and the trailing vehicle according to the relative distance information and the relative speed information;

[0043] If the collision time is less than a preset time threshold, it is determined that the vehicle warning condition is met.

[0044] Optionally, the following vehicle is prompted with warning information, including:

[0045] The warning information is prompted to the following vehicle through a warning device; wherein the warning device is located in the radar detection area.

[0046] According to another aspect of the present invention, there is provided a vehicle warning device, comprising:

[0047] A vehicle information determination module, used to determine the position information of the preceding vehicle and the following vehicle in the radar detection area at the current moment, and to determine the speed information of the preceding vehicle and the following vehicle; wherein the radar detection area includes an area where vision is obstructed due to visual perception differences and / or visual blind spots during vehicle driving;

[0048] A relative distance information determination module, used to determine the relative distance information between the leading vehicle and the trailing vehicle according to the leading vehicle position information and the trailing vehicle position information;

[0049] A vehicle warning condition determination module, used to determine whether a vehicle warning condition is met according to the relative distance information, the preceding vehicle speed information, and the following vehicle speed information;

[0050] The warning information prompting module is used to prompt the following vehicle with warning information if the conditions are met, so as to remind the following vehicle to slow down.

[0051] According to another aspect of the present invention, a vehicle warning electronic device is provided, the electronic device comprising:

[0052] at least one processor; and

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

[0054] 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 vehicle warning method described in any embodiment of the present invention.

[0055] 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 vehicle warning method described in any embodiment of the present invention when executed.

[0056] The technical solution of the embodiment of the present invention determines the position information of the leading vehicle and the rear vehicle in the radar detection area at the current moment, and determines the speed information of the leading vehicle and the rear vehicle; wherein the radar detection area includes the area where the vision is obstructed due to visual perception differences and / or visual blind spots during vehicle driving; determines the relative distance information between the leading vehicle and the rear vehicle based on the position information of the leading vehicle and the rear vehicle; determines whether the vehicle warning conditions are met based on the relative distance information, the speed information of the leading vehicle and the speed information of the rear vehicle; if met, prompts the rear vehicle with warning information to remind the rear vehicle to slow down. This technical solution can use radar detection to timely warn vehicles in vehicle driving areas with visual differences and visual blind spots to remind the driver to slow down, thereby avoiding vehicle collisions caused by visual discomfort of the driver, which helps to improve the safety of vehicle driving.

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

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

[0059] Figure 1 is a flow chart of a vehicle early warning method provided according to Embodiment 1 of the present invention;

[0060] Figure 2 is a flow chart of a vehicle early warning method provided according to Embodiment 2 of the present invention;

[0061] Figure 3 is a structural schematic diagram of a vehicle warning device provided according to Embodiment 3 of the present invention;

[0062] Figure 4 It is a structural schematic diagram of an electronic device for implementing a vehicle early warning method according to an embodiment of the present invention. DETAILED DESCRIPTION

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

[0064] It should be noted that the terms "first", "second", "target", 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 clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0065] Embodiment 1

[0066] Figure 1This is a flow chart of a vehicle warning method provided in Embodiment 1 of the present invention. This embodiment can be applied to timely warning vehicles in vehicle driving areas with visual differences and visual blind spots. The method can be executed by a vehicle warning device, which can be implemented in the form of hardware and / or software. The vehicle warning device can be configured in an electronic device with data processing capabilities. Figure 1 As shown, the method includes:

[0067] S110, determining the position information of the leading vehicle and the trailing vehicle in the radar detection area at the current moment, and determining the speed information of the leading vehicle and the trailing vehicle; wherein the radar detection area includes an area where vision is obstructed due to visual perception differences and / or visual blind spots during vehicle driving.

[0068] Among them, the front vehicle may refer to the vehicle located in front of the two vehicles. The rear vehicle may refer to the vehicle located at the rear of the two vehicles. The front vehicle position information and the rear vehicle position information can be used to characterize the positions of the front vehicle and the rear vehicle in the radar detection area at the current moment, respectively. The front vehicle speed information and the rear vehicle speed information can be used to characterize the speed of the front vehicle and the rear vehicle at the current moment, respectively. The radar detection area may include an area where the vision is obstructed due to visual perception differences and / or visual blind spots during the driving of the vehicle. Exemplarily, when there is a light intensity difference greater than a preset light intensity difference in the radar detection area, such as the entrance and exit of a tunnel or a cave, a visual perception difference will occur. Among them, the preset light intensity difference may refer to a reference value of the maximum light intensity difference of the radar detection area set in advance, which can be used to characterize the degree of visual perception difference in the radar detection area. In addition, when the vehicle is driving in bad weather such as rain, snow, fog, etc., due to low visibility, there will be a visual blind spot in front of the vehicle, which interferes with the driver's judgment of the road conditions ahead.

[0069] S120: Determine relative distance information between the leading vehicle and the trailing vehicle based on the leading vehicle position information and the trailing vehicle position information.

[0070] Among them, the relative distance information can be used to characterize the relative distance between the front vehicle and the rear vehicle. In this embodiment, after determining the position information of the front vehicle and the rear vehicle, the relative distance information between the front vehicle and the rear vehicle can be determined based on the distance between the line between the position information of the front vehicle and the rear vehicle. It should be noted that if the radar detection area is a straight section, the relative distance information between the front vehicle and the rear vehicle can be directly determined based on the straight-line distance between the position information of the front vehicle and the rear vehicle; if the radar detection area is not a straight section, it is necessary to further determine the relative distance information between the front vehicle and the rear vehicle in combination with the direction of the section.

[0071] S130: Determine whether a vehicle warning condition is met based on the relative distance information, the speed information of the preceding vehicle, and the speed information of the following vehicle.

[0072] Among them, the vehicle warning condition can be used as a basis for whether a vehicle warning is needed. Specifically, if the vehicle warning condition is met, it indicates that a vehicle warning is needed; if the vehicle warning condition is not met, it indicates that a vehicle warning is not needed. It should be noted that this embodiment does not impose any restrictions on the vehicle warning condition, and it can be flexibly set according to actual application scenarios and needs.

[0073] In this embodiment, optionally, whether the vehicle warning condition is met is determined based on the relative distance information, the front vehicle speed information and the rear vehicle speed information, including: if the relative distance information is less than a preset distance threshold, and the front vehicle speed information is less than the rear vehicle speed information, then it is determined that the vehicle warning condition is met.

[0074] The preset distance threshold may refer to a preset relative distance value between the leading vehicle and the trailing vehicle, which may be used to describe the distance between the leading vehicle and the trailing vehicle. In this embodiment, if the relative distance information is less than the preset distance threshold, it indicates that the relative distance between the leading vehicle and the trailing vehicle is relatively close. If the speed information of the leading vehicle is less than the speed information of the trailing vehicle at the same time, the trailing vehicle may collide with the leading vehicle due to visual discomfort of the driver. In order to avoid vehicle collision, in this case, it may be determined that the vehicle warning condition is met so that a warning prompt may be given to the trailing vehicle later.

[0075] In this embodiment, optionally, whether the vehicle warning condition is met is determined based on the relative distance information, the front vehicle speed information and the rear vehicle speed information, including: if the relative distance information is less than a preset distance threshold, the front vehicle speed information is less than a preset speed threshold, and the front vehicle speed information is less than the rear vehicle speed information, then it is determined that the vehicle warning condition is met.

[0076] The preset speed threshold may refer to a preset vehicle speed value, which can be used to describe the speed of the vehicle. It should be noted that in actual application scenarios, there may be a situation where the vehicle in front slightly decelerates and then quickly accelerates. At this time, there will be no vehicle collision, and in order to save energy, there is no need to warn the vehicle. Therefore, in order to further optimize the vehicle warning conditions, the deceleration degree of the vehicle in front can be considered at the same time.

[0077] In this embodiment, if the relative distance information is less than the preset distance threshold, it indicates that the relative distance between the leading vehicle and the trailing vehicle is relatively close. If the speed information of the leading vehicle is less than the preset speed threshold, it indicates that the deceleration degree of the leading vehicle is relatively large. If the speed information of the leading vehicle is less than the speed information of the trailing vehicle, the driver may experience visual discomfort and the trailing vehicle may collide with the leading vehicle. In order to avoid vehicle collision, in this case, it can be determined that the vehicle warning condition is met so that a warning prompt can be given to the trailing vehicle later.

[0078] In this embodiment, optionally, whether the vehicle warning condition is met is determined based on the relative distance information, the speed information of the leading vehicle, and the speed information of the trailing vehicle, including: determining the relative speed information of the leading vehicle and the trailing vehicle based on the speed information of the leading vehicle and the trailing vehicle; determining the collision time between the leading vehicle and the trailing vehicle based on the relative distance information and the relative speed information; if the collision time is less than a preset time threshold, determining that the vehicle warning condition is met.

[0079] The relative speed information may be used to characterize the speed difference between the front vehicle and the rear vehicle. The collision time may refer to the time required for the front vehicle to collide with the rear vehicle. The preset time threshold may refer to a preset vehicle collision time value.

[0080] In this embodiment, first, the relative speed information of the leading vehicle and the trailing vehicle is determined based on the speed information of the leading vehicle and the trailing vehicle. Specifically, the difference between the speed information of the leading vehicle and the speed information of the trailing vehicle is the relative speed information of the leading vehicle and the trailing vehicle. Then, the collision time of the leading vehicle and the trailing vehicle can be determined based on the relative distance information and the relative speed information. Specifically, the ratio of the relative distance information to the relative speed information is the collision time of the leading vehicle and the trailing vehicle. If the collision time is less than the preset time threshold, it indicates that a vehicle collision will occur in a relatively short time. At this time, in order to avoid the collision, it can be determined that the vehicle warning condition is met so that a warning prompt can be given to the trailing vehicle later.

[0081] Through such an arrangement, the present solution determines whether a vehicle warning is needed by setting different vehicle warning conditions, thereby improving the flexibility and adaptability of vehicle warning.

[0082] S140: If the conditions are met, a warning message is sent to the following vehicle to remind the following vehicle to slow down.

[0083] Among them, the warning information may refer to the information displayed when the vehicle is warned. It should be noted that this embodiment does not impose any restrictions on the content and display form of the warning information, and can be flexibly set according to the actual application scenario. For example, the warning information can be displayed in text form on a display screen, or in broadcast form through a tweeter. In this embodiment, if the vehicle warning conditions are met, the warning information is prompted to the following vehicle to remind the following vehicle to slow down.

[0084] Optionally, warning information is prompted to the following vehicle, including: prompting the following vehicle with warning information through a warning device; wherein the warning device is located in a radar detection area.

[0085] Among them, the early warning device may refer to a device used to warn a vehicle, which may be located in the radar detection area. Exemplarily, the early warning device may be a display screen and / or a tweeter. It should be noted that this embodiment does not impose any limitation on the specific position of the early warning device in the radar detection area, and it can be flexibly set according to the actual application scenario. Exemplarily, for radar detection areas where vision is obstructed due to differences in visual perception, the early warning device can be set in places where the light intensity changes dramatically, such as the entrance and exit of a tunnel. Since the light intensity here changes greatly, it can better provide early warning prompts for passing vehicles.

[0086] Through such an arrangement, the present solution can provide warning information to the following vehicles through the warning device, so as to better provide warning prompts to the oncoming vehicles.

[0087] The technical solution of the embodiment of the present invention determines the position information of the leading vehicle and the rear vehicle in the radar detection area at the current moment, and determines the speed information of the leading vehicle and the rear vehicle; wherein the radar detection area includes the area where the vision is obstructed due to visual perception differences and / or visual blind spots during vehicle driving; determines the relative distance information between the leading vehicle and the rear vehicle based on the position information of the leading vehicle and the rear vehicle; determines whether the vehicle warning conditions are met based on the relative distance information, the speed information of the leading vehicle and the speed information of the rear vehicle; if met, prompts the rear vehicle with warning information to remind the rear vehicle to slow down. This technical solution can use radar detection to timely warn vehicles in vehicle driving areas with visual differences and visual blind spots to remind the driver to slow down, thereby avoiding vehicle collisions caused by visual discomfort of the driver, which helps to improve the safety of vehicle driving.

[0088] In this embodiment, optionally, determining the leading vehicle position information and the trailing vehicle position information in the radar detection area at the current moment includes: determining a current radar image of the radar detection area; separating the background and the foreground in the current radar image to obtain a target radar image after the background is removed; wherein the foreground of the target radar image corresponds to at least one leading vehicle area and at least one trailing vehicle area; and determining the leading vehicle position information and the trailing vehicle position information based on the target radar image.

[0089] Among them, the current radar image may refer to the radar image formed by the radar transmitter transmitting radio waves to the radar detection area and the receiver receiving scattered echoes after the vehicle enters the radar detection area. There is a corresponding relationship between each pixel point in the current radar image and each detection position point in the radar detection area, that is, the current radar image is divided into a number of small squares, each small square can be called a pixel point, and by analyzing and processing the information of each pixel point, the information characteristics of each detection position point corresponding to the radar detection area corresponding to each pixel point can be obtained. Exemplarily, by representing the position, color, brightness and other information of each pixel point, the current radar image can be represented to achieve the acquisition of information of each detection position point, such as the signal strength of each detection position point.

[0090] Optionally, determining a current radar image of the radar detection area includes: scanning the front vehicle and the rear vehicle entering the radar detection area at the current moment by means of a microwave radar to obtain a current radar image at the current moment; wherein the value of each pixel point in the current radar image is used to describe the signal strength of the radar reflected wave when the radar scans the detection position point, and the current radar image is a grayscale image.

[0091] Among them, the microwave radar may refer to a radar system that works in the microwave band (frequency range of 300MHz-3THz) to detect object information. For example, the microwave radar may be a millimeter wave radar or a centimeter wave radar. In this embodiment, the microwave radar may be used to scan the front vehicle and the rear vehicle entering the radar detection area at the current moment to obtain the current radar image at the current moment. Among them, the value of each pixel point in the current radar image can be used to describe the signal strength of the radar reflected wave when the radar scans the detection position point, and the current radar image is a grayscale image. Specifically, at the current moment, the radar detection area is scanned by the microwave radar to obtain the signal strength of the radar reflected wave when the radar scans the detection position point, and it is represented in the radar image through the pixel point value, thereby obtaining the current radar image of the radar detection area.

[0092] Through such a setting, the present solution can quickly and accurately obtain the current radar image with the help of microwave radar, so as to facilitate the subsequent information detection of the leading vehicle and the following vehicle entering the radar detection area based on the current radar image.

[0093] In this embodiment, the background may refer to the image of an inherent object in the radar detection area corresponding to the radar image, such as a road or a building in the radar detection area. The foreground may refer to a vehicle to be detected in the radar detection area corresponding to the radar image. The target radar image may refer to a radar image after background removal of the current radar image. Specifically, the foreground of the target radar image corresponds to at least one vehicle area in front and at least one vehicle area in the rear. Among them, the vehicle area in front may refer to the area in the radar detection area that is included in the vehicle in front. The vehicle area in the rear may refer to the area in the radar detection area that is included in the vehicle in the rear. It should be noted that this embodiment does not impose any restrictions on the shape and size of the vehicle area in front and the vehicle area in the rear, which can be set according to actual application requirements. For example, the vehicle area in front and the vehicle area in the rear may be square, rectangular or circular.

[0094] In this embodiment, after acquiring the current radar image, the values ​​of each pixel point in the current radar image can be analyzed and processed to separate the background and foreground of the current radar image, and obtain a target radar image after the background is removed, so as to separate the front vehicle area and the rear vehicle area from the current radar image. Then, the position information of the front vehicle and the rear vehicle can be determined based on the target radar image.

[0095] Through such a setting, the present scheme separates the background and foreground in the current radar image to obtain a target radar image after the background is removed, thereby separating the front vehicle area and the rear vehicle area from the current radar image, so as to accurately determine the position information of the front vehicle and the rear vehicle subsequently.

[0096] In this embodiment, optionally, separating the background and foreground in the current radar image to obtain the target radar image after the background is removed includes: determining a preset number of previous radar images acquired before the current radar image; the previous radar image includes a radar image acquired within a neighboring time before the current radar image is acquired or a radar image acquired by closing a radar detection area; performing image cumulative averaging on the preset number of previous radar images to obtain a cumulative average image corresponding to the previous radar image; and separating the background and foreground in the current radar image according to the cumulative average image to obtain the target radar image after the background is removed.

[0097] The preset number may refer to the number of radar images that need to be acquired by scanning the radar detection area before acquiring the current radar image, determined according to actual needs. The previous radar image may refer to a collection of all radar images acquired by scanning the radar detection area by radar in the immediate period before acquiring the current radar image, or an image acquired by scanning the radar detection area by radar when the radar detection area is closed so that there are no interference factors such as vehicles in the radar detection area.

[0098] In this embodiment, a microwave radar can be used to scan the radar detection area to obtain a preset number of previous radar images, and each image is recorded as F. The preset number of previous radar images are then cumulatively averaged to obtain a cumulative average image F of the previous radar image. Next, the current radar image obtained by scanning the radar detection area by the radar at the current moment is obtained, and the background and foreground in the current radar image are separated according to the cumulative average image of the previous radar image to obtain the target radar image after the background is removed.

[0099] Through such a setting, the present scheme can better separate the background and foreground in the current radar image with the help of the cumulative average image of the previous radar image, so as to obtain an accurate target radar image after the background is removed, which is conducive to more accurate determination of the position information of the preceding vehicle and the following vehicle in the subsequent process.

[0100] In this embodiment, optionally, a self-learning background removal method is used to separate the background and foreground in the current radar image to obtain a target radar image after background removal. The specific process is as follows:

[0101] For the pixel point to be identified in the current radar image, determine the target detection position point corresponding to the pixel point to be identified in the radar detection area and the preset signal strength probability distribution model corresponding to the radar when scanning the target detection position point, and then detect the matching result of the value of the pixel point to be identified and the preset signal strength probability distribution model corresponding to the target detection position point, that is, detect whether at least one normal distribution model in the preset signal strength probability distribution model corresponding to the value of the pixel point to be identified and the target detection position point meets the preset matching condition. If there is at least one normal distribution model that meets the preset matching condition, it is determined that the pixel point to be identified is a background pixel in the current radar image; if there is no normal distribution model that meets the preset matching condition, it is determined that the pixel point to be identified is a foreground pixel in the current radar image, so that the target radar image after the background is removed in the current radar image can be accurately obtained.

[0102] Among them, the pixel point to be identified may refer to the pixel point that needs to be detected in the current radar image. The target detection position point may refer to the detection position in the radar detection area corresponding to the pixel point to be identified in the current radar image, and there is a one-to-one correspondence between each pixel point in the current radar image and each target detection position point in the radar detection area. The preset signal strength probability distribution model can be used to describe the signal strength probability distribution of the radar reflection wave when the target detection position point is scanned when the radar detection area does not include the foreground, and there are multiple normal distribution models in the preset signal strength probability distribution model. The preset matching condition includes that the value of the pixel point to be identified and the mean of the normal distribution model meet the preset Laida criterion.

[0103] Through such a setting, the present scheme can also separate the background and foreground in the current radar image using the self-learning background removal method to obtain an accurate target radar image after background removal, which is conducive to more accurate determination of the position information of the preceding vehicle and the following vehicle in the subsequent process.

[0104] In this embodiment, optionally, the background and foreground in the current radar image are separated according to the cumulative average image to obtain the target radar image after the background is removed, including: performing image difference processing on the current radar image and the cumulative average image of the previous radar image to obtain the image after the image difference processing; and separating the background and foreground in the current radar image by binarizing the image after the image difference processing to obtain the target radar image after the background is removed.

[0105] The image difference processing may refer to performing difference processing on two similar images. The result of the binarization processing is that each pixel on the image has only two possible values ​​or grayscale states, that is, the grayscale value of any pixel in the image is 0 or 255, representing black and white respectively.

[0106] In this embodiment, after obtaining the cumulative average image of the current radar image F and the previous radar image Afterwards, the current radar image and the cumulative average image of the previous radar image can be subjected to image difference processing to obtain the image F after image difference processing. Δ , which can be expressed as: Where F is the grayscale image of the current radar image. Then, the image F after image difference processing can be obtained by the following formula: Δ Perform binarization:

[0107]

[0108] Among them, f ij ' is the gray value of the corresponding pixel after the radar image is binarized, is the grayscale value of the corresponding pixel in the radar image, and T is the preset grayscale value. The preset grayscale value may refer to a critical value at which the grayscale value of the corresponding pixel in the radar image is converted to 0 or 255. It should be noted that when the grayscale value of the corresponding pixel in the radar image is greater than or equal to the preset grayscale value, the grayscale value of the corresponding pixel is converted to 255, otherwise it is converted to 0.

[0109] In this embodiment, F Δ The pixel value of each pixel in is converted to 0 or 255. Among them, the pixel with a pixel value of 0 is the background, and the pixel with a pixel value of 255 is the foreground. In this way, the background and foreground in the current radar image can be separated, so as to obtain the target radar image after the background is removed.

[0110] Through such a setting, the present scheme quickly and accurately separates the background and foreground in the current radar image through image difference processing and binarization processing to obtain a target radar image after background removal, so that the target radar image after background removal is more accurate, and the position information of the leading vehicle and the rear vehicle can be determined more accurately.

[0111] Embodiment 2

[0112] Figure 2 This is a flow chart of a vehicle warning method provided by Embodiment 2 of the present invention. This embodiment is optimized based on the above embodiment. Figure 2 As shown, the method of this embodiment specifically includes the following steps:

[0113] S210, determining a current radar image in the radar detection area, and separating the background and foreground in the current radar image to obtain a target radar image after the background is removed.

[0114] S220, performing edge detection on the target radar image to obtain an edge detection map of the target radar image.

[0115] The edge detection map may refer to an image after edge detection of the target radar image. In this embodiment, after determining the target radar image, edge detection may be performed on the target radar image to distinguish between real and potential edges in the target radar image, thereby obtaining an accurate edge detection map of the target radar image.

[0116] S230, determining the front vehicle position information and the rear vehicle position information corresponding to the foreground of the target radar image according to the edge detection map of the target radar image.

[0117] In this embodiment, after determining the edge detection map of the target radar image, the front vehicle position information and the rear vehicle position information corresponding to the foreground of the target radar image can be further determined based on the edge detection map, so as to accurately obtain the front vehicle position information and the rear vehicle position information.

[0118] S240: Determine relative distance information between the leading vehicle and the trailing vehicle based on the leading vehicle position information and the trailing vehicle position information.

[0119] S250: Determine whether a vehicle warning condition is met based on the speed information of the preceding vehicle and the following vehicle in the radar detection area at the current moment and the relative distance information.

[0120] S260: If the conditions are met, a warning message is sent to the following vehicle to remind the following vehicle to slow down.

[0121] The technical solution of the embodiment of the present invention determines the current radar image of the radar detection area, and separates the background and foreground in the current radar image to obtain the target radar image after the background is removed; performs edge detection on the target radar image to obtain the edge detection map of the target radar image; determines the front vehicle position information and the rear vehicle position information corresponding to the foreground of the target radar image based on the edge detection map of the target radar image; determines the relative distance information between the front vehicle and the rear vehicle based on the front vehicle position information and the rear vehicle position information; if satisfied, prompts the rear vehicle with warning information to remind the rear vehicle to slow down. This technical solution can timely warn vehicles in vehicle driving areas with visual differences and visual blind spots through radar detection to remind the driver to slow down, thereby avoiding vehicle collisions caused by visual discomfort of the driver, and further improving the safety of vehicle driving.

[0122] In this embodiment, optionally, edge detection is performed on the target radar image to obtain an edge detection map of the target radar image, including: performing morphological processing on the target radar image to obtain a processed radar image; dividing the front vehicle area and the rear vehicle area in the foreground of the target radar image into different sub-areas due to separation of the foreground and the background; performing Gaussian smoothing processing on the processed radar image, and performing edge detection on the processed radar image after Gaussian smoothing to obtain the edge detection map of the target radar image.

[0123] In this embodiment, in the process of determining the target radar image, the front vehicle area and / or the rear vehicle area may be divided into different sub-areas, so it is necessary to first perform morphological processing on the target radar image to obtain a processed radar image, then perform Gaussian smoothing processing on the processed radar image to eliminate noise caused by radar detection, and finally perform edge detection on the processed radar image after Gaussian smoothing to accurately distinguish the edges of the front vehicle and the rear vehicle in the target radar image, thereby accurately obtaining an edge detection map of the target radar image.

[0124] Through such a setting, the present scheme performs morphological processing and Gaussian smoothing processing on the target radar image in sequence, thereby eliminating some small noise points caused by radar detection, improving the accuracy of the image, and obtaining an edge detection map of the target radar image through image edge detection, so as to subsequently accurately determine the position information of the vehicle in front and the vehicle in the back.

[0125] In this embodiment, optionally, morphological processing is performed on the target radar image to obtain a processed radar image, including: performing a morphological dilation operation on the target radar image to obtain an expanded radar image; the morphological dilation operation is used to eliminate internal holes and / or gaps in neighboring regions between different sub-regions corresponding to the foreground; and performing a morphological erosion operation on the expanded radar image to obtain an eroded radar image, and using it as the processed radar image.

[0126] The expanded radar image may refer to an image obtained by performing a morphological expansion operation on the target radar image, and may be used to eliminate internal holes and / or gaps between different sub-regions corresponding to the foreground and / or gaps in neighboring regions. The eroded radar image may refer to an image obtained by performing a morphological erosion operation on the expanded radar image.

[0127] In this embodiment, since the front vehicle region and / or the rear vehicle region may be divided into different sub-regions in the process of determining the target radar image, in order to eliminate the internal holes and / or the gaps between the different sub-regions corresponding to the front vehicle region and / or the rear vehicle region, the target radar image needs to be subjected to a morphological dilation operation to obtain an expanded radar image. Since the region becomes larger after dilation, the morphological erosion operation is performed on the expanded radar image to obtain an eroded radar image, so that the area of ​​the region can be restored to the area before dilation, and this is used as the processed radar image, so that the front vehicle region and the rear vehicle region can be more accurately characterized.

[0128] Through such a setting, the present scheme performs a morphological dilation operation on the target radar image, thereby eliminating internal holes and / or gaps in neighboring areas corresponding to different sub-areas of the foreground, and then performs a morphological erosion operation on the expanded radar image, so that the area of ​​the image region is restored to that before the dilation, which can more accurately characterize the front vehicle area and the rear vehicle area, and is conducive to the subsequent analysis of the front vehicle area and the rear vehicle area.

[0129] In this embodiment, optionally, determining the front vehicle position information and the rear vehicle position information corresponding to the foreground of the target radar image based on the edge detection map of the target radar image includes: extracting the outer boundary inflection point positions of the front vehicle area and the rear vehicle area in the foreground of the target radar image based on the edge detection map of the target radar image; the outer boundary inflection point positions are described by pixel row and column identifiers corresponding to the outer boundary inflection points; determining the geometric center positions of the front vehicle area and the rear vehicle area based on the outer boundary inflection point positions of the front vehicle area and the rear vehicle area in the foreground of the target radar image; determining the front vehicle position information and the rear vehicle position information based on the geometric center positions of the front vehicle area and the rear vehicle area.

[0130] In this embodiment, firstly, the outer boundary inflection point positions of the front vehicle region and the rear vehicle region in the foreground of the target radar image are extracted according to the edge detection map of the target radar image. Among them, the outer boundary inflection point positions can be described by the pixel row and column identifiers corresponding to the outer boundary inflection points. Specifically, the outer boundary inflection point positions can be expressed as: Among them, D i represents the coordinate set of the outer boundary inflection points of the i-th target area, Represents the row and column geometric pixel coordinates of the mth inflection point of the outer boundary of the ith target region.

[0131] Then, the geometric center positions of the front vehicle area and the rear vehicle area can be determined according to the positions of the outer boundary inflection points of the front vehicle area and the rear vehicle area in the foreground of the target radar image. For example, the maximum and minimum values ​​of the row geometric pixel coordinates of the m inflection points of the outer boundary of the i-th front vehicle area are summed, and half of the sum is used as the row pixel coordinate r of the geometric center position of the front vehicle area. i Similarly, sum the maximum and minimum values ​​of the column geometric pixel coordinates of the m inflection points on the outer boundary of the front vehicle area, and then use half of the sum as the column pixel coordinate c of the geometric center position of the front vehicle area i , that is, the geometric center position of the front vehicle area can be expressed as:

[0132]

[0133] In order to make the outer boundary inflection point position in the radar image correspond to the position in the actual scene, the outer boundary inflection point position of the front vehicle area and the rear vehicle area in the radar image can be further transformed into the Cartesian coordinate system. Because one pixel represents a square area with a side length of Δ meters, and the origin of the Cartesian coordinate system is located at the center of the image, it can be calculated (r i ,c i )The corresponding Cartesian coordinate system is:

[0134]

[0135] Then the geometric center positions of the front vehicle area and the rear vehicle area are converted into a set of corresponding Cartesian coordinate system coordinates, which can be expressed as:

[0136] X={(x 1 ,y 1 ),(x 2 ,y 2 ),…,(x n ,y n )

[0137] Then, the set of Cartesian coordinate system coordinates is clustered to determine the set of Cartesian coordinate system coordinates corresponding to the geometric center positions of the front vehicle area and the rear vehicle area after clustering. ′ , to avoid the situation where the position information of the leading vehicle and the following vehicle is inaccurate due to inaccurate coordinate positions.

[0138] Through such a setting, the present scheme determines the position information of the leading vehicle and the rear vehicle according to the corresponding geometric center positions determined by the positions of the outer boundary inflection points of the leading vehicle area and the rear vehicle area, thereby avoiding misjudgment of whether vehicle warning is needed due to errors in the position information of the leading vehicle and the rear vehicle.

[0139] Embodiment 3

[0140] Figure 3 This is a schematic diagram of the structure of a vehicle warning device provided in Embodiment 3 of the present invention. The device can execute the vehicle warning method provided in any embodiment of the present invention and has the corresponding functional modules and beneficial effects of the execution method. Figure 3 As shown, the device comprises:

[0141] The vehicle information determination module 310 is used to determine the position information of the preceding vehicle and the following vehicle in the radar detection area at the current moment, and determine the speed information of the preceding vehicle and the following vehicle; wherein the radar detection area includes an area where vision is obstructed due to visual perception differences and / or visual blind spots during vehicle driving;

[0142] A relative distance information determination module 320, configured to determine the relative distance information between the leading vehicle and the trailing vehicle according to the leading vehicle position information and the trailing vehicle position information;

[0143] The vehicle warning condition determination module 330 is used to determine whether the vehicle warning condition is met according to the relative distance information, the preceding vehicle speed information and the following vehicle speed information;

[0144] The warning information prompting module 340 is used to prompt the following vehicle with warning information if the conditions are met, so as to remind the following vehicle to slow down.

[0145] Optionally, the vehicle information determination module 310 includes:

[0146] A current radar image determination submodule is used to determine the current radar image of the radar detection area;

[0147] A target radar image determination submodule is used to separate the background and foreground in the current radar image to obtain a target radar image after the background is removed; wherein the foreground of the target radar image corresponds to at least one preceding vehicle region and at least one following vehicle region;

[0148] The vehicle position information determination submodule is used to determine the position information of the preceding vehicle and the position information of the following vehicle according to the target radar image.

[0149] Optionally, the current radar image determination submodule is used to:

[0150] Scanning the front vehicle and the rear vehicle entering the radar detection area at the current moment by microwave radar to obtain the current radar image at the current moment;

[0151] The value of each pixel in the current radar image is used to describe the signal strength of the radar reflection wave when the radar scans the detection position point, and the current radar image is a grayscale image.

[0152] Optionally, the target radar image determination submodule includes:

[0153] A previous radar image determination unit, used to determine a preset number of previous radar images acquired before the current radar image; the previous radar image includes a radar image acquired within a nearby time before the current radar image is acquired or a radar image acquired by closing a radar detection area;

[0154] A cumulative average image determination unit, used for performing image cumulative averaging on a preset number of previous radar images to obtain a cumulative average image corresponding to the previous radar image;

[0155] The target radar image determination unit is used to separate the background and foreground in the current radar image according to the accumulated average image to obtain a target radar image after the background is removed.

[0156] Optionally, the target radar image determination unit is used to:

[0157] Performing image difference processing on the current radar image and the cumulative average image of the previous radar image to obtain an image after image difference processing;

[0158] By performing binarization on the image after image difference processing, the background and foreground in the current radar image are separated to obtain the target radar image after background removal.

[0159] Optionally, the vehicle position information determination submodule includes:

[0160] An edge detection map determining unit, configured to perform edge detection on the target radar image to obtain an edge detection map of the target radar image;

[0161] The vehicle position information determining unit is used to determine the front vehicle position information and the rear vehicle position information corresponding to the foreground of the target radar image according to the edge detection map of the target radar image.

[0162] Optionally, the edge detection map determining unit includes:

[0163] a processed radar image determination subunit, configured to perform morphological processing on the target radar image to obtain a processed radar image; a front vehicle region and a rear vehicle region in the foreground of the target radar image are segmented into different sub-regions due to the separation of the foreground and the background;

[0164] The edge detection map determination subunit is used to perform Gaussian smoothing on the processed radar image, and perform edge detection on the processed radar image after Gaussian smoothing to obtain an edge detection map of the target radar image.

[0165] Optionally, the processed radar image determination subunit is used to:

[0166] Performing a morphological dilation operation on the target radar image to obtain an expanded radar image; the morphological dilation operation is used to eliminate internal holes and / or gaps between different sub-regions corresponding to the foreground and the neighboring regions;

[0167] A morphological erosion operation is performed on the expanded radar image to obtain an eroded radar image, which is used as the processed radar image.

[0168] Optionally, the vehicle position information determining unit is used to:

[0169] Extracting the positions of the outer boundary inflection points of the front vehicle region and the rear vehicle region in the foreground of the target radar image according to the edge detection map of the target radar image; the positions of the outer boundary inflection points are described by pixel row and column identifiers corresponding to the outer boundary inflection points;

[0170] Determining the geometric center positions of the front vehicle region and the rear vehicle region according to the positions of the outer boundary inflection points of the front vehicle region and the rear vehicle region in the foreground of the target radar image;

[0171] The leading vehicle position information and the rear vehicle position information are determined based on the geometric center positions of the leading vehicle area and the rear vehicle area.

[0172] Optionally, the vehicle warning condition determination module 330 is used to:

[0173] If the relative distance information is less than a preset distance threshold, and the speed information of the preceding vehicle is less than the speed information of the following vehicle, it is determined that the vehicle warning condition is met.

[0174] Optionally, the vehicle warning condition determination module 330 is further used to:

[0175] If the relative distance information is less than a preset distance threshold, the preceding vehicle speed information is less than a preset speed threshold, and the preceding vehicle speed information is less than the following vehicle speed information, it is determined that the vehicle warning condition is met.

[0176] Optionally, the vehicle warning condition determination module 330 is further used to:

[0177] Determining relative speed information between the leading vehicle and the trailing vehicle according to the leading vehicle speed information and the trailing vehicle speed information;

[0178] determining a collision time between the leading vehicle and the trailing vehicle according to the relative distance information and the relative speed information;

[0179] If the collision time is less than a preset time threshold, it is determined that the vehicle warning condition is met.

[0180] Optionally, the warning information prompt module 340 is used to:

[0181] The warning information is prompted to the following vehicle through a warning device; wherein the warning device is located in the radar detection area.

[0182] A vehicle warning device provided in an embodiment of the present invention can execute a vehicle warning method provided in any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method.

[0183] Embodiment 4

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

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

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

[0187] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a vehicle warning method.

[0188] In some embodiments, the vehicle warning method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the vehicle warning method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the vehicle warning method in any other appropriate manner (e.g., by means of firmware).

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

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

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

[0192] 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).

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

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

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

[0196] 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 vehicle early warning method, characterized in that: The method comprises: Determine the position information of the preceding vehicle and the following vehicle in the radar detection area at the current moment, and determine the speed information of the preceding vehicle and the following vehicle; wherein the radar detection area includes an area where vision is obstructed due to visual perception differences and / or visual blind spots during vehicle driving; Determining relative distance information between the leading vehicle and the trailing vehicle based on the leading vehicle position information and the trailing vehicle position information; Determining whether a vehicle warning condition is met according to the relative distance information, the preceding vehicle speed information, and the following vehicle speed information; If the conditions are met, a warning message is provided to the following vehicle to remind the following vehicle to slow down; Wherein, determining the position information of the preceding vehicle and the following vehicle in the radar detection area at the current moment includes: Determine a current radar image of the radar detection area; Separating the background and foreground in the current radar image to obtain a target radar image after the background is removed; wherein the foreground of the target radar image corresponds to at least one front vehicle area and at least one rear vehicle area; Determining the position information of the preceding vehicle and the position information of the following vehicle according to the target radar image; The step of separating the background and foreground in the current radar image to obtain a target radar image after the background is removed includes: For the pixel to be identified in the current radar image, determine the target detection position point corresponding to the pixel to be identified mapped in the radar detection area and the preset signal strength probability distribution model corresponding to the radar scanning at the target detection position point; Detect whether the value of the pixel point to be identified meets a preset matching condition with at least one normal distribution model in the preset signal strength probability distribution model corresponding to the target detection position point; If there is at least one normal distribution model that satisfies the preset matching condition, it is determined that the pixel to be identified belongs to a background pixel in the current radar image; If there is no normal distribution model that meets the preset matching condition, it is determined that the pixel to be identified is a foreground pixel in the current radar image; Based on the determination result of whether the pixel to be identified belongs to a background pixel or a foreground pixel, the background and foreground in the current radar image are separated to obtain a target radar image; Among them, the pixel point to be identified is the pixel point that needs to be detected in the current radar image; the target detection position point is the detection position in the radar detection area corresponding to the pixel point to be identified in the current radar image; the preset signal strength probability distribution model is used to describe the signal strength probability distribution of the radar reflection wave when the target detection position point is scanned when the radar detection area does not include the foreground, and the preset signal strength probability distribution model includes multiple normal distribution models; the preset matching condition includes that the value of the pixel point to be identified and the mean of the normal distribution model satisfy the preset Laida criterion.

2. The method according to claim 1, characterized in that Determine the current radar image of the radar detection area, including: Scanning the front vehicle and the rear vehicle entering the radar detection area at the current moment by microwave radar to obtain the current radar image at the current moment; The value of each pixel in the current radar image is used to describe the signal strength of the radar reflection wave when the radar scans the detection position point, and the current radar image is a grayscale image.

3. The method according to claim 1, characterized in that Determining the position information of the preceding vehicle and the position information of the following vehicle according to the target radar image includes: Performing edge detection on the target radar image to obtain an edge detection map of the target radar image; According to the edge detection map of the target radar image, the front vehicle position information and the rear vehicle position information corresponding to the foreground of the target radar image are determined.

4. The method according to claim 3, characterized in that Performing edge detection on the target radar image to obtain an edge detection map of the target radar image includes: The target radar image is subjected to morphological processing to obtain a processed radar image; the front vehicle region and the rear vehicle region in the foreground of the target radar image are divided into different sub-regions due to the separation of the foreground and the background; Gaussian smoothing is performed on the processed radar image, and edge detection is performed on the processed radar image after Gaussian smoothing to obtain an edge detection map of the target radar image.

5. The method according to claim 4, characterized in that Performing morphological processing on the target radar image to obtain a processed radar image includes: Performing a morphological dilation operation on the target radar image to obtain an expanded radar image; the morphological dilation operation is used to eliminate internal holes and / or gaps between different sub-regions corresponding to the foreground and the neighboring regions; A morphological erosion operation is performed on the expanded radar image to obtain an eroded radar image, which is used as the processed radar image.

6. The method according to claim 3, characterized in that Determining the preceding vehicle position information and the following vehicle position information corresponding to the foreground of the target radar image according to the edge detection map of the target radar image includes: Extracting the positions of the outer boundary inflection points of the front vehicle region and the rear vehicle region in the foreground of the target radar image according to the edge detection map of the target radar image; the positions of the outer boundary inflection points are described by pixel row and column identifiers corresponding to the outer boundary inflection points; Determining the geometric center positions of the front vehicle region and the rear vehicle region according to the positions of the outer boundary inflection points of the front vehicle region and the rear vehicle region in the foreground of the target radar image; The leading vehicle position information and the rear vehicle position information are determined based on the geometric center positions of the leading vehicle area and the rear vehicle area.

7. The method according to claim 1, characterized in that Determining whether a vehicle warning condition is met according to the relative distance information, the preceding vehicle speed information, and the following vehicle speed information includes: If the relative distance information is less than a preset distance threshold, and the speed information of the preceding vehicle is less than the speed information of the following vehicle, it is determined that the vehicle warning condition is met.

8. The method according to claim 1, characterized in that Determining whether a vehicle warning condition is met according to the relative distance information, the preceding vehicle speed information, and the following vehicle speed information includes: If the relative distance information is less than a preset distance threshold, the preceding vehicle speed information is less than a preset speed threshold, and the preceding vehicle speed information is less than the following vehicle speed information, it is determined that the vehicle warning condition is met.

9. The method according to claim 1, characterized in that: Determining whether a vehicle warning condition is met according to the relative distance information, the preceding vehicle speed information, and the following vehicle speed information includes: Determining relative speed information between the leading vehicle and the trailing vehicle according to the leading vehicle speed information and the trailing vehicle speed information; determining a collision time between the leading vehicle and the trailing vehicle according to the relative distance information and the relative speed information; If the collision time is less than a preset time threshold, it is determined that the vehicle warning condition is met.

10. The method according to claim 1, characterized in that Then, a warning message is provided to the following vehicle, including: The warning information is prompted to the following vehicle through a warning device; wherein the warning device is located in the radar detection area.

11. A vehicle warning device, characterized in that: The device comprises: A vehicle information determination module, used to determine the position information of the preceding vehicle and the following vehicle in the radar detection area at the current moment, and to determine the speed information of the preceding vehicle and the following vehicle; wherein the radar detection area includes an area where vision is obstructed due to visual perception differences and / or visual blind spots during vehicle driving; A relative distance information determination module, used to determine the relative distance information between the leading vehicle and the trailing vehicle according to the leading vehicle position information and the trailing vehicle position information; A vehicle warning condition determination module, used to determine whether a vehicle warning condition is met according to the relative distance information, the preceding vehicle speed information, and the following vehicle speed information; A warning information prompting module is used to prompt the following vehicle with warning information if the conditions are met, so as to remind the following vehicle to slow down; Wherein, the vehicle information determination module includes: A current radar image determination submodule is used to determine the current radar image of the radar detection area; A target radar image determination submodule is used to separate the background and foreground in the current radar image to obtain a target radar image after the background is removed; wherein the foreground of the target radar image corresponds to at least one preceding vehicle region and at least one following vehicle region; A vehicle position information determination submodule, used to determine the position information of the preceding vehicle and the position information of the following vehicle based on the target radar image; Wherein, the target radar image determination submodule is specifically used for: For the pixel to be identified in the current radar image, determine the target detection position point corresponding to the pixel to be identified mapped in the radar detection area and the preset signal strength probability distribution model corresponding to the radar scanning at the target detection position point; Detect whether the value of the pixel point to be identified meets a preset matching condition with at least one normal distribution model in the preset signal strength probability distribution model corresponding to the target detection position point; If there is at least one normal distribution model that satisfies the preset matching condition, it is determined that the pixel to be identified belongs to a background pixel in the current radar image; If there is no normal distribution model that meets the preset matching condition, it is determined that the pixel to be identified is a foreground pixel in the current radar image; Based on the determination result of whether the pixel to be identified belongs to a background pixel or a foreground pixel, the background and foreground in the current radar image are separated to obtain a target radar image; Among them, the pixel point to be identified is the pixel point that needs to be detected in the current radar image; the target detection position point is the detection position in the radar detection area corresponding to the pixel point to be identified in the current radar image; the preset signal strength probability distribution model is used to describe the signal strength probability distribution of the radar reflection wave when the target detection position point is scanned when the radar detection area does not include the foreground, and the preset signal strength probability distribution model includes multiple normal distribution models; the preset matching condition includes that the value of the pixel point to be identified and the mean of the normal distribution model satisfy the preset Laida criterion.

12. A vehicle warning 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 vehicle warning method according to any one of claims 1 to 10.

13. 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 vehicle warning method according to any one of claims 1 to 10 when executed.

Citation Information

Patent Citations

  • Highway tunnel entrance section accident intelligent prevention and control and early warning system

    CN113706901A