Method, apparatus and electronic device for obtaining virtual image

By using dynamic range test charts and benchmark calibration charts in a virtual simulation scene, the light intensity and color block light intensity are determined, and the image acquisition device is controlled to generate virtual images. This solves the problem of low accuracy in visual perception simulation in virtual simulation and achieves high-precision dynamic range testing and image quality improvement.

CN115775308BActive Publication Date: 2026-03-31NINGBO GEELY AUTOMOBILE RES & DEV CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-01
Publication Date
2026-03-31

AI Technical Summary

Technical Problem

In existing technologies, virtual simulation software has low visual perception simulation accuracy and high difficulty in dynamic range testing. Unreal Engine has difficulty simulating different light intensities and transmittances under backlight, resulting in a large gap between image quality and images captured by real cameras. There is also a lack of high-precision dynamic range testing methods.

Method used

By obtaining dynamic range test charts and benchmark calibration charts, the illumination intensity and color block illumination intensity are determined, the transmittance is simulated, and the image acquisition equipment is controlled to generate virtual images under different illumination intensities, ensuring that the transmittance meets the preset conditions and improving the simulation accuracy.

Benefits of technology

It enables high-precision dynamic range testing in virtual simulation scenarios, simulates real optical experimental environments, improves the imaging quality of image acquisition equipment, and ensures that the image quality is close to that of images acquired by real cameras.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115775308B_ABST
    Figure CN115775308B_ABST
Patent Text Reader

Abstract

An obtaining method, device and electronic equipment of a virtual image, the method comprising: obtaining a dynamic range test chart and a reference calibration chart, determining actual illumination intensities corresponding to respective illumination intensities based on the reference calibration chart, and determining color block illumination intensities corresponding to a plurality of sampling color blocks under respective illumination intensities based on the dynamic range test chart, determining analog transmittances corresponding to the plurality of sampling color blocks based on respective actual illumination intensities and respective color block illumination intensities under respective actual illumination intensities, and in response to the plurality of analog transmittances meeting a preset condition, controlling an image acquisition device to simulate virtual images corresponding to different illumination intensities. Through the above method, the analog transmittances corresponding to the plurality of sampling color blocks are determined based on the dynamic range test chart and the reference calibration chart, a plurality of virtual images simulated by the image acquisition device are obtained, and thus the dynamic range test method is determined.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of simulation technology, and in particular to a method, apparatus and electronic device for obtaining virtual images. Background Technology

[0002] With the development of simulation technology, there are more and more types of simulation software on the market. However, the simulation software on the market is still in the stage of low accuracy of visual perception simulation. For example, in the process of vehicle traffic simulation testing, the vehicle simulation model needs to collect virtual traffic conditions in the traffic simulation. The virtual vehicle camera in the vehicle simulation model will synthesize a series of traffic scene maps. However, because the traffic scene map synthesized in the virtual simulation process is significantly different from the image collected by the actual image acquisition device, the accuracy of visual perception simulation is low.

[0003] The process of visual perception simulation also involves dynamic range testing, a method for detecting virtual synthetic images. This testing is typically conducted using actual image acquisition equipment and in real-world laboratories. However, due to the difficulty in creating dynamic range test charts, and the fact that different gray levels have different transmittance densities, simulating and measuring transmittance densities at different gray levels in a virtual scene is even more challenging. Currently, visual perception simulation is implemented using Unreal Engine. However, the low realism of 3D scenes, ambient lighting, and camera physical models, coupled with the lack of effective methods to prove that virtual synthetic images achieve the quality of real images, makes it difficult for Unreal Engine to simulate the different transmittance under backlighting conditions. Therefore, the image quality of images acquired through visual perception simulation differs significantly from images captured by real cameras, resulting in a lack of high-precision dynamic range testing methods. Summary of the Invention

[0004] This application provides a method, apparatus, and electronic device for obtaining virtual images, used to determine a high-precision dynamic range test method.

[0005] In a first aspect, this application provides a method for obtaining a virtual image, the method comprising:

[0006] A dynamic range test chart and a reference calibration chart are obtained, wherein the dynamic range test chart is an electronic chart drawn based on the actual dynamic range chart in the virtual simulation, and the reference calibration chart is a chart used to detect the light intensity in the virtual simulation scene;

