Vehicle model rendering method and device, electronic equipment and storage medium

By using an ambient light model that combines a hemisphere and a round-bottom surround view model in the vehicle model rendering, the problem of incomplete ambient light rendering when the surround view angle changes in the traditional method is solved, and global ambient light rendering and realism improvement of the vehicle model are achieved.

CN118864682AActive Publication Date: 2024-10-29HANGZHOU HIKVISION DIGITAL TECHNOLOGY CO LTD
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
CN202411333138.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-23
Publication Date
2024-10-29
Estimated Expiration
2044-09-23

AI Technical Summary

Technical Problem

The traditional vehicle model rendering method uses a pre-built bowl-shaped surround model, which results in the inability to achieve ambient light rendering at certain locations when the vehicle's surround angle changes, reducing the authenticity of the vehicle's global ambient light rendering and lacking a sense of real-time ambient light reflection.

Method used

The ambient light model includes a hemispheric model and a round-bottom surround model, and the camera images from each perspective of the vehicle are mapped to the ambient light model to generate an ambient light panoramic image. The ambient light map is generated based on sampling of the vehicle lighting reflection vector for rendering the vehicle model. .

Benefits of technology

The coverage of global ambient light rendering of the vehicle is achieved, and all positions can be rendered even if the viewing angle changes, which enhances the realism and real-time performance of the vehicle model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118864682A_ABST
    Figure CN118864682A_ABST
Patent Text Reader

Abstract

The invention discloses a vehicle model rendering method and device, electronic equipment and a storage medium, relates to the technical field of image processing, and is used for enabling a constructed vehicle model to better fit a real environment. The method comprises the following steps: acquiring images shot by a plurality of cameras with different visual angles configured on a vehicle; mapping images shot by the plurality of cameras to an ambient light model to generate an ambient light panoramic image; wherein the ambient light model comprises a hemisphere model and a round-bottom look-around model, the hemisphere model is used for constructing a sky scene of ambient light, and the round-bottom look-around model is used for constructing a ground scene of the ambient light and a scene around a vehicle body; the ambient light panoramic image is used for representing ambient light information around the vehicle; based on the vehicle illumination reflection vector, sampling the ambient light panoramic image to generate an ambient light map; wherein the ambient light map is used for representing ambient light information reflected by the surface of the vehicle; and rendering the vehicle model based on the ambient light map.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, and in particular to a rendering method, device, electronic device and storage medium for a vehicle model. Background Art

[0002] Panoramic surround view is a technology that displays panoramic images around a moving device. It uses multiple cameras installed around the moving device to collect image data of the scene around the moving device, and then maps the image data collected by the multiple cameras to a fixed surround view model to obtain a panoramic image.

[0003] Vehicle driving assistance systems are often equipped with an on-board surround view system that uses panoramic view technology to facilitate drivers to observe the surrounding environment when driving or parking. With the popularity of on-board surround view, users have an increasing demand for surround view realism. If the car model rendering in the surround view lacks the reflection of the vehicle's surrounding environment, the realism of the car model will be greatly reduced.

[0004] The traditional vehicle model rendering method is to project a static scene image into a pre-built surround view model to obtain a rendered vehicle model. The pre-built surround view model used in this method is usually a bowl-shaped model. When the vehicle's surround view angle changes, certain surround view angles cannot achieve ambient light rendering at certain positions of the vehicle, reducing the authenticity of the vehicle's global ambient light rendering. In addition, this method uses a static scene image, not the current actual scene, and lacks the realism of real-time ambient light rendering of the vehicle model. Summary of the invention

[0005] The present application provides a vehicle model rendering method, device, electronic device and storage medium, which are used to make the constructed vehicle model more closely fit the real environment.

[0006] In order to achieve the above technical objectives, this application adopts the following technical solutions: In a first aspect, an embodiment of the present application provides a method for rendering a vehicle model, the method comprising: Acquire images captured by multiple cameras with different viewing angles configured for the vehicle; The images captured by multiple cameras are mapped to an ambient light model to generate an ambient light panoramic image; wherein the ambient light model includes a hemispherical model and a circular bottom surround view model, the hemispherical model is used to construct an ambient light sky scene, and the circular bottom surround view model is used to construct an ambient light ground scene and a vehicle body surrounding scene; the ambient light panoramic image is used to characterize the ambient light information around the vehicle; Based on the vehicle light reflection vector, the ambient light panoramic image is sampled to generate an ambient light map; wherein the vehicle light reflection vector is used to represent the reflection angle of the vehicle surface to the light; and the ambient light map is used to represent the ambient light information reflected by the vehicle surface; Render the vehicle model based on the ambient light map.

[0007] The technical solution provided by this application brings at least the following beneficial effects: the ambient light model includes a hemispherical model and a circular bottom surround model, including the sky scene, ground scene and scene around the vehicle body of the ambient light, covering all angles of the vehicle, and realizing the global ambient light rendering of the vehicle. Even if the surround angle is changed, there will be no problem that the ambient light rendering cannot be realized at certain positions of the vehicle. On this basis, the images taken by the cameras at various viewing angles of the vehicle are mapped to the ambient light model to generate an ambient light panoramic image, which can ensure that the rendering of the vehicle model is based on the environment around the vehicle in real time, and the sense of reality is stronger.

