Vehicle distance display method, device, equipment, medium and program product
By using forward-facing sensing devices and an augmented reality head-up display system to dynamically render a distance measuring scale, the problem of drivers having difficulty grasping safe distances in real time is solved, enabling proactive and intuitive vehicle distance display and reducing the risk of rear-end collisions.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-29
- Publication Date
- 2026-03-31
AI Technical Summary
In existing technologies, it is difficult for drivers to monitor the safe distance from the vehicle in front in real time, leading to frequent rear-end collisions. Existing passive warning systems lack the ability to actively intervene.
The system collects the initial distance using a forward-facing sensing device and combines it with an augmented reality head-up display system to dynamically render a distance measuring scale, providing a real-time distance display, including a visual representation of warning distance and safe distance.
It significantly improves the real-time performance and accuracy of distance perception, reduces the risk of rear-end collisions, reduces the driver's workload and attention distraction, and improves driving safety.
Smart Images

Figure CN121757193A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of vehicle distance measurement, and more particularly to a vehicle distance display method, device, equipment, medium, and program product. Background Technology
[0002] In modern urban traffic and highway driving scenarios, drivers need to maintain a safe distance from the vehicle in front in real time to avoid rear-end collisions.
[0003] Existing technologies rely on driver experience or passive warnings, lacking proactive prevention capabilities. On the other hand, passive collision warning systems can be used to issue warnings when a collision is imminent. However, such systems only trigger at critical points of danger, lacking proactive intervention capabilities. Drivers must take emergency measures within a very short time, making it difficult to effectively prevent accidents.
[0004] Therefore, how to proactively display the distance to the vehicle in front in real time is an urgent problem to be solved. Summary of the Invention
[0005] This application provides a vehicle distance display method, device, equipment, medium, and program product for actively displaying the distance to the vehicle in front in real time.
[0006] In a first aspect, embodiments of this application provide a vehicle distance display method, including:
[0007] The initial distance between the vehicle and the vehicle in front is collected through a forward sensing device;
[0008] Based on the initial distance, determine the real-time distance to be displayed;
[0009] Using an augmented reality head-up display system, a distance measuring scale is dynamically rendered on the real road surface in front of the vehicle based on the real-time distance to be displayed.
[0010] In one possible implementation, determining the real-time distance to be displayed based on the initial distance includes:
[0011] The initial distance is used as the real-time distance to be displayed;
[0012] or,
[0013] The real-time distance to be displayed is determined based on the initial distance and the relative speed of the vehicle to the vehicle in front.
[0014] In one possible implementation, determining the real-time distance to be displayed based on the initial distance and the relative velocity includes:
[0015] When the relative speed is used to characterize that the speed of the vehicle is greater than the speed of the vehicle in front, a display distance adjustment step size is determined based on the relative speed; the display distance adjustment step size is greater than 0 and is positively correlated with the relative speed.
[0016] The initial distance is subtracted from the display distance adjustment step size to obtain the real-time distance to be displayed.
[0017] In one possible implementation, the step of dynamically rendering a distance measuring scale on the real road surface in front of the vehicle based on the real-time distance to be displayed using an augmented reality head-up display system includes:
[0018] When the initial distance is less than or equal to the warning distance, the augmented reality head-up display system dynamically renders the distance measuring scale with the first display effect on the real road surface based on the real distance to be displayed.
[0019] When the initial distance is greater than the warning distance, the augmented reality head-up display system dynamically renders the distance measuring scale with a second display effect on the real road surface based on the real-time distance to be displayed.
[0020] In one possible implementation, before dynamically rendering a distance measuring scale on the real road surface in front of the vehicle based on the real-time distance to be displayed via the augmented reality head-up display system, the method further includes:
[0021] The warning distance is determined based on the relative speed of the vehicle relative to the vehicle in front; the warning distance is positively correlated with the relative speed.
[0022] In one possible implementation, the method further includes:
[0023] A safe distance value is determined based on the relative speed of the vehicle to the vehicle in front;
[0024] The augmented reality head-up display system dynamically renders the safe distance value on the real road surface.
[0025] Secondly, embodiments of this application provide a vehicle distance display device, the device comprising:
[0026] The data acquisition module is used to acquire the initial distance between the vehicle and the vehicle in front through a forward sensing device;
[0027] The determining module is used to determine the real-time distance to be displayed based on the initial distance;
[0028] The rendering module is used to dynamically render a distance measuring scale on the real road surface in front of the vehicle based on the real-time distance to be displayed, using an augmented reality head-up display system.
[0029] Thirdly, embodiments of this application provide an electronic device, including: a memory and a processor;
[0030] The memory stores computer-executed instructions;
[0031] The processor executes computer execution instructions stored in the memory, causing the processor to perform the method described in any of the first aspects above.
[0032] Fourthly, embodiments of this application provide a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the method described in any of the first aspects above.
[0033] Fifthly, embodiments of this application provide a computer program product, including a computer program that, when executed by a processor, implements the method described in any of the first aspects above.
[0034] This application provides a vehicle distance display method, apparatus, device, medium, and program product. It collects the initial distance between the vehicle and the vehicle in front using a forward sensing device, and dynamically renders the real-time distance to be displayed onto the real road surface using an augmented reality head-up display system. This transforms abstract vehicle distance data into an intuitive visual scale on the road ahead for the driver, providing real-time distance display. Compared to existing technologies, this application's embodiments can present distance information in a visual and intuitive way, avoiding passive warnings for the driver, significantly improving the real-time performance and accuracy of vehicle distance perception, and reducing the risk of rear-end collisions due to misjudgment. Attached Figure Description
[0035] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0036] Figure 1 A schematic flowchart illustrating a vehicle distance display method provided in an embodiment of this application;
[0037] Figure 2 This application provides a schematic diagram of the structure of a vehicle distance display device;
[0038] Figure 3 This is a schematic diagram of the structure of an electronic device provided in this application.
[0039] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation
[0040] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application.
[0041] In this application, the term "comprising" and its variations can refer to non-limiting inclusion; the term "or" and its variations can refer to "and / or". The terms "first", "second", etc., in this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. In this application, "multiple" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. The character " / " generally indicates that the preceding and following related objects have an "or" relationship.
[0042] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, use and processing of the relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and corresponding operation entry points are provided for users to choose to authorize or refuse.
[0043] In modern urban traffic and highway driving scenarios, drivers need to maintain a safe distance from the vehicle in front in real time to avoid rear-end collisions. This is especially true in complex road conditions (such as congested areas, rainy or foggy weather, and nighttime driving), where drivers' ability to perceive distances is greatly limited. Traditional driving relies on the driver's visual judgment and experience. For example, drivers estimate the distance to the vehicle in front by using rearview mirrors, windshield reflections, or physical markings on the road (such as safe following distance signs). However, novice drivers or drivers with slower reaction times often struggle to accurately estimate the distance to the vehicle in front, leading to following too closely, emergency braking, or misjudging speed.
[0044] Furthermore, existing vehicles generally rely on passive safety systems, such as Forward Collision Warning (FCW). These systems only trigger at critical points of danger and lack active intervention capabilities, requiring drivers to take emergency measures within a very short time, making it difficult to effectively prevent accidents. In addition, existing technologies do not provide intuitive visual distance information, requiring drivers to frequently shift their gaze to the instrument panel or central control screen, increasing operational burden and the risk of distraction.
[0045] Therefore, there is an urgent need for an active, real-time safety distance assistance solution that can help drivers dynamically perceive the distance to the vehicle in front through intuitive visualization, predict risks in advance, and proactively adjust vehicle speed or distance, thereby improving overall driving safety.
[0046] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.
[0047] It should be noted that the executing entity of this application can be any device with processing capabilities on a vehicle, such as a vehicle processing unit. In one embodiment, the vehicle processing unit may include any one or more of a forward sensing device and an augmented reality head-up display (AR-HUD) system.
[0048] Figure 1 This is a flowchart illustrating a vehicle distance display method provided in an embodiment of this application. Figure 1 As shown, the method includes:
[0049] S101. The initial distance between the vehicle and the vehicle in front is collected through the forward sensing device.
[0050] Optionally, the forward sensing device can be a sensor device used to collect the distance to the vehicle ahead and the vehicle's speed. The forward sensing device can include any one or more of the following: millimeter-wave radar, lidar, or camera. Among them, millimeter-wave radar can calculate the initial distance between the vehicle and the vehicle ahead by emitting electromagnetic waves and receiving reflected signals; lidar can measure distance using laser pulses and is suitable for complex scenarios; cameras can assist in identifying and tracking the position of the vehicle ahead.
[0051] Optionally, the initial distance between the vehicle and the vehicle in front can be the straight-line distance between the two vehicles at a certain moment. The forward sensing device can periodically emit radar waves or capture images at a preset frequency.
[0052] S102. Determine the real-time distance to be displayed based on the initial distance.
[0053] Optionally, the real-time distance to be displayed can be the distance between the vehicle and the vehicle in front, which can be displayed. The vehicle processing unit can perform one or more of the following on the initial distance: data preprocessing, dynamic correction, unit conversion, etc., to confirm the real-time distance to be displayed.
[0054] In one implementation, the vehicle processing unit can use the initial distance as the real-time distance to be displayed. For example, the vehicle processing unit can directly use the initial distance between the vehicle and the vehicle in front, collected by the forward sensing device, as the real-time distance to be displayed without dynamic correction or prediction processing.
[0055] The vehicle processing unit can also determine the real-time distance to be displayed based on the initial distance and the relative speed of the vehicle relative to the vehicle in front. Optionally, the relative speed of the vehicle relative to the vehicle in front can be the speed difference between the two vehicles in the straight line.
[0056] The vehicle processing unit can obtain the vehicle's speed and the speed of the vehicle in front through a forward sensing device, and calculate the relative speed between the two by subtracting them. By combining the initial distance and the relative speed of the vehicle relative to the vehicle in front, the real-time distance to be displayed is determined. For example, using the initial distance as the initial condition and the relative speed as the dynamic input, the distance between the vehicle and the vehicle in front at the current moment is predicted by real-time integration calculation (or discrete-time step iteration), and a Kalman filter is introduced to suppress noise and correct outliers in the prediction results, thereby determining the real-time distance to be displayed.
[0057] This application provides two methods for determining the real-time distance to be displayed. One method is to directly use the initial distance measured by the forward sensing device as the real-time distance to be displayed, while the other method is to dynamically correct the real-time distance to be displayed based on relative speed, so that the displayed distance is closer to the actual collision risk and the method can be enhanced to adapt to dynamic road conditions.
[0058] In one implementation, when relative speed is used to characterize that the speed of the vehicle is greater than that of the vehicle in front, the vehicle processing unit may first determine the display distance adjustment step size based on the relative speed; the display distance adjustment step size is greater than 0 and is positively correlated with the relative speed.
[0059] Optionally, the displayed distance adjustment step size can be used to dynamically correct the incremental value of the initial distance. A displayed distance adjustment step size greater than 0 indicates that the vehicle is approaching the vehicle in front, and the displayed distance needs to be reduced. The greater the relative speed, the more rapidly the distance between the vehicle and the vehicle in front changes within the same time period, therefore a larger adjustment step size is needed.
[0060] Secondly, the vehicle processing unit can subtract the display distance adjustment step size from the initial distance to obtain the real-time distance to be displayed. For example, the vehicle processing unit can first ensure that the timestamps of the initial distance and the display distance adjustment step size are the same, and then subtract the display distance adjustment step size from the initial distance to obtain the real-time distance to be displayed.
[0061] In this embodiment, when the vehicle's speed is greater than that of the vehicle in front, the display distance adjustment step size can be calculated based on the relative speed. The initial distance is then subtracted from this step size to obtain the real-time distance to be displayed. Collision risk can be quantified through the speed difference. The higher the relative speed, the larger the adjustment step size and the shorter the display distance, thus more aggressively reminding the driver to slow down or change lanes. This solves the problem that fixed thresholds in traditional solutions cannot adapt to high-speed difference scenarios, and significantly reduces the probability of rear-end collisions when following another vehicle at high speeds.
[0062] S103. Using an augmented reality head-up display system, a distance measuring scale is dynamically rendered on the real road surface in front of the vehicle based on the real-time distance to be displayed.
[0063] Optionally, the augmented reality head-up display system can be a projection device that overlays virtual information onto a real road scene, projecting it onto the vehicle's windshield. The distance measuring scale can be a dynamic distance marker displayed on the augmented reality head-up display system, which can be colored lines or numbers (e.g., any one or more markings such as 10m, 20m, 30m, etc.) to visually display the distance between the vehicle and the vehicle in front. For example, the distance measuring scale can be a virtual scale line indicating the distance between the vehicle and the vehicle in front, starting from the front bumper of the vehicle and extending forward to the position of the vehicle in front.
[0064] Optionally, the augmented reality head-up display system can first establish a three-dimensional spatial coordinate system with the vehicle as the origin, map the projection area of the augmented reality head-up display system to a two-dimensional plane, and then convert the distance to be displayed into the pixel position on the augmented reality head-up display system through a perspective projection matrix. This position is then superimposed on the real road image through optical lenses to complete the dynamic rendering of the real road surface in front of the vehicle.
[0065] This application embodiment can collect the initial distance between the vehicle and the vehicle in front using a forward sensing device, and dynamically render the real-time distance to be displayed onto the real road surface through an augmented reality head-up display system. This transforms abstract distance data into an intuitive visual scale on the road ahead for the driver, providing real-time distance display. Compared to existing technologies, this application embodiment can visualize and intuitively present distance information, avoiding passive warnings for the driver, significantly improving the real-time performance and accuracy of distance perception, and reducing the risk of rear-end collisions due to misjudgment.
[0066] Based on the above embodiments, the vehicle processing unit can determine the warning distance based on the relative speed of the vehicle relative to the vehicle in front, before dynamically rendering a distance measuring scale on the real road surface in front of the vehicle through the augmented reality head-up display system based on the real-time distance to be displayed; the warning distance is positively correlated with the relative speed.
[0067] Optionally, the warning distance can be a dynamic safety threshold set by the vehicle processing unit, which can be used to determine whether the vehicle and the vehicle in front are within a potentially dangerous distance range. The greater the relative speed, the more rapidly the distance between the vehicle and the vehicle in front changes within the same time period. In this case, the warning distance should be increased. Therefore, the warning distance is positively correlated with the relative speed.
[0068] Optionally, the relative speed can have a linear or non-linear relationship with the warning distance. The vehicle processing unit can determine the warning distance based on the mapping relationship between relative speed and warning distance, or it can determine the warning distance based on a model of relative speed and warning distance.
[0069] The embodiments of this application dynamically calculate the warning distance based on the relative speed between the vehicle and the vehicle in front. In high-speed differential scenarios, the warning distance automatically increases to allow more reaction time; in low-speed differential scenarios, the warning distance decreases to avoid frequent false alarms. This solves the contradiction of traditional fixed warning distances in variable speed conditions, where "too high leads to neglect and too low leads to interference," and significantly improves the practicality of the warning system and the driver's trust.
[0070] The following section provides a detailed explanation of how to use an augmented reality head-up display system to dynamically render a distance measuring scale on the real road surface in front of the vehicle, based on the real-time distance to be displayed.
[0071] When the initial distance is less than or equal to the warning distance, the vehicle processing unit can use the augmented reality head-up display system to dynamically render a distance measuring scale for the first display effect on the real road surface based on the real-time distance to be displayed.
[0072] Optionally, the first display effect can be used to present a visual effect warning that the distance is too close. For example, it can employ one or more of the following: high-contrast colors (such as red), flashing, or dynamic scaling design.
[0073] When the initial distance is greater than the warning distance, the vehicle processing unit can use the augmented reality head-up display system to dynamically render a distance measuring scale for a second display effect on the real road surface based on the real-time distance to be displayed.
[0074] Optionally, the second display effect can be used to present the visual effect of a normal following scene. For example, it can use any one or more of the following: low-contrast colors (such as green or blue), static or easing design. Compared with the first display effect, the second display effect has softer colors and weaker dynamic effects.
[0075] Optionally, the distance measuring scale for the real-world head-up display system to dynamically render the first and second display effects on the real road surface is the same as that in S103 above, and will not be repeated here.
[0076] This application embodiment enhances risk perception through visual layering by comparing the initial distance with the warning distance. When the initial distance is less than or equal to the warning distance, a first display effect immediately attracts the driver's attention, prompting them to adjust their following distance urgently. When the initial distance is greater than the warning distance, a second display effect avoids excessive interference with driving, realizing a graded reminder mechanism of "prioritizing emergency risks and minimizing interference in normal situations," significantly improving the system's response efficiency to different risk levels.
[0077] Based on the above embodiments, the embodiments of this application can also determine the safe distance value based on the relative speed of the vehicle relative to the vehicle in front, and dynamically render the safe distance value on the real road surface through an augmented reality head-up display system.
[0078] Optionally, the safe distance value can be the minimum dynamic distance threshold that the vehicle must maintain between itself and the vehicle in front. This ensures that in extreme situations (such as sudden braking by the vehicle in front), the vehicle has sufficient time to react and brake to avoid a collision. It should be noted that the aforementioned warning distance can be the actual trigger threshold set by the vehicle processing unit to trigger a warning in advance and give the driver extra buffer time, and it is usually less than the safe distance value.
[0079] Optionally, the vehicle processing unit determines the safe distance value based on the relative speed of the vehicle relative to the vehicle in front, similar to the determination of the warning distance based on the relative speed of the vehicle relative to the vehicle in front, and will not be repeated here. The augmented reality head-up display system can dynamically render the safe distance value on the real road surface through color changes or dynamic flashing, to help the driver perceive risks in advance and adjust the following distance in time.
[0080] This application's embodiments calculate a safe distance value based on relative speed and dynamically render this value using an augmented reality head-up display system, providing a quantitative reference for the theoretical safety baseline. Drivers can clearly know whether the current following distance is below the theoretical safe value, thus proactively adjusting their driving behavior. This solves the problem of traditional solutions that "only warn of risks but do not inform of safety boundaries," significantly improving the driver's accuracy in recognizing and proactively managing safe following distances.
[0081] In summary, the embodiments of this application relate to a ranging system based on forward sensing devices (such as millimeter-wave radar, lidar, cameras, etc.) and combined with augmented reality head-up display technology, including the following components:
[0082] (1) Forward sensing device:
[0083] ① Millimeter-wave radar or lidar to measure the distance and relative speed of the vehicle in front in real time.
[0084] ②Front-facing camera to assist in identifying and tracking the position of vehicles ahead.
[0085] (2) Data processing unit:
[0086] ① Receive ranging data provided by forward sensing devices.
[0087] ② Calculate vehicle spacing and update the values in real time.
[0088] (3) Augmented Reality Head-Up Display System:
[0089] ①Based on the calculation results of the data processing unit, a distance measuring scale is rendered in real time on the actual road surface in front of the driver.
[0090] ② The scale clearly indicates the real-time distance from your vehicle to the vehicle in front (e.g., 10m, 20m, 30m markings, etc.).
[0091] The specific working principle and process of the above ranging system are as follows:
[0092] (1) Real-time ranging stage:
[0093] ① The forward sensing device continuously measures the distance to the vehicle in front in real time.
[0094] ② The data processing unit fuses and analyzes the sensor data to ensure accurate and reliable ranging.
[0095] (2) Distance calculation and calibration:
[0096] ① The data processing unit calculates the real-time distance between the vehicle and the vehicle in front based on the data collected by the sensing device.
[0097] ② Simultaneously, based on the vehicle's speed, it dynamically judges and provides recommended safe distance values.
[0098] (3) Augmented Reality (AR) scale dynamic rendering:
[0099] ① The augmented reality head-up display system dynamically renders a transparent and intuitive distance measuring scale on the road surface in front of the driver based on the calculation results.
[0100] ② The distance scale updates in real time as the vehicle in front moves. When the distance is too close, it will be highlighted in a prominent way to remind the driver to increase the distance.
[0101] (4) Proactive intervention and reminder mechanism:
[0102] When the distance measuring scale shows that the distance to the vehicle is consistently below the recommended safe threshold, the augmented reality head-up display system will display a color change or dynamic flashing to help the driver perceive the risk in advance and adjust the distance in time.
[0103] This application's embodiments utilize real-time data fusion for accurate distance measurement (fusion technology of millimeter-wave radar, lidar, and camera data) and highly efficient and precise augmented reality head-up display (HUD) rendering technology to ensure that the displayed distance scale accurately corresponds to the real road surface. By displaying vehicle distances in real time, drivers can proactively and intuitively perceive safe following distances without distraction, avoiding misjudgments. Compared to existing FCW (Forward Collision Warning) technologies that only provide alerts at dangerous moments, this invention offers a proactive prevention solution that is both safer and more proactive.
[0104] Therefore, the technical effects of the embodiments of this application can be summarized as follows:
[0105] (1) Active safety prevention: Provides real-time distance display to avoid drivers waiting for passive warnings.
[0106] (2) High intuitiveness: Visual display method to enhance driving experience and safety.
[0107] (3) Reduce driver burden: Drivers do not need to frequently shift their gaze or judge complex values, reducing driving anxiety and the risk of misjudgment.
[0108] (4) It greatly enhances the driver's real-time perception of distance and proactive management awareness, and proactively prevents collision risks in advance.
[0109] (5) Effectively reduces the probability of rear-end collisions, especially for novice drivers or drivers with slow reaction time.
[0110] (6) By visualizing and intuitively presenting distance information, the user's driving experience is significantly improved, and the user's trust and satisfaction with the safe driving assistance system are enhanced.
[0111] The above are the method embodiments provided in this application. The apparatus provided in this application will be described below.
[0112] Figure 2 This is a schematic diagram of the structure of a vehicle distance display device provided in this application, as shown below. Figure 2 As shown, the vehicle distance display device 400 provided in this embodiment includes: a data acquisition module 401, a determination module 402, and a rendering module 403. Optionally, the vehicle distance display device 400 may further include a processing module 404.
[0113] The acquisition module 401 is used to acquire the initial distance between the vehicle and the vehicle in front through a forward sensing device.
[0114] The determination module 402 is used to determine the real-time distance to be displayed based on the initial distance.
[0115] The rendering module 403 is used to dynamically render a distance measuring scale on the real road surface in front of the vehicle based on the real-time distance to be displayed through an augmented reality head-up display system.
[0116] Optionally, the determining module 402 is specifically used to use the initial distance as the real-time distance to be displayed. Alternatively, it determines the real-time distance to be displayed based on the initial distance and the relative speed of the vehicle relative to the vehicle in front.
[0117] For example, module 402 is specifically used to determine the display distance adjustment step size based on the relative speed when the relative speed is used to characterize that the speed of the vehicle is greater than the speed of the vehicle in front; the display distance adjustment step size is greater than 0 and positively correlated with the relative speed. The initial distance is subtracted from the display distance adjustment step size to obtain the real-time distance to be displayed.
[0118] Optionally, the rendering module 403 is specifically used to dynamically render a distance measuring scale of a first display effect on the real road surface based on the real-time distance to be displayed when the initial distance is less than or equal to the warning distance, through the augmented reality head-up display system. When the initial distance is greater than the warning distance, it dynamically renders a distance measuring scale of a second display effect on the real road surface based on the real-time distance to be displayed, through the augmented reality head-up display system.
[0119] For example, before the rendering module 403 dynamically renders a distance measuring scale on the real road surface in front of the vehicle based on the real-time distance to be displayed through the augmented reality head-up display system, the processing module 404 determines the warning distance based on the relative speed of the vehicle relative to the vehicle in front; the warning distance is positively correlated with the relative speed.
[0120] Optionally, the processing module 404 is also used to determine a safe distance value based on the relative speed of the vehicle relative to the vehicle in front. The safe distance value is dynamically rendered on the real road surface using an augmented reality head-up display system.
[0121] The vehicle distance display device provided in this embodiment can execute the methods provided in any of the above method embodiments. The implementation principle and technical effect are similar, and will not be described in detail here.
[0122] Figure 3 This is a schematic diagram of the structure of an electronic device provided in this application. Figure 3 As shown, the electronic device 500 provided in this embodiment includes at least one processor 501 and a memory 502. Optionally, the device 500 further includes a communication component 503. The processor 501, memory 502, and communication component 503 are connected via a bus 504.
[0123] In a specific implementation, at least one processor 501 executes computer execution instructions stored in memory 502, causing at least one processor 501 to perform the above-described method.
[0124] The specific implementation process of processor 501 can be found in the above method embodiments, and its implementation principle and technical effect are similar. It will not be repeated here.
[0125] In the above embodiments, it should be understood that the processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this invention can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules within the processor.
[0126] The memory may include random access memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk storage device.
[0127] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, the buses shown in the accompanying drawings are not limited to a single bus or a single type of bus.
[0128] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the above-described method.
[0129] This application also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the above-described method.
[0130] The aforementioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The readable storage medium can be any available medium accessible to a general-purpose or special-purpose computer.
[0131] An exemplary readable storage medium is coupled to a processor, enabling the processor to read information from and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can reside in an Application Specific Integrated Circuit (ASIC). Alternatively, the processor and the readable storage medium can exist as discrete components in the device.
[0132] The division of units is merely a logical functional division; in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.
[0133] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0134] In addition, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0135] If a function is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0136] Those skilled in the art will understand that all or part of the steps of the above-described method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments; and the aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.
[0137] Finally, it should be noted that other embodiments of this application will readily conceive of by those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein, and is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes may be made without departing from its scope.
Claims
1. A vehicle distance display method characterized by, The method comprises: acquiring, by a forward sensing device, an initial distance between a host vehicle and a front vehicle; determining a real-time distance to be displayed based on the initial distance; rendering, by an augmented reality head-up display system, a ranging scale on a real road surface in front of the host vehicle based on the real-time distance to be displayed.
2. The method of claim 1, wherein, The determining the real-time distance to be displayed based on the initial distance comprises: taking the initial distance as the real-time distance to be displayed; or determining the real-time distance to be displayed based on the initial distance and a relative speed of the host vehicle relative to the front vehicle. The determining the real-time distance to be displayed based on the initial distance and the relative speed comprises:
3. The method of claim 2, wherein, in a case where the relative speed is used to represent that a speed of the host vehicle is greater than a speed of the front vehicle, determining a display distance adjustment step based on the relative speed; the display distance adjustment step is greater than 0 and positively correlated with the relative speed; subtracting the display distance adjustment step from the initial distance to obtain the real-time distance to be displayed. The rendering, by the augmented reality head-up display system, the ranging scale on the real road surface in front of the host vehicle based on the real-time distance to be displayed comprises:
4. The method according to any one of claims 1 to 3, characterized in that, in a case where the initial distance is less than or equal to a warning distance, rendering, by the augmented reality head-up display system, the ranging scale with a first display effect on the real road surface based on the real-time distance to be displayed; in a case where the initial distance is greater than the warning distance, rendering, by the augmented reality head-up display system, the ranging scale with a second display effect on the real road surface based on the real-time distance to be displayed. Before the rendering, by the augmented reality head-up display system, the ranging scale on the real road surface in front of the host vehicle based on the real-time distance to be displayed, the method further comprises:
5. The method of claim 4, wherein, determining the warning distance based on a relative speed of the host vehicle relative to the front vehicle; the warning distance is positively correlated with the relative speed. The method further comprises:
6. The method according to any one of claims 1 to 3, characterized in that, determining a safety distance value based on the relative speed of the host vehicle relative to the front vehicle; rendering, by the augmented reality head-up display system, the safety distance value on the real road surface. The device comprises:
7. A vehicle distance display device characterized by comprising: an acquisition module configured to acquire, by a forward sensing device, an initial distance between a host vehicle and a front vehicle; a determination module configured to determine a real-time distance to be displayed based on the initial distance; a rendering module configured to render, by an augmented reality head-up display system, a ranging scale on a real road surface in front of the host vehicle based on the real-time distance to be displayed. The device comprises:
8. An electronic device, comprising: a memory and a processor; the memory stores computer execution instructions; the processor executes the computer execution instructions stored in the memory, so that the processor executes the method according to any one of claims 1-6. The computer readable storage medium stores computer execution instructions, and the computer execution instructions are executed by the processor to implement the method according to any one of claims 1-6.
9. A computer-readable storage medium, characterized in that, The computer program is executed by the processor to implement the method according to any one of claims 1-6.
10. A computer program product, characterised in that,