[0007] Based on the reference calibration chart, the actual light intensity corresponding to each light intensity is determined, and based on the dynamic range test chart, the color block light intensity corresponding to multiple sampled color blocks under each light intensity is determined.

[0008] Based on each actual light intensity and the light intensity of each color block under each actual light intensity, the simulated transmittance corresponding to each of the multiple sampled color blocks is determined respectively, wherein the simulated transmittance is the phenomenon of the incident light exiting the object after refraction.

[0009] In response to the multiple simulated transmittances meeting preset conditions, the image acquisition device is controlled to simulate virtual images corresponding to different light intensities.

[0010] Using the above method, the simulated transmittance of the sampled color block under different light intensities is determined based on the dynamic range test chart and the benchmark calibration chart. When the simulated transmittance meets the preset conditions, a virtual image can be determined, thereby determining the method for dynamic range testing.

[0011] In one possible design, obtaining the dynamic range test chart includes:

[0012] The first image card of the first gray level and the second image card of the second gray level are input into the preset model for fusion to obtain the fused image card;

[0013] The transmittance of each color block in the fusion chart is determined, and the fusion chart is used as a dynamic range test chart.

[0014] By using the methods described above, a dynamic range test chart is determined, which includes more grayscale color blocks, thereby ensuring the accuracy of the dynamic range test.

[0015] In one possible design, the actual illumination intensity corresponding to each illumination intensity is determined based on the reference calibration chart, and the illumination intensity of multiple sampled color patches corresponding to each illumination intensity is determined based on the dynamic range test chart, including:

[0016] Each light intensity is determined, and the actual light intensity corresponding to each light intensity is determined based on the reference calibration chart.

[0017] Multiple sampled color blocks in the dynamic range test chart are determined based on preset color block numbers;

[0018] The dynamic range test chart is used to detect the illumination intensity of the multiple sampled color blocks corresponding to each illumination intensity.

[0019] By using the above method, the illumination intensity of each sampled color block under different illumination intensities is determined, avoiding the need to detect all color blocks in the dynamic range test chart. Instead, sampling is performed on all color blocks, thereby improving the efficiency of virtual simulation.

[0020] In one possible design, in response to the plurality of simulated transmittances meeting preset conditions, including:

[0021] Calculate the transmittance difference between the simulated transmittance and the preset transmittance;

[0022] When the transmittance difference is determined to be within a preset transmittance range, the simulated transmittance is determined to meet the preset conditions.

[0023] After determining the simulated transmittance of the sampled color blocks using the above method, sampled color blocks that meet the preset conditions are selected, ensuring the accuracy of the obtained dynamic range test method.

[0024] In one possible design, the image acquisition device is controlled to simulate virtual images corresponding to different light intensities, including:

[0025] Determine the light intensity gradient corresponding to each light intensity;

[0026] The light intensity is adjusted according to the light intensity gradient, and the virtual images simulated by the image acquisition device under each light intensity are recorded respectively.

[0027] By using the above method, the light intensity is adjusted from high to low to avoid not obtaining the light intensity when the current image acquisition device is in exposure mode, and to ensure that the maximum light intensity that the image acquisition device can acquire is obtained.

[0028] Secondly, this application provides an apparatus for obtaining a virtual image, the apparatus comprising:

[0029] The module is used to obtain the dynamic range test chart and the benchmark calibration chart.

[0030] The determination module is used to determine the actual light intensity corresponding to each light intensity based on the reference calibration chart, and to determine the color block light intensity corresponding to multiple sampled color blocks under each light intensity based on the dynamic range test chart.

[0031] The simulation module is used to determine the simulated transmittance corresponding to the multiple sampled color blocks based on each actual light intensity and the light intensity of each color block under each actual light intensity, wherein the simulated transmittance is the outgoing phenomenon of incident light after refraction through the object.

[0032] The response module is used to control the image acquisition device to simulate virtual images corresponding to different light intensities in response to the multiple simulated transmittances meeting preset conditions.

[0033] In one possible design, the obtaining module is specifically used to input the first image card with the first gray level and the second image card with the second gray level into a preset model for fusion to obtain a fused image card, determine the transmittance corresponding to each color block in the fused image card, and use the fused image card as a dynamic range test image card.