[0008] In a possible implementation, images captured by multiple cameras are mapped to an ambient light model to generate an ambient light panoramic image, including: mapping the images captured by multiple cameras to a circular bottom surround model to generate a first ambient light image; wherein the first ambient light image is used to characterize the ambient light information in the ground scene of the vehicle and the scene around the vehicle body; mapping the image captured by a camera of a target perspective to a hemispherical model to generate a second ambient light image; wherein the target perspective includes a perspective that is the same as and / or opposite to the vehicle's forward direction; the second ambient light image is used to characterize the ambient light information in the sky scene of the vehicle; and splicing the first ambient light image and the second ambient light image to generate an ambient light panoramic image.

[0009] In one possible implementation, an image taken by a camera at a target perspective is mapped onto a hemispherical model to generate a second ambient light image, including: based on the vehicle's driving speed, extracting a local image to be mapped onto the hemispherical model from a current image and historical images taken by the camera at the target perspective; and mapping the local image onto the hemispherical model to generate a second ambient light image.

[0010] In one possible implementation, images captured by multiple cameras are mapped to an ambient light model to generate an ambient light panoramic image, including: determining a mapping relationship between the images captured by the multiple cameras and the ambient light model based on the internal and external parameters of each of the multiple cameras; and mapping the images captured by the multiple cameras to the ambient light model based on the mapping relationship between the images captured by the multiple cameras and the ambient light model to generate an ambient light panoramic image.

[0011] In one possible implementation, the circular bottom surround view model is determined by: obtaining the number of cameras configured for the vehicle, the parameters of the cameras, and the size of the vehicle; based on the number of cameras configured for the vehicle, the parameters of the cameras, and the size of the vehicle, adjusting the model parameters of the circular bottom surround view model to generate the circular bottom surround view model.

[0012] In a second aspect, the present application provides a rendering device for a vehicle model, comprising: An acquisition module, used to acquire images taken by multiple cameras with different viewing angles configured for the vehicle; A processing module is used to map the images taken by multiple cameras to an ambient light model to generate an ambient light panoramic image; wherein the ambient light model includes a hemispherical model and a circular bottom surround model, the hemispherical model is used to construct an ambient light sky scene, and the circular bottom surround model is used to construct an ambient light ground scene and a vehicle body surrounding scene; the ambient light panoramic image is used to characterize the ambient light information around the vehicle; The processing module is also used to sample the ambient light panoramic image based on the vehicle light reflection vector to generate an ambient light map; wherein the vehicle light reflection vector is used to represent the reflection angle of the vehicle surface to the light; and the ambient light map is used to represent the ambient light information reflected by the vehicle surface; The processing module is also used to render the vehicle model based on the ambient light map.

[0013] In one possible implementation, the processing module is specifically used to: map images taken by multiple cameras onto a circular-bottom surround model to generate a first ambient light image; wherein the first ambient light image is used to characterize the ambient light information in the ground scene of the vehicle and the scene around the vehicle body; map the image taken by the camera of the target perspective onto a hemispherical model to generate a second ambient light image; wherein the target perspective includes a perspective that is the same as and / or opposite to the vehicle's forward direction; the second ambient light image is used to characterize the ambient light information in the vehicle's sky scene; and splice the first ambient light image and the second ambient light image to generate an ambient light panoramic image.

[0014] In one possible implementation, the processing module is specifically used to: based on the vehicle's driving speed, extract a local image to be mapped onto the hemispherical model from the current image and historical images taken by the camera from the target perspective; map the local image onto the hemispherical model to generate a second ambient light image.

[0015] In one possible implementation, the processing module is specifically used to: determine a mapping relationship between images taken by multiple cameras and an ambient light model based on the internal and external parameters of each camera; and map the images taken by multiple cameras to the ambient light model based on the mapping relationship between the images taken by multiple cameras and the ambient light model to generate an ambient light panoramic image.

[0016] In one possible implementation, the acquisition module is further used to obtain the number of cameras configured for the vehicle, the parameters of the cameras, and the size of the vehicle; the processing module is further used to adjust the model parameters of the circular bottom surround view model based on the number of cameras configured for the vehicle, the parameters of the cameras, and the size of the vehicle to generate a circular bottom surround view model.

[0017] In a third aspect, the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement any one of the vehicle model rendering methods provided in the first aspect.

[0018] In a fourth aspect, the present application provides a computer-readable storage medium having computer instructions stored thereon, which, when executed by a processor, implement any one of the vehicle model rendering methods provided in the first aspect.

[0019] In a fifth aspect, the present application provides a computer program product, comprising computer instructions, which, when executed by a processor, implement any one of the vehicle model rendering methods provided in the first aspect.

[0020] For the specific description of the second to fifth aspects and their various implementations in the present application, reference may be made to the detailed description in the first aspect and its various implementations; and for the beneficial effects of the second to fifth aspects and their various implementations, reference may be made to the beneficial effects analysis in the first aspect and its various implementations, which will not be repeated here.

