Method and device for controlling particle laying path and related product
By controlling particle parameters and existence time, the display radius is calculated in real time and the particles dissipate at a preset value, solving the high CPU load problem caused by particle paving in AR-HUD, and improving system stability and driving safety.
Patent Information
- Application Number
- CN202511999372.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-26
- Publication Date
- 2026-03-20
AI Technical Summary
In existing augmented reality head-up display systems, particle paving technology causes the central processing unit to run at high load for extended periods, reducing system stability and driving safety.
By controlling particle parameters and existence time, the display radius of particles is calculated in real time, and the particles are controlled to dissipate when the preset value is reached. The particle parameters are generated by using a nonlinear particle dissipation mathematical model and normally distributed random numbers, which reduces the amount of calculation and reduces the CPU load.
It improves the stability and driving safety of AR-HUD, avoids poor guidance caused by high load, and enhances computing efficiency and visual realism.
Smart Images

Figure CN121708259A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of head-up display systems, and particularly relates to a method and device for controlling particle paving routes and related products. BACKGROUND
[0002] In an augmented reality-head-up display (AR-HUD), particle paving route technology is a visual effect creation technology that dynamically generates particles to simulate real path trajectories, and is commonly used for navigation guidance.
[0003] In the prior art, particle paving route technology relies on a large number of particles to create dynamic effects, and the increasing number of particles increases the amount of calculation, which leads to long-time high-load operation of the central processing unit (CPU) of the AR-HUD, and thus reduces the stability of the AR-HUD. When the AR-HUD occurs errors due to continuous high load, it will cause poor guidance of the paving route, and thus reduce driving safety, and even cause traffic hazards. SUMMARY
[0004] Based on the above problems, the present application provides a method and device for controlling particle paving routes and related products to control the generation of particle paving routes in the AR-HUD, and improve the stability and driving safety of the AR-HUD.
[0005] The present application discloses a method for controlling particle paving routes, which comprises:
[0006] generating particles on a paving route according to particle parameters; the particle parameters include the radius, speed and dissipation distance of the particles;
[0007] real-time calculating the display radius of the particles according to the particle parameters and the existence time of the particles; the existence time starts from the time when the particles are generated and increases from 0 in real time; the display radius decreases with the increase of the existence time;
[0008] controlling the particles to dissipate from the paving route when the display radius is less than a preset value.
[0009] Optionally, the particle parameters include the radius, speed and dissipation distance of the particles.
[0010] The real-time calculation of the display radius of the particles according to the particle parameters and the existence time of the particles comprises:
[0011] The particle parameters and the existence time are substituted into a nonlinear particle dissipation mathematical model, and the display radius is calculated in real time by using the nonlinear particle dissipation mathematical model; the nonlinear particle dissipation mathematical model takes the existence time as a variable, and is used to output the display radius of each particle;
[0012] The nonlinear particle dissipation mathematical model is constructed based on a dissipation coefficient and a preset attenuation constant; the dissipation coefficient is negatively correlated with the speed, and is positively correlated with the radius and the dissipation distance; and the attenuation constant is used to adjust the output of the nonlinear particle dissipation mathematical model.
[0013] Optionally, the step of substituting the particle parameters and the existence time into the nonlinear particle dissipation mathematical model and calculating the display radius in real time by using the nonlinear particle dissipation mathematical model comprises:
[0014] The speed is multiplied by the existence time to obtain a particle moving distance;
[0015] The quotient of the particle moving distance and the dissipation distance is obtained;
[0016] The difference between 1 and the quotient is obtained, and the product of the attenuation constant and the difference is obtained;
[0017] The arctangent value of the product and the arctangent value of the attenuation constant are obtained by using an arctangent function;
[0018] The ratio of the arctangent value of the product and the arctangent value of the attenuation constant is obtained;
[0019] The ratio is multiplied by the radius to obtain the display radius.
[0020] Optionally, the step of generating a particle on a paving line according to particle parameters comprises:
[0021] The particle parameter range of the particle is obtained; the particle parameter range comprises a radius range, a dissipation distance range and a speed range;
[0022] A random number in a normal distribution is generated as the radius of the particle in the radius range;
[0023] A random number in a normal distribution is generated as the speed of the particle in the speed range;
[0024] A random number in a normal distribution is generated as the dissipation distance of the particle in the dissipation distance range;
[0025] The particle is generated on the paving line based on the radius, the speed and the dissipation distance of the particle.
[0026] Optionally, after calculating the display radius of the particle in real time according to the particle parameter and the existence time of the particle, the method further comprises:
[0027] calculating a display radius range of the particle according to the radius range, the dissipation distance range and the speed range;
[0028] prompting a calculation error when the calculated display radius is not within the display radius range.
[0029] Optionally, before generating the particle on the paving line according to the particle parameter, the method further comprises:
[0030] performing validity checking on the particle parameter range to obtain a checking result; the validity checking comprises checking whether the minimum value in the radius range is greater than or equal to 0, checking whether the minimum value in the dissipation distance range is greater than or equal to 0, and checking whether the minimum value of the speed range is greater than 0;
[0031] determining that the particle parameter range is invalid when there is a no in the checking result, and obtaining a new particle parameter range.
[0032] Optionally, the generating the particle on the paving line according to the particle parameter comprises:
[0033] determining a median radius according to the maximum value and the minimum value of the radius range;
[0034] generating a random number of normal distribution as the radius with the median radius and a standard deviation as parameters;
[0035] determining a median dissipation distance according to the maximum value and the minimum value of the dissipation distance range;
[0036] generating a random number of normal distribution as the dissipation distance with the median dissipation distance and a standard deviation as parameters;
[0037] obtaining a median speed of the particle and obtaining an up-and-down floating amount of the particle speed;
[0038] obtaining the speed range based on the median speed and the up-and-down floating amount;
[0039] generating a random number of normal distribution as the speed with the median speed and a standard deviation as parameters.
[0040] Based on the above method of controlling a particle paving line, the application further discloses a device for controlling a particle paving line, comprising a generating unit, a calculating unit and a controlling unit.
[0041] The generating unit is configured to generate the particle on the paving line according to a particle parameter; the particle parameter comprises a radius, a speed and a dissipation distance of the particle;
[0042] The calculating unit is configured to calculate a display radius of the particle in real time according to the particle parameter and an existence time of the particle; the existence time increases from 0 in real time since a time when the particle is generated; and the display radius decreases with the increase of the existence time;
[0043] The control unit is configured to control the particle to dissipate from the paving line when the display radius is less than a preset value.
[0044] Optionally, the particle parameter comprises the radius, the speed and the dissipation distance of the particle; and the calculating unit comprises:
[0045] The substituting sub-unit is configured to substitute the particle parameter and the existence time into a nonlinear particle dissipation mathematical model, and calculate the display radius in real time by using the nonlinear particle dissipation mathematical model; the nonlinear particle dissipation mathematical model takes the existence time as a variable, and is used to output the display radius of each particle;
[0046] The nonlinear particle dissipation mathematical model is constructed based on a dissipation coefficient and a preset attenuation constant; the dissipation coefficient has a negative correlation with the speed, and has a positive correlation with the radius and the dissipation distance; and the attenuation constant is used to adjust an output of the nonlinear particle dissipation mathematical model.
[0047] Optionally, the substituting sub-unit comprises:
[0048] The distance obtaining sub-unit is configured to multiply the speed by the existence time to obtain a particle moving distance;
[0049] The quotient obtaining sub-unit is configured to obtain a quotient of the particle moving distance and the dissipation distance;
[0050] The product obtaining sub-unit is configured to obtain a difference between 1 and the quotient, and obtain a product of the attenuation constant and the difference;
[0051] The arc tangent value obtaining sub-unit is configured to obtain an arc tangent value of the product and an arc tangent value of the attenuation constant by using an arc tangent function;
[0052] The ratio obtaining sub-unit is configured to obtain a ratio of the arc tangent value of the product and the arc tangent value of the attenuation constant;
[0053] The display radius obtaining sub-unit is configured to multiply the ratio by the radius to obtain the display radius.
[0054] Optionally, the generating unit comprises:
[0055] a range acquisition subunit configured to acquire a particle parameter range of the particle; the particle parameter range comprises a radius range, a dissipation distance range and a velocity range;
[0056] a radius acquisition subunit configured to generate a random number in normal distribution as the radius of the particle within the radius range;
[0057] a velocity acquisition subunit configured to generate a random number in normal distribution as the velocity of the particle within the velocity range;
[0058] a dissipation distance acquisition subunit configured to generate a random number in normal distribution as the dissipation distance of the particle within the dissipation distance range;
[0059] a generation subunit configured to generate the particle on the paving line based on the radius, the velocity and the dissipation distance of the particle.
[0060] Optionally, the device further comprises:
[0061] a range calculation unit configured to calculate a display radius range of the particle according to the radius range, the dissipation distance range and the velocity range;
[0062] a range comparison unit configured to prompt a calculation error when the calculated display radius is not within the display radius range.
[0063] Optionally, the device further comprises:
[0064] a verification unit configured to perform validity verification on the particle parameter range to obtain a verification result; the validity verification comprises verifying whether a minimum value in the radius range is greater than or equal to 0, verifying whether a minimum value in the dissipation distance range is greater than or equal to 0, and verifying whether a minimum value in the velocity range is greater than 0;
[0065] a re-acquisition unit configured to determine that the particle parameter range is invalid when there is a negative result in the verification result, and acquire a new particle parameter range.
[0066] Optionally, the generation unit comprises:
[0067] a median radius acquisition subunit configured to determine a median radius according to a maximum value and a minimum value of the radius range;
[0068] a radius generation subunit configured to generate a random number in normal distribution as the radius with the median radius and a standard deviation as parameters;
[0069] a median dissipation distance obtaining subunit configured to determine a median dissipation distance according to a maximum value and a minimum value of the dissipation distance range;
[0070] a dissipation distance generating subunit configured to generate a random number of normal distribution as the dissipation distance with the median dissipation distance and a standard deviation as parameters;
[0071] a median velocity obtaining subunit configured to obtain a median velocity of the particle and an up-and-down floating amount of the particle velocity;
[0072] a velocity range obtaining subunit configured to obtain the velocity range based on the median velocity and the up-and-down floating amount;
[0073] a velocity generating subunit configured to generate a random number of normal distribution as the velocity with the median velocity and a standard deviation as parameters.
[0074] Based on the above method of controlling particle paving route, the application further discloses an augmented reality head-up display system, which has a central processing unit and a display module; the central processing unit is used for executing computer program instructions of controlling particle paving route and sending particle rendering instructions to the display module for rendering, so as to realize the steps of the above method.
[0075] Based on the above method of controlling particle paving route, the application further discloses a storage medium for storing computer program instructions, which can realize the steps of the above method when executed by a central processing unit.
[0076] The application discloses a method, device and related product of controlling particle paving route. The particle is generated on the paving route according to the particle parameters. The existence time of the particle is timed from the moment of the particle generation, and the display radius of the particle which decreases with the increase of the existence time is calculated in real time according to the particle parameters and the existence time. When the display radius is less than a preset value, the particle is controlled to dissipate from the paving route, so as to avoid the problem that the calculation amount is too large and the central processing unit is in long-time high-load operation due to the unlimited increase of the particle number. The particle dissipation mechanism of the application can reduce the calculation amount which is too large, improve the stability of the central processing unit, and thus enhance the stability of the augmented reality head-up display system. The system can continuously and reliably provide guidance for the driver, avoid traffic danger caused by wrong guidance, and effectively improve the driving safety. BRIEF DESCRIPTION OF DRAWINGS
[0077] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the accompanying drawings needed to be used in the embodiments or prior art description will be briefly introduced as follows. Obviously, the accompanying drawings in the following description only constitute a part of the embodiments of the present application, and for those skilled in the art, other drawings can also be obtained based on the provided drawings without creative labor.
[0078] Figure 1a A flowchart of a method for controlling a particle paving route according to an embodiment of the present application is shown in the figure.
[0079] Figure 1b A static schematic diagram of a particle paving route according to an embodiment of the present application is shown in the figure.
[0080] Figure 1c A schematic diagram of an attenuation constant adjusting nonlinear particle dissipation curve according to an embodiment of the present application is shown in the figure.
[0081] Figure 1d A schematic diagram of a range of values of a display radius of a particle according to an embodiment of the present application is shown in the figure.
[0082] Figure 2 A flowchart of another method for controlling a particle paving route according to an embodiment of the present application is shown in the figure.
[0083] Figure 3 A structural schematic diagram of a device for controlling a particle paving route according to an embodiment of the present application is shown in the figure. DETAILED DESCRIPTION
[0084] The technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments only constitute a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor fall within the scope of protection of the present application.
[0085] Embodiment one: the present application discloses a method for controlling a particle paving route.
[0086] Specifically, please refer to Figure 1a The method for controlling a particle paving route according to the present embodiment comprises the following steps:
[0087] Step 101: generating a particle on a paving route according to a particle parameter.
[0088] The paving route in the method of the present embodiment is composed of a plurality of particles constantly moving forward to a vehicle, Figure 1bA still image showing a particle path in this embodiment is displayed, where glowing dots represent particles. These particles, combined with a dark background, create a "star path" effect resembling a path formed by stars in the night sky.
[0089] In the method of this embodiment, particle parameters are key parameters that determine particle characteristics, and may specifically include particle radius, velocity, dissipation distance, color, etc. These parameters directly affect the display effect of particles on the paving path, such as the visual size of the particles, their movement speed, dissipation position, and emission color.
[0090] As a feasible approach, the first step is to define the range of particle parameters. Specifically, this includes obtaining the range of particle radius, dissipation distance, and velocity. The radius range determines the range of the particle's perceived size, preventing it from being too large or too small. The dissipation distance range affects the maximum distance the particle can exist along the paving path, preventing it from continuously existing and accumulating at the end of the path. The velocity range defines the upper and lower limits of the particle's movement speed, preventing it from moving too fast or too slow.
[0091] In this embodiment, the particle parameter range can be obtained in multiple ways to meet different user needs and usage scenarios. One feasible solution is for the user to directly input the maximum and minimum values within the range as needed. For example, if the user wants the particles to be small and dissipate quickly along the path, they can input specific values for a smaller radius range or a shorter dissipation distance range. Another feasible solution is for the user to select or set these values within the augmented reality head-up display (AR-HUD) system. The AR-HUD can preset various particle parameter range templates with different styles for the user to choose from. Furthermore, the user can fine-tune the selected template within the AR-HUD, for example, by clicking to increase the particle radius or decrease its speed.
[0092] This embodiment does not specifically limit the method of obtaining the particle parameter range, as long as the particle parameter range can be reasonably determined, and particles that meet the requirements can be generated.
[0093] It is important to note that when obtaining the particle parameter range, for the velocity range, the median velocity of the particles can be obtained first, along with the upper and lower fluctuations of the particle velocity. The velocity range can then be obtained based on the median velocity and the upper and lower fluctuations. For example, if the median velocity is v, the velocity range obtained based on the median velocity and the set upper and lower fluctuations is [80%v, 120%v]. Correspondingly, the upper and lower fluctuations can be manually set values or empirical values obtained experimentally. This embodiment does not specifically limit the specific values or methods of obtaining the upper and lower fluctuations; as long as the velocity range is obtained, it is acceptable. For the radius range and dissipation distance range, specific values can be directly specified.
[0094] In the method of the embodiment, in order to ensure that the generated particles are reasonable and effective, and avoid particles with characteristics that do not conform to actual situations, it is necessary to perform validity checking on the particle parameter range. Since the radius, dissipation distance, and speed of a particle cannot be negative, it can be specifically checked whether the minimum value in the radius range is greater than or equal to 0, whether the minimum value in the dissipation distance range is greater than or equal to 0, and whether the minimum value in the speed range is greater than 0. Similarly, when the particle parameter range is obtained, the minimum value in the range must be less than or equal to the maximum value, and checking can also be performed in view of this.
[0095] When there is an unreasonable phenomenon in the checking result, it is determined that the particle parameter range is invalid, a new particle parameter range is obtained, and the above checking process is performed again until a valid particle parameter range is obtained. For example, the checking result shows that the minimum value in the dissipation distance range is less than 0, and it is determined that the particle parameter range is invalid. For another example, the checking result shows that the minimum value in the radius range is greater than the maximum value, and it is determined that the particle parameter range is invalid.
[0096] In addition, due to different requirements, there can be a correlation between particle parameters, such as when the speed of a particle needs to be large, the dissipation range also needs to be set to be large. Therefore, when it is determined that the particle parameter range is invalid, only part of the particle parameter range can be determined to be invalid, or all of the particle parameter range can be determined to be invalid. The embodiment does not make a specific limitation on the specific operation of determining that the particle parameter range is invalid, and can finally obtain a valid particle parameter range.
[0097] In the method of the embodiment, after the particle parameter range is determined, in order to make the generated particles have diversity and have a natural display effect on the paving line, a normal distribution random number can be generated in the particle parameter range to generate the particle parameters of each particle. The characteristics of the normal distribution can make the generated particle parameters more likely to be naturally distributed in the middle region of the particle parameter range, and at the same time, there is a certain probability of appearing in the edge region at both ends of the particle parameter range, thereby ensuring the diversity of the particle parameters.
[0098] Specifically, in the radius range, a normal distribution random number can be generated as the radius of the particle. In the speed range, a normal distribution random number can be generated as the speed of the particle. In the dissipation distance range, a normal distribution random number can be generated as the dissipation distance of the particle.
[0099] As an implementable solution, for the radius and dissipation distance of the particle, the median value can be determined according to the maximum value and the minimum value in the range thereof, and then a random number of normal distribution is generated with the median value and the standard deviation as parameters, as the corresponding particle parameter. For example, a random number of normal distribution is generated with the median radius and the standard deviation as parameters, as the radius. A random number of normal distribution is generated with the median dissipation distance and the standard deviation as parameters, as the dissipation distance. For the velocity of the particle, a random number of normal distribution can be generated with the median velocity and the standard deviation as parameters, as the velocity of the particle.
[0100] wherein the standard deviation is an index for measuring the degree of dispersion of data, and in actual application, different standard deviations can be set according to the types of the range of particle parameters. For example, the standard deviation of the radius range and the dissipation distance range can be set to 10%, and the standard deviation of the velocity range can be set to 4%. Since the particles generated in the method of the embodiment need to have an aesthetic visual design effect, the specific standard deviation value can be set according to the simulation effect.
[0101] In the method of the embodiment, after the particle parameters generated through the above process are obtained, the particles are generated on the paving line based on the particle parameters. The particles will exhibit corresponding characteristics on the paving line according to the particle parameters assigned thereto, so as to achieve the expected display effect. As shown in Figure 1b It can be seen that the particle parameters of each particle can be different, so as to create the feeling of "stars" of different sizes.
[0102] Step 102: Real-time calculation of the display radius of the particle according to the particle parameter and the existence time of the particle.
[0103] In the method of the embodiment, the existence time of the particle is increased from 0 in real time from the moment of generation of the particle, and records the time of existence of the particle on the paving line. The display radius of the particle gradually decreases with the increase of the existence time, simulating the process of gradual attenuation and dissipation of the particle.
[0104] In the method of the embodiment, in order to realize the dynamic change of the display radius with the existence time, the display radius needs to be calculated in real time. Specifically, the particle parameter and the existence time can be substituted into a nonlinear particle dissipation mathematical model, and the display radius is calculated in real time by using the nonlinear particle dissipation mathematical model. The nonlinear particle dissipation mathematical model is constructed based on an inverse tangent function. The curve characteristics of the inverse tangent function can realize the nonlinear change effect while ensuring the smooth transition of the calculation result, so as to be suitable for creating the process of non-uniform and natural dissipation of the particle.
[0105] In the method of the embodiment, the nonlinear particle dissipation mathematical model takes the particle parameters of each particle and a preset attenuation constant as coefficients, takes the existence time of each particle as a variable, and is used to output the display radius of each particle. The attenuation constant is used to adjust the curvature of the nonlinear particle dissipation curve, and its value can be set as 1 by default and adjusted according to requirements. As shown in FIG. 8, n is the attenuation constant, r is the radius, and s is the dissipation distance. As can be seen from the figure, the curvatures of the nonlinear particle dissipation curves when n is 1, 2.5, 5, 10, 20, and 30 are different. By adjusting the value of the attenuation constant, the speed at which the display radius changes with the existence time can be controlled, and the inclination in the curve reflects the speed at which the display radius decreases with the dissipation distance. Figure 1c
[0106] As an implementable solution, the process of calculating the display radius in real time by using the nonlinear particle dissipation mathematical model can be as follows. First, the speed is multiplied by the existence time to obtain the particle movement distance. The quotient of the particle movement distance and the dissipation distance is obtained, and the difference between 1 and the quotient is obtained. The product of the attenuation constant and the difference is obtained. Subsequently, the arctangent value of the product and the arctangent value of the attenuation constant are obtained by using the arctangent function. The ratio of the arctangent value of the product and the arctangent value of the attenuation constant is obtained. Finally, the ratio is multiplied by the radius to obtain the display radius.
[0107] Specifically, the above process can be represented as follows:
[0108] (1)
[0109] In the formula, r(t) is the display radius, r is the radius, n is the attenuation constant, v is the speed, t is the existence time, and s is the dissipation distance.
[0110] In the method of the embodiment, in order to ensure that the calculated display radius is reasonable and effective, the display radius range of the particle can also be calculated according to the radius range, the dissipation distance range, and the speed range (i.e., the particle parameter range). The display radius range estimates and limits the possible radius of the particle in the entire life cycle. For example, when the calculated display radius is not within the display radius range, it indicates that an error or an abnormal situation may have occurred in the calculation process, and the user can be prompted of the calculation error in a timely manner for troubleshooting.
[0111] As an implementable solution, the specific steps of calculating the display radius range of the particle according to the particle parameter range can be represented as follows:
[0112] (2)
[0113] (3)
[0114] In the formula, r(t) is the display radius, r is the radius, n is the attenuation constant, v is the speed, t is the existence time, and s is the dissipation distance.min To display the minimum value within the radius range, r(t) max To display the maximum value within the radius range, r min r is the minimum value within the radius range. max v is the maximum value within the radius range. min v is the minimum value in the speed range. max The maximum value in the speed range, s min s is the minimum value within the dissipation distance range. max This is the maximum value within the dissipation distance range.
[0115] Similarly, the minimum value within the displayed radius range must be greater than or equal to 0, and must be less than or equal to the maximum value; this can also be verified.
[0116] In the method of this embodiment, such as Figure 1d As shown, the upper and lower curves represent r(t). max and r(t) min The shaded area between the two curves represents the reasonable range of values for r(t).
[0117] Step 103: When the display radius is less than a preset value, control the particles to dissipate from the paving path.
[0118] In this embodiment, to achieve a natural decay effect on the particle path, the particles can be controlled to dissipate from the path based on the display radius. One feasible approach is to monitor the real-time display radius and compare it with a preset value. When the comparison shows that the particle's display radius is less than the preset value, the particle is controlled to dissipate from the path. Specifically, this can be achieved by sending a corresponding instruction to the rendering engine to stop rendering the particle. Visually, the particles gradually disappear from the path, and the dissipation process is smooth and natural.
[0119] Conversely, if the comparison result shows that the display radius of the particle is greater than or equal to the preset value, it means that the particle still needs to exist on the paving path. At this time, no operation is performed on the particle, so that it remains in its current state and continues to exist and move on the paving path according to the particle parameters.
[0120] In the method of this embodiment, the preset value represents the critical radius at which a particle visually disappears, and can be set to 0. When the display radius of a particle is smaller than this preset value, it means that the particle has become visually very small and almost imperceptible. Continuing to retain the particle will not only consume resources but may also affect the efficiency and effect of rendering. Therefore, it can be controlled to dissipate from the tiling path.
[0121] The method of the embodiment solves the problem of long-term high-load operation of CPU caused by continuous increase of particles in the traditional particle paving route technology. The particle attenuation mechanism is introduced, and the attenuation characteristics of the particles can be personalized and flexibly adjusted. The number of particles on the paving route and the display effect are reasonably controlled according to the state of the particles, the calculation amount is reduced, the load of CPU is reduced, and the stable operation of AR-HUD is realized. Moreover, through the normalized arctangent function attenuation curve of speed, time and radius, the dynamic effect of gradually becoming smaller and lighter and finally naturally disappearing of the particles in the movement process is created, and the visual reality is improved. In addition, in the traditional particle paving route technology, there is no particle attenuation mechanism, the particle radius is visually constant, the particle density at a long distance of the paving route will increase continuously, and strong visual compression will be caused. Moreover, due to the pixel density and the perspective deformation of the depth of field, there will be problems such as jagged and other bad visual guidance, which will affect the accuracy of AR-HUD. The particle attenuation mechanism in the method of the embodiment realizes the visual effect of large near and small far and dense near and sparse far on the paving route, reasonably controls the density and size of the particles at different distances, makes the particles more in line with the observation habits of the human eye in vision, eliminates the visual compression and bad visual guidance problems, provides a clearer and more comfortable visual environment for the user, and helps to improve the driving safety.
[0122] Embodiment two: another method for controlling particle paving route is disclosed in the present application, please refer to Figure 2 The method of the embodiment introduces the process of dissipation of particles from the paving route.
[0123] Step 201: obtain the particle parameter range.
[0124] Step 202: perform validity check on the particle parameter range to determine whether the particle parameter range is valid. If yes, go to step 203. If no, go to step 204.
[0125] Step 203: generate normal distribution random numbers based on the particle parameter range to obtain the particle parameters of each particle.
[0126] Step 204: prompt that the particle parameter range is invalid. Return to step 201.
[0127] Step 205: generate each particle on the paving route according to the particle parameters of each particle.
[0128] Step 206: calculate the display radius of the particle in real time according to the particle parameters and the existence time of the particle.
[0129] Step 207: calculate the display radius range of the particle according to the particle parameter range.
[0130] Step 208: determine whether the display radius calculated in real time is within the display radius range. If yes, go to step 209. If no, go to step 210.
[0131] Step 209: Determine if the displayed radius is less than the preset value. If yes, proceed to step 211. If no, return to step 206.
[0132] Step 210: Error message: Calculation error detected. Return to step 206.
[0133] Step 211: Control the particles to dissipate from the paving path.
[0134] Based on the method for controlling particle path laying disclosed in the above embodiments, this embodiment correspondingly discloses an apparatus for controlling particle path laying. Please refer to... Figure 3 The device for controlling particle path laying includes: a generation unit 301, a calculation unit 302, and a control unit 303;
[0135] The generation unit 301 is used to generate particles on the paving path according to particle parameters; the particle parameters include the particle's radius, velocity, and dissipation distance.
[0136] The calculation unit 302 is used to calculate the display radius of the particle in real time based on the particle parameters and the existence time of the particle; the existence time starts from 0 and increases in real time from the moment the particle is generated; the display radius decreases as the existence time increases.
[0137] The control unit 303 is used to control the particles to dissipate from the paving path when the display radius is less than a preset value.
[0138] Optionally, the particle parameters include the particle's radius, velocity, and dissipation distance; the calculation unit 302 includes:
[0139] The sub-unit is used to substitute the particle parameters and the existence time into the nonlinear particle dissipation mathematical model, and to calculate the display radius in real time using the nonlinear particle dissipation mathematical model; the nonlinear particle dissipation mathematical model uses the existence time as a variable to output the display radius of each particle;
[0140] The nonlinear particle dissipation mathematical model is constructed based on the dissipation coefficient and a preset decay constant; the dissipation coefficient is negatively correlated with the velocity and positively correlated with the radius and the dissipation distance; the decay constant is used to adjust the output of the nonlinear particle dissipation mathematical model.
[0141] Optionally, the substitution subunit includes:
[0142] The distance acquisition subunit is used to multiply the velocity by the existence time to obtain the particle's movement distance;
[0143] a quotient obtaining sub-unit configured to obtain a quotient of the particle moving distance and the dissipation distance;
[0144] a product obtaining sub-unit configured to obtain a difference between 1 and the quotient, and obtain a product of the attenuation constant and the difference;
[0145] an arc tangent value obtaining sub-unit configured to obtain an arc tangent value of the product and an arc tangent value of the attenuation constant through an arc tangent function;
[0146] a ratio obtaining sub-unit configured to obtain a ratio of the arc tangent value of the product and the arc tangent value of the attenuation constant;
[0147] a display radius obtaining sub-unit configured to multiply the ratio and the radius to obtain the display radius.
[0148] Optionally, the generating unit 301 comprises:
[0149] a range obtaining sub-unit configured to obtain a particle parameter range of the particle; the particle parameter range comprises a radius range, a dissipation distance range and a velocity range;
[0150] a radius obtaining sub-unit configured to generate a random number with a normal distribution as the radius of the particle within the radius range;
[0151] a velocity obtaining sub-unit configured to generate a random number with a normal distribution as the velocity of the particle within the velocity range;
[0152] a dissipation distance obtaining sub-unit configured to generate a random number with a normal distribution as the dissipation distance of the particle within the dissipation distance range;
[0153] a generating sub-unit configured to generate the particle on the paving line based on the radius, the velocity and the dissipation distance of the particle.
[0154] Optionally, the device further comprises:
[0155] a range calculating unit configured to calculate a display radius range of the particle according to the radius range, the dissipation distance range and the velocity range;
[0156] a range comparing unit configured to prompt a calculation error when the calculated display radius is not within the display radius range.
[0157] Optionally, the device further comprises:
[0158] The checking unit is configured to check validity of the particle parameter range to obtain a checking result. The validity checking includes checking whether a minimum value in the radius range is greater than or equal to 0, checking whether a minimum value in the dissipation distance range is greater than or equal to 0, and checking whether a minimum value in the speed range is greater than 0.
[0159] The reacquisition unit is configured to determine that the particle parameter range is invalid when there is a no in the checking result, and acquire a new particle parameter range.
[0160] Optionally, the generating unit includes:
[0161] The median radius acquisition subunit is configured to determine a median radius according to a maximum value and a minimum value of the radius range.
[0162] The radius generating subunit is configured to generate a random number of normal distribution as the radius by taking the median radius and a standard deviation as parameters.
[0163] The median dissipation distance acquisition subunit is configured to determine a median dissipation distance according to a maximum value and a minimum value of the dissipation distance range.
[0164] The dissipation distance generating subunit is configured to generate a random number of normal distribution as the dissipation distance by taking the median dissipation distance and a standard deviation as parameters.
[0165] The median speed acquisition subunit is configured to acquire a median speed of the particle and acquire an up-and-down floating amount of the particle speed.
[0166] The speed range acquisition subunit is configured to acquire the speed range based on the median speed and the up-and-down floating amount.
[0167] The speed generating subunit is configured to generate a random number of normal distribution as the speed by taking the median speed and a standard deviation as parameters.
[0168] Based on the method for controlling a particle paving route, the application further discloses an augmented reality head-up display system, which has a central processing unit and a display module. The central processing unit is configured to execute computer program instructions for controlling a particle paving route and send particle rendering instructions to the display module for rendering, so as to implement the steps of the method.
[0169] Based on the method for controlling a particle paving route, the application further discloses a storage medium for storing computer program instructions. When the computer program instructions are executed by a central processing unit, the steps of the method can be implemented.
[0170] The embodiments herein are described in a progressive manner. It should be noted that for the apparatus disclosed in the embodiments, the description is relatively simple since it corresponds to the method disclosed in the embodiments, and reference is therefore made to the description of the method.
[0171] It is further noted that the terminology "first", "second" and the like used in the description is merely intended to differentiate one entity or operation from another, without necessarily requiring or implying any actual relationship or order between such entities or operations. Moreover, the terms "comprises", "comprising", or any other variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but can include other elements not expressly listed or inherent to such process, method, article, or apparatus. The terms "comprises", "comprising", or any other variations thereof, do not exclude the presence of additional elements in a process, method, article, or apparatus that comprises the elements listed in the description.
[0172] The steps of a method or algorithm described in connection with the embodiments disclosed herein can be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module can reside in Random Access Memory (RAM), flash memory, Read-only memory (ROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such that the processor can read information from, and write information to, the storage medium. In the alternative, hard disk can be used as a storage medium.
[0173] Features recited in the above description of embodiments can be replaced by alternative features serving the same, equivalent or similar purpose, so each embodiment described is not intended to be limiting. Accordingly, the application is not limited to the embodiments described herein, but is only limited as required by the claims and equivalents thereof.
[0174] The above description of disclosed embodiments is intended to be illustrative, and not restrictive. Many embodiments will be apparent to those of skill in the art upon reviewing the above description. The scope of the application should, therefore, be determined not with reference to the above description, but instead with reference to the appended claims, along with their full scope of equivalents.
Claims
1. A method for controlling particle path laying, characterized in that, include: Particles are generated on the paving path based on particle parameters; The display radius of the particle is calculated in real time based on the particle parameters and the particle's existence time; the existence time starts from 0 and increases in real time from the moment the particle is generated; the display radius decreases as the existence time increases. When the display radius is less than a preset value, the particles are controlled to dissipate from the paving path.
2. The method according to claim 1, characterized in that, The particle parameters include the particle's radius, velocity, and dissipation distance; The step of calculating the display radius of the particle in real time based on the particle parameters and the particle's existence time includes: The particle parameters and the existence time are substituted into the nonlinear particle dissipation mathematical model, and the display radius is calculated in real time using the nonlinear particle dissipation mathematical model; the nonlinear particle dissipation mathematical model uses the existence time as a variable to output the display radius of each particle; The nonlinear particle dissipation mathematical model is constructed based on the dissipation coefficient and a preset decay constant; the dissipation coefficient is negatively correlated with the velocity and positively correlated with the radius and the dissipation distance; the decay constant is used to adjust the output of the nonlinear particle dissipation mathematical model.
3. The method according to claim 2, characterized in that, The step of substituting the particle parameters and the existence time into a nonlinear particle dissipation mathematical model, and using the nonlinear particle dissipation mathematical model to calculate the display radius in real time, includes: Multiplying the velocity by the duration of existence yields the distance the particle has traveled. Obtain the quotient of the particle's movement distance and its dissipation distance; Obtain the difference between 1 and the quotient, and obtain the product of the attenuation constant and the difference; The arctangent value of the product and the arctangent value of the attenuation constant are obtained by using the arctangent function. Obtain the ratio of the arctangent of the product to the arctangent of the attenuation constant; The display radius is obtained by multiplying the ratio by the radius.
4. The method according to claim 2, characterized in that, The process of generating particles on the paving path based on particle parameters includes: Obtain the particle parameter range of the particle; the particle parameter range includes the radius range, the dissipation distance range, and the velocity range; Within the radius range, a normally distributed random number is generated as the radius of the particle; Within the stated velocity range, normally distributed random numbers are generated as the velocities of the particles; Within the dissipation distance range, a normally distributed random number is generated as the dissipation distance of the particle; The particles are generated on the paving path based on the particle's radius, velocity, and dissipation distance.
5. The method according to claim 4, characterized in that, After calculating the display radius of the particle in real time based on the particle parameters and the particle's existence time, the method further includes: The display radius range of the particle is calculated based on the radius range, the dissipation distance range, and the velocity range. If the calculated display radius is not within the range of the display radius, a calculation error will be indicated.
6. The method according to claim 4, characterized in that, Before generating particles on the paving path according to particle parameters, the method further includes: The validity of the particle parameter range is verified to obtain the verification result; the validity verification includes verifying whether the minimum value in the radius range is greater than or equal to 0, verifying whether the minimum value in the dissipation distance range is greater than or equal to 0, and verifying whether the minimum value in the velocity range is greater than 0. If the verification result contains a "no", the particle parameter range is determined to be invalid, and a new particle parameter range is obtained.
7. The method according to claim 4, characterized in that, The process of generating particles on the paving path based on particle parameters includes: The median radius is determined based on the maximum and minimum values within the radius range; Using the median radius and standard deviation as parameters, a normally distributed random number is generated as the radius; The median dissipation distance is determined based on the maximum and minimum values within the dissipation distance range; Using the median dissipation distance and standard deviation as parameters, a normally distributed random number is generated as the dissipation distance; Obtain the median velocity of the particle, and obtain the upward and downward fluctuation of the particle velocity; The speed range is obtained based on the median speed and the upward and downward fluctuation amounts. Using the median velocity and standard deviation as parameters, normally distributed random numbers are generated as the velocity.
8. A device for controlling particle path laying, characterized in that, include: Generation unit, computing unit, and control unit; The generation unit is used to generate particles on the paving path according to the particle parameters; The calculation unit is used to calculate the display radius of the particle in real time based on the particle parameters and the particle's existence time; the existence time starts from 0 and increases in real time from the moment the particle is generated; the display radius decreases as the existence time increases. The control unit is used to control the particles to dissipate from the paving path when the display radius is less than a preset value.
9. An augmented reality head-up display system, characterized in that, The augmented reality head-up display system has a central processing unit and a display module; the central processing unit is used to execute computer program instructions to control the particle paving path and send particle rendering instructions to the display module for rendering, so as to implement the steps of the method according to any one of claims 1-7.
10. A storage medium, characterized in that, Used to store computer program instructions, which, when executed by a central processing unit, can implement the steps of the method described in any one of claims 1-7.