[0034] In one possible design, the determining module is specifically used to determine each light intensity, and based on the reference calibration chart, determine the actual light intensity corresponding to each light intensity, determine multiple sampled color blocks in the dynamic range test chart based on preset color block numbers, and detect the color block light intensity corresponding to the multiple sampled color blocks under each light intensity based on the dynamic range test chart.

[0035] In one possible design, the response module is specifically used to calculate the transmittance difference between the simulated transmittance and the preset transmittance, and when the transmittance difference is within the preset transmittance range, to determine that the simulated transmittance meets the preset conditions.

[0036] In one possible design, the response module is further configured to determine the light intensity gradient corresponding to each light intensity, adjust the light intensity according to the light intensity gradient, and record the virtual image simulated by the image acquisition device under each light intensity.

[0037] Thirdly, this application provides an electronic device, comprising:

[0038] Memory, used to store computer programs;

[0039] When a processor executes a computer program stored in the memory, it implements the steps of the above-described method for obtaining a virtual image.

[0040] Fourthly, a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the above-described method for obtaining a virtual image.

[0041] For details on each of the above-mentioned aspects one through four, and the technical effects that each aspect may achieve, please refer to the above description of the technical effects that can be achieved for the first aspect or the various possible solutions in the first aspect. These details will not be repeated here. Attached Figure Description

[0042] Figure 1 A flowchart illustrating the steps of a method for obtaining a virtual image provided in this application;

[0043] Figure 2 A schematic diagram of the structure of a virtual image acquisition device provided in this application;

[0044] Figure 3 This is a schematic diagram of the structure of an electronic device provided in this application. Detailed Implementation

[0045] To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings. The specific operational methods in the method embodiments can also be applied to the device embodiments or system embodiments. It should be noted that in the description of this application, "multiple" is understood as "at least two". "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. A connected to B can represent: A and B directly connected, and A and B connected through C. Furthermore, in the description of this application, terms such as "first" and "second" are used only for distinguishing the purpose of description and should not be construed as indicating or implying relative importance or order.

[0046] In previous technologies, visual perception simulation was implemented based on Unreal Engine. However, due to the low realism of 3D scenes, ambient lighting, and camera physical models, as well as the lack of effective methods to prove that virtual synthesized images achieve the quality of real images, Unreal Engine has difficulty simulating the functions of different light intensities and transmittances under backlight. Therefore, the image quality of images obtained by visual perception simulation is significantly different from that of images captured by real cameras, resulting in a lack of high-precision dynamic range testing methods.

[0047] To address the problems described above, this application provides a method for obtaining virtual images. This method simulates the experimental environment for dynamic range testing in a virtual simulation scene and reproduces the real optical experimental environment through optical parameter adjustments, thereby completing the dynamic range testing project for camera imaging quality and obtaining a high-precision dynamic range testing method. The methods and apparatus described in this application are based on the same technical concept. Since the principles by which the methods and apparatus solve the problems are similar, embodiments of the apparatus and methods can be referred to interchangeably, and repeated details will not be elaborated further.

[0048] The embodiments of this application will now be described in detail with reference to the accompanying drawings.

[0049] Reference Figure 1 This application provides a method for obtaining a virtual image, which can achieve high-precision dynamic range testing. The implementation process of this method is as follows:

[0050] Step S1: Obtain the dynamic range test chart and the benchmark calibration chart.

[0051] This application embodiment aims to simulate a dynamic optical experiment in a fully virtual scene to obtain a dynamic range testing method. First, virtual devices need to be set up in the virtual scene, including image acquisition devices, devices providing light sources, etc. If the parameters of each virtual device in the virtual scene are adjusted to effective parameters, these effective parameters can ensure the smooth progress of the dynamic optical experiment. Since they are all devices in the virtual scene, it is necessary to obtain the position of the image acquisition device and the position of the image card. The image card is used to detect the light intensity of the light source in the virtual simulation. Then, the imaging screen of the image acquisition device is made to display the image card in full screen, ensuring that a high-precision dynamic range testing method can be obtained.

[0052] To simulate real-world visual perception scenarios and ensure the realism of dynamic optical experiments in virtual scenes, a dynamic range test chart is required. This dynamic range test chart is an electronic chart drawn based on an actual chart in the virtual simulation. All color blocks and their background colors in the dynamic range test chart can use 32-bit color depth, and all gray blocks are adjusted to white blocks so that the base color is white. The colored parts are set according to the color space (Red, Blue, Green, Alpha, RGBA). The values ​​of R, G, and B are between 0 and 1, and the value of A is between 0 and 1, accurate to 4 decimal places. A represents the value of the specified color transparency, where 0 represents completely opaque, 0.5000 represents semi-transparent, and 1 represents completely transparent.