[0021] These and other aspects of the present application will become more apparent from the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 A schematic diagram of the structure of a vehicle model rendering system applicable to a vehicle model rendering method provided in an embodiment of the present application; Figure 2 A schematic diagram of the hardware composition of a computing device provided in an embodiment of the present application; Figure 3 A flowchart of a vehicle model rendering method provided in an embodiment of the present application; Figure 4 Schematic diagram of an application scenario of a vehicle model rendering method provided in an embodiment of the present application Figure 1 ; Figure 5 Schematic diagram of an application scenario of a vehicle model rendering method provided in an embodiment of the present application Figure 2 ; Figure 6 Schematic diagram of an application scenario of a vehicle model rendering method provided in an embodiment of the present application Figure 3 ; Figure 7 Schematic diagram of an application scenario of a vehicle model rendering method provided in an embodiment of the present application Figure 4 ; Figure 8 A logical schematic diagram of a rendering process of a vehicle model provided in an embodiment of the present application; Fig. 9 Schematic diagram of an application scenario of a vehicle model rendering method provided in an embodiment of the present application Figure 5 ; Fig.10 A logic diagram of a vehicle model rendering method provided in an embodiment of the present application; Fig.11 A schematic diagram of a rendering effect of a vehicle model provided in an embodiment of the present application; Fig.12 A schematic diagram of the structure of a vehicle model rendering device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0023] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0024] It should be noted that, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete way. The terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present application, unless otherwise specified, "multiple" means two or more.

[0025] Panoramic surround view is a technology that displays panoramic images around a moving device. It uses multiple cameras installed around the moving device to collect image data of the scene around the moving device, and then maps the image data collected by the multiple cameras to a fixed surround view model to obtain a panoramic image.

[0026] Vehicle driving assistance systems are often equipped with an on-board surround view system that uses panoramic view technology to facilitate drivers to observe the surrounding environment when driving or parking. With the popularity of on-board surround view, users have an increasing demand for surround view realism. If the car model rendering in the surround view lacks the reflection of the vehicle's surrounding environment, the realism of the car model will be greatly reduced.

[0027] The traditional vehicle model rendering method is to project a static scene image into a pre-built surround view model to obtain a rendered vehicle model. The pre-built surround view model used in this method is usually a bowl-shaped model. When the vehicle's surround view angle changes, certain surround view angles cannot achieve ambient light rendering at certain positions of the vehicle, reducing the authenticity of the vehicle's global ambient light rendering. In addition, this method uses a static scene image, not the current actual scene, and lacks the realism of real-time ambient light rendering of the vehicle model.

[0028] In this regard, an embodiment of the present application provides a method for rendering a vehicle model, in which images taken by cameras at various viewing angles of the vehicle are mapped onto an ambient light model. The ambient light model includes a hemispherical model and a circular bottom surround model, which can include ambient light, sky scenes, ground scenes, and scenes around the vehicle body, covering all angles of the vehicle, and realizing global ambient light rendering of the vehicle. Even if the surround view angle is changed, there will be no problem that ambient light rendering cannot be achieved at certain positions of the vehicle. On this basis, the images taken by cameras at various viewing angles of the vehicle are mapped onto the ambient light model to generate an ambient light panoramic image, which can ensure that the rendering of the vehicle model is performed in real time based on the environment around the vehicle, and has a stronger sense of reality.

[0029] Please refer to Figure 1 , which shows a vehicle model rendering system to which the vehicle model rendering method provided by the present application is applicable. Figure 1 As shown, the vehicle model rendering system 1 includes a plurality of cameras 10 with different shooting angles and an electronic device 20 .

[0030] The camera 10 and the electronic device 20 establish a communication connection in a direct or indirect manner. It should be understood that the connection method can be a wireless connection, such as a Bluetooth connection, a wireless fidelity (Wi-Fi) connection, etc.; or the connection method can also be a wired connection, such as an optical fiber connection, etc., which is not limited. For example, the camera 10 and the electronic device 20 are connected via a wireless local area network.

[0031] In some embodiments, multiple cameras 10 are installed at different positions of the vehicle, so that each camera 10 can capture images from different perspectives. For example, a camera 10 is installed at the front, back, left, and right sides of the vehicle, respectively, so that the front camera can capture the scene in front of the vehicle, the left camera can capture the scene to the left of the vehicle, the right camera can capture the scene to the right of the vehicle, and the rear camera can capture the scene behind the vehicle.

[0032] In practical applications, in order to ensure the surround view effect of the vehicle, the shooting range of all surround view cameras deployed on the vehicle should cover 360° around the vehicle.

[0033] Specifically, the camera 10 may be a fisheye camera, a monocular camera, a binocular camera, a trinocular camera, a wide-angle camera, etc., and the present application does not limit the specific implementation of the camera 10. In practical applications, the camera 10 is usually a fisheye camera.

[0034] In some embodiments, the electronic device 20 is used to receive images captured by each camera 10, and map the images captured by each camera 10 to an ambient light model to generate an ambient light panoramic image. The ambient light model includes a hemispherical model and a circular bottom surround model. The hemispherical model is used to construct an ambient light sky scene, and the circular bottom surround model is used to construct an ambient light ground scene and a vehicle body surrounding scene; the ambient light panoramic image is used to characterize the ambient light information around the vehicle. Furthermore, the electronic device 20 samples the ambient light panoramic image based on the vehicle illumination reflection vector to generate an ambient light map, and finally the electronic device 20 renders the vehicle model based on the ambient light map.

