A method and related device for eliminating image jello effect
By acquiring and processing the exposure time interval and event stream data of the image sensor, calculating and synthesizing instantaneous images, it solves the problem of insufficient frame rate improvement in the existing technology, effectively eliminates the jelly effect, and is suitable for a variety of image sensor configurations. .
Patent Information
- Application Number
- CN202211335568.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-28
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2042-10-28
AI Technical Summary
The existing method of increasing the image sensor frame rate to eliminate the jelly effect has application limitations, and the frame rate of most cameras can usually only support 60 frames, which cannot completely eliminate the time difference between row exposures.
By obtaining the overall exposure time interval collected by the APS image sensor and the target event stream data synchronously collected by the EVS image sensor, the instantaneous images of different rows of sub-APS images at the same world time are calculated, and the image after eliminating the jelly effect is synthesized.
This method does not need to rely on the hardware configuration of the APS image sensor, is widely applicable to image sensors with different configurations, improves the achievability of the jelly effect, and effectively eliminates the problem of image tilt and distortion.
Smart Images

Figure CN115734088B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of image processing technology, and in particular to a method for eliminating image rolling shutter effect and a related device. Background Art
[0002] The exposure modes of image sensors are divided into two modes: global shutter and rolling shutter. Global shutter mode refers to simultaneous exposure of all pixels, while rolling shutter mode refers to progressive scanning exposure. Compared with global shutter mode, the exposure time of rolling shutter mode can be longer, so the performance and noise control of rolling shutter mode will be better.
[0003] At present, most image sensors usually use rolling shutter exposure mode, which is limited by the time difference between the exposure start time of each row, which will cause the captured image to have problems such as tilt and distortion, that is, the jello effect. In the related art, the jello effect can be alleviated by increasing the frame rate of the image sensor. However, usually only some high-end cameras or professional cameras have image sensors with 120 or 240 frames. On the one hand, increasing the frame rate cannot absolutely eliminate the time difference between row exposures. On the other hand, the frame rate of most cameras currently can usually only support 60 frames. It can be seen that the jello effect elimination method of increasing the frame rate of the image sensor provided by the related art still has great application limitations. Summary of the invention
[0004] The embodiments of the present application provide a method and a related device for removing the rolling shutter effect of an image, which can at least solve the problem that the rolling shutter effect removal method for improving the frame rate of an image sensor provided in the related art has large application limitations.
[0005] A first aspect of an embodiment of the present application provides a method for eliminating rolling shutter effects in an image, comprising: obtaining an overall exposure time interval corresponding to an APS image to be processed acquired by an APS image sensor; obtaining target event stream data synchronously acquired by an EVS image sensor based on the overall exposure time interval; calculating instantaneous APS images of sub-APS images in different rows in the APS image to be processed at the same world time according to the target event stream data; and synthesizing a plurality of instantaneous APS images corresponding to the sub-APS images in different rows to obtain an APS image after eliminating the rolling shutter effects.
[0006] According to a second aspect of an embodiment of the present application, there is provided an apparatus for eliminating rolling shutter effect in an image, comprising: a first acquisition module for acquiring an overall exposure time interval corresponding to an APS image to be processed acquired by an APS image sensor; a second acquisition module for acquiring target event stream data synchronously acquired by an EVS image sensor based on the overall exposure time interval; a calculation module for respectively calculating instantaneous APS images of sub-APS images in different rows in the APS image to be processed at the same world time according to the target event stream data; and a synthesis module for synthesizing a plurality of instantaneous APS images corresponding to sub-APS images in different rows to obtain an APS image after eliminating rolling shutter effect.
[0007] A third aspect of an embodiment of the present application provides an electronic device, 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 image jello effect elimination method provided in the first aspect of the embodiment of the present application.
[0008] A fourth aspect of an embodiment 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, each step of the image jello effect elimination method provided in the first aspect of the embodiment of the present application is implemented.
[0009] As can be seen from the above, according to the image rolling shutter effect elimination method and related devices provided by the present application scheme, the overall exposure time interval corresponding to the APS image to be processed collected by the APS image sensor is obtained; based on the overall exposure time interval, the target event stream data synchronously collected by the EVS image sensor is obtained; according to the target event stream data, the instantaneous APS images of different rows of sub-APS images in the APS image to be processed at the same world time are calculated respectively; and multiple instantaneous APS images corresponding to different rows of sub-APS images are synthesized to obtain the APS image after the rolling shutter effect is eliminated. Through the implementation of the present application scheme, the rolling shutter effect removal processing of the APS image is performed with reference to the event stream data synchronously collected by the EVS image sensor during the exposure time of the APS image sensor, which does not need to rely on the hardware configuration of the APS image sensor itself, and can be widely used in the rolling shutter effect removal processing of APS image sensors with different configurations, thereby improving the feasibility of the rolling shutter effect removal processing. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] Figure 1 A schematic diagram of an application scenario provided in an embodiment of the present application;
[0011] Figure 2 A schematic diagram of the structure of an electronic device provided in one embodiment of the present application;
[0012] Figure 3A schematic diagram of the basic flow of a method for removing the image rolling effect provided by an embodiment of the present application;
[0013] Figure 4 A schematic diagram of rolling shutter exposure provided by an embodiment of the present application;
[0014] Figure 5 Another rolling shutter exposure schematic diagram provided by an embodiment of the present application;
[0015] Figure 6 A schematic diagram of a detailed process of a method for removing the image rolling effect provided in an embodiment of the present application;
[0016] Figure 7 A schematic diagram of a program module of a device for removing rolling shutter effect of an image provided by an embodiment of the present application. DETAILED DESCRIPTION
[0017] 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.
[0018] 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.
[0019] 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.
[0020] 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.
[0021] A method for removing rolling shutter effect of an image and a related device according to an embodiment of the present application will be described in detail below with reference to the accompanying drawings.
[0022] In order to solve the problem that the jello effect removal method provided in the related art to improve the frame rate of the image sensor has large application limitations, an embodiment of the present application provides an image jello effect removal method, which is applied to Figure 1 The scenario shown in the application scenario may include an APS (Active-Pixel Sensor) camera 101, an EVS (Event-based Vision Sensor) camera 102 and an electronic device 103.
[0023] It is worth mentioning that an active pixel sensor is a commonly used image sensor, in which each pixel sensor unit has a photodetector and at least one active transistor. In a metal oxide semiconductor (MOS) active pixel sensor, a MOS field effect transistor (MOSFET) is used as an amplifier. There are many types of APS, including the early NMOS APS and the more common complementary MOS (CMOS) APS. An event monitoring visual sensor is a new type of sensor that simulates the human retina and responds to pixel pulses with brightness changes due to motion. Therefore, it can capture brightness changes (that is, changes in light intensity) of a scene at an extremely high frame rate, record events at specific time points and specific locations in an image, and form an event stream rather than a frame stream, thereby solving problems such as information redundancy, large data storage volume, and large real-time processing volume of traditional cameras.
[0024] It should be noted that the APS image sensor and the EVS image sensor of this embodiment can be discrete image sensors or integrated image sensors. For the integrated image sensor, the overall photosensitive area of the integrated image sensor is divided into multiple sub-photosensitive areas, and the pixel arrays of the multiple sub-photosensitive areas correspond to the APS data mode and the EVS data mode respectively. Compared with multiple discrete sensor modules, the device volume of the sensor module is effectively compressed, which is more conducive to the miniaturization of the overall hardware architecture.
[0025] In addition, the electronic device 103 is various terminal devices with data processing functions, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, etc.
[0026] exist Figure 1 In the application scenario shown, the APS image can be collected by the APS image sensor 101 and the event stream data can be collected by the EVS image sensor 102, and then the two can send their collected data to the electronic device 103. The electronic device 103 executes the following image rolling shutter effect elimination method process for the received APS image to be processed and event stream data: first, the overall exposure time interval corresponding to the APS image to be processed is obtained; then, the target event stream data corresponding to the overall exposure time interval is obtained; next, according to the target event stream data, the instantaneous APS images of different rows of sub-APS images in the APS image to be processed at the same world time are calculated respectively; finally, multiple instantaneous APS images corresponding to different rows of sub-APS images are synthesized to obtain the APS image after the rolling shutter effect is eliminated.
[0027] like Figure 2 The figure is a schematic diagram of the structure of an electronic device provided by an embodiment of the present application. The electronic device mainly includes: a memory 201 and a processor 202, the number of the processor 202 can be one or more, the memory 201 stores a computer program 203 that can be run on the processor 202, the memory 201 and the processor 202 are in communication connection, and when the processor 202 executes the computer program 203, the process of the above-mentioned image jello effect elimination method is implemented.
[0028] It should be noted that the memory 201 can be a high-speed random access memory (RAM) memory or a non-volatile memory, such as a disk memory. The memory 201 is used to store executable program codes, and the processor 202 is coupled to the memory 201 .
[0029] An embodiment of the present application further provides a computer-readable storage medium, which may be disposed in the aforementioned electronic device. The computer-readable storage medium may be the aforementioned Figure 2 Memory in the illustrated embodiment.
[0030] The computer readable storage medium stores a computer program, and when the computer program is executed by the processor, the process of the aforementioned image jello effect removal method can be 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.
[0031] like Figure 3 The basic flow chart of the method for removing the image rolling effect provided by an embodiment of the present application is as follows: Figure 1 or Figure 2 The electronic device in the embodiment is executed, specifically comprising the following steps:
[0032] Step 301: Obtain an overall exposure time interval corresponding to an APS image to be processed acquired by an APS image sensor.
[0033] like Figure 4 FIG. 1 is a schematic diagram of a rolling shutter exposure provided by this embodiment. Figure 4 The mid-image height can be understood as the total number of exposure lines, e.g. Figure 4 The total number of exposure lines shown in is 12 lines. In practical applications, when the APS image sensor works in the rolling exposure mode, it exposes line by line within the preset overall exposure time interval, and collects a single frame of APS image as the APS image to be processed. It should be understood that the overall exposure time interval of this embodiment is defined by the exposure start time of the first line and the exposure end time of the last line.
[0034] In an optional implementation of the present embodiment, the step of obtaining the overall exposure time interval corresponding to the APS image to be processed acquired by the APS image sensor includes: calculating the exposure end time of the last row according to the single-row exposure time, the exposure time difference between adjacent rows, the exposure start time of the first row, and the total number of exposure rows of the APS image to be processed acquired by the APS image sensor; and limiting the overall exposure time interval corresponding to the APS image to be processed based on the exposure start time of the first row and the exposure end time of the last row.
[0035] The calculation formula for the end time of the last row exposure is expressed as:
[0036]
[0037] in, Indicates the end time of exposure of the last row, t ex Indicates the exposure time of a single line, t gap represents the exposure time difference between adjacent rows, It indicates the start time of the first line exposure, and h indicates the total number of exposure lines.
[0038] Please refer again Figure 4 It should be understood that the exposure start time of different rows is different. The exposure time difference between adjacent rows in this embodiment is the difference between the exposure start time of the previous row and the next row. Known, then the last row exposure termination time is calculated After that, the overall exposure time interval corresponding to the APS image to be processed can be obtained
[0039] Step 302: Acquire target event stream data synchronously collected by the EVS image sensor based on the overall exposure time interval.
[0040] Specifically, in practical applications, event data exists independently at a very high frame rate. Regardless of whether it is within the exposure time of the APS image sensor or not, as long as the light intensity (also understood as brightness) changes, the EVS image sensor will output event data. Therefore, this embodiment needs to align the APS image and event data streams, that is, to obtain specific event stream data corresponding to the overall exposure time interval of the APS image from all event data streams.
[0041] In this embodiment, the event stream data of the EVS image sensor is implemented based on the following formula description:
[0042]
[0043]
[0044] It should be understood that an event data is composed of (x, y, p, t), where x and y represent pixel coordinates, p represents event polarity, t represents timestamp, L(t) represents light intensity at time t, and c represents a specific threshold.
[0045] In practical applications, the EVS image sensor includes a pixel array composed of multiple pixels, each of which works independently and outputs an event only when the pixel detects that the light intensity change reaches a specific threshold. x,y (t 1 ))-log(L x,y (t 0 ))≥c, the EVS image sensor generates a positive event (i.e., UP event), p=1, indicating that the light intensity at the current moment is stronger than that at the previous moment; when log(L x,y (t 1 ))-log(L x,y (t 0 ))≤-c, the EVS image sensor generates a negative event (ie, a DN event), p = -1, indicating that the light intensity at the current moment is weaker than that at the previous moment; when -c≤log(L x,y (t 1 ))-log(L x,y (t 0 ))≤c, the EVS image sensor does not generate an event.
[0046] Step 303: Calculate the instantaneous APS images of sub-APS images in different rows in the APS image to be processed at the same world time according to the target event stream data.
[0047] like Figure 5 FIG. 1 is another rolling shutter exposure schematic diagram provided by this embodiment. In this embodiment, the world time (see Figure 5 Medium world ) is also the absolute time. Under the same universal time, since the exposure start time of different rows of sub-APS images is different, the corresponding relative time of different rows of sub-APS images under the same universal time is different.
[0048] In this embodiment, the single-row sub-APS image may be formulated as follows:
[0049]
[0050] Among them, B n represents the nth row of sub-APS image, and They represent the exposure start time and exposure end time of the nth row of sub-APS image, respectively, ex Indicates the exposure time of a single line, L n (t) represents the instantaneous APS image of the n-th row of sub-APS images at time t.
[0051] It should be noted that the single-line exposure time is set to t ex , the exposure time difference between adjacent rows is t gap , the exposure start time of row 0 is The exposure termination time is Then, the exposure start time of the nth row is The exposure ends at
[0052] In an optional implementation of the present embodiment, for each row of sub-APS images of the APS image to be processed, event integral data corresponding to each row of sub-APS images is determined according to the row exposure time interval and the target event stream data; and instantaneous APS images of different rows of sub-APS images at the same world time are calculated according to the event integral data corresponding to different rows of sub-APS images.
[0053] Specifically, in this embodiment, according to the row exposure start time and the row exposure end time of the row exposure time interval, the corresponding event polarity in the target event stream data is integrated to obtain the event integral data corresponding to each row of the sub-APS image; the integral calculation formula of this embodiment is expressed as:
[0054]
[0055] Among them, E n (t) represents the event integration data, p represents the event polarity, and They respectively represent the row exposure start time and row exposure end time of the n-th row sub-APS image.
[0056] It is worth noting that according to the above-mentioned formula description of the event stream data in this embodiment, it can be obtained that: log(L x,y (t 1 ) / L x,y (t 0 ))≈cp, then combined with the above integral calculation formula, we can further obtain:
[0057]
[0058]
[0059] Next, combining the above-mentioned single-row sub-APS image formula description of this embodiment, we can obtain:
[0060]
[0061]
[0062] make Then we can get:
[0063]
[0064]
[0065] Next, this embodiment uses a preset instantaneous image calculation formula to calculate instantaneous APS images of different rows of sub-APS images at the same world time according to the event integral data corresponding to the sub-APS images of different rows. The instantaneous image calculation formula is expressed as:
[0066]
[0067]
[0068]
[0069] in, Indicates the time at which the nth row of sub-APS images are in universal time The instantaneous APS image of B n represents the nth row of the APS image, E n (t) represents event integral data, and They represent the exposure start time and exposure end time of the nth row of sub-APS image, respectively, ex represents the single-line exposure time of the APS image to be processed, and c represents the comparison threshold value corresponding to the light intensity change of the EVS image sensor. as well as It is an intermediate quantity and has no real meaning.
[0070] Step 304: synthesize multiple instantaneous APS images corresponding to sub-APS images in different rows to obtain an APS image with the rolling shutter effect eliminated.
[0071] Specifically, for all rows of this embodiment, the instantaneous images of the same world time are calculated according to the instantaneous image calculation formula. Since all rows are sampled at the same time, there is no jello effect in the instantaneous images of different rows, that is, the jello effect is eliminated.
[0072] This embodiment further can obtain multiple APS images with the rolling shutter effect eliminated corresponding to different world times within the overall exposure time interval; synthesize the multiple APS images with the rolling shutter effect eliminated to obtain an overall APS image with the rolling shutter effect eliminated.
[0073] Figure 6 The method in is a refined method for removing the image rolling effect provided by an embodiment of the present application, and the method for removing the image rolling effect includes:
[0074] Step 601: Calculate the last row exposure termination time according to the single row exposure time, the exposure time difference between adjacent rows, the first row exposure start time and the total number of exposure rows of the APS image to be processed collected by the APS image sensor.
[0075] Specifically, the calculation formula for the last row exposure termination time in this embodiment is expressed as:
[0076]
[0077] in, Indicates the end time of exposure of the last row, t ex Indicates the exposure time of a single line, t gap represents the exposure time difference between adjacent rows, It indicates the start time of the first line exposure, and h indicates the total number of exposure lines.
[0078] Step 602: Based on the exposure start time of the first row and the exposure end time of the last row, the overall exposure time interval corresponding to the APS image to be processed is limited.
[0079] Step 603: Acquire target event stream data synchronously collected by the EVS image sensor based on the overall exposure time interval.
[0080] Step 604: for each row of sub-APS images of the APS image to be processed, an integral operation is performed on the corresponding event polarity in the target event stream data according to the row exposure start time and the row exposure end time of the row exposure time interval to obtain event integral data corresponding to each row of sub-APS images.
[0081] Specifically, the single-row sub-APS image of this embodiment is formulated as follows:
[0082]
[0083] Among them, B n represents the nth row of sub-APS image, and They represent the exposure start time and exposure end time of the nth row of sub-APS image, respectively, ex Indicates the exposure time of a single line, L n (t) represents the instantaneous APS image of the n-th row of sub-APS images at time t.
[0084] In addition, the integral operation formula of this embodiment is expressed as:
[0085]
[0086] Among them, E n (t) represents the event integration data, p represents the event polarity, and They respectively represent the row exposure start time and row exposure end time of the n-th row sub-APS image.
[0087] Step 605 : Calculate the instantaneous APS images of the sub-APS images of different rows at the same world time using a preset instantaneous image calculation formula according to the event integral data corresponding to the sub-APS images of different rows.
[0088] Specifically, the instantaneous image calculation formula of this embodiment is expressed as:
[0089]
[0090]
[0091]
[0092] in, Indicates the time at which the nth row of sub-APS images are in universal time The instantaneous APS image of B n represents the nth row of the APS image, E n (t) represents event integral data, and They represent the exposure start time and exposure end time of the nth row of sub-APS image, respectively, ex represents the single-line exposure time of the APS image to be processed, and c represents the comparison threshold value corresponding to the light intensity change of the EVS image sensor. as well as It is an intermediate quantity and has no real meaning.
[0093] Step 606: synthesize multiple instantaneous APS images corresponding to sub-APS images in different rows to obtain an APS image with the rolling shutter effect eliminated.
[0094] Step 607 , synthesize a plurality of APS images after the rolling shutter effect is eliminated corresponding to different world times within the overall exposure time interval to obtain an overall APS image after the rolling shutter effect is eliminated.
[0095] 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.
[0096] Figure 7 An image rolling effect removal device is provided in one embodiment of the present application. The image rolling effect removal device can be used to implement the image rolling effect removal method in the above-mentioned embodiment, and the image rolling effect removal device mainly includes:
[0097] The first acquisition module 701 is used to acquire the overall exposure time interval corresponding to the APS image to be processed acquired by the APS image sensor;
[0098] The second acquisition module 702 is used to acquire the target event stream data synchronously collected by the EVS image sensor based on the overall exposure time interval;
[0099] A calculation module 703 is used to calculate the instantaneous APS images of sub-APS images of different rows in the APS image to be processed at the same world time according to the target event stream data;
[0100] The synthesis module 704 is used to synthesize multiple instantaneous APS images corresponding to sub-APS images in different rows to obtain an APS image with the rolling shutter effect eliminated.
[0101] In some implementations of this embodiment, the first acquisition module is specifically used to: calculate the exposure termination time of the last row according to the exposure time of a single row of the APS image to be processed, the exposure time difference between adjacent rows, the exposure start time of the first row, and the total number of exposure rows acquired by the APS image sensor; based on the exposure start time of the first row and the exposure termination time of the last row, limit the exposure time interval corresponding to the APS image to be processed; the calculation formula of the exposure termination time of the last row is expressed as:
[0102]
[0103] in, Indicates the end time of exposure of the last row, t ex Indicates the exposure time of a single line, t gap represents the exposure time difference between adjacent rows, It indicates the start time of the first line exposure, and h indicates the total number of exposure lines.
[0104] In some implementations of this embodiment, the single-row sub-APS image is formulated as:
[0105]
[0106] Among them, B n represents the nth row of sub-APS image, and They represent the exposure start time and exposure end time of the nth row of sub-APS image, respectively, ex Indicates the exposure time of a single line, L n (t) represents the instantaneous APS image of the n-th row of sub-APS images at time t.
[0107] In some implementations of the present embodiment, the calculation module is specifically used to: determine, for each row of sub-APS images of the APS image to be processed, event integral data corresponding to each row of sub-APS images according to the row exposure time interval and the target event stream data; and calculate instantaneous APS images of different rows of sub-APS images at the same world time according to the event integral data corresponding to different rows of sub-APS images.
[0108] Furthermore, in some implementations of the present embodiment, the calculation module is specifically used to: perform an integration operation on the corresponding event polarities in the target event stream data according to the row exposure start time and the row exposure end time of the row exposure time interval to obtain event integral data corresponding to each row of sub-APS images; and calculate the instantaneous APS images of different rows of sub-APS images at the same world time using a preset instantaneous image calculation formula according to the event integral data corresponding to different rows of sub-APS images.
[0109] Among them, the integral operation formula is expressed as:
[0110]
[0111] Among them, E n (t) represents the event integration data, p represents the event polarity, and They respectively represent the row exposure start time and row exposure end time of the n-th row sub-APS image.
[0112] The instantaneous image calculation formula is expressed as:
[0113]
[0114]
[0115]
[0116] in, Indicates the time at which the nth row of sub-APS images are in universal time The instantaneous APS image of B n represents the nth row of the APS image, E n (t) represents event integral data, and They represent the exposure start time and exposure end time of the nth row of sub-APS image, respectively, ex represents the single-line exposure time of the APS image to be processed, and c represents the comparison threshold corresponding to the light intensity change of the EVS image sensor.
[0117] In some implementations of the present embodiment, the image rolling shutter effect elimination device also includes a third acquisition module, which is used to obtain multiple APS images after the rolling shutter effect is eliminated corresponding to different world times within the overall exposure time interval; accordingly, the synthesis module is also used to: synthesize the multiple APS images after the rolling shutter effect is eliminated to obtain the overall APS image after the rolling shutter effect is eliminated.
[0118] It should be noted that the image rolling shutter effect elimination methods in the aforementioned embodiments can all be implemented based on the image rolling shutter effect elimination device provided in this embodiment. Ordinary technicians in the relevant field can clearly understand that for the convenience and conciseness of description, the specific working process of the image rolling shutter effect elimination device described in this embodiment can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0119] Based on the technical solution of the above-mentioned embodiments of the present application, the APS image is processed to remove the jello effect by referring to the event stream data synchronously collected by the EVS image sensor during the exposure time of the APS image sensor. This does not need to rely on the hardware configuration of the APS image sensor itself, and can be widely used in the processing of removing the jello effect of APS image sensors with different configurations, thereby improving the feasibility of the processing of removing the jello effect.
[0120] It should be noted that the devices and methods disclosed in the several embodiments provided in this application 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.
[0121] 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.
[0122] 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.
[0123] 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.
[0124] 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.
[0125] 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.
[0126] The above is a description of the image jello effect removal 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 may 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. A method for eliminating the rolling shutter effect of an image, characterized in that: include: Obtaining the overall exposure time interval corresponding to the APS image to be processed acquired by the APS image sensor; Acquire target event stream data synchronously collected by the EVS image sensor based on the overall exposure time interval; According to the target event stream data, respectively calculating instantaneous APS images of sub-APS images of different rows in the APS image to be processed at the same world time; synthesizing a plurality of instantaneous APS images corresponding to the sub-APS images in different rows to obtain an APS image after eliminating the rolling shutter effect; The step of respectively calculating the instantaneous APS images of different rows of sub-APS images in the APS image to be processed at the same world time according to the target event stream data comprises: for each row of sub-APS images of the APS image to be processed, determining the event integral data corresponding to each row of sub-APS images according to the row exposure time interval and the target event stream data; respectively calculating the instantaneous APS images of different rows of sub-APS images at the same world time according to the event integral data corresponding to the sub-APS images in different rows; The step of calculating the instantaneous APS images of the sub-APS images in different rows at the same world time according to the event integral data corresponding to the sub-APS images in different rows respectively comprises: According to the event integral data corresponding to the sub-APS images in different rows, a preset instantaneous image calculation formula is used to calculate the instantaneous APS images of the sub-APS images in different rows at the same world time; The instantaneous image calculation formula is expressed as: in, Indicates the sub-APS image in row n in universal time The instantaneous APS image, B n represents the sub-APS image in the nth row, E n (t) represents the event integral data, and represent the row exposure start time and row exposure end time of the nth row of the sub-APS image, respectively, ex represents the single-line exposure time of the APS image to be processed, and c represents the comparison threshold value corresponding to the light intensity change of the EVS image sensor.
2. The method for eliminating the image rolling shutter effect according to claim 1, characterized in that: The step of determining the event integral data corresponding to each row of the sub-APS image according to the row exposure time interval and the target event stream data comprises: According to the row exposure start time and the row exposure end time of the row exposure time interval, an integral operation is performed on the corresponding event polarity in the target event stream data to obtain event integral data corresponding to each row of the sub-APS image; The integral operation formula is expressed as: Among them, E n (t) represents the event integration data, p represents the event polarity, and They respectively represent the row exposure start time and the row exposure end time of the n-th row of the sub-APS image.
3. The method for eliminating the image rolling shutter effect according to claim 1, characterized in that: The step of obtaining the overall exposure time interval corresponding to the APS image to be processed acquired by the APS image sensor comprises: Calculate the last row exposure termination time according to the single row exposure time of the APS image to be processed collected by the APS image sensor, the exposure time difference between adjacent rows, the first row exposure start time, and the total number of exposure rows; Based on the exposure start time of the first row and the exposure end time of the last row, an overall exposure time interval corresponding to the APS image to be processed is limited; The calculation formula of the last row exposure termination time is expressed as: in, represents the end time of exposure of the last row, t ex represents the single line exposure time, t gap represents the exposure time difference between adjacent rows, represents the exposure start time of the first row, and h represents the total number of exposure rows.
4. The method for eliminating the image rolling shutter effect according to claim 1, characterized in that: The formulation of the sub-APS image in a single row is: Among them, B n represents the sub-APS image in the nth row, and represent the row exposure start time and row exposure end time of the nth row of the sub-APS image, respectively, ex Indicates the exposure time of a single line, L n (t) represents the instantaneous APS image of the sub-APS image in the nth row at time t.
5. The method for removing rolling shutter effect of an image according to any one of claims 1 to 4, characterized in that: After the step of synthesizing the multiple instantaneous APS images corresponding to the sub-APS images in different rows to obtain the APS image after eliminating the jelly effect, the method further includes: Acquire a plurality of APS images after eliminating the rolling shutter effect corresponding to different world times within the overall exposure time interval; A plurality of APS images after the rolling shutter effect is eliminated are synthesized to obtain an overall APS image after the rolling shutter effect is eliminated.
6. A device for eliminating rolling shutter effect of an image, characterized in that: include: A first acquisition module is used to acquire an overall exposure time interval corresponding to an APS image to be processed acquired by an APS image sensor; A second acquisition module, configured to acquire target event stream data synchronously collected by the EVS image sensor based on the overall exposure time interval; A calculation module, used for respectively calculating instantaneous APS images of sub-APS images of different rows in the APS image to be processed at the same world time according to the target event stream data; A synthesis module, used for synthesizing a plurality of instantaneous APS images corresponding to the sub-APS images in different rows to obtain an APS image after eliminating the rolling shutter effect; The calculation module is specifically used to: determine, for each row of sub-APS images of the APS image to be processed, event integral data corresponding to each row of sub-APS images according to the row exposure time interval and the target event stream data; and calculate instantaneous APS images of the sub-APS images of different rows at the same world time using a preset instantaneous image calculation formula according to the event integral data corresponding to the sub-APS images of different rows respectively; The instantaneous image calculation formula is expressed as: in, Indicates the sub-APS image in row n in universal time The instantaneous APS image, B n represents the sub-APS image in the nth row, E n (t) represents the event integral data, and represent the row exposure start time and row exposure end time of the nth row of the sub-APS image, respectively, ex represents the single-line exposure time of the APS image to be processed, and c represents the comparison threshold value corresponding to the light intensity change of the EVS image sensor.
7. An electronic device, 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 of the method for removing the image rolling shutter effect described in any one of claims 1 to 5 are implemented.
8. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method for removing the image rolling shutter effect described in any one of claims 1 to 5 are implemented.