[0053] It should be noted that the 32-bit color precision of the image editing software Photoshop is 0.0001, which cannot meet the requirements of the full 36 levels of transmittance precision. For example, the transmittance of the 1st level is 0.7311, the transmittance of the 23rd level is 0.0002, and the transmittance of the 36th level is 0.00000001. Therefore, it is necessary to use the A channel of two image cards. The first image card is used for the grayscale blocks 1-23, and the second image card is used for the grayscale blocks 24-36. The A channel values ​​of the grayscale blocks 24-36 of the second image card are magnified 10,000 times in Photoshop to make the transmittance accurate to 4 decimal places. Then, when calling the glowing material in Unreal Engine, it is divided by 10,000.

[0054] The transparency channel values ​​of the 36 grayscale blocks in the dynamic range test chart are calculated using transmittance. In this embodiment, the transparency channel values ​​can be adjusted based on the transmittance required in the dynamic range test chart, and the transparency channel can be used as the input of the emitted light intensity, thereby meeting the 36-level maximum dynamic range requirement of the dynamic range test chart.

[0055] Since the embodiments of this application are implemented in a virtual scene, and the virtual scene can be set up based on Unreal Engine, and since Unreal Engine tends to focus on subjective visual and aesthetic perspectives and lacks high-precision simulation of real physical levels, it is also necessary to determine the process of obtaining the dynamic range test chart. The specific process is as follows:

[0056] The first image card of the first gray level and the second image card of the second gray level are input into the preset model for fusion. The first image card can be gray level blocks 1-23, and the second image card can be gray level blocks 24-36. Further details are omitted here. The preset model can be a virtual engine. The brightness of each color block is calculated using the following formula:

[0057] Lfin = Lset * A

[0058] In the above formula, Lfin represents adjustable light intensity. The A channel value of each color block is used as the luminous intensity coefficient of the self-emissive material, that is, A represents the luminous intensity coefficient of the luminous material, Lset represents the luminous intensity of the color block, and the unit of Lfin is lumen or candela.

[0059] In this embodiment, the luminous intensity of the self-luminous material is used to simulate the light intensity transmitted by the actual graphic card and the level difference of different grayscale blocks. After the first graphic card and the second graphic card are input into Unreal Engine for fusion, a fused graphic card is obtained. The transmittance corresponding to each color block in the fused graphic card is determined by the above formula, and the fused graphic card is used as a dynamic range test graphic card.

[0060] After determining the dynamic range test chart, since different light intensities also need to be determined in the virtual simulation scene, a reference calibration chart is also needed. This reference calibration chart is used to detect the light intensity in the virtual simulation scene. In this embodiment, the reference calibration chart is a pure white block with 100% transmittance.

[0061] Based on the above description, dynamic range test charts and benchmark calibration charts were determined, ensuring that dynamic range test methods could be determined in virtual simulation scenarios.

[0062] Step S2: Determine the actual illumination intensity corresponding to each illumination intensity based on the reference calibration chart, and determine the color block illumination intensity corresponding to multiple sampled color blocks under each illumination intensity based on the dynamic range test chart.

[0063] After determining the dynamic range test chart and the baseline calibration chart, in order to record different light intensities in the virtual simulation, it is necessary to use the baseline calibration chart to test the actual light intensity for each time, and then use the dynamic range test chart for each time to determine multiple sampled color blocks corresponding to the preset color block number under each actual light intensity. Since the dynamic test chart contains 36 color blocks, the preset color block number can be 2, 4, 6, 7, or 8. In this embodiment, the preset color block number can be adjusted based on the actual virtual simulation situation, and the number of preset color block numbers can also be adjusted based on the actual virtual simulation situation. Here, we only use 5 color blocks as an example, so we will not elaborate further.

[0064] It should be noted that the luminous intensity Lset of the self-emissive material is increased, and the image of the image acquisition device is observed until the first grayscale color block of the dynamic range test chart is overexposed, that is, the brightness of the second grayscale color block just reaches 255. The image of the image acquisition device is 8-bit color depth. The light intensity corresponding to this overexposed state is recorded, and then the light intensity is reduced.