[0035] During the rendering process of the vehicle model, the electronic device 20 adjusts the model parameters of the preset ambient light model based on the number of cameras 10 configured for the vehicle, the parameters of the cameras, and the size of the vehicle to generate the ambient light model. It should be understood that during the rendering process of the vehicle, abnormal situations such as camera failure may occur. If the ambient light model is fixed, the abnormal situation will have a bad effect on the ambient light rendering effect of the vehicle model. Therefore, in order to ensure the ambient light rendering effect of the vehicle model, the electronic device 20 generates the ambient light model in real time during the ambient light rendering process of the vehicle model. Alternatively, if it can be ensured that the number of cameras 10 configured for the vehicle, the parameters of the cameras, and the size of the vehicle do not change, the ambient light model can also be pre-constructed, and the subsequent image mapping process can be directly performed based on the pre-constructed ambient light model during the ambient light rendering process of the vehicle model.

[0036] In some embodiments, the electronic device 20 may include a display for displaying the rendered vehicle model to the user. For example, the display may be a liquid crystal display, an organic light-emitting diode (OLED) display, etc. The specific type, size, and resolution of the display are not limited.

[0037] Optionally, the electronic device 20 is connected to a display device, and the fused multi-view stitched image is sent to the display device, so that the display device displays the multi-view stitched image to the user. The display device may be a liquid crystal display or an organic light-emitting diode (OLED) display. The specific type, size, and resolution of the display device are not specifically limited. It can be understood by those skilled in the art that the display device can make some changes in performance and configuration as needed.

[0038] In some embodiments, the electronic device 20 may be a device or device having the above-mentioned image processing capability, such as a computer, a central processing unit (CPU), a graphics processing unit (GPU), a general-purpose processor network processor (NP), a digital signal processor (DSP), a microprocessor, a microcontroller, a programmable logic device (PLD), or any combination thereof. The electronic device 20 may also be other devices having processing functions, such as circuits, devices, or software modules, and the embodiments of the present application do not impose any restrictions on this.

[0039] In some embodiments, the electronic device 20 may be a single server or a server cluster, or the electronic device 20 may be a terminal device, such as a personal computer (PC), a notebook computer, a mobile device, a tablet computer, a laptop computer, a vehicle-mounted terminal, etc. The embodiments of the present application do not limit the specific form of the electronic device 20.

[0040] In some embodiments, multiple cameras 10 and electronic devices 20 are installed on a mobile target. For example, the camera 10 is a vehicle-mounted camera with different shooting angles on a vehicle, and the electronic device 20 is a vehicle-mounted terminal on the vehicle.

[0041] Optionally, the electronic device 20 may not be installed in the car. The camera 10 transmits the captured images to the electronic device 20. The electronic device 20 performs ambient light rendering of the vehicle model based on each image, and then the electronic device transmits the rendered vehicle model to a display device for displaying the vehicle model.

[0042] In some embodiments, the camera 10 and the electronic device 20 may be configured as follows: Figure 1 The devices shown are independent of each other, or the electronic device 20 can also be integrated with a camera 10, and the embodiment of the present application does not make any specific limitation to this.

[0043] The hardware structure of the electronic device 20 includes: Figure 2 The computing device shown in FIG. Figure 2 Taking the computing device shown as an example, the hardware structure of the electronic device 20 is introduced.

[0044] like Figure 2As shown, the computing device may include a processor 301, a memory 302, a communication interface 303, and a bus 304. The processor 301, the memory 302, and the communication interface 303 may be connected via a bus 304.

[0045] The processor 301 is the control center of the computing device, which can be a processor or a general term for multiple processing elements. For example, the processor 301 can be a general-purpose central processing unit (CPU) or other general-purpose processors. Among them, the general-purpose processor can be a microprocessor or any conventional processor.

[0046] As an embodiment, the processor 301 may include one or more CPUs, such as Figure 2 CPU 0 and CPU 1 are shown in .

[0047] The memory 302 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, an electrically erasable programmable read-only memory (EEPROM), a disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.

[0048] In a possible implementation, the memory 302 may exist independently of the processor 301, and the memory 302 may be connected to the processor 301 via a bus 304 to store instructions or program codes. When the processor 301 calls and executes the instructions or program codes stored in the memory 302, the model deployment method provided in the embodiment of the present application can be implemented.

[0049] In another possible implementation, the memory 302 may also be integrated with the processor 301 .

[0050] The communication interface 303 is used for the computing device to connect with other devices through a communication network, which may be Ethernet, a radio access network (RAN), a wireless local area network (WLAN), etc. The communication interface 303 may include a receiving unit for receiving data and a sending unit for sending data.

[0051] The bus 304 may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 2 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0052] It should be pointed out that Figure 2 The structure shown in the figure does not constitute a limitation on the computing device, except Figure 2 In addition to the components shown, the computing device may include more or fewer components than shown, or combine certain components, or arrange the components differently.

[0053] The implementation of the embodiments of the present application will be described in detail below with reference to the accompanying drawings.

[0054] The vehicle model rendering method provided in the embodiment of the present application can be executed by the above-mentioned electronic device 20.

[0055] like Figure 3 As shown, an embodiment of the present application provides a method for rendering a vehicle model, the method comprising the following steps: S101: Acquire images taken by multiple cameras with different viewing angles configured for a vehicle.

