Display method and device, vehicle and storage medium
By obtaining the orientation information of the target object and correcting the initial distance information, the inaccuracy problem of target data caused by sensor perception performance differences is solved, the accuracy and user experience of the target distance are improved, driving safety is enhanced, and the intelligent driving assistance system is provided. More precise environmental display.
Patent Information
- Application Number
- CN202410999740.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-24
- Publication Date
- 2024-11-12
AI Technical Summary
In the prior art, differences in perceived performance of sensors such as cameras and radars lead to inaccurate target data, reducing driving safety and user experience.
By obtaining the orientation information of the target object relative to the current vehicle and correcting the initial distance information, more accurate target distance information is obtained, and the relative position of the target object and the current vehicle are displayed in the preset display component.
It improves the accuracy of target distance information, eliminates the influence of sensor errors and environmental factors, enhances driving experience and driving safety, and lays the foundation for the intelligent driving assistance system.
Smart Images

Figure CN118928451A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of automobile technology, and in particular to a display method, device, vehicle and storage medium. Background Art
[0002] With the development of science and technology and the improvement of people's living standards, people pay more and more attention to the quality of travel. Cars have gradually evolved from traditional means of travel to new intelligent vehicles that need to meet people's personalized, safe and service-oriented needs. The key to achieving autonomous driving of vehicles lies in the recognition of targets in the driving environment. In existing technologies, due to the differences in the perception performance of sensors such as cameras and radars, there are often differences between the target data output by the perception end and the actual target data, which reduces driving safety and user experience. Summary of the invention
[0003] In view of the above problems, embodiments of the present invention are proposed to provide a display method, device, vehicle and storage medium that overcome the above problems or at least partially solve the above problems.
[0004] In order to achieve the above object, the technical solution adopted by the present invention is as follows:
[0005] In order to solve the above problems, in a first aspect, an embodiment of the present invention discloses a display method, the method comprising:
[0006] Obtaining initial distance information of the target object relative to the current vehicle collected by a preset sensor;
[0007] Acquiring position information of the target object relative to the current vehicle;
[0008] Correcting the initial distance information according to the position information of the target object relative to the current vehicle to obtain target distance information;
[0009] The relative position of the target object and the current vehicle is displayed in a preset display component according to the target distance information.
[0010] Optionally, the initial distance information includes an initial longitudinal distance, and the initial distance information is corrected according to the position information of the target object relative to the current vehicle to obtain the target distance information, including:
[0011] If the position information of the target vehicle relative to the current vehicle indicates that the target vehicle is located in front of the current vehicle, obtaining a first heading angle of the target vehicle relative to the current vehicle and a length of the current vehicle;
[0012] Calculating a positive cosine function value of the first heading angle;
[0013] The target longitudinal distance is calculated according to the positive cosine function value of the first heading angle, the initial longitudinal distance, and the length of the current vehicle.
[0014] Optionally, the correcting the initial distance information according to the position information of the target object relative to the current vehicle to obtain the target distance information further includes:
[0015] If the position information of the target vehicle relative to the current vehicle indicates that the target vehicle is located behind the current vehicle, obtaining a second heading angle of the target vehicle relative to the current vehicle and a length of the current vehicle;
[0016] Calculating a negative cosine function value of the second heading angle;
[0017] The target longitudinal distance is calculated according to the negative cosine function value of the second heading angle, the initial longitudinal distance, and the length of the current vehicle.
[0018] Optionally, the initial distance information includes an initial lateral distance, and the initial distance information is corrected according to the position information of the target object relative to the current vehicle to obtain the target distance information, including:
[0019] If the position information of the target vehicle relative to the current vehicle is that the target vehicle is located on the left side of the current vehicle, then obtaining a third heading angle of the target vehicle relative to the current vehicle and a length of the current vehicle;
[0020] Determining whether the third heading angle is greater than zero;
[0021] If the third heading angle is greater than zero and less than π / 2, calculating a first sine function value of the third heading angle, and calculating the target lateral distance according to the first sine function value, the length of the current vehicle, and the initial lateral distance;
[0022] If the third heading angle is greater than zero and greater than π / 2, calculating a second sine function value of the third heading angle, and calculating the target lateral distance according to the second sine function value, the length of the current vehicle, and the initial lateral distance;
[0023] If the third heading angle is less than zero and the absolute value of the third heading angle is less than π / 2, a third sine function value of the third heading angle is calculated, and the target lateral distance is calculated according to the third sine function value, the length of the current vehicle, and the initial lateral distance;
[0024] If the third heading angle is less than zero and the absolute value of the third heading angle is greater than π / 2, the four-sine function value of the third heading angle is calculated, and the target lateral distance is calculated according to the fourth sine function value, the length of the current vehicle, and the initial lateral distance.
[0025] Optionally, the correcting the initial distance information according to the position information of the target object relative to the current vehicle to obtain the target distance information further includes:
[0026] If the position information of the target vehicle relative to the current vehicle is that the target vehicle is located on the right side of the current vehicle, then obtaining a fourth heading angle of the target vehicle relative to the current vehicle and a length of the current vehicle;
[0027] Determining whether the fourth heading angle is greater than zero;
[0028] If the fourth heading angle is greater than zero and less than π / 2, a fifth sine function value of the fourth heading angle is calculated, and the target lateral distance is calculated according to the fifth sine function value, the length of the current vehicle, and the initial lateral distance;
[0029] If the fourth heading angle is greater than zero and greater than π / 2, a sixth sine function value of the fourth heading angle is calculated, and the target lateral distance is calculated according to the sixth sine function value, the length of the current vehicle, and the initial lateral distance;
[0030] If the fourth heading angle is less than zero and the absolute value of the fourth heading angle is less than π / 2, calculating the seventh sine function value of the fourth heading angle, and calculating the target lateral distance according to the seventh sine function value, the length of the current vehicle, and the initial lateral distance;
[0031] If the fourth heading angle is less than zero and the absolute value of the fourth heading angle is greater than π / 2, the eighth sine function value of the fourth heading angle is calculated, and the target lateral distance is calculated according to the eighth sine function value, the length of the current vehicle, and the initial lateral distance.
[0032] Optionally, before the step of acquiring the position information of the target object relative to the current vehicle, the step further includes:
[0033] Determining whether the initial distance information meets a trigger condition;
[0034] The obtaining the position information of the target object relative to the current vehicle includes:
[0035] If the initial distance information meets the trigger condition, the position information of the target object relative to the current vehicle is obtained.
[0036] Optionally, the initial distance information includes an initial lateral distance, and the determining whether the initial distance information satisfies a trigger condition includes:
[0037] Determining whether the initial lateral distance is less than a preset lateral distance threshold;
[0038] If the initial lateral distance is less than the preset lateral distance threshold, it is determined that the initial lateral distance meets the trigger condition.
[0039] Optionally, the initial distance information includes an initial longitudinal distance, and the determining whether the initial distance information satisfies a trigger condition includes:
[0040] Determining whether the initial longitudinal distance is less than a preset longitudinal distance threshold;
[0041] If the initial longitudinal distance is less than the preset longitudinal distance threshold, it is determined that the initial longitudinal distance meets the trigger condition.
[0042] In a second aspect, the present invention further discloses a display device, comprising:
[0043] A first acquisition module is used to acquire initial distance information of a target object relative to a current vehicle collected by a preset sensor;
[0044] A second acquisition module, used to acquire the position information of the target object relative to the current vehicle;
[0045] A correction module, used to correct the initial distance information according to the position information of the target object relative to the current vehicle to obtain target distance information;
[0046] The display module is used to display the relative position of the target object and the current vehicle in a preset display component according to the target distance information.
[0047] Optionally, the initial distance information includes an initial longitudinal distance, and the correction module includes:
[0048] A first acquisition submodule is used for acquiring a first heading angle of the target vehicle relative to the current vehicle and a length of the current vehicle if the position information of the target vehicle relative to the current vehicle indicates that the target vehicle is located in front of the current vehicle;
[0049] A first calculation submodule, used to calculate the positive cosine function value of the first heading angle;
[0050] The second calculation submodule is used to calculate the target longitudinal distance according to the positive cosine function value of the first heading angle, the initial longitudinal distance, and the length of the current vehicle.
[0051] Optionally, the correction module further includes:
[0052] A second acquisition submodule is used for acquiring a second heading angle of the target vehicle relative to the current vehicle and a length of the current vehicle if the position information of the target vehicle relative to the current vehicle indicates that the target vehicle is located behind the current vehicle;
[0053] A third calculation submodule, used for calculating a negative cosine function value of the second heading angle;
[0054] The fourth calculation submodule is used to calculate the target longitudinal distance according to the negative cosine function value of the second heading angle, the initial longitudinal distance, and the length of the current vehicle.
[0055] Optionally, the initial distance information includes an initial lateral distance, and the correction module includes:
[0056] A third acquisition submodule is used for acquiring a third heading angle of the target vehicle relative to the current vehicle and a length of the current vehicle if the position information of the target vehicle relative to the current vehicle indicates that the target vehicle is located on the left side of the current vehicle;
[0057] A first judging submodule, used to judge whether the third heading angle is greater than zero;
[0058] a first lateral distance calculation submodule, configured to calculate a first sine function value of the third heading angle if the third heading angle is greater than zero and less than π / 2, and calculate the target lateral distance according to the first sine function value, the length of the current vehicle, and the initial lateral distance;
[0059] A second lateral distance calculation submodule, if the third heading angle is greater than zero and greater than π / 2, calculates a second sine function value of the third heading angle, and calculates the target lateral distance according to the second sine function value, the length of the current vehicle, and the initial lateral distance;
[0060] A third lateral distance calculation submodule, if the third heading angle is less than zero and the absolute value of the third heading angle is less than π / 2, calculates a third sine function value of the third heading angle, and calculates the target lateral distance according to the third sine function value, the length of the current vehicle, and the initial lateral distance;
[0061] The fourth lateral distance calculation submodule calculates the four-sine function value of the third heading angle if the third heading angle is less than zero and the absolute value of the third heading angle is greater than π / 2, and calculates the target lateral distance according to the fourth sine function value, the length of the current vehicle, and the initial lateral distance.
[0062] Optionally, the correction module further includes:
[0063] a fourth acquisition submodule, configured to acquire a fourth heading angle of the target vehicle relative to the current vehicle and a length of the current vehicle if the position information of the target vehicle relative to the current vehicle indicates that the target vehicle is located to the right of the current vehicle;
[0064] A second judging submodule, used for judging whether the fourth heading angle is greater than zero;
[0065] a fifth lateral distance calculation submodule, which calculates a fifth sine function value of the fourth heading angle if the fourth heading angle is greater than zero and less than π / 2, and calculates the target lateral distance according to the fifth sine function value, the length of the current vehicle, and the initial lateral distance;
[0066] a sixth lateral distance calculation submodule, which calculates a sixth sine function value of the fourth heading angle if the fourth heading angle is greater than zero and greater than π / 2, and calculates the target lateral distance according to the sixth sine function value, the length of the current vehicle, and the initial lateral distance;
[0067] a seventh lateral distance calculation submodule, which calculates a seventh sine function value of the fourth heading angle if the fourth heading angle is less than zero and the absolute value of the fourth heading angle is less than π / 2, and calculates the target lateral distance according to the seventh sine function value, the length of the current vehicle, and the initial lateral distance;
[0068] The eighth lateral distance calculation submodule calculates the eighth sine function value of the fourth heading angle if the fourth heading angle is less than zero and the absolute value of the fourth heading angle is greater than π / 2, and calculates the target lateral distance according to the eighth sine function value, the length of the current vehicle, and the initial lateral distance.
[0069] Optionally, the device further comprises:
[0070] A judging module, used to judge whether the initial distance information satisfies a trigger condition;
[0071] The second acquisition module includes:
[0072] The fifth acquisition submodule is used to acquire the position information of the target object relative to the current vehicle if the initial distance information meets the trigger condition.
[0073] Optionally, the initial distance information includes an initial lateral distance, and the judging module includes:
[0074] A first judgment submodule, used to judge whether the initial lateral distance is less than a preset lateral distance threshold;
[0075] The first determination submodule is configured to determine that the initial lateral distance satisfies a trigger condition if the initial lateral distance is less than the preset lateral distance threshold.
[0076] Optionally, the initial distance information includes an initial longitudinal distance, and the judging module includes:
[0077] A second judgment submodule, judging whether the initial longitudinal distance is less than a preset longitudinal distance threshold;
[0078] The second determining submodule determines that the initial longitudinal distance satisfies a trigger condition if the initial longitudinal distance is less than the preset longitudinal distance threshold.
[0079] In a third aspect, an embodiment of the present invention further discloses a vehicle, comprising: a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program implements the steps of the above-mentioned data processing method when executed by the processor.
[0080] In a fourth aspect, the present invention further discloses a non-volatile readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the data processing method as described above are implemented.
[0081] The embodiments of the present invention include the following advantages:
[0082] In an embodiment of the present invention, by obtaining the position information of the target object relative to the current vehicle and correcting the initial distance information, the accuracy of the target distance information can be improved. The introduction of the position information helps to eliminate the influence of sensor errors and environmental factors, thereby obtaining more accurate distance data. By displaying the relative position of the target object and the current vehicle in a preset display component, the present invention can intuitively show the driver the surrounding traffic environment and enhance the driving experience; by accurately calculating and displaying the relative position of the target object and the current vehicle, not only the accuracy of the target object display and the performance of the system are improved, but also the user experience and driving safety are enhanced, laying the foundation for realizing a smarter and safer driving assistance system. BRIEF DESCRIPTION OF THE DRAWINGS
[0083] Figure 1 A flowchart of a display method provided by an embodiment of the present invention;
[0084] Figure 2 A schematic diagram of a vehicle in a driving process provided by an embodiment of the present invention;
[0085] Figure 3 A structural block diagram of a display device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0086] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0087] One of the core concepts of the embodiments of the present invention is that by obtaining the position information of the target object relative to the current vehicle and correcting the initial distance information, the accuracy of the target distance information can be improved. The introduction of position information helps to eliminate the influence of sensor errors and environmental factors, thereby obtaining more accurate distance data. The present invention can intuitively show the surrounding traffic environment to the driver by displaying the relative position of the target object and the current vehicle in a preset display component, thereby enhancing the driving experience; by accurately calculating and displaying the relative position of the target object and the current vehicle, not only the accuracy of the information and the performance of the system are improved, but also the user experience and driving safety are enhanced, laying the foundation for realizing a smarter and safer driving assistance system.
[0088] Reference Figure 1 , shows a flow chart of a display method provided by an embodiment of the present invention, the method may include the following steps:
[0089] Step 101, obtaining initial distance information of a target object relative to a current vehicle collected by a preset sensor;
[0090] In an embodiment of the present invention, the target object may refer to entities around the current vehicle that may affect the normal driving of the vehicle, which may be other vehicles, pedestrians, bicycles, animals, static obstacles (such as roadblocks, traffic cones, buildings, etc.). These target objects are objects that need to be monitored, identified and tracked in order to assess potential collision risks, plan safe driving paths or perform avoidance operations.
[0091] The preset sensor can transmit signals (such as radio waves, lasers, sound waves, etc.) and receive reflected signals, and determine the distance between the target object and the vehicle by calculating the propagation time or phase difference of the signals. The preset sensor can be a radar, a laser scanner, a camera, an ultrasonic sensor, etc., and the specific sampling type is not limited here. The initial distance information refers to the directly measured distance between the target object and the current vehicle.
[0092] It should be noted that the target objects in the embodiments of the present invention are explained by taking vehicles as examples.
[0093] Step 102: Obtain the position information of the target object relative to the current vehicle.
[0094] In the embodiment of the present invention, the orientation information refers to the direction and position data of the target object relative to the current vehicle, and may refer to front and rear position information or left and right position information.
[0095] In one embodiment of the present invention, before the step of obtaining the position information of the target object relative to the current vehicle, it also includes: determining whether the initial distance information meets the trigger condition; obtaining the position information of the target object relative to the current vehicle, including: if the initial distance information meets the trigger condition, then obtaining the position information of the target object relative to the current vehicle.
[0096] In an embodiment of the present invention, before obtaining the position information of the target object relative to the current vehicle, it is possible to first determine whether the initial distance information meets the trigger condition, that is, to determine whether the initial distance information is within an appropriate range, because when the distance between the target object and the current vehicle is too far, the recognition accuracy of the current vehicle's own sensor decreases with the increase of the distance, and it is no longer necessary to make corrections at this time. Therefore, when the initial distance information meets the trigger condition, the position information of the target object relative to the current vehicle can be obtained. If the initial distance information does not meet the trigger condition, it is not necessary to obtain the position information of the target object relative to the current vehicle. The present invention can achieve more intelligent management of sensor data, optimize resource allocation, and improve processing efficiency and accuracy by determining whether the initial distance information meets the trigger condition, thereby improving user experience and avoiding corrections when the distance is too far, which wastes resources.
[0097] In one embodiment of the present invention, the initial distance information includes an initial lateral distance, and determining whether the initial distance information satisfies the trigger condition includes: determining whether the initial lateral distance is less than a preset lateral distance threshold; if the initial lateral distance is less than the preset lateral distance threshold, determining that the initial lateral distance satisfies the trigger condition.
[0098] In an embodiment of the present invention, when the initial distance information includes the initial lateral distance, it can be determined whether the initial lateral distance is less than a preset lateral distance threshold. In one example, the lateral distance threshold is 5m, and it can be determined whether the initial lateral distance is less than 5m. If it is less than 5m, it can be determined that the initial lateral distance meets the trigger condition. If it is greater than or equal to 5m, it can be determined that the initial lateral distance does not meet the trigger condition.
[0099] In one embodiment of the present invention, the initial distance information includes an initial longitudinal distance, and determining whether the initial distance information satisfies the trigger condition includes: determining whether the initial longitudinal distance is less than a preset longitudinal distance threshold; if the initial longitudinal distance is less than the preset longitudinal distance threshold, determining that the initial longitudinal distance satisfies the trigger condition.
[0100] In an embodiment of the present invention, when the initial distance information includes the initial longitudinal distance, it can be determined whether the initial longitudinal distance is less than a preset longitudinal distance threshold. In an example, the longitudinal distance threshold is 150m, and it can be determined whether the initial longitudinal distance is less than 150m. If it is less than 150m, it can be determined that the initial longitudinal distance meets the trigger condition. If it is greater than or equal to 150m, it can be determined that the initial longitudinal distance does not meet the trigger condition. The present invention can avoid unnecessary processing of long-distance targets, thereby saving computing resources and energy and improving the overall efficiency of the system.
[0101] Step 103, correcting the initial distance information according to the position information of the target object relative to the current vehicle to obtain the target distance information.
[0102] In the embodiment of the present invention, after the position information of the target object relative to the current vehicle is acquired, the initial distance information can be corrected according to the position information of the target object relative to the current vehicle, thereby obtaining accurate target distance information.
[0103] In one embodiment of the present invention, the initial distance information includes an initial longitudinal distance. The initial distance information is corrected according to the orientation information of the target object relative to the current vehicle to obtain the target distance information, including: if the orientation information of the target vehicle relative to the current vehicle is that the target vehicle is located in front of the current vehicle, then the first heading angle of the target vehicle relative to the current vehicle and the length of the current vehicle are obtained; the positive cosine function value of the first heading angle is calculated; and the target longitudinal distance is calculated according to the positive cosine function value of the first heading angle, the initial longitudinal distance, and the length of the current vehicle.
[0104] In the embodiment of the present invention, when the initial distance information includes the initial longitudinal distance, if the position information of the target vehicle relative to the current vehicle is that the target vehicle is located in front of the current vehicle, the first heading angle of the target vehicle relative to the current vehicle and the length of the current vehicle can be obtained; the target longitudinal distance is calculated by formula (1):
[0105]
[0106] Among them, x f1 Refers to the longitudinal distance of the target, x f Refers to the initial longitudinal distance, L f Refers to the length of the current vehicle, H f Refers to the first heading angle.
[0107] In one embodiment of the present invention, the initial distance information is corrected according to the orientation information of the target object relative to the current vehicle to obtain the target distance information, and also includes: if the orientation information of the target vehicle relative to the current vehicle is that the target vehicle is located behind the current vehicle, then the second heading angle of the target vehicle relative to the current vehicle and the length of the current vehicle are obtained; the negative cosine function value of the second heading angle is calculated; and the target longitudinal distance is calculated according to the negative cosine function value of the second heading angle, the initial longitudinal distance, and the length of the current vehicle.
[0108] In the embodiment of the present invention, if the position information of the target vehicle relative to the current vehicle is that the target vehicle is located behind the current vehicle, the second heading angle of the target vehicle relative to the current vehicle and the length of the current vehicle can be obtained; the target longitudinal distance is calculated by formula (2):
[0109]
[0110] Among them, x f2 Refers to the longitudinal distance of the target, x f Refers to the initial longitudinal distance, L f Refers to the length of the current vehicle, H f Refers to the first heading angle.
[0111] In one embodiment of the present invention, the initial distance information includes an initial lateral distance. The initial distance information is corrected according to the orientation information of the target object relative to the current vehicle to obtain the target distance information, including: if the orientation information of the target vehicle relative to the current vehicle is that the target vehicle is located on the left side of the current vehicle, then obtaining the third heading angle of the target vehicle relative to the current vehicle and the length of the current vehicle; judging whether the third heading angle is greater than zero; if the third heading angle is greater than zero and less than π / 2, calculating the first sine function value of the third heading angle, and calculating the target lateral distance according to the first sine function value, the length of the current vehicle, and the initial lateral distance; if the third heading angle is greater than zero and less than π / 2, then calculating the first sine function value of the third heading angle, and calculating the target lateral distance according to the first sine function value, the length of the current vehicle, and the initial lateral distance; If the third heading angle is greater than zero and greater than π / 2, the second sine function value of the third heading angle is calculated, and the target lateral distance is calculated according to the second sine function value, the length of the current vehicle, and the initial lateral distance; if the third heading angle is less than zero and the absolute value of the third heading angle is less than π / 2, the third sine function value of the third heading angle is calculated, and the target lateral distance is calculated according to the third sine function value, the length of the current vehicle, and the initial lateral distance; if the third heading angle is less than zero and the absolute value of the third heading angle is greater than π / 2, the fourth sine function value of the third heading angle is calculated, and the target lateral distance is calculated according to the fourth sine function value, the length of the current vehicle, and the initial lateral distance.
[0112] In the embodiment of the present invention, if the position information of the target vehicle relative to the current vehicle is that the target vehicle is located on the left side of the current vehicle, and the third heading angle is greater than 0 and the third heading angle is less than π / 2, then the target lateral distance can be calculated according to the first sine function value, the length of the current vehicle, and the initial lateral distance by formula (3):
[0113]
[0114] Among them, y f1 is the lateral distance to the target, y f Refers to the initial longitudinal distance, L f Refers to the length of the current vehicle, H f Refers to the third heading angle.
[0115] If the third heading angle is greater than zero and greater than π / 2, the target lateral distance can be calculated using formula (4) based on the second sine function value, the current vehicle length, and the initial lateral distance:
[0116]
[0117] Among them, y f2 is the lateral distance to the target, y f Refers to the initial longitudinal distance, L f Refers to the length of the current vehicle, H f Refers to the third heading angle.
[0118] If the third heading angle is less than zero and the absolute value of the third heading angle is less than π / 2, the target lateral distance can be calculated by formula (5) according to the third sine function value, the current vehicle length, and the initial lateral distance:
[0119]
[0120] Among them, Y f3 is the lateral distance to the target, y f Refers to the initial longitudinal distance, L f Refers to the length of the current vehicle, H f Refers to the third heading angle.
[0121] If the third heading angle is less than zero and the absolute value of the third heading angle is greater than π / 2, the target lateral distance can be calculated by formula (6) according to the fourth sine function value, the current vehicle length, and the initial lateral distance:
[0122]
[0123] Among them, y f4 is the lateral distance to the target, y f Refers to the initial longitudinal distance, L fRefers to the length of the current vehicle, H f Refers to the third heading angle.
[0124] In one embodiment of the present invention, the initial distance information is corrected according to the orientation information of the target object relative to the current vehicle to obtain the target distance information, and the following further includes: if the orientation information of the target vehicle relative to the current vehicle is that the target vehicle is located on the right side of the current vehicle, then obtaining the fourth heading angle of the target vehicle relative to the current vehicle and the length of the current vehicle; judging whether the fourth heading angle is greater than zero; if the fourth heading angle is greater than zero and less than π / 2, calculating the fifth sine function value of the fourth heading angle, and calculating the target lateral distance according to the fifth sine function value, the length of the current vehicle and the initial lateral distance; if the fourth heading angle is greater than zero and greater than π / 2, then obtaining the fourth heading angle of the target vehicle relative to the current vehicle and the length of the current vehicle; and determining whether the fourth heading angle is greater than zero and greater than π / 2. π / 2, then calculate the sixth sine function value of the fourth heading angle, and calculate the target lateral distance according to the sixth sine function value, the length of the current vehicle, and the initial lateral distance; if the fourth heading angle is less than zero and the absolute value of the fourth heading angle is less than π / 2, then calculate the seventh sine function value of the fourth heading angle, and calculate the target lateral distance according to the seventh sine function value, the length of the current vehicle, and the initial lateral distance; if the fourth heading angle is less than zero and the absolute value of the fourth heading angle is greater than π / 2, then calculate the eighth sine function value of the fourth heading angle, and calculate the target lateral distance according to the eighth sine function value, the length of the current vehicle, and the initial lateral distance.
[0125] In the embodiment of the present invention, if the position information of the target vehicle relative to the current vehicle is that the target vehicle is located on the right side of the current vehicle, and the fourth heading angle is greater than 0 and the fourth heading angle is less than π / 2, then the target lateral distance can be calculated according to the fifth sine function value, the length of the current vehicle, and the initial lateral distance by formula (7):
[0126]
[0127] Among them, y f5 is the lateral distance to the target, y f Refers to the initial longitudinal distance, L f Refers to the length of the current vehicle, H f Refers to the fourth heading angle.
[0128] If the fourth heading angle is greater than zero and greater than π / 2, the target lateral distance can be calculated by the sixth sine function value, the current vehicle length, and the initial lateral distance using formula (8):
[0129]
[0130] Among them, y f6 is the lateral distance to the target, y f Refers to the initial longitudinal distance, L fRefers to the length of the current vehicle, H f Refers to the fourth heading angle.
[0131] If the fourth heading angle is less than zero and the absolute value of the fourth heading angle is less than π / 2, the target lateral distance can be calculated by formula (9) according to the seventh sine function value, the current vehicle length, and the initial lateral distance:
[0132]
[0133] Among them, y f7 is the lateral distance to the target, y f Refers to the initial longitudinal distance, L f Refers to the length of the current vehicle, H f Refers to the fourth heading angle.
[0134] If the fourth heading angle is less than zero and the absolute value of the fourth heading angle is greater than π / 2, the target lateral distance can be calculated by formula (10) according to the value of the eighth sine function, the length of the current vehicle, and the initial lateral distance:
[0135]
[0136] Among them, y f8 is the lateral distance to the target, y f Refers to the initial longitudinal distance, L f Refers to the length of the current vehicle, H f Refers to the fourth heading angle.
[0137] like Figure 2 , showing a schematic diagram of a vehicle driving process provided by an embodiment of the present invention, vehicle A is the current vehicle, traveling at a speed of V1 on the highway, vehicle B is the target object, traveling at a speed of V2 in front of vehicle A, wherein xf is the initial longitudinal distance, and yf is the initial lateral distance.
[0138] Step 104: display the relative position of the target object and the current vehicle in a preset display component according to the target distance information.
[0139] In the embodiment of the present invention, after obtaining the target distance information, the relative position of the target object and the current vehicle can be displayed in a preset display component. The preset display component can be a user interface element in various forms, which is used to show the relative position of the target object and the current vehicle to the driver or system operator. The following are some common preset display component types:
[0140] (1) Dashboard display: The display on a traditional car dashboard can display numbers, icons, or graphics, providing distance and direction information of the target object.
[0141] (2) Head-up display (HUD): Information is projected onto the windshield in front of the driver, allowing the driver to see key information such as the distance and relative speed of the vehicle ahead without having to lower his head.
[0142] (3) Central control touch screen: A large touch screen commonly seen in modern cars that can display information such as maps, navigation routes, and the location of surrounding vehicles. Display on side-view mirrors or rear-view mirrors: A small display screen is integrated on the side-view mirrors or rear-view mirrors to display information from blind spot monitoring or lane change assistance systems.
[0143] (4) Augmented reality (AR) display: Through special glasses or head-mounted displays, virtual information is superimposed on the real-world view to provide more intuitive navigation and driving assistance information.
[0144] (5) Steering wheel or seat vibration prompt: Vibration of the steering wheel or seat is used to prompt the driver of the location of the target object, especially to provide tactile feedback in emergency situations.
[0145] The specific method to be adopted can be set according to the needs of the user and is not limited here.
[0146] The present invention discloses a display method, which can improve the accuracy of target distance information by obtaining the position information of the target object relative to the current vehicle and correcting the initial distance information. The introduction of the position information helps to eliminate the influence of sensor errors and environmental factors, thereby obtaining more accurate distance data. The present invention can intuitively show the surrounding traffic environment to the driver by displaying the relative position of the target object and the current vehicle in a preset display component, thereby enhancing the driving experience; by accurately calculating and displaying the relative position of the target object and the current vehicle, not only the accuracy of the information and the performance of the system are improved, but also the user experience and driving safety are enhanced, laying the foundation for realizing a smarter and safer driving assistance system.
[0147] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
[0148] Reference Figure 3 , shows a structural block diagram of a display device provided by an embodiment of the present invention, the device comprising:
[0149] The first acquisition module 201 is used to acquire the initial distance information of the target object relative to the current vehicle collected by the preset sensor;
[0150] A second acquisition module 202 is used to acquire the position information of the target object relative to the current vehicle;
[0151] The correction module 203 is used to correct the initial distance information according to the position information of the target object relative to the current vehicle to obtain the target distance information;
[0152] The display module 204 is used to display the relative position of the target object and the current vehicle in a preset display component according to the target distance information.
[0153] The present invention discloses a display device. The present invention can improve the accuracy of target distance information by acquiring the position information of the target object relative to the current vehicle and correcting the initial distance information. The introduction of the position information helps to eliminate the influence of sensor errors and environmental factors, thereby obtaining more accurate distance data. The present invention can intuitively show the surrounding traffic environment to the driver by displaying the relative position of the target object and the current vehicle in a preset display component, thereby enhancing the driving experience; by accurately calculating and displaying the relative position of the target object and the current vehicle, not only the accuracy of the information and the performance of the system are improved, but also the user experience and driving safety are enhanced, laying the foundation for realizing a smarter and safer driving assistance system.
[0154] In one embodiment of the present invention, the initial distance information includes an initial longitudinal distance, and the correction module includes:
[0155] A first acquisition submodule is used to acquire a first heading angle of the target vehicle relative to the current vehicle and a length of the current vehicle if the position information of the target vehicle relative to the current vehicle indicates that the target vehicle is located in front of the current vehicle;
[0156] A first calculation submodule, used for calculating a positive cosine function value of a first heading angle;
[0157] The second calculation submodule is used to calculate the target longitudinal distance according to the positive cosine function value of the first heading angle, the initial longitudinal distance, and the length of the current vehicle.
[0158] In one embodiment of the present invention, the correction module further includes:
[0159] A second acquisition submodule is used to acquire a second heading angle of the target vehicle relative to the current vehicle and a length of the current vehicle if the position information of the target vehicle relative to the current vehicle is that the target vehicle is located behind the current vehicle;
[0160] A third calculation submodule, used for calculating a negative cosine function value of a second heading angle;
[0161] The fourth calculation submodule is used to calculate the target longitudinal distance according to the negative cosine function value of the second heading angle, the initial longitudinal distance, and the current length of the vehicle.
[0162] In one embodiment of the present invention, the initial distance information includes an initial lateral distance, and the correction module includes:
[0163] A third acquisition submodule is used to acquire a third heading angle of the target vehicle relative to the current vehicle and a length of the current vehicle if the position information of the target vehicle relative to the current vehicle is that the target vehicle is located on the left side of the current vehicle;
[0164] A first judging submodule, used to judge whether the third heading angle is greater than zero;
[0165] A first lateral distance calculation submodule is used to calculate a first sine function value of the third heading angle if the third heading angle is greater than zero and less than π / 2, and calculate a target lateral distance according to the first sine function value, the current length of the vehicle, and the initial lateral distance;
[0166] The second lateral distance calculation submodule calculates the second sine function value of the third heading angle if the third heading angle is greater than zero and greater than π / 2, and calculates the target lateral distance according to the second sine function value, the current vehicle length, and the initial lateral distance;
[0167] A third lateral distance calculation submodule, if the third heading angle is less than zero and the absolute value of the third heading angle is less than π / 2, calculates a third sine function value of the third heading angle, and calculates a target lateral distance according to the third sine function value, the current vehicle length, and the initial lateral distance;
[0168] The fourth lateral distance calculation submodule calculates the four sine function values of the third heading angle if the third heading angle is less than zero and the absolute value of the third heading angle is greater than π / 2, and calculates the target lateral distance according to the fourth sine function value, the current vehicle length, and the initial lateral distance.
[0169] In one embodiment of the present invention, the correction module further includes:
[0170] A fourth acquisition submodule is used to acquire a fourth heading angle of the target vehicle relative to the current vehicle and a length of the current vehicle if the position information of the target vehicle relative to the current vehicle indicates that the target vehicle is located to the right of the current vehicle;
[0171] A second judging submodule, used to judge whether the fourth heading angle is greater than zero;
[0172] a fifth lateral distance calculation submodule, which calculates a fifth sine function value of the fourth heading angle if the fourth heading angle is greater than zero and less than π / 2, and calculates a target lateral distance according to the fifth sine function value, the current length of the vehicle, and the initial lateral distance;
[0173] a sixth lateral distance calculation submodule, which calculates a sixth sine function value of the fourth heading angle if the fourth heading angle is greater than zero and greater than π / 2, and calculates a target lateral distance according to the sixth sine function value, the current length of the vehicle, and the initial lateral distance;
[0174] a seventh lateral distance calculation submodule, which calculates a seventh sine function value of the fourth heading angle if the fourth heading angle is less than zero and the absolute value of the fourth heading angle is less than π / 2, and calculates a target lateral distance according to the seventh sine function value, the current length of the vehicle, and the initial lateral distance;
[0175] The eighth lateral distance calculation submodule calculates the eighth sine function value of the fourth heading angle if the fourth heading angle is less than zero and the absolute value of the fourth heading angle is greater than π / 2, and calculates the target lateral distance based on the eighth sine function value, the current vehicle length, and the initial lateral distance.
[0176] In one embodiment of the present invention, the device further includes:
[0177] A judgment module, used to judge whether the initial distance information meets the trigger condition;
[0178] The second acquisition module includes:
[0179] The fifth acquisition submodule is used to acquire the position information of the target object relative to the current vehicle if the initial distance information meets the trigger condition.
[0180] In an embodiment of the present invention, the initial distance information includes an initial lateral distance, and the judgment module includes:
[0181] A first judgment submodule is used to judge whether the initial lateral distance is less than a preset lateral distance threshold;
[0182] The first determination submodule is configured to determine that the initial lateral distance satisfies a trigger condition if the initial lateral distance is less than a preset lateral distance threshold.
[0183] In an embodiment of the present invention, the initial distance information includes an initial longitudinal distance, and the judgment module includes:
[0184] The second judgment submodule judges whether the initial longitudinal distance is less than a preset longitudinal distance threshold;
[0185] The second determining submodule determines that the initial longitudinal distance meets the trigger condition if the initial longitudinal distance is less than a preset longitudinal distance threshold.
[0186] The present invention discloses a display device, which can improve the accuracy of target distance information by obtaining the position information of the target object relative to the current vehicle and correcting the initial distance information. The introduction of the position information helps to eliminate the influence of sensor errors and environmental factors, thereby obtaining more accurate distance data. The present invention can intuitively show the surrounding traffic environment to the driver by displaying the relative position of the target object and the current vehicle in a preset display component, thereby enhancing the driving experience; by accurately calculating and displaying the relative position of the target object and the current vehicle, not only the accuracy of the information and the performance of the system are improved, but also the user experience and driving safety are enhanced, laying the foundation for realizing a smarter and safer driving assistance system.
[0187] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0188] The present invention also discloses a vehicle, comprising: a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program implements the steps of the above-mentioned display method when executed by the processor.
[0189] The present invention also discloses a non-volatile readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the display method described above are implemented.
[0190] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0191] It will be appreciated by those skilled in the art that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0192] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0193] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0194] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0195] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.
[0196] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0197] The display method, device, vehicle and storage medium provided by the present invention are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A display method, characterized in that: The method comprises: Obtaining initial distance information of the target object relative to the current vehicle collected by a preset sensor; Acquiring position information of the target object relative to the current vehicle; Correcting the initial distance information according to the position information of the target object relative to the current vehicle to obtain target distance information; The relative position of the target object and the current vehicle is displayed in a preset display component according to the target distance information.
2. The method according to claim 1, characterized in that The initial distance information includes an initial longitudinal distance, and the initial distance information is corrected according to the position information of the target object relative to the current vehicle to obtain the target distance information, including: If the position information of the target vehicle relative to the current vehicle indicates that the target vehicle is located in front of the current vehicle, obtaining a first heading angle of the target vehicle relative to the current vehicle and a length of the current vehicle; Calculating a positive cosine function value of the first heading angle; The target longitudinal distance is calculated according to the positive cosine function value of the first heading angle, the initial longitudinal distance, and the length of the current vehicle.
3. The method according to claim 2, characterized in that The method of correcting the initial distance information according to the position information of the target object relative to the current vehicle to obtain the target distance information further includes: If the position information of the target vehicle relative to the current vehicle indicates that the target vehicle is located behind the current vehicle, obtaining a second heading angle of the target vehicle relative to the current vehicle and a length of the current vehicle; Calculating a negative cosine function value of the second heading angle; The target longitudinal distance is calculated according to the negative cosine function value of the second heading angle, the initial longitudinal distance, and the length of the current vehicle.
4. The method according to claim 1, characterized in that The initial distance information includes an initial lateral distance, and the initial distance information is corrected according to the orientation information of the target object relative to the current vehicle to obtain the target distance information, including: If the position information of the target vehicle relative to the current vehicle is that the target vehicle is located on the left side of the current vehicle, then obtaining a third heading angle of the target vehicle relative to the current vehicle and a length of the current vehicle; Determining whether the third heading angle is greater than zero; If the third heading angle is greater than zero and less than π / 2, calculating a first sine function value of the third heading angle, and calculating the target lateral distance according to the first sine function value, the length of the current vehicle, and the initial lateral distance; If the third heading angle is greater than zero and greater than π / 2, calculating a second sine function value of the third heading angle, and calculating the target lateral distance according to the second sine function value, the length of the current vehicle, and the initial lateral distance; If the third heading angle is less than zero and the absolute value of the third heading angle is less than π / 2, a third sine function value of the third heading angle is calculated, and the target lateral distance is calculated according to the third sine function value, the length of the current vehicle, and the initial lateral distance; If the third heading angle is less than zero and the absolute value of the third heading angle is greater than π / 2, the four-sine function value of the third heading angle is calculated, and the target lateral distance is calculated according to the fourth sine function value, the length of the current vehicle, and the initial lateral distance.
5. The method according to claim 4, characterized in that The method of correcting the initial distance information according to the position information of the target object relative to the current vehicle to obtain the target distance information further includes: If the position information of the target vehicle relative to the current vehicle is that the target vehicle is located on the right side of the current vehicle, then obtaining a fourth heading angle of the target vehicle relative to the current vehicle and a length of the current vehicle; Determining whether the fourth heading angle is greater than zero; If the fourth heading angle is greater than zero and less than π / 2, a fifth sine function value of the fourth heading angle is calculated, and the target lateral distance is calculated according to the fifth sine function value, the length of the current vehicle, and the initial lateral distance; If the fourth heading angle is greater than zero and greater than π / 2, a sixth sine function value of the fourth heading angle is calculated, and the target lateral distance is calculated according to the sixth sine function value, the length of the current vehicle, and the initial lateral distance; If the fourth heading angle is less than zero and the absolute value of the fourth heading angle is less than π / 2, calculating the seventh sine function value of the fourth heading angle, and calculating the target lateral distance according to the seventh sine function value, the length of the current vehicle, and the initial lateral distance; If the fourth heading angle is less than zero and the absolute value of the fourth heading angle is greater than π / 2, the eighth sine function value of the fourth heading angle is calculated, and the target lateral distance is calculated according to the eighth sine function value, the length of the current vehicle, and the initial lateral distance.
6. The method according to claim 1, characterized in that Before the step of obtaining the position information of the target object relative to the current vehicle, the method further includes: Determining whether the initial distance information meets a trigger condition; The obtaining the position information of the target object relative to the current vehicle includes: If the initial distance information meets the trigger condition, the position information of the target object relative to the current vehicle is obtained.
7. The method according to claim 6, characterized in that The initial distance information includes an initial horizontal distance, and the determining whether the initial distance information satisfies a trigger condition includes: Determining whether the initial lateral distance is less than a preset lateral distance threshold; If the initial lateral distance is less than the preset lateral distance threshold, it is determined that the initial lateral distance meets the trigger condition.
8. The method according to claim 6, characterized in that The initial distance information includes an initial longitudinal distance, and the determining whether the initial distance information satisfies a trigger condition includes: Determining whether the initial longitudinal distance is less than a preset longitudinal distance threshold; If the initial longitudinal distance is less than the preset longitudinal distance threshold, it is determined that the initial longitudinal distance meets the trigger condition.
9. A display device, characterized in that: The device comprises: A first acquisition module is used to acquire initial distance information of a target object relative to a current vehicle collected by a preset sensor; A second acquisition module, used to acquire the position information of the target object relative to the current vehicle; A correction module, used to correct the initial distance information according to the position information of the target object relative to the current vehicle to obtain target distance information; The display module is used to display the relative position of the target object and the current vehicle in a preset display component according to the target distance information.
10. A vehicle, characterized in that: include: A processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein when the computer program is executed by the processor, the steps of the display method according to any one of claims 1 to 8 are implemented.
11. A non-volatile readable storage medium, characterized in that: The non-volatile readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the display method according to any one of claims 1 to 8 are implemented.
