Event camera physical characteristic simulation method and device
By establishing an event camera lens group description file and a three-dimensional scene model, the beam exit pupil condition is determined and a high-precision photocurrent is generated, which solves the problem of low detection accuracy of existing simulators in high-speed or low-light scenes, and achieves high-precision event data Improvements in simulation and signal fidelity.
Patent Information
- Application Number
- CN202411000125.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-24
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-07-24
AI Technical Summary
Existing event camera simulators have low detection accuracy in high-speed or low-light scenes, and the generated event data suffers from insufficient signal fidelity for wider applications.
By establishing the lens group description file of the target event camera, the pupil condition is calculated, and based on the three-dimensional scene model, it is judged whether the light beam is within the exit pupil condition. If so, it is converted into photocurrent, and a multispectral renderer and Monte Carlo integration are used to generate a high-resolution Accurate photocurrent is used to simulate electronic circuits, and the similarity of simulation results is evaluated using a spatiotemporal asynchronous event measurement method.
It achieves high-precision event data simulation in high-speed motion and low-light scenes, improves signal fidelity, and can provide highly realistic data for a variety of event camera vision tasks.
Smart Images

Figure CN118741084A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of camera simulation technology, and in particular to a method and device for simulating physical characteristics of an event camera. Background Art
[0002] Event cameras, or bio-inspired visual sensors, work in a fundamentally different way from traditional cameras. Instead of capturing intensity images at a fixed rate, event cameras respond to brightness changes as a series of asynchronous events. With the advantages of high temporal resolution, high dynamic range, low power consumption, and little redundancy, event cameras have been widely used in various computer vision tasks.
[0003] However, despite significant progress in the field of event-based vision, the training of deep learning methods still requires a large amount of simulated event data. Notably, the high cost and difficulty in deploying event cameras in high-speed or low-light scenarios limit the availability and scale of realistic datasets. Therefore, some event camera simulators attempt to generate large amounts of affordable and reliable event data.
[0004] There are two main categories of existing event camera simulators. One is optimization-based event camera simulators, which aims to design hand-crafted modules (i.e., methods based on mathematical mechanisms rather than neural networks) to generate event data. For example, From video frames to realistic DVS events (V2E, InCVPRW) converts intensity frames into event data through multiple hand-crafted modules. These event camera simulators directly treat three-channel videos as input and ignore the entire optical path in the real camera system. This may lead to the loss of optical information, which seriously affects the accuracy of the simulator. Although some schemes (such as Esim: an open event camerasimulator, Event camerasimulator improvements via characterized parameters) provide offline rendering support in three-dimensional scenes, they ignore the consideration of spectral data in the rendering module, and there is no concept of lens simulation, quantum efficiency, etc., which makes its accuracy less than ideal. The other category is learning-based event camera simulators, which is a learning-based event camera simulator. The scheme aims to generate event representations and directly improve the generalization ability of deep learning models in the target domain without relying on raw events. For example, EventGAN: Leveraging large scale image datasets for event cameras is an end-to-end neural network that directly converts images into event representations for downstream computer vision tasks. However, these simulators need to be retrained for different purposes and have limited generalization capabilities across different scenarios. In addition, the event representations generated by such simulators are not in the original signal domain, which has potential limitations for wider applications. Summary of the invention
[0005] The present invention provides a method and device for simulating the physical characteristics of an event camera, so as to solve the problem that traditional cameras are difficult to detect with high precision in high-speed motion, over-lighting and low-lighting scenes.
[0006] The first aspect of the present invention provides a method for simulating the physical characteristics of an event camera, comprising the following steps: establishing a description file of a lens group of a target event camera to select multiple sampling interval points; calculating the exit pupil condition of each sampling interval point, and generating the exit pupil condition on the entire straight line based on the exit pupil condition of each sampling interval point; based on a three-dimensional scene model obtained by modeling a target scene and the target event camera, determining whether a light beam of the target scene is within the exit pupil condition on the entire straight line, and if so, converting the light beam into a photocurrent, otherwise ignoring the light beam; and simulating the photocurrent using a sensor of the target event camera to obtain a three-dimensional simulation result of the light beam.
[0007] Optionally, the step of establishing a description file of the lens group of the target event camera to select a plurality of sampling interval points includes:
[0008] Establishing a description file of the lens group of the target event camera, wherein the description file includes the relative position, convexity, aperture size and curvature radius of each chip;
[0009] Based on the description file, the plurality of sampling interval points are uniformly selected on the direction plane of the light beam.
[0010] Optionally, the three-dimensional scene model obtained by modeling the target scene and the target event camera determines whether the light beam of the target scene is within the exit pupil condition on the entire straight line, and if so, converts the light beam into a photocurrent, otherwise ignores the light beam, including:
[0011] Based on the three-dimensional scene model, after the target lens group receives the light beam of the target scene, determining whether the light beam is within the exit pupil condition on the entire straight line;
[0012] If it is within the exit pupil condition on the entire straight line, the contribution of the light beam to the photocurrent is considered, and the light beam is traced using a multispectral renderer to generate a multispectral image, and the photocurrent is calculated based on the multispectral image and the preset quantum efficiency; otherwise, the light beam is ignored.
[0013] Optionally, calculating the photocurrent according to the multispectral image and a preset quantum efficiency includes:
[0014] When the multispectral image has a fixed number of channels, numerically integrating the multispectral image and a preset quantum efficiency to obtain the photocurrent;
[0015] In the case where the multispectral image is a discrete channel, a Monte Carlo algorithm is used to perform numerical integration calculation on the multispectral image and a preset quantum efficiency to obtain the photocurrent.
[0016] Optionally, it also includes:
[0017] The similarity between the three-dimensional simulation result and the three-dimensional true value result of the target event camera is evaluated using a spatiotemporal asynchronous event measurement method, wherein the spatiotemporal asynchronous event measurement method includes a block distance measurement and a Gaussian kernel distance measurement.
[0018] Optionally, the using a spatiotemporal asynchronous event measurement method to evaluate the similarity between the three-dimensional simulation result and the three-dimensional true value result of the target event camera includes:
[0019] Normalizing each component of the three-dimensional simulation result and the three-dimensional true value result to obtain a normalized three-dimensional simulation result and a normalized three-dimensional true value result;
[0020] Multiplying the two coordinate components, polarity component and time component of the normalized three-dimensional simulation result and the normalized three-dimensional true value result by a preset amplification value respectively to obtain a processed simulation four-dimensional point and a processed true value four-dimensional point;
[0021] Based on the spatiotemporal asynchronous event measurement method, a KD tree is established according to the processed simulation four-dimensional points and the processed true value four-dimensional points;
[0022] Traversing the KD tree to calculate the average distance between each point in the processed simulated four-dimensional point and the processed true four-dimensional point;
[0023] The similarity between the three-dimensional simulation result and the three-dimensional true value result is evaluated according to the average value of the distance between each point.
[0024] The second aspect of the present invention provides an event camera physical property simulation device, including: an establishment module, used to establish a description file of the lens group of the target event camera to select multiple sampling interval points; a generation module, used to calculate the exit pupil condition of each sampling interval point, and generate the exit pupil condition on the entire straight line according to the exit pupil condition of each sampling interval point; a conversion module, used to determine whether the light beam of the target scene is within the exit pupil condition on the entire straight line based on the three-dimensional scene model obtained by modeling the target scene and the target event camera, if it is within the exit pupil condition on the entire straight line, then convert the light beam into photocurrent, otherwise ignore the light beam; a simulation module, used to use the sensor of the target event camera to simulate the photocurrent to obtain a three-dimensional simulation result of the light beam.
[0025] A third aspect of the present invention provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the method for simulating the physical characteristics of an event camera as described in the above embodiment.
[0026] A fourth aspect of the present invention provides a computer program product, which implements the above-mentioned method for simulating physical characteristics of an event camera when the computer program / instructions are executed by a processor.
[0027] A fifth aspect of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, which, when executed by a processor, implements the above-mentioned method for simulating physical characteristics of an event camera.
[0028] The event camera physical property simulation method and device proposed in the embodiment of the present invention construct a physics-based full-link event simulator, which can generate highly realistic event streams by directly interfacing with three-dimensional scenes, and can provide data for various event camera vision tasks; a realistic lens simulation module is designed based on the physics-based renderer, and the quality and speed of rendering are improved by optimizing pupil sampling to obtain a more realistic spectral distribution on the chip; high-precision photocurrent is generated through quantum efficiency and Monte Carlo integration, so that more accurate event data can be obtained through subsequent electronic circuit simulation; two asynchronous spatiotemporal metrics are proposed to measure the distance between simulated events and original events, thereby proving that the simulation method of the embodiment of the present invention has high signal fidelity.
[0029] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0031] Figure 1 A flow chart of a method for simulating physical characteristics of an event camera provided by an embodiment of the present invention;
[0032] Figure 2 A schematic diagram of a specific implementation of the method for simulating physical characteristics of an event camera provided by an embodiment of the present invention;
[0033] Figure 3 A schematic diagram of exit pupil sampling provided by an embodiment of the present invention, wherein red represents light that cannot successfully reach the chip, and blue represents light that can reach the chip;
[0034] Figure 4A schematic diagram of a rotation scene test provided by an embodiment of the present invention;
[0035] Figure 5 A schematic diagram of a translation scene test provided by an embodiment of the present invention;
[0036] Figure 6 A block diagram of a device for simulating physical characteristics of an event camera provided by an embodiment of the present invention;
[0037] Figure 7 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0038] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.
[0039] The following describes a method and device for simulating physical characteristics of an event camera according to an embodiment of the present invention with reference to the accompanying drawings.
[0040] Figure 1 A schematic flow chart of a method for simulating physical characteristics of an event camera provided in an embodiment of the present invention.
[0041] like Figure 1 As shown, the event camera physical property simulation method includes the following steps:
[0042] In step S101 , a description file of a shot group of a target event camera is created to select a plurality of sampling interval points.
[0043] In step S102, the exit pupil condition at each sampling interval point is calculated, and the exit pupil condition on the entire straight line is generated according to the exit pupil condition at each sampling interval point.
[0044] In practical implementation, in computer graphics, real camera lens simulation imitates the behavior of an actual camera lens, typically using ray tracing to accurately simulate the paths of light rays through multiple lenses, taking into account the complexity of the lens system, including refraction at interfaces, and enhancing image quality by estimating the incident radiance along any ray.
[0045] Therefore, if Figure 2As shown, the embodiment of the present invention models a lens system with different elements, and tracks light through multi-spectral information, considering the interaction between light and the optical system until the light either leaves the optical system or is absorbed by the aperture or the lens housing. In order to reduce computational waste, the embodiment of the present invention performs pupil sampling before the actual simulation to pre-calculate the set of light that can be emitted. The definition of the pupil is slightly different from that in existing optics. The pupil defined in the embodiment of the present invention represents all directions of light emitted from the lens of the target event camera at a specific point on the sensor membrane (not just the center point on the membrane).
[0046] The sensor plane coordinates of the target event camera are represented as (u,v), and the pupil is a set of possible directions represented by points (x,y) on the direction plane. Each point (x,y) in the pupil corresponds to a unique direction. Therefore, the mathematical definition of the pupil can be expressed as:
[0047] Pupil(u,v)={(x,y)|Ray({u,v},{x,y})}
[0048] Pupil sampling is an algorithm to determine the correct pupil for each point on the sensor membrane. While general lens systems are challenging due to complex pupil shapes, the lens group of the target event camera usually has a central symmetric structure with a circular aperture. This makes it possible to simplify the pupil shape to an ellipse, which significantly simplifies pupil sampling. Therefore, the pupil of the embodiment of the present invention is approximated as:
[0049] Pupil(u,v)={(x,y)|{x,y}∈Elli(p,a,b)}
[0050] Among them, Elli is an ellipse on the plane, p is the center of the ellipse, a is the length of the semi-major axis of the ellipse, and b is the length of the semi-minor axis of the ellipse.
[0051] like Figure 3 As shown, by uniformly sampling points on the beam direction plane, the exit pupil of each sampling point on the sensor film is efficiently calculated, and the light generated in the pupil significantly improves the speed of lens system simulation. For other points, the exit pupil is determined by linear interpolation between the center of the ellipse and its major and minor axes. In summary, the embodiment of the present invention is the first to combine real lens simulation with target event camera simulation, which improves the authenticity of event camera simulation and makes the visual scene more realistic.
[0052] In some embodiments, a description file of a lens group of a target event camera is established to select a plurality of sampling interval points, including:
[0053] Establishing a description file of the lens group of the target event camera, wherein the description file includes the relative position, convexity, aperture size and curvature radius of each chip;
[0054] Based on the description file, multiple sampling interval points are uniformly selected on the direction plane of the light beam.
[0055] Specifically, blender software can be used to model the geometry and illumination information of the target scene and the position information of the target event camera at each time to obtain a three-dimensional scene model, which is used to subsequently determine whether the light beam of the target scene is within the exit pupil condition on the entire straight line; a lens description file is established according to information such as the relative position, convexity, aperture size, and curvature radius of each chip in the lens group of the target event camera; according to the description file, appropriate sampling interval points are selected on the sensor plane of the target event camera, and the exit pupil condition of each point is calculated, and then the exit pupil condition on the entire straight line is obtained by using an interpolation method. The embodiment of the present invention samples a total of 1024 times on the straight line.
[0056] In step S103, based on the three-dimensional scene model obtained by modeling the target scene and the target event camera, it is determined whether the light beam of the target scene is within the exit pupil condition on the entire straight line. If so, the light beam is converted into photocurrent, otherwise the light beam is ignored.
[0057] In some embodiments, based on the three-dimensional scene model obtained by modeling the target scene and the target event camera, it is determined whether the light beam of the target scene is within the exit pupil condition on the entire straight line. If it is within the exit pupil condition on the entire straight line, the light beam is converted into a photocurrent, otherwise the light beam is ignored, including:
[0058] Based on the three-dimensional scene model, after the target lens group receives the light beam of the target scene, it is determined whether the light beam is within the exit pupil condition on the entire straight line;
[0059] If it is within the exit pupil on the entire straight line, the contribution of the light beam to the photocurrent is considered, and the light beam is traced using a multispectral renderer to generate a multispectral image, and the photocurrent is calculated based on the multispectral image and the preset quantum efficiency, otherwise the light beam is ignored.
[0060] Specifically, based on the three-dimensional scene model, after the target lens group receives the light beam of the target scene, if the light beam is outside the exit pupil on the entire straight line, it will be ignored. If the light beam appears within the exit pupil on the entire straight line, the contribution of the light beam to the photocurrent will be considered, and the photocurrent of the light beam at the sensor chip will be calculated based on the refraction of light by the lens group.
[0061] In some embodiments, calculating the photocurrent according to the multispectral image and the preset quantum efficiency includes:
[0062] When the multispectral image has a fixed number of channels, the multispectral image and the preset quantum efficiency are numerically integrated to obtain the photocurrent;
[0063] When the multispectral image is a discrete channel, the Monte Carlo algorithm is used to perform numerical integration calculation on the multispectral image and the preset quantum efficiency to obtain the photocurrent.
[0064] It should be noted that the multispectral renderer converts the light signal received by the sensor of the target event camera into a photocurrent, which is usually adjusted for display convenience. However, the multispectral renderer is used in the embodiment of the present invention to detect photons of different frequencies in the sensor of the target event camera and then generate photocurrent through the photoelectric effect.
[0065] Existing simulation systems often use light forcing to estimate photocurrent, but actual photon receivers do not convert light of different frequencies into the same number of electrons, as revealed by the quantum efficiency curve. The absolute quantum efficiency is defined as:
[0066]
[0067]
[0068] Therefore, the embodiment of the present invention makes full use of the known spectral information and quantum efficiency to accurately estimate the photocurrent of the multi-spectral image, and directly calculates the photocurrent by converting the integral equation into a numerical summation formula. This method overcomes the limitations of the existing simulation system and ensures a more accurate representation of the photocurrent. The numerical integral solution formula is:
[0069] i p =C·∫λ·QE(λ)·L(λ)·dλ
[0070] Among them, i p is the photocurrent, C is a constant related to the unit and circuit constant, λ is the wavelength, QE is the relative quantum efficiency, and L is the spectral curve.
[0071] Since the numerical integration formula usually has no analytical solution when the multispectral image is a discrete channel, Monte Carlo integration is usually used to calculate the final photocurrent. The specific solution formula is:
[0072]
[0073] Among them, I N is the photocurrent calculated by sampling, N is the number of samples, λ k is the corresponding sampling point, p is the sampling probability function, and the sampling probability function is often pre-calculated using equally spaced sampling with a lower number of samples.
[0074] In this way, the embodiments of the present invention reduce the sources of error so that the main error comes only from the input spectrum. Therefore, the accuracy is significantly improved compared to the existing methods that directly use intensity. It is worth noting that with the advancement of rendering technology and the development of hyperspectral cameras, the error of this method is expected to be further reduced. In contrast, due to the large error in equivalent quantum efficiency, it is unlikely that the intensity method will see substantial improvement. In summary, by fusing spectral data and taking into account quantum efficiency, the embodiments of the present invention innovatively estimate the photocurrent, enhance the simulation, and more accurately represent the light signal conversion.
[0075] For example, the multispectral image on the chip obtained by multispectral rendering is first stored using exr, and opened and processed in python through openexr; for multispectral images with discrete channels, the Monte Carlo algorithm can be omitted, or only the pre-calculation process of Monte Carlo sampling can be used, and a fixed number of channels can be selected for simple numerical integration calculation to obtain the photocurrent, wherein the embodiment of the invention realizes a 31-channel spectral representation between 400 and 700. For continuous spectral representation, weights can be obtained by pre-calculation, and then Monte Carlo sampling is performed. The embodiment of the invention uses the built-in function of numpy to realize this process. For subsequent simulation processing of the generated photocurrent, any mature electronic circuit simulation device can be used. For example, ICNS, etc.
[0076] In step S104, the photocurrent is simulated using the sensor of the target event camera to obtain a three-dimensional simulation result of the light beam.
[0077] In some embodiments, it also includes: using a spatiotemporal asynchronous event measurement method to evaluate the similarity between the three-dimensional simulation results and the three-dimensional true value results of the target event camera, wherein the spatiotemporal asynchronous event measurement method includes a block distance measurement and a Gaussian kernel distance measurement.
[0078] In the actual implementation process, in order to measure the similarity between the simulated camera events and the original camera events, the embodiment of the present invention proposes two asynchronous spatiotemporal event metrics (i.e., block distance and Gaussian kernel distance), which are similar to the metric part in the iterative closest point task. The new set of metrics is as follows:
[0079]
[0080] d1(r,q)=||rq||2
[0081]
[0082] Among them, R and Q are two event data to be compared, r is an event in R, q is an event in Q, d1(r,q) is the measure of block distance, d2(r,q) is the measure of Gaussian kernel distance, e is the natural logarithm, and σ is an adjustable hyperparameter.
[0083] It should be noted that, compared with the neighborhood distance, the Gaussian distance shows relative stability to outliers, making it more robust to noise. However, its measurement results have a narrow range of variation, making it less distinguishable when evaluating multiple simulators at the same time, especially those with poor performance. Therefore, the embodiment of the present invention uses both the neighborhood distance and the Gaussian distance to perform a comprehensive and objective evaluation of the similarity between the three-dimensional simulation results and the three-dimensional true value results.
[0084] Specifically, since the units of various components of the input event data are different, each component of the three-dimensional simulation results and the three-dimensional true value results must first be normalized to eliminate the influence of different units and obtain the normalized three-dimensional simulation results and the normalized three-dimensional true value results.
[0085] Further, after the normalization process is completed, the two coordinate components, polarity components and time components of the normalized three-dimensional simulation results and the normalized three-dimensional true value results are multiplied by a preset amplification value to obtain a processed simulation four-dimensional point and a processed true value four-dimensional point, for example, the two coordinate components and the polarity component are multiplied by 100, and the time component is multiplied by 1000;
[0086] The processed simulated four-dimensional points and the processed true four-dimensional points are used as inputs of the spatiotemporal asynchronous event measurement method, a KD tree is constructed, and the KD tree is traversed to calculate the average distance between each point in the processed simulated four-dimensional points and the processed true four-dimensional points, and the similarity between the three-dimensional simulation results and the three-dimensional true results is evaluated based on the average distance between each point. Among them, the method of using the KD tree can greatly reduce the computational complexity.
[0087] In order to quantitatively evaluate the effectiveness of our method, we Figure 4 and Figure 5 In the embodiment of the present invention, the embodiment of the present invention is compared with three open source event camera simulators, and the simulation results of the three open source event camera simulators, the simulation results obtained by the embodiment of the present invention and the differences between the results obtained by taking pictures with a real EVK4 camera are compared.
[0088] Table 1
[0089]
[0090]
[0091] like Figure 4As shown in the figure, this set of rotating scene test experiments is a turntable under different speeds (60 / 360rpm) and lighting conditions (H: high, L: low), and the corresponding simulation results are shown. From left to right, they are the scene diagram, three benchmark methods, simulation results obtained by the embodiment of the present invention, and the true value obtained by the EVK4 camera.
[0092] like Figure 5 As shown in the figure, this set of translation scene test experiments is a translation checkerboard under different moving speeds (0.6 / 1m / s) and lighting conditions (H: high, L: low), and the corresponding simulation results are shown. From left to right, they are the scene diagram, three benchmark methods, simulation results obtained by the embodiment of the present invention, and the true value obtained by the EVK4 camera.
[0093] Through Table 1, Figure 4 and Figure 5 It can be seen that the event camera physical characteristics simulation method proposed by the present invention outperforms the three most advanced simulators in both quantitative and visual evaluation. More specifically, in terms of Gaussian index, the embodiment of the present invention averages 0.434, 0.236, and 0.208 compared with the methods (TODO) ESIM, V2E, and ICNS, respectively. At the same time, in terms of block index, the embodiment of the present invention reduces by an average of 48.749, 8.212, and 3.435 compared with ESIM, V2E, and ICNS. This is because the sensor models of V2E and ESIM are too simple, resulting in concentrated data distribution and lack of continuity in three-dimensional space. The event data of ESIM is completely concentrated on the timestamp of the input frame and lacks continuity, which is the main reason for its poor performance. Although ICNS has an advanced sensor model and supports scene input, the lack of this part of the algorithm leads to inaccurate event data generation.
[0094] In summary, the method for simulating physical characteristics of an event camera proposed in an embodiment of the present invention has the following beneficial effects:
[0095] (1) Build a physics-based full-link event simulator that can generate highly realistic event streams by directly interfacing with the 3D scene and can provide data for a variety of event camera vision tasks;
[0096] (2) A realistic lens simulation module is designed based on the physical renderer, and pupil sampling is optimized to improve the quality and speed of rendering, resulting in a more realistic on-chip spectral distribution.
[0097] (3) Generate high-precision photocurrent through quantum efficiency and Monte Carlo integration, so as to obtain more accurate event data through subsequent electronic circuit simulation;
[0098] (4) Two asynchronous spatiotemporal metrics are proposed to measure the distance between simulated events and original events, thereby proving that the simulation method of the embodiment of the present invention has high signal fidelity.
[0099] Next, the physical characteristic simulation device of an event camera according to an embodiment of the present invention will be described with reference to the accompanying drawings.
[0100] Figure 6 4 is a block diagram of a device for simulating physical characteristics of an event camera according to an embodiment of the present invention.
[0101] like Figure 6 As shown, the event camera physical characteristic simulation device 60 includes: an establishment module 601, a generation module 602, a conversion module 603 and a simulation module 604.
[0102] Among them, the establishment module 601 is used to establish the description file of the lens group of the target event camera to select multiple sampling interval points. The generation module 602 is used to calculate the exit pupil condition of each sampling interval point, and generate the exit pupil condition on the entire straight line according to the exit pupil condition of each sampling interval point. The conversion module 603 is used to determine whether the light beam of the target scene is within the exit pupil condition on the entire straight line based on the three-dimensional scene model obtained by modeling the target scene and the target event camera. If it is within the exit pupil condition on the entire straight line, the light beam is converted into a photocurrent, otherwise the light beam is ignored. The simulation module 604 is used to simulate the photocurrent using the sensor of the target event camera to obtain a three-dimensional simulation result of the light beam.
[0103] It should be noted that the aforementioned explanation of the embodiment of the method for simulating physical characteristics of an event camera is also applicable to the device for simulating physical characteristics of an event camera of this embodiment, and will not be repeated here.
[0104] The device for simulating physical characteristics of an event camera according to an embodiment of the present invention has the following beneficial effects:
[0105] (1) Build a physics-based full-link event simulator that can generate highly realistic event streams by directly interfacing with the 3D scene and can provide data for a variety of event camera vision tasks;
[0106] (2) A realistic lens simulation module is designed based on the physical renderer, and pupil sampling is optimized to improve the quality and speed of rendering, resulting in a more realistic on-chip spectral distribution.
[0107] (3) Generate high-precision photocurrent through quantum efficiency and Monte Carlo integration, so as to obtain more accurate event data through subsequent electronic circuit simulation;
[0108] (4) Two asynchronous spatiotemporal metrics are proposed to measure the distance between simulated events and original events, thereby proving that the simulation method of the embodiment of the present invention has high signal fidelity.
[0109] Figure 7 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. The electronic device may include:
[0110] A memory 701 , a processor 702 , and a computer program stored in the memory 701 and executable on the processor 702 .
[0111] When the processor 702 executes the program, the event camera physical characteristic simulation method provided in the above embodiment is implemented.
[0112] Furthermore, the electronic device further comprises:
[0113] The communication interface 703 is used for communication between the memory 701 and the processor 702 .
[0114] The memory 701 is used to store computer programs that can be executed on the processor 702 .
[0115] The memory 701 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0116] If the memory 701, the processor 702 and the communication interface 703 are implemented independently, the communication interface 703, the memory 701 and the processor 702 can be connected to each other through a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 7 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.
[0117] Optionally, in a specific implementation, if the memory 701, the processor 702 and the communication interface 703 are integrated on a chip, the memory 701, the processor 702 and the communication interface 703 can communicate with each other through an internal interface.
[0118] The processor 702 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention.
[0119] An embodiment of the present invention further provides a computer program product, and when the computer program / instructions are executed by a processor, the above-mentioned event camera physical characteristic simulation method is implemented.
[0120] An embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which implements the above-mentioned method for simulating physical characteristics of an event camera when the program is executed by a processor.
[0121] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or N embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0122] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "N" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0123] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or N executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present invention belong.
[0124] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or N wirings (electronic devices), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways as necessary and then storing it in a computer memory.
[0125] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above embodiment, the N steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. If implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0126] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0127] In addition, each functional unit in each embodiment of the present invention may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0128] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present invention have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present invention. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present invention.
Claims
1. A method for simulating physical characteristics of an event camera, characterized in that: The following steps are involved: Create a description file of the lens group of the target event camera to select multiple sampling interval points; Calculate the exit pupil condition at each sampling interval point, and generate the exit pupil condition on the entire straight line according to the exit pupil condition at each sampling interval point; Based on the target scene and the three-dimensional scene model obtained by modeling the target event camera, determine whether the light beam of the target scene is within the exit pupil condition on the entire straight line, if it is within the exit pupil condition on the entire straight line, convert the light beam into photocurrent, otherwise ignore the light beam; The photocurrent is simulated using a sensor of the target event camera to obtain a three-dimensional simulation result of the light beam.
2. The method for simulating physical characteristics of an event camera according to claim 1, characterized in that: The description file of establishing the lens group of the target event camera to select a plurality of sampling interval points includes: Establishing a description file of the lens group of the target event camera, wherein the description file includes the relative position, convexity, aperture size and curvature radius of each chip; Based on the description file, the plurality of sampling interval points are uniformly selected on the direction plane of the light beam.
3. The method for simulating physical characteristics of an event camera according to claim 1, characterized in that: The three-dimensional scene model obtained by modeling the target scene and the target event camera is used to determine whether the light beam of the target scene is within the exit pupil condition on the entire straight line, and if so, convert the light beam into a photocurrent, otherwise, ignore the light beam, including: Based on the three-dimensional scene model, after the target lens group receives the light beam of the target scene, determining whether the light beam is within the exit pupil condition on the entire straight line; If it is within the exit pupil condition on the entire straight line, the contribution of the light beam to the photocurrent is considered, and the light beam is traced using a multispectral renderer to generate a multispectral image, and the photocurrent is calculated based on the multispectral image and the preset quantum efficiency; otherwise, the light beam is ignored.
4. The method for simulating physical characteristics of an event camera according to claim 3, characterized in that: The calculating the photocurrent according to the multispectral image and the preset quantum efficiency comprises: When the multispectral image has a fixed number of channels, numerically integrating the multispectral image and a preset quantum efficiency to obtain the photocurrent; In the case where the multispectral image is a discrete channel, a Monte Carlo algorithm is used to perform numerical integration calculation on the multispectral image and a preset quantum efficiency to obtain the photocurrent.
5. The method for simulating physical characteristics of an event camera according to claim 1, characterized in that: Also includes: The similarity between the three-dimensional simulation result and the three-dimensional true value result of the target event camera is evaluated using a spatiotemporal asynchronous event measurement method, wherein the spatiotemporal asynchronous event measurement method includes a block distance measurement and a Gaussian kernel distance measurement.
6. The method for simulating physical characteristics of an event camera according to claim 5, characterized in that: The method of using the spatiotemporal asynchronous event measurement method to evaluate the similarity between the three-dimensional simulation result and the three-dimensional true value result of the target event camera includes: Normalizing each component of the three-dimensional simulation result and the three-dimensional true value result to obtain a normalized three-dimensional simulation result and a normalized three-dimensional true value result; Multiplying the two coordinate components, polarity component and time component of the normalized three-dimensional simulation result and the normalized three-dimensional true value result by a preset amplification value respectively to obtain a processed simulation four-dimensional point and a processed true value four-dimensional point; Based on the spatiotemporal asynchronous event measurement method, a KD tree is established according to the processed simulation four-dimensional points and the processed true value four-dimensional points; Traversing the KD tree to calculate the average distance between each point in the processed simulated four-dimensional point and the processed true four-dimensional point; The similarity between the three-dimensional simulation result and the three-dimensional true value result is evaluated according to the average value of the distance between each point.
7. An event camera physical characteristics simulation device, characterized in that: include: A building module is used to build a description file of a lens group of a target event camera to select a plurality of sampling interval points; A generating module, used for calculating the exit pupil condition of each sampling interval point, and generating the exit pupil condition on the entire straight line according to the exit pupil condition of each sampling interval point; A conversion module, for determining whether the light beam of the target scene is within the exit pupil condition on the entire straight line based on the target scene and the three-dimensional scene model obtained by the target event camera modeling, and if so, converting the light beam into a photocurrent, otherwise ignoring the light beam; The simulation module is used to simulate the photocurrent using the sensor of the target event camera to obtain a three-dimensional simulation result of the light beam.
8. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the method for simulating physical characteristics of an event camera as described in any one of claims 1 to 6.
9. A computer program product, characterized in that When the computer program / instruction is executed by a processor, the method for simulating the physical characteristics of an event camera as described in any one of claims 1 to 6 is implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: The program is executed by a processor to implement the event camera physical property simulation method as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Focus detection device, control method thereof, image capture apparatus and computer readable medium
CN107370939A
Infrared detector simulation image generation method and device
CN114758019A
High-speed clear pupil eye movement detection and tracking method and system based on event camera
CN116030527A
Multi-task multi-modal data simulation method and device
CN117934647A
Object tracking by event camera
US20230021408A1