[0056] For example, Figure 4 As shown in the figure, four cameras are deployed on the vehicle, namely the front view camera, the left view camera, the right view camera and the rear view camera. If the camera is a fisheye camera, the images taken by these four cameras can be Figure 4 as shown in .

[0057] The camera establishes a communication connection with the electronic device, and the images taken by the camera are transmitted to the electronic device in real time.

[0058] S102: Mapping images captured by multiple cameras to an ambient light model to generate an ambient light panoramic image.

[0059] Among them, the ambient light model includes a hemispherical model and a circular-bottom surround view model. The hemispherical model is used to construct the ambient light sky scene, and the circular-bottom surround view model is used to construct the ambient light ground scene and the scene around the vehicle body; the ambient light panoramic image is used to characterize the ambient light information around the vehicle.

[0060] In some embodiments, the mapping process of step S102 may be performed on a GPU.

[0061] The specific schematic diagram of the ambient light model constructed by the hemispherical model and the circular bottom surround model can be shown as follows: Figure 5 shown.

[0062] Specifically, the formula used in the hemispherical model is: , . Among them, R is used to represent the radius of the sphere of the hemispherical model, Used to represent the world coordinates corresponding to a model point in the hemispherical model.

[0063] The formula used in the circular bottom surround model is: , , , .in, It is used to represent the world coordinates corresponding to a model point in the surround model, a is used to represent the radius of the circle bottom of the surround model, h is used to represent the height of the surround model, and r is used to represent the curvature of the model surface of the surround model.

[0064] In some embodiments, the circular bottom surround view model is determined by: obtaining the number of cameras configured for the vehicle, the parameters of the cameras, and the size of the vehicle; based on the number of cameras configured for the vehicle, the parameters of the cameras, and the size of the vehicle, adjusting the model parameters of the circular bottom surround view model to generate the circular bottom surround view model.

[0065] The intrinsic parameters of the camera determine how to correct the distortion of the image taken by the camera. The number of cameras determines the location of the camera distribution, which determines the change of the extrinsic parameters of the camera. The extrinsic parameters of the camera and the size of the vehicle jointly determine the values ​​of the radius a and the height h of the circular bottom surround view model. In this process, it is necessary to ensure that the value of a can make the circular bottom area of ​​the circular bottom surround view model cover the ground area that the user wants to observe in the surround view image of the vehicle.

[0066] In some embodiments, images captured by multiple cameras are mapped to an ambient light model to generate an ambient light panoramic image. This can be specifically implemented as follows: based on the internal and external parameters of each of the multiple cameras, a mapping relationship between the images captured by the multiple cameras and the ambient light model is determined; based on the mapping relationship between the images captured by the multiple cameras and the ambient light model, the images captured by the multiple cameras are mapped to the ambient light model to generate an ambient light panoramic image.

[0067] like Figure 6As shown, an embodiment of the present application provides a mapping schematic diagram. The camera coordinate system in the image is the coordinate system of the camera that collects the image data, the pixel coordinate system is the coordinate system of the imaging of the image data, the distance between the origin of the camera coordinate system and the imaging plane corresponding to the pixel coordinate system is the same as the focal length of the camera, and the world coordinate system is the coordinate system where the surround view model is located. The figure shows the mapping process from the camera coordinate system to the pixel coordinate system and the world coordinate system. After obtaining the image data, the image data (generally the original image data collected by the fisheye camera) can be mapped to the surround view model using the Zhang calibration method of the imaging of the pinhole camera and the internal and external parameters of the camera and the adjusted circular bottom surround view model. Optionally, the coordinates of the adjusted circular bottom surround view model in the world coordinate system can be first converted to the coordinates in the camera coordinate system of the camera, and then converted to the pixel coordinates in the pixel coordinate system, so as to realize the mapping of the three-dimensional space coordinate points to the two-dimensional image pixel point coordinates.

[0068] In some embodiments, images captured by multiple cameras are mapped to an ambient light model to generate an ambient light panoramic image, which can be specifically implemented as follows: images captured by multiple cameras are mapped to a circular bottom surround view model to generate a first ambient light image; wherein the first ambient light image is used to characterize the ambient light information in the ground scene of the vehicle and the scene around the vehicle body; images captured by a camera of a target perspective are mapped to a hemispherical model to generate a second ambient light image; wherein the target perspective includes a perspective that is the same as and / or opposite to the vehicle's forward direction; the second ambient light image is used to characterize the ambient light information in the sky scene of the vehicle; and the first ambient light image and the second ambient light image are spliced ​​to generate an ambient light panoramic image.

[0069] like Figure 7 As shown, an embodiment of the present application provides a splicing schematic diagram. After the construction and image mapping of the front view surround model, the rear view surround model, the left view surround model, and the right view surround model are completed in sequence on the GPU (Graphics Processing Unit), image fusion is performed by overlapping coverage, overlapping transparent mixing, overlapping color mixing, etc. For example, for the overlapping area of ​​the four-way surround model images, the image fusion is performed using a gradient transparency value to quickly output a complete ambient light panoramic image under the current specified observation angle.