[0065] For example, the illumination intensity when the first gray level of the dynamic range test chart is in an overexposed state is 60,000 lux. The illumination intensity can be adjusted sequentially to 40,000 lux, 30,000 lux, 20,000 lux, and 10,000 lux. If the preset color block numbers of multiple sampled color blocks are 3, 1, 5, 6, and 7, the color block illumination intensity of each sampled color block under different illumination intensities is shown in Table 1.

[0066]

[0067]

[0068] Table 1

[0069] Table 1 above lists the color block illumination intensities corresponding to the three color blocks when the actual illumination intensity is 40000 lux. Under the same illumination intensity, the detected color block illumination intensities of each color block are different. This is just an example of three color blocks corresponding to one actual illumination intensity. For other illumination intensities and the color block illumination intensities of multiple color blocks corresponding to each illumination intensity, please refer to Table 1 above. No further explanation will be given here.

[0070] Using the above method, the light intensity of each sampled color block with different light intensities is determined, thus enabling the determination of different light intensities in virtual simulation based on the dynamic range test chart.

[0071] Step S3: Based on each actual light intensity and the light intensity of each color block under each actual light intensity, determine the simulated transmittance corresponding to each of the multiple sampled color blocks.

[0072] Based on the above description, the light intensity of each sampled color block under different actual light intensities has been determined. In order to determine the simulated transmittance of each sampled color block, which is the phenomenon of incident light exiting the object after refraction, the simulated transmittance of each sampled color block under each actual light intensity is determined. The simulated transmittance is the ratio of the color block light intensity to the actual light intensity.

[0073] Step S4: In response to the multiple simulated transmittances meeting preset conditions, control the image acquisition device to simulate virtual images corresponding to different light intensities.

[0074] After determining the simulated transmittance corresponding to each sampled color block under each actual illumination intensity, the transmittance difference between the simulated transmittance and the preset transmittance is determined. Then, it is determined whether the transmittance difference is within the preset transmittance range. If it is, the simulated transmittance can be determined to meet the preset conditions; if not, the simulated transmittance does not meet the preset conditions. It is necessary to identify the sampled color blocks that do not meet the preset conditions and adjust the transparency channel value of the sampled color blocks until the sampled color blocks meet the preset conditions.

[0075] After determining that the simulated transmittance of the sampled color patch meets the preset conditions, Unreal Engine controls the image acquisition device to simulate virtual images under each actual light intensity, thereby obtaining multiple virtual images.

[0076] Based on the above description, the actual light intensity and color block light intensity in the virtual simulation scene are tested using the dynamic range test chart and the benchmark calibration chart. By simulating the experimental environment of dynamic range testing in the virtual simulation scene and reproducing the real optical experimental environment through optical parameter adjustment, the dynamic range test project of camera imaging quality is completed, thereby obtaining a high-precision dynamic range test method.

[0077] Based on the same inventive concept, this application also provides a virtual image acquisition device, which implements the function of a virtual image acquisition method, referring to... Figure 2 The device includes:

[0078] Module 201 is used to obtain the dynamic range test chart and the benchmark calibration chart;

[0079] The determination module 202 is used to determine the actual light intensity corresponding to each light intensity based on the reference calibration chart, and to determine the color block light intensity corresponding to multiple sampled color blocks under each light intensity based on the dynamic range test chart.

[0080] Simulation module 203 is used to determine the simulated transmittance corresponding to the plurality of sampled color blocks based on each actual light intensity and the light intensity of each color block under each actual light intensity, wherein the simulated transmittance is the outgoing phenomenon of incident light after refraction through the object.

[0081] The response module 204 is used to control the image acquisition device to simulate virtual images corresponding to different light intensities in response to the plurality of simulated transmittances meeting preset conditions.

[0082] In one possible design, the obtaining module 201 is specifically used to input the first image card with the first gray level and the second image card with the second gray level into a preset model for fusion to obtain a fused image card, determine the transmittance corresponding to each color block in the fused image card, and use the fused image card as a dynamic range test image card.

