High-precision map rendering perspective configuration method, device, electronic device, and storage medium
By preloading data in high-precision maps and dynamically updating user perspectives, memory consumption and repeated rendering problems caused by viewing angle changes are solved, and efficient viewing angle switching and performance optimization are achieved.
Patent Information
- Application Number
- CN202210877314.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-22
- Publication Date
- 2025-08-08
- Estimated Expiration
- 2042-07-22
AI Technical Summary
In the prior art, when the user's perspective changes, the rendering perspective adjustment of high-precision maps results in a large amount of memory consumption and repeated rendering of map data, affecting system performance.
By pre-loading high-precision map data, the initial viewing angle and pose are determined, the user's eye position is dynamically updated to switch viewing angles without changing the map data, the pose remains unchanged, and rendering is done using the perspective model.
Reduces memory usage, avoids repeated rendering of map data, and improves system performance.
Smart Images

Figure CN115147531B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of high-precision map technology, and in particular to a method, device, electronic device, and storage medium for configuring a high-precision map rendering perspective. Background Art
[0002] High-definition maps are typically machine-based maps for use by autonomous vehicles. They provide not only highly accurate coordinates but also precise road geometry and detailed information for each lane. When creating an HD map or digital twin system, environmental and vehicle data are rendered. This rendering is typically performed using a default perspective, allowing users to view the resulting image on the HD map from that perspective.
[0003] In related technologies, when the user's perspective changes but an object, such as a vehicle, still needs to be displayed on an HD map from the same perspective, the rendering perspective of the already rendered map data is adaptively changed to maintain the same display effect despite the user's perspective. However, this consumes a large amount of memory and causes the already rendered map data to be re-rendered. Summary of the Invention
[0004] The embodiments of the present application provide a method, device, electronic device, and storage medium for configuring high-precision map rendering perspective to achieve configuration of adaptive rendering perspective.
[0005] The embodiments of this application adopt the following technical solutions:
[0006] In a first aspect, an embodiment of the present application provides a method for configuring a high-precision map rendering perspective, wherein the method includes: preloading high-precision map data; rendering and displaying a target object on the screen based on the preloaded high-precision map data; determining a first perspective based on the target object, the first perspective including the distance from the target object to the user; determining that the position of the user's eyes is in a first position and a first posture based on the first perspective; determining a second perspective to be switched based on the first perspective, the second perspective including the second position and a second posture of the user's eyes; when the first perspective is switched to the second perspective, the position of the user's eyes is dynamically updated from the second position to a third position, and the second posture is maintained, and the third position is determined by the offset of the second position.
[0007] In some embodiments, the target object serves as an eye viewpoint.
[0008] In some embodiments, determining, based on the first viewing angle, that the user's eyes are in a first position and a first posture includes:
[0009] Setting the distance between the eye viewpoint and the user's eyes, and the distance between the eye viewpoint and the screen;
[0010] Based on the first viewing angle, the distance between the eye viewpoint and the user's eyes, and the distance between the eye viewpoint and the screen, the relative position of the target object displayed on the screen is determined, and the first position and first posture of the user's eyes are obtained, where the first position includes the position coordinates of the eyes.
[0011] In some embodiments, when the first perspective is switched to the second perspective, dynamically updating the position of the user's eyes from the second position to a third position while maintaining the first posture includes:
[0012] When the first viewing angle is switched to the second viewing angle, the position of the user's eyes is dynamically updated from the second position to a third position, and the second posture is maintained, so that the distance between the user's eyes and the screen is the same.
[0013] In some embodiments, when the first perspective is switched to the second perspective, dynamically updating the position of the user's eyes from the second position to the second position and maintaining the second posture includes:
[0014] According to the third position and the second posture, a perspective model for rendering is obtained and loaded into the pre-loaded high-precision map data.
[0015] In some embodiments, the method further includes: when the second perspective is switched to a third perspective, dynamically updating the position of the user's eyes from the fourth position to a next position, and maintaining a posture corresponding to the previous position.
[0016] In some embodiments, the first viewing angle, the second viewing angle, and the third viewing angle are all within the range of 0-90 degrees, and the default initialized viewing angle is 90 degrees.
[0017] In the second aspect, an embodiment of the present application also provides a high-precision map rendering perspective configuration device, wherein the device includes: a loading module for pre-loading high-precision map data; a rendering module for rendering and displaying a target object on the screen according to the pre-loaded high-precision map data; a first perspective module for determining a first perspective based on the target object, the first perspective including the distance from the target object to the user; a position and posture determination module for determining that the position of the user's eyes is in a first position and a first posture based on the first perspective; a second perspective initialization module for determining a second perspective to be switched based on the first perspective, the second perspective including the second position and the second posture of the user's eyes; a second perspective update module for dynamically updating the position of the user's eyes to a third position and maintaining the second posture when the first perspective switches to the second perspective, the third position being determined by the offset of the second position.
[0018] In a third aspect, an embodiment of the present application further provides an electronic device, comprising: a processor; and a memory arranged to store computer-executable instructions, wherein the executable instructions, when executed, enable the processor to perform any of the aforementioned methods.
[0019] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, which stores one or more programs. When the one or more programs are executed by an electronic device including multiple applications, the electronic device executes any of the aforementioned methods.
[0020] At least one of the above technical solutions adopted in the embodiments of the present application can achieve the following beneficial effects:
[0021] First, a first perspective is determined based on the target object. Then, based on the first perspective, the user's eye position is determined to be in a first position and a first posture. Furthermore, based on the first perspective, a second perspective to be switched to is determined, where the second perspective includes the user's eye position in a second position and a second posture. Thus, when the first perspective switches to the second perspective, the user's eye position is dynamically updated from the second position to a third position, while maintaining the second posture. By maintaining the rendered map data unchanged while changing the perspective, memory usage is reduced while avoiding repeated rendering of map data. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0023] Figure 1This is a flowchart of a method for configuring a high-precision map rendering perspective in an embodiment of the present application;
[0024] FIG2( a ) is a schematic diagram of a perspective adjustment method for configuring a high-precision map rendering perspective in an embodiment of the present application;
[0025] FIG2( b ) is a schematic diagram of perspective adjustment of a method for configuring perspective of high-precision map rendering in another embodiment of the present application;
[0026] Figure 3 This is a schematic diagram of the structure of the high-precision map rendering perspective configuration device in an embodiment of the present application;
[0027] Figure 4 This is a structural diagram of an electronic device in an embodiment of the present application. DETAILED DESCRIPTION
[0028] To make the purpose, technical solutions, and advantages of this application more clear, the technical solutions of this application will be clearly and completely described below in conjunction with the specific embodiments of this application and the corresponding drawings. Obviously, the embodiments described are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0029] The following describes in detail the technical solutions provided by various embodiments of the present application in conjunction with the accompanying drawings.
[0030] The present application embodiment provides a method for configuring a high-precision map rendering perspective, such as Figure 1 As shown, a flow chart of a method for configuring a high-precision map rendering perspective in an embodiment of the present application is provided, wherein the method comprises at least the following steps S110 to S160:
[0031] Step S110: pre-load high-precision map data.
[0032] To display high-precision map data on the vehicle side, map data for the relevant area can be collected and acquired in advance, and high-precision map data can be produced. The high-precision map data can include rendered objects on the road, lane markings in the lane, lane signs, etc.
[0033] It is understandable that when used for navigation, it is also necessary to render the current vehicle and other vehicles in real time based on the high-precision map data and display them on the high-precision map. In addition, in addition to vehicles, pedestrians can also be included.
[0034] Step S120: Render and display the target object on the screen according to the pre-loaded high-precision map data.
[0035] The pre-loaded high-precision map data and the road information collected in real time by the sensors on the autonomous vehicle are displayed, and the target objects that need to be rendered are displayed on the screen, such as the vehicle itself, other vehicles, pedestrians, etc.
[0036] It should be noted that the screen here refers to the screen used to display high-precision map data, such as the display screen of the vehicle's central control panel, the display screen on the vehicle terminal, etc., and is not specifically limited in the embodiments of this application. However, the screen actually exists in physical space, not virtual.
[0037] Step S130: determining a first viewing angle according to the target object, where the first viewing angle includes a distance from the target object to the user.
[0038] A first viewing angle can be determined based on the target object rendered and displayed on the screen, and the distance from the target object on the screen to the user can be obtained based on the first viewing angle. The user usually refers to the driver, but can also be other people in the car.
[0039] In some embodiments, the first viewing angle may be a default 90 degrees in the initial state, that is, the angle of the viewing angle perpendicular to the screen. Of course, any viewing angle may be used as the initial state.
[0040] Step S140: Determine, based on the first viewing angle, whether the user's eyes are in a first position and a first posture.
[0041] Then, the current position and posture of the user's eyes are determined based on the first viewing angle.
[0042] It can be understood that the position includes the offset in the xyz direction, and the posture includes the angles in each xyz direction.
[0043] Step S150: determining a second perspective to be switched based on the first perspective, where the second perspective includes a second position and a second posture of the user's eyes.
[0044] The second perspective is the perspective that needs to be switched for the high-precision map rendering perspective configuration, that is, switching from the first perspective to the second perspective. It can be understood that the second perspective includes the second position and second posture of the user's eyes.
[0045] It should be noted that the second position and the second posture of the second perspective are different from the first position and the second posture of the first perspective.
[0046] Step S160: When the first perspective is switched to the second perspective, the position of the user's eyes is dynamically updated from the second position to a third position while maintaining the second posture. The third position is determined by the offset of the second position.
[0047] If it is detected that the first perspective switches to the second perspective, the position of the user's eyes is dynamically updated to a third position and then the second posture is maintained. In other words, the angles in the xyz directions remain unchanged in the third position compared to the second position, and the offset in the xyz direction is changed.
[0048] It should be noted that the second position here refers to the initial position under the second perspective, and the third position is the dynamically updated position under the third perspective, so the posture remains unchanged from the former, but the position will change, that is, the third position is determined by the offset of the second position.
[0049] Furthermore, the dynamically updated third position is used as the configuration result of the high-precision map rendering perspective.
[0050] In one embodiment of the present application, the target object b serves as an eye viewpoint.
[0051] As shown in Figure 2(a), assuming the rendered map data remains unchanged, the target object is used as the eye viewpoint and remains unchanged. The different positions of the user's eyes and their corresponding postures (a1, a2, a3) are used as the "target object" under the eye viewpoint. This approach does not require adjusting the perspective of the rendered map data on screen c, but rather the different perspectives corresponding to the user's eyes. This differs from the related art approach of changing the rendered map data without changing the user's perspective. It also reduces memory usage and avoids repeated rendering.
[0052] As shown in Figure 2(b), object b serves as the eye's viewpoint, and screen c is shown, where A is the first position, B' is the third position after the dynamic update of the second position, and B is the initial position of the second position. At this point, B' has the same posture as B but a different position from B. B and A have different postures and positions, but A and B' are at the same distance from the screen.
[0053] For autonomous vehicles, after loading high-precision maps on the vehicle side, the requirements for real-time rendering are reduced and the computing performance of the domain controller is improved.
[0054] In one embodiment of the present application, determining that the position of the user's eyes is in a first position and a first posture based on the first viewing angle includes: setting the distance between the eye viewpoint and the user's eyes, and the distance between the eye viewpoint and the screen; determining the relative position of the target object displayed on the screen based on the first viewing angle, the distance between the eye viewpoint and the user's eyes, and the distance between the eye viewpoint and the screen, and obtaining the first position and first posture of the user's eyes, where the first position includes the position coordinates of the eyes.
[0055] In a specific implementation, the distance between the eye viewpoint and the user's eyes is set. That is, the actual distance between the target object displayed on the screen and the user's eyes. It is understood that the actual distance can be obtained in a variety of ways, which are not specifically limited in the embodiments of this application.
[0056] It is also necessary to set the distance between the eye viewpoint and the screen, that is, the virtual distance from the eye viewpoint to the screen within the screen. It is understood that the virtual distance can be obtained according to the configuration file in the scaling ratio of the high-precision map.
[0057] The relative position of the target object displayed on the screen is determined based on the first viewing angle, the distance between the eye viewpoint and the user's eye, and the distance between the eye viewpoint and the screen. After the relative position is determined, a first position and a first posture of the user's eye are obtained. The first position includes the eye's position coordinates (x, y, z). The position includes an offset in the xyz direction, and the posture includes the angles in each of the xyz directions.
[0058] It should be noted that each different viewing angle has a corresponding distance between the eye viewpoint and the user's eyes, and a distance between the eye viewpoint and the screen.
[0059] In one embodiment of the present application, when the first perspective is switched to the second perspective, the position of the user's eyes is dynamically updated from the second position to the third position, and the second posture is maintained, including: when the first perspective is switched to the second perspective, the position of the user's eyes is dynamically updated from the second position to the third position, and the second posture is maintained so that the distance between the user's eyes and the screen is the same.
[0060] In specific implementations, if a perspective switch is detected, i.e., a switch from the first perspective to the second perspective, the user's eye position needs to be dynamically updated to a third position, i.e., the offset in the xyz directions needs to be adjusted, while the second posture, i.e., the angles in each xyz direction need to be kept unchanged. This ensures that the map rendering perspective remains relatively unchanged. This means that the already rendered map data is treated as static data, while the user's perspective is changed.
[0061] In one embodiment of the present application, when the first perspective is switched to the second perspective, the position of the user's eyes is dynamically updated from the second position to a third position, and the second posture is maintained, including: obtaining a perspective model for rendering based on the third position and the second posture, and loading it into the pre-loaded high-precision map data.
[0062] During specific implementation, since the first perspective is switched to the second perspective, it is necessary to obtain a perspective model (as dynamically updated data) based on the third position and the second posture, and record it in the pre-loaded high-precision map data (as static data).
[0063] In one embodiment of the present application, it also includes: determining the third perspective to be switched based on the second perspective, the third perspective including the fourth position and the third posture of the user's eyes; when the second perspective is switched to the third perspective, the position of the user's eyes is dynamically updated from the fourth position to the fifth position, and the third posture is maintained, and the fifth position is determined by the offset of the fourth position.
[0064] In specific implementation, when the perspective is switched again, such as when switching to the third perspective, the position of the user's eyes is dynamically updated from the fourth position to the next position, that is, the offset in the xyz direction, and the posture corresponding to the previous position remains unchanged, that is, the angle in each direction of xyz.
[0065] In one embodiment of the present application, the first viewing angle, the second viewing angle, and the third viewing angle are all within the range of 0-90 degrees, and the default initialized viewing angle is 90 degrees.
[0066] The default initialization viewing angle is 90 degrees. At the same time, the first viewing angle, the second viewing angle, and the third viewing angle can all be changed in the range of 0-90 degrees, and adaptive high-precision map rendering viewing angle configuration can be performed.
[0067] The embodiment of the present application also provides a high-precision map rendering perspective configuration device 300, such as Figure 3 As shown, a schematic diagram of the structure of a high-precision map rendering perspective configuration device in an embodiment of the present application is provided. The high-precision map rendering perspective configuration device 300 includes at least: a loading module 310, a rendering module 320, a first perspective module 330, a position and posture determination module 340, a second perspective initialization module 350, and a second perspective update module 360, wherein:
[0068] In one embodiment of the present application, the loading module 310 is specifically used to preload high-precision map data.
[0069] To display high-precision map data on the vehicle side, map data for the relevant area can be collected and acquired in advance, and high-precision map data can be produced. The high-precision map data can include rendered objects on the road, lane markings in the lane, lane signs, etc.
[0070] It is understandable that when used for navigation, it is also necessary to render the current vehicle and other vehicles in real time based on the high-precision map data and display them on the high-precision map. In addition, in addition to vehicles, pedestrians can also be included.
[0071] In one embodiment of the present application, the rendering module 320 is specifically used to render and display the target object on the screen according to the pre-loaded high-precision map data.
[0072] The pre-loaded high-precision map data and the road information collected in real time by the sensors on the autonomous vehicle are displayed, and the target objects that need to be rendered are displayed on the screen, such as the vehicle itself, other vehicles, pedestrians, etc.
[0073] It should be noted that the screen here refers to the screen used to display high-precision map data, such as the display screen of the vehicle's central control, the display screen on the vehicle terminal, etc., and is not specifically limited in the embodiments of this application. However, the screen is in physical space, not virtual.
[0074] In one embodiment of the present application, the first viewing angle module 330 is specifically configured to determine a first viewing angle according to the target object, where the first viewing angle includes a distance from the target object to the user.
[0075] A first viewing angle can be determined based on the target object rendered and displayed on the screen, and a distance from the target object on the screen to a user can be obtained based on the first viewing angle. The user usually refers to a driver.
[0076] In some embodiments, the first viewing angle may be a default 90 degrees, ie, an angle perpendicular to the screen.
[0077] In one embodiment of the present application, the position and posture determination module 340 is specifically configured to determine, based on the first viewing angle, that the position of the user's eyes is at a first position and a first posture.
[0078] Then, the current position and posture of the user's eyes are determined based on the first viewing angle.
[0079] It can be understood that the position includes the offset in the xyz direction, and the posture includes the angles in each xyz direction.
[0080] In one embodiment of the present application, the second perspective initialization module 350 is specifically used to determine the second perspective to be switched according to the first perspective, where the second perspective includes the second position and second posture of the user's eyes.
[0081] The second perspective is the perspective that needs to be switched for the high-precision map rendering perspective configuration, that is, switching from the first perspective to the second perspective. It can be understood that the second perspective includes the second position and second posture of the user's eyes.
[0082] It should be noted that the second position and the second posture of the second perspective are different from the first position and the second posture of the first perspective.
[0083] In one embodiment of the present application, the second viewing angle updating module 360 is specifically configured to:
[0084] When the first perspective is switched to the second perspective, the position of the user's eyes is dynamically updated from the second position to a third position while maintaining the second posture. The third position is determined by an offset of the second position.
[0085] If it is detected that the first perspective switches to the second perspective, the position of the user's eyes is dynamically updated to a third position and then the second posture is maintained. In other words, the angles in the xyz directions remain unchanged, and only the offset in the xyz direction changes.
[0086] It should be noted that the second position here refers to the initial position under the second perspective, and the third position is the dynamically updated position under the third perspective, so the posture remains unchanged from the former, but the position will change.
[0087] Furthermore, the dynamically updated second position is used as the configuration result of the high-precision map rendering perspective.
[0088] It can be understood that the above-mentioned high-precision map rendering perspective configuration device can implement the various steps of the high-precision map rendering perspective configuration method provided in the aforementioned embodiment. The relevant explanations on the high-precision map rendering perspective configuration method are applicable to the high-precision map rendering perspective configuration device and will not be repeated here.
[0089] Figure 4 This is a schematic diagram of the structure of an electronic device according to an embodiment of the present application. Figure 4 At the hardware level, the electronic device includes a processor and, optionally, an internal bus, a network interface, and memory. The memory may include internal memory, such as high-speed random-access memory (RAM), or non-volatile memory, such as at least one disk drive. Of course, the electronic device may also include other hardware required for its services.
[0090] The processor, network interface, and memory can be interconnected via an internal bus, which can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, or an EISA (Extended Industry Standard Architecture) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 4 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or one type of bus.
[0091] The memory is used to store programs. Specifically, the program may include program code, which includes computer operating instructions. The memory may include internal memory and non-volatile memory, and provides instructions and data to the processor.
[0092] The processor reads the corresponding computer program from the non-volatile memory into the internal memory and then runs it, forming a high-precision map rendering perspective configuration device at the logical level. The processor executes the program stored in the memory and is specifically used to perform the following operations:
[0093] Pre-load high-precision map data;
[0094] Rendering and displaying the target object on the screen according to the pre-loaded high-precision map data;
[0095] Determining a first viewing angle according to the target object, where the first viewing angle includes a distance from the target object to a user;
[0096] Determining, based on the first viewing angle, that the user's eyes are in a first position and a first posture;
[0097] Determining a second perspective to be switched based on the first perspective, where the second perspective includes a second position and a second posture of the user's eyes;
[0098] When the first perspective is switched to the second perspective, the position of the user's eyes is dynamically updated from the second position to a third position while maintaining the second posture. The third position is determined by an offset of the second position.
[0099] The above application Figure 1The method performed by the high-precision map rendering perspective configuration device disclosed in the illustrated embodiment can be applied to a processor or implemented by a processor. The processor may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method can be completed by hardware integrated logic circuits in the processor or software instructions. The above processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be 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, or discrete hardware components. The various methods, steps, and logic block diagrams disclosed in the embodiments of this application can be implemented or executed. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in conjunction with the embodiments of this application can be directly embodied as being executed by a hardware decoding processor, or can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium well-known in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, etc. The storage medium is located in the memory, and the processor reads the information in the memory and, in conjunction with its hardware, completes the steps of the above method.
[0100] The electronic device may also perform Figure 1 Method for executing the high-precision map rendering perspective configuration device, and realizing the high-precision map rendering perspective configuration device in Figure 1 The functions of the illustrated embodiment will not be described in detail in the embodiments of the present application.
[0101] The embodiment of the present application also provides a computer-readable storage medium, which stores one or more programs, wherein the one or more programs include instructions, which, when executed by an electronic device including multiple application programs, can enable the electronic device to execute Figure 1 The method performed by the high-precision map rendering perspective configuration device in the illustrated embodiment is specifically used to perform:
[0102] Pre-load high-precision map data;
[0103] Rendering and displaying the target object on the screen according to the pre-loaded high-precision map data;
[0104] Determining a first viewing angle according to the target object, where the first viewing angle includes a distance from the target object to a user;
[0105] Determining, based on the first viewing angle, that the user's eyes are in a first position and a first posture;
[0106] Determining a second perspective to be switched based on the first perspective, where the second perspective includes a second position and a second posture of the user's eyes;
[0107] When the first perspective is switched to the second perspective, the position of the user's eyes is dynamically updated from the second position to a third position while maintaining the second posture. The third position is determined by an offset of the second position.
[0108] It will be understood by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Thus, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0109] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowcharts and / or block diagrams, as well as combinations of processes and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowcharts and / or block diagrams. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0110] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.
[0111] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0112] In a typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.
[0113] Memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
[0114] Computer-readable media includes permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. The information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory computer-readable media (transitory media), such as modulated data signals and carrier waves.
[0115] It should also be noted that the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, commodity, or apparatus that includes a series of elements includes not only those elements but also other elements not explicitly listed, or includes elements inherent to such process, method, commodity, or apparatus. In the absence of further limitations, an element defined by the phrase "comprises a ..." does not exclude the presence of other identical elements in the process, method, commodity, or apparatus that includes the element.
[0116] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0117] The foregoing is merely an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application should all be included within the scope of the claims of the present application.
Claims
1. A method for configuring a high-precision map rendering perspective, wherein: The method comprises: Pre-load high-precision map data; Rendering and displaying the target object on the screen according to the pre-loaded high-precision map data; Determining a first viewing angle according to the target object, where the first viewing angle includes a distance from the target object to a user; Determining, based on the first viewing angle, that the user's eyes are in a first position and a first posture; Determining a second perspective to be switched based on the first perspective, where the second perspective includes a second position and a second posture of the user's eyes; When the first perspective is switched to the second perspective, the perspective of the map data rendered on the screen is maintained, the position of the user's eyes is dynamically updated from the second position to the third position, and the second posture is maintained. The third position is determined by the offset of the second position.
2. The method according to claim 1, wherein: The target object serves as the eye viewpoint.
3. The method according to claim 2, wherein: The step of determining, based on the first viewing angle, that the user's eyes are in a first position and a first posture includes: Setting the distance between the eye viewpoint and the user's eyes, and the distance between the eye viewpoint and the screen; Based on the first viewing angle, the distance between the eye viewpoint and the user's eyes, and the distance between the eye viewpoint and the screen, the relative position of the target object displayed on the screen is determined, and the first position and first posture of the user's eyes are obtained, where the first position includes the position coordinates of the eyes.
4. The method according to claim 2, wherein: When the first perspective is switched to the second perspective, dynamically updating the position of the user's eyes from the second position to a third position while maintaining the second posture includes: When the first viewing angle is switched to the second viewing angle, the position of the user's eyes is dynamically updated from the second position to a third position, and the second posture is maintained, so that the distance between the user's eyes and the screen is the same.
5. The method according to claim 2, wherein: When the first perspective is switched to the second perspective, the position of the user's eyes is dynamically updated from the second position to a third position, and the second posture is maintained, further comprising: According to the third position and the second posture, a perspective model for rendering is obtained and loaded into the pre-loaded high-precision map data.
6. The method of claim 1, wherein: The method further comprises: Determining a third perspective to be switched based on the second perspective, wherein the third perspective includes a fourth position of the user's eyes and a third posture; When the second perspective is switched to the third perspective, the position of the user's eyes is dynamically updated from the fourth position to the fifth position, while maintaining the third posture. The fifth position is determined by the offset of the fourth position.
7. The method of claim 6, wherein: The first viewing angle, the second viewing angle, and the third viewing angle are all within the range of 0-90 degrees, and the default initialized viewing angle is 90 degrees.
8. A high-precision map rendering perspective configuration device, wherein: The device comprises: Loading module, used to preload high-precision map data; A rendering module, configured to render and display the target object on the screen based on the pre-loaded high-precision map data; A first viewing angle module, configured to determine a first viewing angle according to the target object, where the first viewing angle includes a distance from the target object to the user; a position and posture determination module, configured to determine, based on the first viewing angle, that the user's eyes are at a first position and a first posture; A second perspective initialization module is used to determine a second perspective to be switched based on the first perspective, where the second perspective includes a second position and a second posture of the user's eyes; The second perspective update module is used to maintain the perspective of the map data rendered on the screen when the first perspective is switched to the second perspective, dynamically update the position of the user's eyes to a third position, and maintain the second posture. The third position is determined by the offset of the second position.
9. An electronic device comprising: processor; as well as A memory arranged to store computer executable instructions, which when executed cause the processor to perform the method of any one of claims 1 to 7.
10. A computer-readable storage medium storing one or more programs, which, when executed by an electronic device including a plurality of application programs, causes the electronic device to execute the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
A method and apparatus for rendering a scene in a vehicle autopilot simulator
CN109101690A
Creating realistic three-dimensional effects
US9367951B1