[0070] In some embodiments, mapping the image captured by the camera of the target perspective onto the hemispherical model to generate the second ambient light image can be specifically implemented as follows: based on the vehicle's driving speed, a local image to be mapped onto the hemispherical model is intercepted from the current image and historical images captured by the camera of the target perspective; and the local image is mapped onto the hemispherical model to generate the second ambient light image. In actual application, this process can be performed on a CPU.

[0071] Surround view cameras are usually installed around the vehicle, but there are generally no cameras that can capture images above the roof. In real situations, there is a lighting effect on the top of the vehicle. Therefore, we need to construct the image above the roof based on the surround view camera images around the vehicle. Because when the vehicle is moving, the front view camera of the vehicle will be able to capture the image above the roof, so the image above the vehicle can be spliced ​​through the historical images taken by the front view camera and / or the rear view camera of the vehicle. The speed of the vehicle determines the distance of the adjacent historical images and the distance the vehicle has moved, thereby determining which areas of the historical images are used for splicing the image above the roof.

[0072] In the process of mapping to obtain the second ambient light image, mapping operations can also be performed based on camera extrinsic parameters (camera installation position and angle) and camera intrinsic parameters (distortion parameters). The camera intrinsic parameter distortion correction is involved in the image stitching and mapping processes, and the extrinsic parameters are involved when generating the illumination model.

[0073] Since the images involved in the surround view model are all images directly captured by the camera deployed on the vehicle, there is no need to determine the historical images captured by the camera in the process of mapping the image to the surround view model to obtain the ambient light panoramic image.

[0074] S103: Based on the vehicle illumination reflection vector, the ambient light panoramic image is sampled to generate an ambient light map.

[0075] Among them, the vehicle light reflection vector is used to represent the reflection angle of the vehicle's surface to light; the ambient light map is used to represent the ambient light information reflected by the vehicle's surface.

[0076] Specifically, the electronic device first obtains the vehicle's light reflection vectors; these vectors usually come from the vehicle's 3D model, and each point or surface has its corresponding normal vector, so that the reflection direction can be determined.

[0077] The electronic device then prepares an ambient light panoramic image: This is usually a 360-degree panoramic image that represents the light environment around the vehicle. The electronic device calculates the intersection of the vehicle's lighting reflection vector and the ambient light panoramic image: For each point on the vehicle, the vehicle's lighting reflection vector is calculated based on its normal vector. The electronic device maps the reflection vector to the panoramic image and finds the corresponding pixel point. The electronic device samples the ambient light. On the panoramic image, the electronic device finds the pixel point based on the reflection vector and reads the color value of the point as the reflected light color. The electronic device generates an ambient light map. The electronic device stores the reflected light color of each point in a map. This map is the ambient light map. The ambient light map can be used for real-time rendering to simulate the ambient light reflected from the vehicle surface.

[0078] Considering performance, the ambient light map can be preprocessed, such as using mipmap technology to optimize the rendering effect at different distances.

[0079] In the real-time rendering process, the generated ambient light map is used to render the vehicle to simulate the real lighting effect.

[0080] Through the above steps, we can effectively use the vehicle's lighting reflection vector and panoramic environment image to generate high-quality ambient light map, thereby enhancing the realism and immersion of vehicle rendering.

[0081] S104: Rendering the vehicle model based on the ambient light map.

[0082] In specific implementation, the rendering method can adopt the image-based lighting (IBL) solution. The specific implementation process of this solution can be as follows Figure 8 As shown: First, the electronic device calculates the normal and reflected light direction of the vehicle model vertex, calculates the basic color of the vehicle model, sets the metalness, roughness and other parameters of the vehicle model material, samples the ambient light map, and then samples the bidirectional reflectance distribution function (BRDF) map, and finally outputs the calculated color. The BRDF map is a pre-calculated lookup table, which can be Fig. 9 shown.

[0083] Figure 3 The technical solution shown brings at least the following beneficial effects: the ambient light model includes a hemispherical model and a circular bottom surround model, including the ambient light sky scene, ground scene and vehicle surrounding scene, covering all angles of the vehicle, and realizing the global ambient light rendering of the vehicle. Even if the surround angle is changed, there will be no problem that the ambient light rendering cannot be realized at certain positions of the vehicle. On this basis, the images taken by the cameras at various viewing angles of the vehicle are mapped to the ambient light model to generate an ambient light panoramic image, which can ensure that the rendering of the vehicle model is based on the environment around the vehicle in real time, and has a stronger sense of reality.

[0084] The following describes the rendering method of the vehicle model provided by this application from the perspective of the overall process: like Fig.10 As shown, the electronic device first obtains the real-time images taken by each camera deployed on the vehicle. The electronic device also obtains the internal and external parameters of each camera, constructs an ambient light model, and then constructs an ambient light panoramic map, performs distortion correction on the fisheye image taken by the camera, and finally performs the ambient light rendering process of the vehicle model to obtain a rendered vehicle model.

[0085] When the vehicle model rendering process does not refer to the ambient light, the display effect of the vehicle model can be as follows Fig.11 As shown in the left figure in FIG. , after the vehicle model is rendered using the vehicle model rendering method of the present application, the display effect of the vehicle model can be as follows Fig.11 As shown in the right figure in , the vehicle model rendering method of the present application takes into account the display effect of the top of the vehicle.