[0083] In one possible design, the determining module 202 is specifically used to determine each light intensity, and based on the reference calibration chart, determine the actual light intensity corresponding to each light intensity, determine multiple sampled color blocks in the dynamic range test chart based on the preset color block sequence number, and detect the color block light intensity corresponding to the multiple sampled color blocks under each light intensity based on the dynamic range test chart.

[0084] In one possible design, the response module 204 is specifically used to calculate the transmittance difference between the simulated transmittance and the preset transmittance, and when the transmittance difference is within the preset transmittance range, to determine that the simulated transmittance meets the preset conditions.

[0085] In one possible design, the response module 204 is further configured to determine the light intensity gradient corresponding to each light intensity, adjust the light intensity according to the light intensity gradient, and record the virtual image simulated by the image acquisition device under each light intensity.

[0086] Based on the same inventive concept, this application also provides an electronic device that can realize the function of the aforementioned virtual image acquisition device. (Refer to...) Figure 3 The electronic device includes:

[0087] At least one processor 301 and a memory 302 connected to at least one processor 301. In this embodiment, the specific connection medium between the processor 301 and the memory 302 is not limited. Figure 3 The example shown is the connection between processor 301 and memory 302 via bus 300. Bus 300 is... Figure 3The connections between other components are indicated by thick lines and are for illustrative purposes only, not as limiting information. Bus 300 can be divided into address bus, data bus, control bus, etc., for ease of representation. Figure 3 The term 301 is represented by a single thick line, but this does not imply that there is only one bus or one type of bus. Alternatively, the processor 301 can also be called a controller; there is no restriction on the name.

[0088] In this embodiment, memory 302 stores instructions executable by at least one processor 301. By executing the instructions stored in memory 302, at least one processor 301 can execute a virtual image acquisition method described above. Processor 301 can implement... Figure 2 The functions of each module in the device shown.

[0089] The processor 301 is the control center of the device. It can connect to various parts of the control device through various interfaces and lines. By running or executing instructions stored in memory 302 and calling data stored in memory 302, the processor can perform various functions and process data, thereby monitoring the device as a whole.

[0090] In one possible design, processor 301 may include one or more processing units. Processor 301 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications, and the modem processor mainly handles wireless communication. It is understood that the modem processor may also not be integrated into processor 301. In some embodiments, processor 301 and memory 302 may be implemented on the same chip; in some embodiments, they may also be implemented on separate chips.

[0091] Processor 301 can be a general-purpose processor, such as a central processing unit (CPU), digital signal processor, application-specific integrated circuit, field-programmable gate array or other programmable logic device, discrete gate or transistor logic device, or discrete hardware component, capable of implementing or executing the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method for obtaining a virtual image disclosed in the embodiments of this application can be directly manifested as execution by a hardware processor, or execution by a combination of hardware and software modules within the processor.

[0092] Memory 302, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. Memory 302 may include at least one type of storage medium, such as flash memory, hard disk, multimedia card, card-type memory, random access memory (RAM), static random access memory (SRAM), programmable read-only memory (PROM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), magnetic storage, magnetic disk, optical disk, etc. Memory 302 can be any other medium capable of carrying or storing desired program code in the form of instructions or data structures that can be accessed by a computer, but is not limited thereto. In the embodiments of this application, memory 302 may also be a circuit or any other device capable of implementing storage functions for storing program instructions and / or data.

[0093] By designing and programming the processor 301, the code corresponding to the virtual image acquisition method described in the foregoing embodiments can be embedded into the chip, thereby enabling the chip to execute the code during runtime. Figure 1 The illustrated embodiment describes a step for obtaining a virtual image. How to design and program the processor 301 is a technique well-known to those skilled in the art and will not be described further here.

[0094] Based on the same inventive concept, embodiments of this application also provide a storage medium storing computer instructions that, when executed on a computer, cause the computer to perform a method for obtaining a virtual image as described above.

[0095] In some possible implementations, various aspects of the method for obtaining a virtual image provided by this application can also be implemented in the form of a program product, which includes program code that, when the program product is run on a device, causes the control device to perform the steps in the method for obtaining a virtual image according to various exemplary embodiments of this application described above.

[0096] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0097] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to this application. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations 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, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0098] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0099] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0100] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. Therefore, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application also intends to include such modifications and variations.

Claims

