Event image output method and related device
By superimposing and denoising the event stream of the event camera, the problems of complex event image denoising, large delay, and low frame rate in the existing technology are solved, and high-quality event image output is achieved.
Patent Information
- Application Number
- CN202210504035.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-10
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2042-05-10
AI Technical Summary
Existing event camera image denoising technology has complex operations, large delays, and low frame rates, resulting in poor denoising effects.
By overlaying the cached event stream of the event camera, the binary values are summed for the same pixel position of the new event data in each frame, the number of event pixels is counted, and denoising is performed based on this number to generate denoised event data, and the final output Event images.
It improves the imaging quality of event images without reducing the frame rate, and reduces the calculation amount of denoising operations and image output delay.
Smart Images

Figure CN114885099B
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to an event image output method and related devices. Background Art
[0002] With the continuous development of science and technology, computer vision technology has become more and more mature. The emergence of event cameras has attracted more and more attention in the field of vision. It simulates the human retina and responds to the pixel pulses of brightness changes caused by movement. Therefore, it can capture the brightness changes of the scene at a very high frame rate, record events at specific time points and specific locations in the image, and form an event stream instead of a frame stream, thus solving the problems of traditional camera information redundancy, large-scale data storage and real-time processing.
[0003] However, the event camera provided in the related art does not have an asynchronous sensor, so the event images taken by the event camera usually contain a lot of noise. Noise filtering of event images is one of the important means to ensure image quality. The existing event image denoising technology generally has the defects of complex calculation, large delay and low frame rate, and the denoising effect is poor in practical applications. Summary of the invention
[0004] The embodiments of the present application provide an event image output method and related devices, which can at least solve the problems of complex calculations, large delays, and low frame rates existing in the event image denoising technology provided in the related art.
[0005] A first aspect of an embodiment of the present application provides an event image output method, which is applied to an event camera, comprising:
[0006] For each frame of new event data in the cached event stream, the binary values of the same pixel position of the event data of the target number of consecutive frames before the new event data are summed to obtain superimposed event data; wherein the binary value includes a first value and a second value, the first value is 1, indicating that an event has occurred in the pixel; the second value is 0, indicating that no event has occurred in the pixel;
[0007] Superimpose the values of the target pixel positions whose binary values in the new event data are the first values to the values of the corresponding pixel positions in the superimposed event data, and then count the number of event pixels in the first pixel arrays in the superimposed event data that include the target pixel positions;
[0008] De-noising the value of the target pixel position in the superimposed event data based on the number of pixels of each event to obtain intermediate event data, and then obtaining de-noised event data based on the intermediate event data;
[0009] An event image is output based on the denoised event data.
[0010] A second aspect of an embodiment of the present application provides an event image output device, which is applied to an event camera, including:
[0011] The superposition module is used to sum the binary values of the same pixel position of the event data of the target number of consecutive frames before the new event data for each frame of new event data in the cached event stream to obtain superposition event data; wherein the binary value includes a first value and a second value, the first value is 1, indicating that an event has occurred in the pixel; the second value is 0, indicating that no event has occurred in the pixel;
[0012] A statistical module, used for superimposing the values of the target pixel positions whose binary values in the new event data are the first values to the values of the corresponding pixel positions in the superimposed event data, and then counting the number of event pixels in the first pixel arrays in the superimposed event data that include the target pixel positions;
[0013] A denoising module, configured to perform denoising processing on the value of the target pixel position in the superimposed event data based on the number of pixels of each event, to obtain intermediate event data, and then obtain denoised event data based on the intermediate event data;
[0014] An output module is used to output an event image based on the denoised event data.
[0015] A third aspect of an embodiment of the present application provides an event camera, comprising: a memory and a processor, wherein the processor is used to execute a computer program stored in the memory, and when the processor executes the computer program, it implements each step of the event image output method provided in the first aspect of the embodiment of the present application.
[0016] The fourth aspect of the embodiments of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the event image output method provided in the first aspect of the embodiments of the present application are implemented.
[0017] As can be seen from the above, according to the event image output method and related devices provided by the scheme of the present application, for each frame of new event data in the cached event stream, the binary values of the same pixel position of the event data of the target number of consecutive frames before the new event data are summed to obtain superimposed event data; the values of the target pixel positions whose binary values in the new event data are the first values are respectively superimposed to the values of the corresponding pixel positions in the superimposed event data, and then the number of event pixels in the first pixel array including the target pixel position in the superimposed event data is counted; the values of the target pixel positions in the superimposed event data are denoised based on the number of each event pixel to obtain intermediate event data, and then denoised event data is obtained based on the intermediate event data; and the event image is output based on the denoised event data. Thus, the imaging quality of the event image is improved without reducing the frame rate, and it is helpful to reduce the computational complexity of the denoising operation and the image output delay. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 A basic flow chart of an event image output method provided in the first embodiment of the present application;
[0019] Figures 2a to 2d They are schematic diagrams of 4 frames of event data sequentially buffered from time t1 to time t4 provided in the first embodiment of the present application, Figure 2e A schematic diagram of superimposed event data provided in the first embodiment of the present application;
[0020] Figure 3 A schematic diagram of a first pixel array provided in the first embodiment of the present application;
[0021] Figure 4 A schematic diagram of denoising event data provided in the first embodiment of the present application;
[0022] Figure 5 A schematic diagram of a third pixel array provided in the first embodiment of the present application;
[0023] Figure 6 A detailed flow chart of an event image output method provided in the second embodiment of the present application;
[0024] Figure 7 A schematic diagram of a program module of an event image output device provided in a third embodiment of the present application;
[0025] Figure 8 This is a schematic diagram of the structure of an event camera provided in the fourth embodiment of the present application. DETAILED DESCRIPTION
[0026] In order to make the purpose, features, and advantages of the invention of this application more obvious and easy to understand, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.
[0027] In the description of the embodiments of the present application, it should be understood that the terms "length", "width", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc., indicating the orientation or position relationship, are based on the orientation or position relationship shown in the accompanying drawings, and are only for the convenience of describing the embodiments of the present application and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention.
[0028] 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 technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present application, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.
[0029] In the embodiments of the present application, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral one; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the embodiments of the present application can be understood according to the specific circumstances.
[0030] The above description is only a preferred embodiment of the present application and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present application should be included in the protection scope of the present application.
[0031] An event-based camera is a new type of image sensor that includes a pixel array consisting of multiple pixels. Each pixel works independently and an event is output only when the brightness change of a pixel reaches a certain threshold.
[0032] It should be noted that each pixel sensor in the pixel array of the event camera is an integrated circuit in which a photodiode can be integrated with a charge-collecting capacitor, which generates a photocurrent by the photodiode in response to the intensity of incident light and generates a real-time voltage in response to the photocurrent.
[0033] Then, after subtracting each real-time voltage from the preset reference voltage, each voltage difference is compared with the preset voltage threshold range, and a binary vector is generated for each pixel according to the comparison result. The binary vector is used to characterize whether the light signal becomes stronger, weaker, or unchanged. It should be noted that when the voltage difference exceeds the voltage threshold range, the generated binary vector is [1, 0] or [0, 1], where [1, 0] indicates that the pixel generates an UP event, and [0, 1] indicates that the pixel generates a DN event. These two binary vectors correspond to the same binary value 1. When the voltage difference does not exceed the voltage threshold range, the generated binary vector is [0, 0], indicating that the pixel does not generate an event, and the binary vector corresponds to the binary value 0.
[0034] Finally, the event polarity of the pixel with the event is embedded with the pixel coordinate position information and the timestamp information to generate event data, and an event image is output based on the acquired event data.
[0035] In order to solve the problems of complex calculation, large delay and low frame rate in the event image denoising technology provided in the related art, the first embodiment of the present application provides an event image output method, which is applied to an event camera, such as Figure 1 This is a basic flow chart of the event image output method provided in this embodiment. The event image output method includes the following steps:
[0036] Step 101: for each frame of new event data in the cached event stream, sum the binary values of the same pixel position of event data of a target number of consecutive frames before the new event data to obtain superimposed event data.
[0037] Specifically, in this embodiment, the binary value includes a first value and a second value, the first value indicates that an event has occurred in the pixel, and the second value indicates that no event has occurred in the pixel, preferably, the first value is 1, and the second value is 0. In this embodiment, the binary values of the same pixel position of different event data are summed, and then all pixel positions in the overall pixel array of the image sensor are assigned the values of the corresponding summation results to obtain superimposed event data.
[0038] It should be noted that the target frame number of this embodiment is the total number of event data frames of sequential continuity required for outputting the event image. In this embodiment, the target frame number is 3 for exemplary description. Figures 2a to 2d201, 202, 203 are schematic diagrams of four frames of event data sequentially cached from time t1 to time t4. The event data 201 cached at time t1 is the first frame of event data, and the event data 204 cached at time t4 is new event data. When executing the event data superposition process of this embodiment, the sum operation is performed on the three frames of event data 201, 202, and 203, respectively, to obtain the following: Figure 2e It should be noted that in Figures 2a to 2e In FIG. 1 , A, B, D, and E are exemplary pixel positions where events occur, and C is an exemplary pixel position where no event occurs.
[0039] In one implementation of this embodiment, the method further includes: acquiring the frequency of the noise signal and the frame rate of the image sensor of the event camera; and calculating the target frame number based on the frequency and the frame rate.
[0040] Specifically, in practical applications, the number of frames of event data to be merged can be flexibly selected according to actual needs, such as 3 frames, 5 frames, 10 frames, etc. Preferably, the number of frames N merged in this embodiment can take into account the frequency f of the noise and the frame rate F of the image sensor, and the frame number calculation formula can be expressed as N = F / f. Assuming that the noise is 50Hz and the frame rate is 150fps, then N is 3 frames, which can ensure that the number of merged frames contains one cycle of the noise.
[0041] Step 102: Superimpose the values of the target pixel positions whose binary values in the new event data are the first values onto the values of the corresponding pixel positions in the superimposed event data, and then count the number of event pixels in the first pixel arrays in the superimposed event data that include the target pixel positions.
[0042] Specifically, in this embodiment, the pixel position of the event generated in the new event data is used as a reference to locate the pixel position to be denoised in the superimposed event data, that is, for each pixel position of the first value in the new event data, it is mapped to the superimposed event data, and then the overall event generation situation of the area where the pixel position is located in the superimposed event data is counted, that is, the sum of all event pixels whose pixel values are not the second value in the pixel array composed of the pixel position and the nearby pixel positions is counted. It should be understood that the first pixel array of this embodiment is composed of the target pixel position and its neighborhood pixel positions. In actual applications, the pixel array can be a pixel array of regular shape or an irregular shape. The neighborhood size can also be flexibly set according to the actual application scenario, and this embodiment does not make a unique limitation on this.
[0043] In one implementation of the present embodiment, the step of counting the number of event pixels of the first pixel array including the target pixel position in the superimposed event data includes: in the overall pixel array corresponding to the superimposed event data, defining the first pixel array of the target size with the target pixel position as the center; and counting the number of event pixels of the first pixel array.
[0044] This embodiment uses the above Figure 2e Take the pixel position A in the figure as an example. Figure 3 A schematic diagram of a first pixel array provided in this embodiment, preferably the pixel array is demarcated according to a rule with the target pixel position as the center. Since the pixel position A in the superimposed event data is further superimposed with the value of the pixel position A of the new event data, the value of the event position is increased by 1 on the original basis. Figure 3 The size of the pixel array is 3*3, which can be flexibly adjusted according to the actual application. The number of event pixels in the pixel array is 6.
[0045] Step 103: De-noise the values of the target pixel positions in the superimposed event data based on the number of pixels of each event to obtain intermediate event data, and then obtain de-noised event data based on the intermediate event data.
[0046] Specifically, in this embodiment, the number of pixels of each event is compared with a preset second threshold. When the number of event pixels is less than the second threshold, the value of the target pixel position in the superimposed event data is set to the second value to obtain intermediate event data.
[0047] Continuing with the above example, if the second threshold is 5, since the number of event pixels is greater than or equal to the threshold, it means that the pixel position to be denoised is not a noise point, and the event generated by it is a valid event. On the contrary, if the number of event pixels is less than the threshold, the pixel position to be denoised is determined to be a noise point, and the event generated by it is a false event, which should be removed, that is, the original value of the pixel position in the superimposed event data is set to the second value, that is, the original value is reset to 0. For all pixel positions in the new event data where events are generated and the value is the first value, the above operation is performed at the corresponding pixel position of the superimposed event data, and all event pixels whose total number of neighborhood events is less than the threshold are filtered out to obtain intermediate event data.
[0048] In one implementation of the present embodiment, the above-mentioned step of obtaining denoised event data based on intermediate event data includes: at each pixel position of the intermediate event data where the value is not the second value, eliminating the binary value of the corresponding pixel position of the first frame event data in the event data of the continuous target frame number, to obtain the denoised event data.
[0049] Specifically, the present embodiment uses the target frame number N as the imaging unit of the event data frame, and in the process of obtaining the intermediate event data, all event pixels in the new event data are further superimposed on the superimposed event data, so that the intermediate event data actually includes the event information of the N+1 frame event data frame. Based on this, after obtaining the intermediate event data, the present embodiment obtains the non-0 pixel positions in the intermediate event data and the non-0 pixel positions of the first frame event data in the N frames of event data, respectively, and then takes the intersection of the two. For the pixel positions in the intermediate event data that are in the intersection, the value is subtracted by 1, so that the event information of the first frame event data contained in the intermediate event data can be eliminated to obtain the denoised event data.
[0050] Furthermore, in one implementation of the present embodiment, before the step of obtaining denoised event data by removing the binary values of the corresponding pixel positions of the first frame event data in the event data of the continuous target frame number from the pixel positions where the intermediate event data take values other than the second value, the step also includes: obtaining the total proportion of event noise points removed by the denoising process, and comparing the total proportion with a preset first threshold.
[0051] Correspondingly, if the total proportion is greater than or equal to the first threshold, the step of obtaining denoised event data is performed by eliminating the binary value of the corresponding pixel position of the first frame event data in the event data of the continuous target frame number at each pixel position where the intermediate event data takes a value other than the second value.
[0052] If the total proportion is less than the first threshold, a subtraction operation is performed on the pixel positions of each value of the intermediate event data that is not the second value to obtain denoised event data.
[0053] Specifically, when performing event elimination processing on intermediate event data, this embodiment can provide two implementation methods with different event elimination rates. In practical applications, the denoising rate of the denoising processing is firstly counted. If the denoising rate is high, the event points of the first frame event data are further eliminated for the event points in the intermediate event data. If the denoising rate is relatively low, a subtraction operation is performed on the values of all event points in the intermediate event data, and relatively more event points are eliminated, so as to further reduce the probability that potential noise points still exist in the denoised event data.
[0054] It should be noted that, since the number of frames of event information contained in the intermediate event data is greater than the number of frames required by the imaging unit, the image output frame rate is kept consistent with the required frame rate by eliminating the first frame event data. However, the technical means used to eliminate the first frame event data is to perform a subtraction operation on the corresponding non-0 pixel position in the intermediate event data with reference to the non-0 pixel position in the first frame event data. Its essence is to perform an event point elimination operation on the intermediate event data. In this embodiment, considering that the event point elimination operation with reference to the first frame event data requires an intersection to locate the pixel position in the intermediate event data to be subtracted by 1, the algorithm complexity is relatively high. Moreover, if the proportion of noise points in the aforementioned noise point filtering process is relatively low, potential noise points may still exist in the intermediate event data. Therefore, in order to achieve the purpose of eliminating one frame of event data, this embodiment directly performs a subtraction operation on all non-0 pixel positions in the intermediate event data, thereby achieving the consistency between the number of frames of event information contained in the intermediate event data and the number of frames required by the imaging unit, effectively reducing the algorithm complexity of the event point elimination operation, and improving the degree of filtering of potential noise points.
[0055] In one implementation of the present embodiment, after the above-mentioned step of denoising the value of the target pixel position in the superimposed event data based on the number of pixels of each event, it also includes: increasing and adjusting the array size of the first pixel array, and then returning to execute the step of counting the number of event pixels of the first pixel array including the target pixel position in the superimposed event data.
[0056] Specifically, in order to improve the denoising quality, the present embodiment can perform denoising on the event data multiple times, that is, after completing the previous denoising on the superimposed event data, the first pixel array is redefined for the target pixel positions that are not filtered out in the superimposed event data, and the size of the redefined first pixel array is larger than the array size of the previous denoising. For example, the array size defined by the previous denoising is 3*3, and the array size defined by the next denoising can be 5*5, and then the denoising process is re-executed. In actual applications, the number of repeated denoising can be flexibly set depending on the actual application scenario, and the present embodiment does not make a sole limitation on this.
[0057] In another implementation of the present embodiment, before the above-mentioned step of outputting an event image based on denoised event data, it also includes: dividing the overall pixel array of the denoised event data into multiple second pixel arrays; summing the values of all pixel positions in each second pixel array, assigning the summed result as the decimal value of the corresponding second pixel array, and obtaining combined event data in units of the second pixel array; summing all decimal values of the third pixel array including the second pixel array in the combined event data; and when the summed result is less than a third threshold, denoising the values of all pixel positions of the second pixel array in the denoised event data to obtain final denoised event data.
[0058] Specifically, in order to improve the denoising quality, the present embodiment adopts a multiple denoising method, wherein in the first denoising process, the denoising process is performed on a single pixel position as a unit, and in the second denoising process, the overall pixel array of the denoised event data is further divided into a plurality of second pixel arrays, such as Figure 4 FIG. 2 is a schematic diagram of denoised event data provided in this embodiment. The overall pixel array of denoised event data 206 includes 9*9 single pixel positions (eg Figure 4 A), and then a second pixel array of size 3*3 (e.g. Figure 4 2061) as a unit, the entire pixel array is divided into 3*3 second pixel arrays. Next, for each second pixel array, the sum of the values of all pixel positions is calculated to obtain the decimal value corresponding to each second pixel array. Figure 4 In the second pixel array 2061, the sum of the values of all pixel positions therein is 14, so the decimal value of the second pixel array is 14. Furthermore, taking the second pixel array as the denoising unit, the sum of the decimal values of the second pixel array to be denoised and the third pixel array of the second pixel array nearby (the pixel array includes the second pixel array to be denoised and its adjacent second pixel array) is counted, and the sum result is compared with a preset threshold. If it is less than the threshold, the second pixel array to be denoised is determined to be a noise block, and all pixel positions included therein are noise points, so that the values of all pixel positions in the second pixel array are set to the second value, all noise events in the noise block are filtered out, and secondary denoising is completed.
[0059] like Figure 5 FIG. 1 is a schematic diagram of a third pixel array provided in this embodiment. The third pixel array is composed of a second pixel array to be denoised and a second neighboring pixel array. In this embodiment, Figure 4 The second pixel array 2061 is used as the second pixel array to be denoised, and the second pixel array 2061 and the two second pixel arrays 2062 and 2063 adjacent to the lower and right sides thereof form a third pixel array, wherein the decimal value of the second pixel array 2061 is 14, the decimal value of the second pixel array 2062 is 2, and the decimal value of the second pixel array 2063 is 8, and the decimal sum of the three is 24. If the third threshold is 25, the decimal sum of the third pixel array where the second pixel array to be denoised is located is less than the third threshold, indicating that the event generated in the second pixel array 2061 is an invalid event, that is, a noise point, and the values of all pixel positions in the second pixel array 2061 of the denoised event data 206 need to be set to the second value, that is, reset to 0. That is, in this embodiment, after the first fine-grained denoising, further coarse-grained denoising is performed, which can effectively filter out some block noise and improve the denoising quality.
[0060] Step 104: output an event image based on the denoised event data.
[0061] Specifically, this embodiment uses the target number of frames as the frame unit to output denoised event data. In actual applications, the number of frames of event data in the continuously generated event stream may be much larger than the target number of frames, so multiple denoised event data will be generated. This embodiment can output multiple event images based on each denoised event data, or can output a single event image based on multiple frames of denoised event data. It should be noted that, unlike the related art that generates event images based only on the current frame event data, each denoised event data in this embodiment actually includes event information of the current frame and multiple frames of event data in the previous frame, so that the event image generated based on the denoised event data can improve the imaging quality of the event image without reducing the frame rate.
[0062] In one implementation of this embodiment, the step of outputting event images based on denoised event data includes: generating event images based on denoised event data at different times; and fusing all event images for output.
[0063] Specifically, this embodiment can generate an event image for each denoised event data acquired at different times, and then fuse all event images to obtain the final event image to be output, thereby outputting an event image with better integrity and higher resolution.
[0064] Based on the technical solution of the embodiment of the present application, for each frame of new event data in the cached event stream, the binary values of the same pixel position of the event data of the target number of consecutive frames before the new event data are summed to obtain superimposed event data; the values of the target pixel positions whose binary values in the new event data are the first values are respectively superimposed to the values of the corresponding pixel positions in the superimposed event data, and then the number of event pixels of the first pixel array including the target pixel position in the superimposed event data is counted; the values of the target pixel positions in the superimposed event data are denoised based on the number of each event pixel to obtain intermediate event data, and then denoised event data is obtained based on the intermediate event data; and the event image is output based on the denoised event data. Thus, the imaging quality of the event image is improved without reducing the frame rate, and it is helpful to reduce the computational complexity of the denoising operation.
[0065] Figure 6 The method in is a refined event image output method provided in the second embodiment of the present application, and the event image output method includes:
[0066] Step 601: For each frame of new event data in the cached event stream, the binary values of the same pixel position of event data of a target number of consecutive frames before the new event data are summed to obtain superimposed event data.
[0067] In this embodiment, the binary value includes a first value and a second value. The first value is 1, indicating that an event occurs in the pixel; the second value is 0, indicating that no event occurs in the pixel.
[0068] Step 602: Superimpose the values of the target pixel positions whose binary values in the new event data are the first values onto the values of the corresponding pixel positions in the superimposed event data, and then count the number of event pixels in the first pixel arrays in the superimposed event data that include the target pixel positions.
[0069] Specifically, this embodiment further superimposes the value of the corresponding position of the new event pixel data on the basis of the value of the target pixel position of the superimposed event data, that is, performs a plus 1 operation on the target pixel position of the superimposed event data, and then performs event pixel statistics. It should be understood that the event pixel of this embodiment refers to a pixel whose pixel position value is not 0.
[0070] Step 603: compare the number of pixels of each event with a preset threshold. When the number of event pixels is less than the threshold, set the value of the target pixel position in the superimposed event data to a second value to obtain intermediate event data.
[0071] In this embodiment, if the number of event pixels in the neighborhood of the target pixel position is less than the number threshold, the target pixel position to be denoised is determined to be a noise point, and the event generated by it is a false event, which should be removed.
[0072] Step 604 , at each pixel position of the intermediate event data having a value other than the second value, remove the binary value of the corresponding pixel position of the first frame event data in the event data of the continuous target number of frames to obtain denoised event data.
[0073] In this embodiment, the target frame number N is used as the imaging unit of the event data frame, and in the process of obtaining the intermediate event data, all event pixels in the new event data are further superimposed on the superimposed event data, so that the intermediate event data actually includes the event information of the N+1 frame event data frame. Based on this, after obtaining the intermediate event data, this embodiment needs to eliminate the first frame event data in the N frames of event data in the intermediate event data, and finally obtain the denoised event data.
[0074] Step 605: Divide the entire pixel array of the denoised event data into a plurality of second pixel arrays.
[0075] In this embodiment, in order to improve the denoising quality, multiple denoising methods can be used, wherein in the first denoising process, denoising is performed on a single pixel position basis, and in the second denoising process, the overall pixel array of the denoised event data is further divided into multiple second pixel arrays, and denoising is performed on a pixel array including multiple single pixels basis.
[0076] Step 606: sum the values of all pixel positions in each second pixel array, assign the sum result as the decimal value of the corresponding second pixel array, and obtain combined event data in units of the second pixel array.
[0077] Step 607: Sum all decimal values of the third pixel array including the second pixel array in the combined event data.
[0078] Step 608: When the sum result is less than the preset threshold, the values of all pixel positions in the second pixel array in the denoised event data are set to the second value to obtain the final denoised event data.
[0079] In this embodiment, the second pixel array is used as the denoising unit, the sum of the decimal values of the second pixel array to be denoised and the third pixel array adjacent to the second pixel array is counted, and the sum result is compared with a preset threshold value. If the sum result is less than the threshold value, the second pixel array to be denoised is determined to be a noise block, and all pixel positions included therein are noise points, so that the values of all pixel positions in the second pixel array are set to the second value, that is, set to 0, and all noise events in the noise block are filtered out to complete secondary denoising, which can effectively filter out some block noise and improve the denoising quality.
[0080] Step 609: Generate event images based on the denoised event data at different times, and then fuse all event images for output.
[0081] Specifically, for the event stream obtained by a single complete imaging cycle of the event camera, this embodiment generates a denoised event data for each event data whose frame number is after the target frame number in the event stream, and then generates an event image for each different denoised event data. Finally, all the event images are fused to obtain the final event image required to be output, thereby outputting an event image with better integrity and higher resolution.
[0082] It should be understood that the size of the serial number of each step in this embodiment does not mean the order of execution of the steps. The execution order of each step should be determined by its function and internal logic, and should not constitute a sole limitation on the implementation process of the embodiment of this application.
[0083] Figure 7The third embodiment of the present application provides an event image output device. The event image output device can be used to implement the event image output method in the above embodiment. Figure 7 As shown, the event image output device mainly includes:
[0084] The superposition module 701 is used to sum the binary values of the same pixel position of the event data of the target number of consecutive frames before the new event data for each frame of new event data in the cached event stream to obtain superimposed event data; wherein the binary value includes a first value and a second value, the first value is 1, indicating that an event has occurred in the pixel; the second value is 0, indicating that no event has occurred in the pixel;
[0085] A statistical module 702 is used to superimpose the values of the target pixel positions whose binary values in the new event data are the first values to the values of the corresponding pixel positions in the superimposed event data, and then count the number of event pixels in the first pixel arrays in the superimposed event data that include the target pixel positions;
[0086] A denoising module 703 is used to denoise the value of the target pixel position in the superimposed event data based on the number of pixels of each event to obtain intermediate event data, and then obtain denoised event data based on the intermediate event data;
[0087] The output module 704 is used to output an event image based on the denoised event data.
[0088] In some implementations of the present embodiment, when the denoising module executes the above-mentioned function of obtaining denoised event data based on intermediate event data, it is specifically used to: at each pixel position of the intermediate event data where the value is not the second value, eliminate the binary value of the corresponding pixel position of the first frame event data in the event data of the continuous target frame number, and obtain the denoised event data.
[0089] Furthermore, in some implementations of the present embodiment, the denoising module is specifically used to: obtain the total proportion of event noise points removed by the denoising process, and compare the total proportion with a preset first threshold; if the total proportion is greater than or equal to the first threshold, then at each pixel position where the intermediate event data takes a value other than the second value, the binary value of the corresponding pixel position of the first frame event data in the event data of the continuous target frame number is eliminated to obtain the denoised event data.
[0090] Furthermore, in some implementations of this embodiment, the denoising module is also used for: if the total proportion is less than a first threshold, subtracting 1 from the pixel position of each value of the intermediate event data that is not the second value to obtain denoised event data.
[0091] In some other implementations of the present embodiment, when the denoising module performs the above-mentioned function of denoising the value of the target pixel position in the superimposed event data based on the number of pixels of each event to obtain intermediate event data, it is specifically used to: compare the number of pixels of each event with a preset second threshold; when the number of event pixels is less than the second threshold, set the value of the target pixel position in the superimposed event data to the second value to obtain intermediate event data.
[0092] In some implementations of this embodiment, the event image output device further includes: an adjustment module, which is used to increase and adjust the array size of the first pixel array. Correspondingly, the statistical module is also used to re-execute the function of counting the number of event pixels of the first pixel array including the target pixel position in the superimposed event data after the adjustment module increases and adjusts the array size of the first pixel array.
[0093] In some implementations of this embodiment, the statistical module is also used to: divide the overall pixel array of the denoised event data into multiple second pixel arrays; sum the values of all pixel positions in each second pixel array, assign the sum result as the decimal value of the corresponding second pixel array, and obtain the combined event data in units of the second pixel array; sum all decimal values of the third pixel array including the second pixel array in the combined event data. The denoising module is also used to: when the sum result is less than the third threshold, denoise the values of all pixel positions of the second pixel array in the denoised event data to obtain the final denoised event data.
[0094] It should be noted that the event image output methods in the first and second embodiments can be implemented based on the event image output device provided in this embodiment. Ordinary technical personnel in the relevant field can clearly understand that for the convenience and conciseness of description, the specific working process of the event image output device described in this embodiment can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0095] According to the event image output device provided by the present embodiment, for each frame of new event data in the cached event stream, the binary values of the same pixel position of the event data of the target number of consecutive frames before the new event data are summed to obtain superimposed event data; the values of the target pixel position whose binary values in the new event data are the first values are respectively superimposed to the values of the corresponding pixel positions in the superimposed event data, and then the number of event pixels of the first pixel array including the target pixel position in the superimposed event data is counted; the value of the target pixel position in the superimposed event data is denoised based on the number of each event pixel to obtain intermediate event data, and then denoised event data is obtained based on the intermediate event data; and the event image is output based on the denoised event data.
[0096] Figure 8An event camera is provided in the fourth embodiment of the present application. The event camera can be used to implement the event image output method in the above-mentioned embodiment, mainly including:
[0097] The memory 801, the processor 802, and the computer program 803 stored in the memory 801 and executable on the processor 802, the memory 801 and the processor 802 are connected by communication. When the processor 802 executes the computer program 803, the method in the above-mentioned embodiment 1 or 2 is implemented. The number of processors can be one or more.
[0098] The memory 801 may be a high-speed random access memory (RAM) memory, or a non-volatile memory, such as a disk memory. The memory 801 is used to store executable program codes, and the processor 802 is coupled to the memory 801 .
[0099] Furthermore, the present application also provides a computer-readable storage medium, which may be disposed in the electronic device in the above embodiments. Figure 8 Memory in the illustrated embodiment.
[0100] The computer readable storage medium stores a computer program, and when the program is executed by the processor, the event image output method in the aforementioned embodiment is implemented. Furthermore, the computer storable medium can also be a U disk, a mobile hard disk, a read-only memory (ROM), a RAM, a magnetic disk or an optical disk, and other media that can store program codes.
[0101] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.
[0102] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0103] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.
[0104] If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or all or part of the technical solution, can be embodied in the form of a software product, which is stored in a readable storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned readable storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard drives, ROM, RAM, magnetic disks, or optical disks.
[0105] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described action sequence, because according to the present application, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0106] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0107] The above is a description of the event image output method and related devices provided by the present application. For technicians in this field, according to the ideas of the embodiments of the present application, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. An event image output method, applied to an event camera, characterized in that: The event image output method comprises: For each frame of new event data in the cached event stream, the binary values of the same pixel position of the event data of the target number of consecutive frames before the new event data are summed to obtain superimposed event data; wherein the binary value includes a first value and a second value, the first value is 1, indicating that an event has occurred in the pixel; the second value is 0, indicating that no event has occurred in the pixel; The values of the target pixel positions whose binary values in the new event data are the first values are respectively superimposed on the values of the corresponding pixel positions in the superimposed event data, and then the number of event pixels in the first pixel arrays including the target pixel position and its neighboring pixel positions in the superimposed event data is counted; wherein the pixel values of the event pixels are not the second values; Compare the number of pixels of each event with a preset second threshold; when the number of event pixels is less than the second threshold, set the value of the target pixel position in the superimposed event data to the second value to obtain intermediate event data; At each pixel position of the intermediate event data having a value other than the second value, removing the binary value of the corresponding pixel position of the first frame event data in the event data of the continuous target number of frames, to obtain denoised event data; An event image is output based on the denoised event data.
2. The event image output method according to claim 1, characterized in that: Before the step of removing the binary value of the corresponding pixel position of the first frame event data in the event data of the continuous target number of frames at the pixel positions of each value of the intermediate event data other than the second value to obtain the denoised event data, the step further includes: Obtaining a total proportion of event noise points removed by the denoising process, and comparing the total proportion with a preset first threshold; If the total proportion is greater than or equal to the first threshold, the step of obtaining denoised event data is performed by eliminating the binary values of the corresponding pixel positions of the first frame event data in the event data of the continuous target frame number at the pixel positions where the values of the intermediate event data are not the second value.
3. The event image output method according to claim 2, characterized in that: After the step of comparing the total proportion with a preset first threshold, the method further includes: If the total proportion is less than the first threshold, a subtraction operation is performed on each pixel position of the intermediate event data having a value other than the second value to obtain denoised event data.
4. The event image output method according to claim 1, characterized in that: After the step of setting the value of the target pixel position in the superimposed event data to the second value, the method further includes: The array size of the first pixel array is increased and adjusted, and then the step of counting the number of event pixels of the first pixel array including the target pixel position and its neighboring pixel positions in the superimposed event data is returned to be executed.
5. The event image output method according to any one of claims 1 to 4, characterized in that: Before the step of outputting the event image based on the denoised event data, the method further includes: dividing the entire pixel array of the denoised event data into a plurality of second pixel arrays; Sum the values of all pixel positions in each of the second pixel arrays, assign the sum result as the decimal value of the corresponding second pixel array, and obtain combined event data in units of the second pixel array; summing all of the decimal values of a third pixel array including the second pixel array in the combined event data; When the summation result is less than the third threshold, denoising is performed on the values of all pixel positions of the second pixel array in the denoised event data to obtain final denoised event data.
6. An event image output device, applied to an event camera, characterized in that: The event image output device comprises: The superposition module is used to sum the binary values of the same pixel position of the event data of the target number of consecutive frames before the new event data for each frame of new event data in the cached event stream to obtain superposition event data; wherein the binary value includes a first value and a second value, the first value is 1, indicating that an event has occurred in the pixel; the second value is 0, indicating that no event has occurred in the pixel; A statistical module, used for superimposing the values of the target pixel positions whose binary values in the new event data are the first values to the values of the corresponding pixel positions in the superimposed event data, and then counting the number of event pixels in the first pixel array including the target pixel position and its neighboring pixel positions in the superimposed event data; wherein the pixel value of the event pixel is not the second value; A denoising module is used to compare the number of pixels of each event with a preset second threshold; when the number of event pixels is less than the second threshold, the value of the target pixel position in the superimposed event data is set to the second value to obtain intermediate event data; at each pixel position of the intermediate event data whose value is not the second value, the binary value of the corresponding pixel position of the first frame event data in the event data of the continuous target frame number is eliminated to obtain denoised event data; An output module is used to output an event image based on the denoised event data.
7. An event camera, characterized in that: The device comprises a memory and a processor, wherein: The processor is used to execute the computer program stored in the memory; When the processor executes the computer program, the steps in the method according to any one of claims 1 to 5 are implemented.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps in the method according to any one of claims 1 to 5 are implemented.