[0086] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of the method. In order to achieve the above functions, it includes hardware structures and / or software modules corresponding to the execution of each function. It should be easy to realize that the technical goals in this field are combined with the units and algorithm steps of each example described in the embodiments disclosed in this article, and the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical goals can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0087] like Fig.12 As shown, the embodiment of the present application also provides a vehicle model rendering device, which is used in the vehicle model rendering method shown in the above method embodiment. The vehicle model rendering device 400 includes: an acquisition module 401 and a processing module 402.

[0088] Among them, the acquisition module is used to acquire images taken by multiple cameras with different perspectives configured for the vehicle; the processing module 402 is used to map the images taken by the multiple cameras to the ambient light model to generate an ambient light panoramic image; wherein the ambient light model includes a hemispherical model and a circular bottom surround view model, the hemispherical model is used to construct the ambient light sky scene, and the circular bottom surround view model is used to construct the ambient light ground scene and the scene around the vehicle body; the ambient light panoramic image is used to characterize the ambient light information around the vehicle; the processing module 402 is also used to sample the ambient light panoramic image based on the vehicle illumination reflection vector to generate an ambient light map; wherein the vehicle illumination reflection vector is used to characterize the reflection angle of the vehicle surface to the light; the ambient light map is used to characterize the ambient light information reflected by the vehicle surface; the processing module 402 is also used to render the vehicle model based on the ambient light map.

[0089] In one possible implementation, the processing module 402 is specifically used to: map images captured by multiple cameras onto a circular bottom surround view model to generate a first ambient light image; wherein the first ambient light image is used to characterize the ambient light information in the ground scene of the vehicle and the scene around the vehicle body; map the image captured by the camera of the target perspective onto a hemispherical model to generate a second ambient light image; wherein the target perspective includes a perspective that is the same as and / or opposite to the vehicle's forward direction; the second ambient light image is used to characterize the ambient light information in the sky scene of the vehicle; and splice the first ambient light image and the second ambient light image to generate an ambient light panoramic image.

[0090] In another possible implementation, the processing module 402 is specifically used to: based on the vehicle's driving speed, extract a local image to be mapped onto the hemispherical model from the current image and historical images taken by the camera from the target perspective; map the local image onto the hemispherical model to generate a second ambient light image.

[0091] In another possible implementation, the processing module 402 is specifically used to: determine the mapping relationship between the images taken by multiple cameras and the ambient light model based on the internal and external parameters of each of the multiple cameras; based on the mapping relationship between the images taken by multiple cameras and the ambient light model, map the images taken by multiple cameras to the ambient light model to generate an ambient light panoramic image.

[0092] In another possible implementation, the acquisition module 401 is also used to obtain the number of cameras configured for the vehicle, the parameters of the cameras, and the size of the vehicle; the processing module 402 is also used to adjust the model parameters of the circular bottom surround view model based on the number of cameras configured for the vehicle, the parameters of the cameras, and the size of the vehicle to generate a circular bottom surround view model.

[0093] It should be noted that Fig.12 The division of modules in the example is schematic and is only a logical function division. There may be other division methods in actual implementation. For example, two or more functions may be integrated into one processing module. The above integrated modules may be implemented in the form of hardware or software function modules.

[0094] Another embodiment of the present application also provides an electronic device, the electronic device includes a memory and a processor; the memory and the processor are coupled; the memory is used to store computer program code, and the computer program code includes computer instructions. When the processor executes the computer instructions, the electronic device executes each step performed by the electronic device in the method flow shown in the above method embodiment.

[0095] In actual implementation, the acquisition module 401 and the processing module 402 can be implemented by the processor of the electronic device calling the computer program code in the memory. The specific execution process can refer to the description of the vehicle model rendering method part above, which will not be repeated here.

[0096] Another embodiment of the present application further provides a computer-readable storage medium, which stores computer instructions. When the computer instructions are executed on a computer device, the computer device executes each step executed by the electronic device in the method flow shown in the above method embodiment.

[0097] In another embodiment of the present application, a computer program product is provided. The computer program product includes computer instructions. When the computer instructions are executed on a computer device, the computer device executes each step executed by the electronic device in the method flow shown in the above method embodiment.

[0098] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using a software program, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer execution instruction is loaded and executed on the computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instruction can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instruction can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that can be accessed by the computer or a data storage device such as a server, data center, etc. that contains one or more servers that can be integrated with the medium. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), etc.

[0099] The above is only a specific implementation of the present application. Those skilled in the art may conceive of changes or substitutions based on the specific implementation provided by the present application, which should all be included in the protection scope of the present application.

Claims

1. A method for rendering a vehicle model, characterized in that: The method comprises: Acquire images captured by multiple cameras with different viewing angles configured for the vehicle; Mapping the images captured by the multiple cameras to an ambient light model to generate an ambient light panoramic image; wherein the ambient light model includes a hemispherical model and a circular bottom surround view model, the hemispherical model is used to construct an ambient light sky scene, and the circular bottom surround view model is used to construct an ambient light ground scene and a vehicle body surrounding scene; the ambient light panoramic image is used to characterize the ambient light information around the vehicle; Based on the vehicle illumination reflection vector, the ambient light panoramic image is sampled to generate an ambient light map; wherein the vehicle illumination reflection vector is used to characterize the reflection angle of the vehicle surface to the illumination; and the ambient light map is used to characterize the ambient light information reflected by the vehicle surface; The vehicle model is rendered based on the ambient light map.

