Virtual image adjustment method and device, equipment and storage medium
By adjusting the display position of the virtual image area when the vehicle turns, the problem in the existing technology that the virtual image is difficult to cover the driver's field of vision is solved, the virtual image display effect in the vehicle turning scene is improved, and the driving safety and experience are enhanced.
Patent Information
- Application Number
- CN202410773329.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-14
- Publication Date
- 2024-09-27
AI Technical Summary
In vehicle steering scenarios, existing augmented reality head-up display technology cannot cover the driver's field of vision, resulting in poor virtual image display.
By judging the steering direction of the vehicle, the display position of the virtual image area on the front windshield is adjusted and moved toward the target side to ensure that the driver can obtain more virtual prompt information about road objects. The specific method includes determining the curvature of the vehicle's current driving path, calculating the adjustment value of the virtual image area based on the curvature, and realizing lateral movement of the virtual image area by driving the device to rotate the head-up display device.
The virtual image display effect in vehicle steering scenarios has been improved, allowing the driver to more clearly obtain virtual prompt information about road objects in the steering direction, enhancing driving safety and experience.
Smart Images

Figure CN118707724A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of augmented reality head-up display, and in particular to a method, device, equipment and storage medium for adjusting a virtual image. Background Art
[0002] ARHUD (Augmented Reality Head Up Display) is a technology that combines AR (augmented reality) with HUD (head-up display). It is used to project the driving prompt information required by the driver, such as navigation, obstacle warning and other information, onto the front windshield, so that a virtual image that fits the actual road scene is displayed on the front windshield, allowing the driver to obtain driving prompt information without lowering or turning his head as much as possible, thereby avoiding distraction of the driver's attention from the road ahead, thereby enhancing driving safety and driving experience.
[0003] However, due to the size and cost limitations of HUD optical devices, the area of the virtual image displayed on the front windshield is limited, making it difficult to cover the driver's field of view, resulting in poor display effects of the virtual image in vehicle turning scenarios. Summary of the invention
[0004] The main technical problem solved by the present application is to provide a method, device, equipment and computer-readable storage medium for adjusting a virtual image, which can improve the display effect of the virtual image in a vehicle turning scenario.
[0005] To solve the above technical problems, a technical solution adopted in the present application is: to provide a method for adjusting a virtual image, the method comprising: controlling a head-up display device to project a virtual image area on a front windshield of a vehicle; wherein the virtual image area includes virtual prompt information corresponding to a number of road objects on the road in front of the vehicle, and the display position of the virtual prompt information of each road object corresponds to the position of each road object in the actual environment; judging whether turning prompt information is obtained, the turning prompt information is used to indicate the target turning direction of the vehicle; in response to obtaining the turning prompt information, adjusting the virtual image area to move to the target side of the front windshield; wherein, if the target turning direction is a left turn, the target side is the left side, and if the target turning direction is a right turn, the target side is the right side.
[0006] Optionally, adjusting the virtual image area to move toward a target side of the front windshield includes: determining the curvature of the vehicle's current driving path; based on the curvature, determining a target adjustment value of the virtual image area on the target side; and based on the target adjustment value, adjusting the display position of the virtual image area on the front windshield.
[0007] Optionally, determining a target adjustment value of the virtual image area on the target side based on the curvature includes: determining the target adjustment value based on the curvature and a first mapping relationship; wherein the first mapping relationship is a mapping relationship between the path curvature and the virtual image area adjustment value.
[0008] Optionally, the head-up display device includes a head-up display device and a driving device, and adjusting the movement of the virtual image area toward the target side of the front windshield includes: if the target side is the left side, controlling the driving device to rotate in a first rotation direction to drive the head-up display device to rotate to the left side, so that the virtual image area moves to the left side; if the target side is the right side, controlling the driving device to rotate in a second rotation direction to drive the head-up display device to rotate to the right side, so that the virtual image area moves to the right side.
[0009] Optionally, the several road objects include at least one of a lane and an obstacle, the virtual prompt information corresponding to the lane includes a navigation mark, and the virtual prompt information corresponding to the obstacle includes at least one of an obstacle detection box, an obstacle type and obstacle warning information.
[0010] Optionally, after adjusting the virtual image area to move toward the target side of the front windshield in response to obtaining the turning prompt information, the method further includes: in response to the vehicle completing the turn, adjusting the virtual image area to the side opposite to the target side.
[0011] Optionally, the method further includes: in the process of adjusting the virtual image area, performing a trapezoidal correction process on the virtual image area.
[0012] Optionally, after adjusting the virtual image area to move toward the target side of the front windshield in response to acquiring the turning prompt information, the method further includes: performing a trapezoidal correction process on the adjusted virtual image area.
[0013] Optionally, after adjusting the virtual image area to move toward the target side of the front windshield in response to obtaining the turning prompt information, the method further includes: in response to the vehicle completing the turn, adjusting the virtual image area to the side opposite to the target side.
[0014] In order to solve the above technical problems, another technical solution adopted by the present application is: to provide a virtual image adjustment device, which includes a control module, a judgment module and an adjustment module. The control module is used to control the head-up display device to project a virtual image area on the front windshield of the vehicle; wherein the virtual image area includes virtual prompt information corresponding to a number of road objects on the road in front of the vehicle, and the display position of the virtual prompt information of each road object corresponds to the position of each road object in the actual environment. The judgment module is used to determine whether the turning prompt information is obtained, and the turning prompt information is used to indicate the target turning direction of the vehicle. The adjustment module is used to adjust the virtual image area to move to the target side of the front windshield in response to the turning prompt information obtained; wherein, if the target turning direction is a left turn, the target side is the left side, and if the target turning direction is a right turn, the target side is the right side.
[0015] Optionally, the adjustment module is used to determine the curvature of the current driving path of the vehicle; based on the curvature, determine a target adjustment value of the virtual image area on the target side; based on the target adjustment value, adjust the display position of the virtual image area on the front windshield.
[0016] Optionally, the adjustment module is used to determine a target adjustment value based on the curvature and a first mapping relationship; wherein the first mapping relationship is a mapping relationship between the path curvature and the virtual image area adjustment value.
[0017] Optionally, the head-up display device includes a head-up display device and a driving device. If the target side is the left side, the adjustment module is used to control the driving device to rotate in a first rotation direction to drive the head-up display device to rotate to the left side, so that the virtual image area moves to the left side; if the target side is the right side, the adjustment module is used to control the driving device to rotate in a second rotation direction to drive the head-up display device to rotate to the right side, so that the virtual image area moves to the right side.
[0018] Optionally, the several road objects include at least one of a lane and an obstacle, the virtual prompt information corresponding to the lane includes a navigation mark, and the virtual prompt information corresponding to the obstacle includes at least one of an obstacle detection box, an obstacle type and obstacle warning information.
[0019] Optionally, after adjusting the virtual image area to move toward the target side of the front windshield, the adjustment module is further configured to adjust the virtual image area toward the opposite side of the target side in response to the vehicle completing a turn.
[0020] Optionally, the adjustment device further comprises an image correction module. In the process of adjusting the virtual image area, the image correction module is used to perform a trapezoidal correction process on the virtual image area.
[0021] To solve the above technical problems, another technical solution adopted in the present application is: to provide an electronic device, comprising a memory and a processor coupled to each other, the memory storing program instructions; the processor is used to execute the program instructions stored in the memory to implement the above virtual image adjustment method.
[0022] In order to solve the above technical problem, another technical solution adopted by the present application is: providing a computer-readable storage medium, wherein the computer-readable storage medium is used to store program instructions, and the program instructions can be executed by a processor to implement the above virtual image adjustment method.
[0023] In the above scheme, when the turning prompt information indicating the target turning direction of the vehicle is obtained, the virtual image area is adjusted to move toward the target side of the front windshield. Moreover, when the target turning direction is to turn left, the target side is the left side; when the target turning direction is to turn right, the target side is the right side. In this way, when the vehicle needs to turn toward the target turning direction, by adjusting the virtual image area to move toward the target side of the front windshield, the driver can obtain more virtual prompt information of road objects in the target turning direction through the adjusted virtual image area, thereby improving the display effect of the virtual image in the vehicle turning scene. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 is a structural schematic diagram of a head-up display device provided by the present application;
[0025] Figure 2 It is a flowchart of an embodiment of a method for adjusting a virtual image provided by the present application;
[0026] Figure 3 is a schematic diagram of a virtual image area provided by the present application;
[0027] Figure 4 is another schematic diagram of the virtual image area provided by the present application;
[0028] Figure 5 is another schematic diagram of the virtual image area provided by the present application;
[0029] Figure 6 is another schematic diagram of the virtual image area provided by the present application;
[0030] Figure 7 is another schematic diagram of the virtual image area provided by the present application;
[0031] Figure 8 is a flowchart of another embodiment of the method for adjusting a virtual image provided by the present application;
[0032] Fig. 9It is a schematic diagram of a framework of an embodiment of a device for adjusting a virtual image provided by the present application;
[0033] Fig.10 It is a schematic diagram of a framework of an embodiment of an electronic device provided by the present application;
[0034] Fig.11 It is a schematic diagram of a framework of an embodiment of a computer-readable storage medium provided by the present application. DETAILED DESCRIPTION
[0035] In order to make the purpose, technical solution and effect of the present application clearer and more specific, the present application is further described in detail below with reference to the accompanying drawings and examples.
[0036] In the following description, for the purpose of explanation rather than limitation, specific details such as specific system structures, interfaces, and technologies are provided to facilitate a thorough understanding of the present application.
[0037] The term "at least one" herein means any combination of at least two of any one or more of a plurality of, for example, including at least one of A, B, and C, and may mean any one or more elements selected from the set consisting of A, B, and C; the term "several" means at least one; the terms "first", "second", etc. are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.
[0038] See also Figure 1 , Figure 1 is a schematic diagram of the structure of the head-up display device provided by this application. Figure 1 As shown, the head-up display device 10 includes a head-up display device 11 and a driving device 12. Among them, the head-up display device 11 includes an optical controller 11a, a PGU (Picture Generation Unit) 11b and an optical component 11c, and the optical component 11c includes a diffuser and a reflector. The data input end of the optical controller 11a is used to connect to the data output end of the controller 20, and the control signal output end of the optical controller 11a is connected to the control signal input end of the PGU 11b. The driving signal input end of the driving device 12 is used to connect to the driving signal output end of the controller 20. Exemplarily, the driving device 12 can be a stepper motor, and the controller 20 can be the SOC or other controller of the vehicle, which is not specifically limited in this embodiment.
[0039] The optical controller 11a is used to send a control signal to the PGU 11b to control the PGU 11b to project an image after receiving the video stream to be displayed from the controller 20. The light projected by the PGU 11b forms an image on the diffuser of the optical component 11c, and the image on the diffuser forms a larger virtual image through the reflector, and finally a virtual image area is projected on the front windshield.
[0040] The driving device 12 is used to drive the head-up display device 11 to rotate left or right after receiving the driving signal sent by the controller 20 .
[0041] See also Figure 2 , Figure 2 is a flow chart of an embodiment of a method for adjusting a virtual image provided by the present application. The method can be executed by a vehicle controller, for example, Figure 1 It should be noted that if there is substantially the same result, the method of the present application is not limited to Figure 2 The process sequence shown is limited. Figure 2 As shown, the method comprises the following steps:
[0042] S21: Controlling the head-up display device to project a virtual image area on the front windshield of the vehicle.
[0043] The virtual image area includes virtual prompt information corresponding to a number of road objects on the road in front of the vehicle, and the display position of the virtual prompt information of each road object corresponds to the position of each road object in the actual environment.
[0044] Several road objects are several objects on the road surface that the driver needs to pay attention to during the driving of the vehicle. In this embodiment, the several road objects may include at least one of lanes and obstacles. For example, the several road objects may include only lanes, or the several road objects may include only obstacles, or the several road objects may include lanes and obstacles at the same time. The obstacle may be a dynamic obstacle or a static obstacle on the road in front of the vehicle. The dynamic obstacle may be, for example, an obstacle vehicle, a pedestrian, etc., and the static obstacle may be a road curb, a road fence, etc., which is not specifically limited in this embodiment.
[0045] In one implementation scenario, the plurality of road objects include lanes, and the virtual prompt information corresponding to the lanes is a navigation mark. For example, the navigation mark is a curve with an arrow, and the direction indicated by the arrow is the driving direction of the vehicle.
[0046] From the driver's perspective, the display position of the navigation mark in the virtual image area corresponds to the position of the lane the vehicle is currently in in the actual environment. For example, the navigation dotted line mark is located in the middle of the lane the vehicle is currently in.
[0047] In another implementation scenario, the plurality of road objects include obstacles, and the virtual prompt information corresponding to the obstacles includes at least one of an obstacle detection frame, an obstacle type, and obstacle warning information. Exemplarily, the obstacle detection frame may be a rectangular frame.
[0048] From the driver's perspective, the display positions of the obstacle detection frame, obstacle type, and obstacle warning information in the virtual image area correspond to the positions of the obstacles in the actual environment. For example, the obstacle is located in the obstacle detection frame, or part of the obstacle is located in the obstacle detection frame and part is located outside the obstacle detection frame; the obstacle type and obstacle warning information are displayed in the obstacle detection frame, or are displayed outside the obstacle detection frame but close to the obstacle detection frame.
[0049] It should be noted that how to display the virtual prompt information of each road surface object corresponding to the position of each road surface object in the actual environment can be referred to the existing relevant technology, and this embodiment will not be elaborated in detail.
[0050] S22: Determine whether turning prompt information is obtained.
[0051] The turning prompt information is used to indicate the target turning direction of the vehicle, which can be a left turn or a right turn.
[0052] In one embodiment, the vehicle controller may obtain turn prompt information from the vehicle's navigation device in real time.
[0053] In another embodiment, the vehicle controller may determine whether a turn is currently required based on the current position of the vehicle and the navigation planning path, and generate a turn prompt message if a turn is required, and not generate a turn prompt message if a turn is not required. For example, if it is determined that the vehicle currently needs to turn left, a turn left prompt message is generated.
[0054] S23: In response to obtaining the turning prompt information, adjusting the virtual image area to move toward the target side of the front windshield.
[0055] Among them, if the target turning direction is to turn left, the target side is the left side, and if the target turning direction is to turn right, the target side is the right side.
[0056] Specifically, if the target side is the left side, the driving device is controlled to rotate in a first rotation direction to drive the head-up display device to rotate to the left side, so that the virtual image area moves to the left side of the front windshield. If the target side is the right side, the driving device is controlled to rotate in a second rotation direction to drive the head-up display device to rotate to the right side, so that the virtual image area moves to the right side of the front windshield. The first rotation direction is opposite to the second rotation direction. For example, the first rotation direction is clockwise, and the second rotation direction is counterclockwise.
[0057] When the vehicle is traveling straight ahead, the head-up display device projects directly onto the front windshield, generating a virtual image area on the front windshield. At this time, the driver is more concerned about the road objects on the lane the vehicle is currently in, and the virtual image area can fully display the virtual prompt information of each road object on the lane the vehicle is currently in. Therefore, when the vehicle is traveling straight ahead, there is no need to adjust the display position of the virtual image area on the front windshield.
[0058] However, when the vehicle needs to turn in the target turning direction, the driver actually pays more attention to the road objects in the target turning direction. For example, when the vehicle turns left, the driver pays more attention to the road objects in the left turning direction; when the vehicle turns right, the driver pays more attention to the road objects in the right turning direction. If the head-up display device is still projected directly onto the front windshield, that is, the display position of the virtual image area on the front windshield remains unchanged, since the virtual prompt information of each road object in the virtual image area is displayed in a fusion with the corresponding road object, and the area of the virtual image area is limited, at this time, it is difficult to display more virtual prompt information of the road objects in the target turning direction in the virtual image area, or even impossible to display the virtual prompt information of the road objects in the target turning direction, resulting in poor display effect of the virtual image.
[0059] Figure 3 is a schematic diagram of a virtual image area provided by the present application, such as Figure 3 As shown, when the vehicle turns left, if the head-up display device is still projecting onto the front windshield, that is, the position of the virtual image area on the front windshield is not adjusted, the virtual image area can only display the navigation signs of the partial section corresponding to the lane where the vehicle is currently located, but cannot display the navigation signs of more sections of the lane where the vehicle is currently located in the left turn direction, and cannot display the virtual prompt information of obstacle vehicles in the left turn direction.
[0060] Therefore, in this embodiment, when the vehicle needs to turn left, the virtual image area is adjusted to move to the left side of the front windshield, so that the driver can obtain more virtual prompt information of road objects in the left turn direction through the adjusted virtual image area; when the vehicle needs to turn right, the virtual image area is adjusted to move to the right side of the front windshield, so that the driver can obtain more virtual prompt information of road objects in the right turn direction through the adjusted virtual image area.
[0061] In one embodiment, when the vehicle needs to turn in the target turning direction, the virtual image area is adjusted to move a preset distance toward the target side of the front windshield. The preset distance can be set according to actual needs.
[0062] In another embodiment, when the vehicle needs to turn toward the target turning direction, the target adjustment value for adjusting the virtual image area toward the target side can be determined based on the curvature of the current driving path of the vehicle. The greater the curvature of the current driving path, the greater the target adjustment value for adjusting the virtual image area toward the target side; the smaller the curvature of the current driving path, the smaller the target adjustment value for adjusting the virtual image area toward the target side.
[0063] Furthermore, if the virtual image area is directly adjusted to the corresponding position on the target side of the front windshield, the virtual prompt information in the virtual image area may change abruptly, affecting the driver's visual experience. Therefore, in this embodiment, the virtual image area can be gradually adjusted to the corresponding position on the target side of the front windshield to further improve the display effect of the virtual image area. For example, the virtual image area is gradually adjusted to the corresponding position on the target side of the front windshield at a preset distance interval. The preset distance interval is a relatively small value, and its specific value can be set according to actual conditions.
[0064] Furthermore, when the vehicle completes the turn and resumes straight driving, it is also necessary to control the head-up display device to rotate to the opposite side of the target side, that is, to adjust the virtual image area to the opposite side of the target side, so that the head-up display device can resume projection directly onto the front windshield, and then the driver can obtain virtual prompt information of road objects in the current lane through the adjusted virtual image area.
[0065] To facilitate the understanding of the present application, the technical solution of the present application is exemplarily explained below by taking the case where a vehicle needs to turn left for driving as an example.
[0066] Figure 4 is another schematic diagram of the virtual image area provided by the present application, such as Figure 4 As shown, when the vehicle is about to turn left, the head-up display device is projected onto the front windshield. At this time, the navigation sign of the partial road section corresponding to the lane where the vehicle is currently located is displayed in the virtual image area. There is still an obstacle vehicle in the left turn direction, but the virtual prompt information of the obstacle vehicle cannot be displayed in the virtual image area at this time.
[0067] Figure 5 is another schematic diagram of the virtual image area provided by the present application, such as Figure 5 As shown, in the process of controlling the head-up display device to rotate left, that is, in the process of adjusting the virtual image area to the left side of the front windshield, the navigation mark in the virtual image area gradually moves to the right relative to the virtual image area, and the virtual image area can display navigation marks of more sections corresponding to the left turn direction of the vehicle's current lane.
[0068] Figure 6 is another schematic diagram of the virtual image area provided by the present application, such as Figure 6As shown, when the virtual image area is adjusted to the corresponding position on the left side of the front windshield, the virtual image area can display navigation signs of more sections of the left turn direction, and can display virtual prompt information of the obstacle vehicle. Figure 6 The virtual prompt information of the obstacle vehicle includes a detection frame of the obstacle vehicle and a warning message "Beware of collision at distance xx" located in the detection frame.
[0069] Figure 7 is another schematic diagram of the virtual image area provided by the present application, such as Figure 7 As shown, when the vehicle completes the left turn and resumes straight driving, the head-up display is controlled to project onto the front windshield, and the navigation mark of the current lane in the straight direction is displayed in the virtual image area.
[0070] In this embodiment, when the turning prompt information indicating the target turning direction of the vehicle is obtained, the virtual image area is adjusted to move toward the target side of the front windshield. Furthermore, when the target turning direction is a left turn, the target side is the left side; when the target turning direction is a right turn, the target side is the right side. In this way, when the vehicle needs to turn toward the target turning direction, by adjusting the virtual image area to move toward the target side of the front windshield, the driver can obtain more virtual prompt information of road objects in the target turning direction through the adjusted virtual image area, thereby improving the display effect of the virtual image in the vehicle turning scene.
[0071] See also Figure 8 , Figure 8 is a flow chart of another embodiment of the method for adjusting the virtual image provided by the present application. The method can be executed by a vehicle controller, for example, Figure 1 It should be noted that if there is substantially the same result, the method of the present application is not limited to Figure 8 The process sequence shown is limited. Figure 8 As shown, the method comprises the following steps:
[0072] S81: Control the head-up display device to project a virtual image area on the front windshield of the vehicle.
[0073] S82: Determine whether turning prompt information is obtained.
[0074] The turning prompt information is used to indicate the target turning direction of the vehicle, and the target turning direction includes turning left or turning right.
[0075] If the turning prompt information is obtained, step S83 and its subsequent steps are executed to adjust the display position of the virtual image area on the front windshield. If the turning prompt information is not obtained, step S83 and its subsequent steps are not executed, that is, the display position of the virtual image area on the front windshield is not adjusted, and the step of determining whether the turning prompt information is obtained is re-executed.
[0076] The relevant contents of step S81 can refer to the aforementioned step S21, and the relevant contents of step S82 can refer to the aforementioned step S22, which will not be repeated here.
[0077] S83: Determine the curvature of the current driving path of the vehicle.
[0078] In one embodiment, the road curvature of the current driving path may be obtained as the curvature of the current driving path. The greater the road curvature of the current driving path, the greater the curvature of the current driving path; the smaller the road curvature of the current driving path, the smaller the curvature of the current driving path. Exemplarily, the vehicle controller may obtain the road curvature of the current driving path of the vehicle from the navigation device.
[0079] In another embodiment, the current steering wheel angle of the vehicle may be obtained as the curvature of the current driving path. The larger the current steering wheel angle, the greater the curvature of the current driving path; the smaller the current steering wheel angle, the smaller the curvature of the current driving path. Exemplarily, the vehicle controller may obtain the current steering wheel angle of the vehicle through a steering wheel angle sensor.
[0080] S84: Determine a target adjustment value of the virtual image area on the target side based on the curvature of the current driving path.
[0081] Specifically, step S84 includes: determining a target adjustment value based on the curvature of the current driving path and a first mapping relationship, wherein the first mapping relationship is a mapping relationship between the curvature of the path and the adjustment value of the virtual image area. The first mapping relationship is pre-set and stored in a storage unit of the vehicle controller.
[0082] In one embodiment, the first mapping relationship is a function between the curvature of the path and the adjustment value of the virtual image area. In the first mapping relationship, the curvature of the path is an independent variable, and the adjustment value of the virtual image area is a dependent variable. After obtaining the curvature of the current driving path, the vehicle controller determines the virtual image area adjustment value corresponding to the curvature of the current driving path as the target adjustment value based on the first mapping relationship.
[0083] In another embodiment, the first mapping relationship includes a plurality of path curvatures and virtual image area adjustment values corresponding to each path curvature. After acquiring the curvature of the current driving path, the vehicle controller selects the virtual image area adjustment value corresponding to the curvature of the current driving path from the first mapping relationship as the target adjustment value.
[0084] In another embodiment, the first mapping relationship includes a plurality of path curvature intervals and virtual image area adjustment values corresponding to each path curvature interval. After acquiring the curvature of the current driving path, the vehicle controller selects the path curvature interval corresponding to the curvature of the current driving path from the first mapping relationship, and then uses the virtual image area adjustment value corresponding to the selected path curvature interval as the target adjustment value.
[0085] S85: Adjusting the display position of the virtual image area on the front windshield based on the target adjustment value of the virtual image area on the target side.
[0086] Specifically, the target rotation angle value of the driving device is determined based on the target adjustment value of the virtual image area on the target side and the second mapping relationship; the driving device is controlled based on the target rotation angle value to adjust the display position of the virtual image area on the front windshield. The second mapping relationship is a mapping relationship between the virtual image area adjustment value and the rotation angle value of the driving device, and the driving device is a stepping motor.
[0087] In one embodiment, the target side is the left side. After determining the target adjustment value of the virtual image area on the left side, and determining the target rotation angle value corresponding to the driving device based on the target adjustment value and the second mapping relationship, the driving device is controlled to rotate the target rotation angle value in a first rotation direction, thereby driving the head-up display device to rotate to the left side, and then moving the virtual image area to the corresponding position on the left side of the front windshield.
[0088] In another embodiment, the target side is the right side. After determining the target adjustment value of the virtual image area on the right side, and determining the target rotation angle value corresponding to the driving device based on the target adjustment value and the second mapping relationship, the driving device is controlled to rotate the target rotation angle value in the second rotation direction, thereby driving the head-up display device to rotate to the right, and then moving the virtual image area to the corresponding position on the right side of the front windshield.
[0089] In this embodiment, after executing step S85, the following may be further included: determining whether the vehicle has completed the turn; if the vehicle has completed the turn, adjusting the virtual image area to the side opposite to the target side.
[0090] In one embodiment, the vehicle controller may determine whether the turn is currently completed based on the current position of the vehicle and the navigation planning path.
[0091] In another embodiment, the current steering wheel angle of the vehicle may be obtained to determine whether the vehicle has completed the turn. Specifically, when the current steering wheel angle of the vehicle is less than or equal to the steering angle threshold, the vehicle is considered to have completed the turn; when the current steering wheel angle of the vehicle is greater than the steering angle threshold, the vehicle is considered to have not completed the turn.
[0092] Further, when it is determined that the vehicle has completed turning, the virtual image area is adjusted to the opposite side of the target side of the front windshield by the aforementioned target adjustment value.
[0093] Optionally, considering that in the process of adjusting the display position of the virtual image area on the front windshield by adjusting the head-up display device, the head-up display device is projected obliquely (the head-up display device is not projected directly onto the front windshield), which may cause the virtual image area displayed on the front windshield to have trapezoidal deformation, therefore, in order to further improve the display effect of the virtual image, in the process of adjusting the display position of the virtual image area on the front windshield, this embodiment further performs trapezoidal correction processing on the virtual image area. Specifically, the step of performing trapezoidal correction processing on the virtual image area includes: obtaining trapezoidal correction parameters; and performing trapezoidal correction on the virtual image area based on the trapezoidal correction parameters.
[0094] In one embodiment, a unique trapezoidal correction parameter is pre-stored in a storage unit of the vehicle controller. The trapezoidal correction parameter is obtained by testing the head-up display device before the head-up display device is installed on the vehicle.
[0095] In another embodiment, considering that the degree of trapezoidal deformation of the virtual image area displayed on the front windshield may be different when the head-up display device is at different deflection angles, in order to further improve the display effect of the virtual image, when the head-up display device is at different deflection angles, different trapezoidal correction parameters can be used to perform trapezoidal correction on the virtual image area.
[0096] In this embodiment, the step of obtaining the trapezoidal correction parameters includes: determining the current deflection angle of the head-up display device; based on the current deflection angle and the third mapping relationship, determining the trapezoidal correction parameters corresponding to the current deflection angle. The third mapping relationship is the correspondence between the deflection angle of the head-up display device and the trapezoidal correction parameters, and the third mapping relationship is pre-calibrated and stored in the storage unit of the vehicle controller. Exemplarily, different deflection angles in the third mapping relationship correspond to different trapezoidal correction parameters, or different deflection angle intervals in the third mapping relationship correspond to different trapezoidal correction parameters. Exemplarily, the current deflection angle of the head-up display device can be determined based on the target rotation angle value of the aforementioned drive device. It can be understood that the rotation of the drive device will correspondingly drive the head-up display device to rotate, so there is a mapping relationship between the rotation angle value of the drive device and the rotation angle of the head-up display device.
[0097] In one embodiment, the step of performing trapezoidal correction on the virtual image area based on the target trapezoidal correction parameters includes: correcting the coordinates of each pixel in the projected image based on the target trapezoidal correction parameters to achieve trapezoidal correction of the virtual image area corresponding to the projected image on the front windshield.
[0098] Exemplarily, the target trapezoidal correction parameters include horizontal correction parameters and vertical correction parameters. The horizontal correction parameters include parameter k1 for linearly transforming the image in the horizontal direction and parameter k2 for nonlinearly transforming the image in the horizontal direction. The vertical correction parameters include parameter k3 for linearly transforming the image in the vertical direction and parameter k4 for nonlinearly transforming the image in the vertical direction.
[0099] In this embodiment, when the vehicle needs to turn in the target turning direction, by adjusting the virtual image area to move toward the target side of the front windshield, the driver can obtain more virtual prompt information of road objects in the target turning direction through the adjusted virtual image area, thereby improving the display effect of the virtual image in the vehicle turning scenario.
[0100] In addition, the following two methods are usually used in related technologies to increase the area of the HUD projection screen (i.e., the area of the virtual image area). Method 1: Use a larger optical system device, such as a larger DMD chip or a larger TFT screen. In this method, the larger optical system device is not only costly, but also takes up space in the car, and the area of the virtual image area projected on the front windshield is still limited, and the display effect of the virtual image is still poor in the vehicle turning scenario. Method 2: Use two HUDs to project at the same time, one on the left and one on the right to obtain a larger image. This method requires twice the cost and twice the installation space. In this embodiment, only one driving device for driving the HUD needs to be added, which can expand the projection area of the HUD without much increase in hardware cost and hardware space, thereby saving hardware cost and hardware space.
[0101] See also Fig. 9 , Fig. 9It is a schematic diagram of a framework of an embodiment of a virtual image adjustment device provided by the present application. In this embodiment, the virtual image adjustment device 90 includes a control module 91, a judgment module 92 and an adjustment module 93. Among them, the control module 91 is used to control the head-up display device to project a virtual image area on the front windshield of the vehicle; wherein, the virtual image area includes virtual prompt information corresponding to a number of road objects on the road in front of the vehicle, and the display position of the virtual prompt information of each road object corresponds to the position of each road object in the actual environment. The judgment module 92 is used to determine whether the turning prompt information is obtained, and the turning prompt information is used to indicate the target turning direction of the vehicle. The adjustment module 93 is used to adjust the virtual image area to move to the target side of the front windshield in response to the acquisition of the turning prompt information; wherein, if the target turning direction is a left turn, the target side is the left side, and if the target turning direction is a right turn, the target side is the right side.
[0102] Optionally, the adjustment module 93 is used to determine the curvature of the current driving path of the vehicle; based on the curvature, determine a target adjustment value of the virtual image area on the target side; based on the target adjustment value, adjust the display position of the virtual image area on the front windshield.
[0103] Optionally, the adjustment module 93 is used to determine a target adjustment value based on the curvature and a first mapping relationship; wherein the first mapping relationship is a mapping relationship between the path curvature and the virtual image area adjustment value.
[0104] Optionally, the head-up display device includes a head-up display device and a driving device. If the target side is the left side, the adjustment module 93 is used to control the driving device to rotate in a first rotation direction to drive the head-up display device to rotate to the left side, so that the virtual image area moves to the left side; if the target side is the right side, the adjustment module 93 is used to control the driving device to rotate in a second rotation direction to drive the head-up display device to rotate to the right side, so that the virtual image area moves to the right side.
[0105] Optionally, the several road objects include at least one of a lane and an obstacle, the virtual prompt information corresponding to the lane includes a navigation mark, and the virtual prompt information corresponding to the obstacle includes at least one of an obstacle detection box, an obstacle type and obstacle warning information.
[0106] Optionally, after adjusting the virtual image area to move toward the target side of the front windshield, the adjustment module 93 is further configured to adjust the virtual image area toward the opposite side of the target side in response to the vehicle completing a turn.
[0107] Optionally, the adjustment device 90 further includes an image correction module 94. In the process of adjusting the virtual image area, the image correction module 94 is used to perform a trapezoidal correction process on the virtual image area.
[0108] It should be noted that the device of this embodiment can execute the steps in the above method. For detailed description of the relevant content, please refer to the above method part, which will not be repeated here.
[0109] See also Fig.10 , Fig.10 1 is a schematic diagram of a framework of an electronic device according to an embodiment of the present application. In this embodiment, the electronic device 100 includes a memory 101 and a processor 102 .
[0110] The processor 102 may also be referred to as a CPU (Central Processing Unit). The processor 102 may be an integrated circuit chip having signal processing capabilities. The processor 102 may also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. A general-purpose processor may be a microprocessor or the processor 102 may also be any conventional processor 102, etc.
[0111] The memory 101 in the electronic device 100 is used to store program instructions required for the processor 102 to run.
[0112] The processor 102 is used to execute program instructions to implement the virtual image adjustment method in the present application.
[0113] See also Fig.11 , Fig.11 It is a schematic diagram of the framework of an embodiment of a computer-readable storage medium provided by the present application. The computer-readable storage medium 110 of the embodiment of the present application stores a program instruction 111, and when the program instruction 111 is executed, the virtual image adjustment method provided by the present application is implemented. Among them, the program instruction 111 can form a program file and be stored in the above-mentioned computer-readable storage medium 110 in the form of a software product, so that a computer device (which can be a personal computer, a server, or a network device, etc.) executes all or part of the steps of each implementation method of the present application. The aforementioned computer-readable storage medium 110 includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a disk or an optical disk, or a terminal device such as a computer, a server, a mobile phone, and a tablet.
[0114] In the above scheme, when the turning prompt information indicating the target turning direction of the vehicle is obtained, the virtual image area is adjusted to move toward the target side of the front windshield. Moreover, when the target turning direction is to turn left, the target side is the left side; when the target turning direction is to turn right, the target side is the right side. In this way, when the vehicle needs to turn toward the target turning direction, by adjusting the virtual image area to move toward the target side of the front windshield, the driver can obtain more virtual prompt information of road objects in the target turning direction through the adjusted virtual image area, thereby improving the display effect of the virtual image in the vehicle turning scene.
[0115] In some embodiments, the functions or modules included in the device provided by the embodiments of the present disclosure can be used to execute the method described in the above method embodiments. The specific implementation can refer to the description of the above method embodiments, and for the sake of brevity, it will not be repeated here.
[0116] The above description of various embodiments tends to emphasize the differences between the various embodiments. The same or similar aspects can be referenced to each other, and for the sake of brevity, they will not be repeated herein.
[0117] In the several embodiments provided in the present application, it should be understood that the disclosed methods, devices and systems can be implemented in other ways. For example, the device implementation described above is only schematic. For example, the division of modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.
[0118] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0119] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0120] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) or a processor (processor) to perform all or part of the steps of each implementation method of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program code.
[0121] The above description is only an implementation method of the present application, and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly used in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A method for adjusting a virtual image, It is characterized in that The method comprises: Controlling the head-up display device to project a virtual image area on the front windshield of the vehicle; wherein the virtual image area includes virtual prompt information corresponding to a plurality of road objects on the road in front of the vehicle, and the display position of the virtual prompt information of each road object corresponds to the position of each road object in the actual environment; Determining whether turning prompt information is obtained, wherein the turning prompt information is used to indicate a target turning direction of the vehicle; In response to obtaining the turning prompt information, the virtual image area is adjusted to move toward the target side of the front windshield; wherein, if the target turning direction is a left turn, the target side is the left side, and if the target turning direction is a right turn, the target side is the right side.
2. The method according to claim 1, It is characterized in that The adjusting the virtual image area to move toward the target side of the front windshield includes: determining a curvature of a current travel path of the vehicle; Based on the curvature, determining a target adjustment value of the virtual image area on the target side; Based on the target adjustment value, a display position of the virtual image area on the front windshield is adjusted.
3. The method according to claim 2, It is characterized in that The determining, based on the curvature, a target adjustment value of the virtual image area on the target side includes: Determining the target adjustment value based on the curvature and the first mapping relationship; The first mapping relationship is a mapping relationship between a path curvature and a virtual image area adjustment value.
4. The method according to claim 1, It is characterized in that The head-up display device includes a head-up display device and a driving device, and the adjusting the virtual image area to move toward the target side of the front windshield includes: If the target side is the left side, controlling the driving device to rotate in a first rotation direction to drive the head-up display device to rotate to the left side, so that the virtual image area moves to the left side; If the target side is the right side, the driving device is controlled to rotate in a second rotation direction to drive the head-up display device to rotate to the right side, so that the virtual image area moves to the right side.
5. The method according to claim 1, It is characterized in that The plurality of road objects include at least one of lanes and obstacles, the virtual prompt information corresponding to the lanes includes a navigation mark, and the virtual prompt information corresponding to the obstacles includes at least one of an obstacle detection frame, an obstacle type, and obstacle warning information.
6. The method according to claim 1, It is characterized in that After adjusting the virtual image area to move toward the target side of the front windshield in response to acquiring the turning prompt information, the method further includes: In response to the vehicle completing a turn, the virtual image area is adjusted toward a side opposite to the target side.
7. The method according to claim 1, It is characterized in that The method further comprises: In the process of adjusting the virtual image area, a trapezoidal correction process is performed on the virtual image area.
8. A virtual image adjustment device, It is characterized in that The device comprises: A control module, used for controlling the head-up display device to project a virtual image area on the front windshield of the vehicle; wherein the virtual image area includes virtual prompt information corresponding to a plurality of road objects on the road in front of the vehicle, and the display position of the virtual prompt information of each road object corresponds to the position of each road object in the actual environment; A determination module, used to determine whether the turning prompt information is obtained, wherein the turning prompt information is used to indicate the target turning direction of the vehicle; An adjustment module is used to adjust the virtual image area to move toward the target side of the front windshield in response to obtaining the turning prompt information; wherein, if the target turning direction is a left turn, the target side is the left side, and if the target turning direction is a right turn, the target side is the right side.
9. An electronic device, It is characterized in that comprising a memory and a processor coupled to each other, The memory stores program instructions; The processor is used to execute the program instructions stored in the memory to implement the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium is used to store program instructions, and the program instructions can be executed by a processor to implement the method according to any one of claims 1 to 7.