1. A method of obtaining a virtual image, characterized by, The method comprises the following steps: obtaining a dynamic range test chart and a reference calibration chart, wherein the dynamic range test chart is an electronic chart drawn based on an actual dynamic range chart in virtual simulation, and the reference calibration chart is a chart for detecting light intensity in a virtual simulation scene; determining actual light intensities corresponding to respective light intensities based on the reference calibration chart, and determining color block light intensities corresponding to respective color blocks under respective light intensities based on the dynamic range test chart; determining simulated transmittances corresponding to the respective color blocks based on respective actual light intensities and respective color block light intensities under the respective actual light intensities, wherein the simulated transmittance is a ratio of the color block light intensity to the actual light intensity; in response to the simulated transmittances meeting a preset condition, controlling an image acquisition device to simulate virtual images corresponding to different light intensities; wherein the step of controlling the image acquisition device to simulate virtual images corresponding to different light intensities comprises the following steps: determining light intensity gradients corresponding to respective light intensities; adjusting light intensities according to the light intensity gradients, and recording virtual images simulated by the image acquisition device under respective light intensities.

2. The method of claim 1, wherein, The step of obtaining the dynamic range test chart comprises the following steps: inputting a first chart with a first gray scale number and a second chart with a second gray scale number into a preset model for fusion to obtain a fused chart; determining transmittances corresponding to respective color blocks in the fused chart, and taking the fused chart as the dynamic range test chart.

3. The method of claim 1, wherein, The steps of determining actual light intensities corresponding to respective light intensities based on the reference calibration chart, and determining color block light intensities corresponding to respective color blocks under respective light intensities based on the dynamic range test chart comprise the following steps: determining respective light intensities, and determining actual light intensities corresponding to the respective light intensities based on the reference calibration chart; determining a plurality of sampling color blocks in the dynamic range test chart based on a preset color block serial number; detecting color block light intensities corresponding to the respective color blocks under the respective light intensities based on the dynamic range test chart.

4. The method of claim 1, wherein, The step of, in response to the simulated transmittances meeting a preset condition, comprises the following steps: calculating transmittance differences between the simulated transmittances and a preset transmittance; determining that the simulated transmittances meet the preset condition when the transmittance differences are within a preset transmittance range.

5. An apparatus for obtaining a virtual image, characterized by The method comprises the following steps: an obtaining module is configured to obtain a dynamic range test chart and a reference calibration chart; a determining module is configured to determine actual light intensities corresponding to respective light intensities based on the reference calibration chart, and determine color block light intensities corresponding to respective color blocks under respective light intensities based on the dynamic range test chart; a simulating module is configured to determine simulated transmittances corresponding to the respective color blocks based on respective actual light intensities and respective color block light intensities under the respective actual light intensities, wherein the simulated transmittance is a ratio of the color block light intensity to the actual light intensity. A response module is configured to control the image acquisition device to simulate a virtual image corresponding to each of different light intensities in response to the multiple simulated transmittances meeting the preset condition. The control of the image acquisition device to simulate the virtual image corresponding to each of different light intensities includes: determining a light intensity gradient corresponding to each of the light intensities; adjusting the light intensity according to the light intensity gradient, and recording the virtual image simulated by the image acquisition device under each of the light intensities.

6. The apparatus of claim 5, wherein, The obtaining module is specifically configured to input a first chart with a first gray scale number and a second chart with a second gray scale number into a preset model for fusion to obtain a fused chart, determine a transmittance corresponding to each color block in the fused chart, and determine the fused chart as a dynamic range test chart.

7. The apparatus of claim 5, wherein, The determining module is specifically configured to determine each of the light intensities, determine an actual light intensity corresponding to each of the light intensities based on the reference calibration chart, determine a plurality of sampling color blocks in the dynamic range test chart based on a preset color block serial number, and detect a color block light intensity corresponding to each of the plurality of sampling color blocks under each of the light intensities based on the dynamic range test chart.

8. An electronic device, comprising: Comprise: Memory for storing computer programs; The processor is configured to execute the computer programs stored in the memory to realize the method steps of any one of claims 1-4.

9. A computer-readable storage medium, characterized in that, The computer program stored in the computer readable storage medium is executed by the processor to realize the method steps of any one of claims 1-4.

Citation Information

Patent Citations

  • Method and device for adjusting camera parameters, storage medium and electronic equipment

    CN112532872A

  • Simulation image generation method and device and electronic equipment

    CN114299159A