2. The method according to claim 1, characterized in that Mapping the images captured by the multiple cameras to an ambient light model to generate an ambient light panoramic image includes: Mapping the images captured by the multiple cameras onto the circular bottom surround view model to generate a first ambient light image; wherein the first ambient light image is used to characterize ambient light information in the ground scene of the vehicle and the scene around the vehicle body; Mapping an image captured by a camera of a target viewing angle onto the hemispherical model to generate a second ambient light image; wherein the target viewing angle includes a viewing angle that is the same as and / or opposite to the forward direction of the vehicle; and the second ambient light image is used to characterize ambient light information in a sky scene of the vehicle; The first ambient light image and the second ambient light image are stitched together to generate the ambient light panoramic image.

3. The method according to claim 2, characterized in that The step of mapping the image captured by the camera at the target viewing angle onto the hemispherical model to generate a second ambient light image includes: Based on the driving speed of the vehicle, extracting a local image to be mapped onto the hemispherical model from the current image and the historical image taken by the camera of the target perspective; The local image is mapped onto the hemispherical model to generate the second ambient light image.

4. The method according to claim 1, characterized in that: Mapping the images captured by the multiple cameras to an ambient light model to generate an ambient light panoramic image includes: Determining a mapping relationship between images captured by the multiple cameras and the ambient light model based on respective internal and external parameters of the multiple cameras; Based on the mapping relationship between the images captured by the multiple cameras and the ambient light model, the images captured by the multiple cameras are mapped to the ambient light model to generate an ambient light panoramic image.

5. The method according to claim 1, characterized in that The circular bottom surround view model is determined by: Acquire the number of cameras configured for the vehicle, the parameters of the cameras, and the size of the vehicle; Based on the number of cameras configured for the vehicle, the parameters of the cameras, and the size of the vehicle, the model parameters of the circular bottom surround view model are adjusted to generate the circular bottom surround view model.

6. A rendering device for a vehicle model, characterized in that: include: An acquisition module, used to acquire images taken by multiple cameras with different viewing angles configured for the vehicle; A processing module, used for mapping the images captured by the multiple cameras to an ambient light model to generate an ambient light panoramic image; wherein the ambient light model includes a hemispherical model and a circular bottom surround view model, the hemispherical model is used to construct an ambient light sky scene, and the circular bottom surround view model is used to construct an ambient light ground scene and a vehicle body surrounding scene; the ambient light panoramic image is used to characterize the ambient light information around the vehicle; The processing module is further used to sample the ambient light panoramic image based on the vehicle light reflection vector to generate an ambient light map; wherein the vehicle light reflection vector is used to represent the reflection angle of the vehicle surface to the light; and the ambient light map is used to represent the ambient light information reflected by the vehicle surface; The processing module is also used to render the vehicle model based on the ambient light map.

7. The device according to claim 6, characterized in that The processing module is specifically used to: map the images taken by the multiple cameras onto the circular bottom surround view model to generate a first ambient light image; wherein the first ambient light image is used to characterize the ambient light information in the ground scene and the scene around the vehicle body of the vehicle; map the image taken by the camera of the target perspective onto the hemispherical model to generate a second ambient light image; wherein the target perspective includes a perspective that is the same as and / or opposite to the forward direction of the vehicle; the second ambient light image is used to characterize the ambient light information in the sky scene of the vehicle; and splice the first ambient light image and the second ambient light image to generate the ambient light panoramic image; The processing module is specifically used to: based on the driving speed of the vehicle, intercept a local image to be mapped to the hemispherical model from the current image and the historical image taken by the camera of the target perspective; map the local image to the hemispherical model to generate the second ambient light image; The processing module is specifically used to: determine a mapping relationship between the images captured by the multiple cameras and the ambient light model based on the internal and external parameters of each of the multiple cameras; based on the mapping relationship between the images captured by the multiple cameras and the ambient light model, map the images captured by the multiple cameras to the ambient light model to generate an ambient light panoramic image; The acquisition module is also used to acquire the number of cameras configured for the vehicle, the parameters of the cameras, and the size of the vehicle; the processing module is also used to adjust the model parameters of the circular bottom surround view model based on the number of cameras configured for the vehicle, the parameters of the cameras, and the size of the vehicle to generate the circular bottom surround view model.

8. An electronic device comprising a memory, a processor and a computer program stored in the memory, characterized in that: The processor executes the computer program to implement the steps of the method according to any one of claims 1 to 5.

9. A computer-readable storage medium having computer instructions stored thereon, characterized in that: When the computer instruction is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.

10. A computer program product comprising computer instructions, characterized in that: When the computer instruction is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Parking guide method based on vehicle-mounted panoramic system

    CN107792179A

  • Method and system for supplementing panoramic image with sky

    CN108876729A

  • Vehicle-mounted 3D look-around splicing method and device based on artificial intelligence

    CN113870161A

  • Image generation method and device, electronic equipment and storage medium

    CN115578502A

  • Global illumination simulation method, device and equipment for panoramic image vehicle model and medium

    CN116485984A