Pixel data processing method, device and corresponding program
By employing multiple exposure times and iterative processing of images from standard sensors, the method generates real-time HDR video streams, addressing dynamic range limitations and artifacts, ensuring high-quality output at a lower cost.
Patent Information
- Application Number
- FR2021005800
- Authority / Receiving Office
- FR · FR
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-06-02
- Publication Date
- 2024-10-25
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing image capture devices struggle to produce high dynamic range (HDR) images in real-time due to limitations in dynamic range, leading to overexposed and underexposed areas, and the presence of artifacts, especially when capturing scenes with moving elements, which is costly and requires expensive processing.
A method utilizing at least two standard dynamic range (SDR) sensors with different exposure times, including short, intermediate, and long exposure times, to generate HDR images in real-time by iteratively processing images from dedicated memory zones and combining them to create an HDR video stream.
This approach effectively produces high-quality HDR video streams in real-time using standard, cost-effective sensors, maintaining the initial image production frequency and minimizing artifacts, while adapting to scene brightness variations.
Smart Images

Figure 00000023_0000 
Figure 00000023_0001 
Figure 00000024_0000
Abstract
Description
Title of the invention: Pixel data processing method, device and corresponding program Technical field
[0001] The field of the invention is that of image acquisition by means of capture devices such as mobile communication terminals, digital cameras, cameras, microscopes, etc. More specifically, the invention relates to a method of acquiring high dynamic range, or HDR, images.
[0002] It finds applications in particular, but not exclusively, in the field of cinema, video surveillance, air or road transport, non-destructive testing, in the medical field, or even in that of fundamental sciences such as physics, astronomy, etc. Prior art
[0003] The rendering performance of existing image capture devices is, mainly for economic reasons, limited by their narrow dynamic range. Consequently, when a scene to be captured, in the form of a still or video image, has strong contrasts, the image rendered by the capture device may have overexposed areas, in which the pixels of the image are saturated, corresponding to the very bright areas of the scene, and dark areas, with little or no visible detail, corresponding to the poorly lit areas of the scene.
[0004] To solve this problem and generate, from existing capture devices, high dynamic range images, called HDR images, a classic technique consists of combining several traditional images, called LDR ("Low Dynamic Range"), associated with different exposure times. The scene to be rendered is captured several times, by the same capture device, with different exposure times: short exposure times make it possible not to saturate the areas of the image with high brightness, and long exposure times make it possible to detect a useful signal in the areas with low brightness. The different LDR images obtained are then processed to extract from each of them the best represented parts of the image, and these different parts are combined to construct an HDR image of the scene. It is generally accepted that this method of generating HDR images is costly in terms of time and number of exposures to be carried out.It is therefore accepted that it is also not suitable for generating an HDR video sequence, due to its non-"real-time" nature: the processing times would be such that they would not allow an HDR image to be rendered in real time.
[0005] Furthermore, it is also accepted that when the scene to be photographed includes moving elements, these may occupy different positions in the various captured LDR images, which may lead to the appearance of artifacts during the generation of HDR images. These ghost effects can be corrected before the reconstruction of the HDR image, but at the cost of complex and expensive electronic processing. An algorithm for removing these artifacts is presented, for example, by Mustapha Bouderbane et al. in the article "Ghost artifact removal for real-time HDR video generation", Compas'2016: Parallelism / Architecture / System, Lorient, France, July 5-8, 2016.
[0006] However, the evolution of sensors embedded in image capture devices now allows them to operate in non-destructive reading mode, or NDRO for "Non Destructive Read Out". In this operating mode, the electrical charges accumulated by the photoelectric conversion elements of the sensor can be read, without it being necessary to reset them: it is therefore possible, during the exposure time of the sensor, to make several readings of the pixel signals, allowing the electrical charges to continue to accumulate, under the effect of the exposure of the sensor to light. The use of this non-destructive reading mode, which allows several readings of the signals associated with the pixels of the sensor during a single exposure time, offers an interesting solution, both to the problem of the time cost of previous methods of generating HDR images, and to the problem of the appearance of artifacts.Indeed, it is possible to generate a high dynamic image of a scene from several images obtained by several successive non-destructive readings of the sensor during the same exposure time.
[0007] Thus, patent document US 7,868,938 proposes a new type of image capture device, in which a first reader operates in destructive reading mode to read the charges accumulated by the photoelectric conversion elements of the sensor, by resetting the pixel signals after each reading, at the end of a standard exposure time, and a second reader operates in non-destructive reading mode to obtain several NDRO images associated with different short exposure times, i.e. shorter than the standard exposure time. The different NDRO images associated with short exposure times are used to predict whether certain pixels of the image obtained by the first reader will be saturated, due to overexposure of the corresponding parts of the scene to be photographed during the standard exposure time.If this is the case, an HDR image is generated in which the saturated pixels of the image obtained by the first reader at the standard exposure time are replaced by the corresponding unsaturated pixels extracted from an NDRO image associated with a shorter exposure time. This solution partially solves the exposure problems, especially in the direction or pixels. Overexposed pixels can be replaced by less exposed pixels, and the dynamic range of the resulting image is somewhat extended. However, this method remains too computationally intensive, does not correct underexposure problems and, above all, requires at least two readings: one destructive and the others non-destructive. Furthermore, the problem of the presence of artifacts is not resolved.
[0008] To resolve in particular the underexposure problems of patent document US 7,868,938, document FR3062009A1 proposes a technique which would make it possible to generate a less expensive wide dynamic range image, both in time and in computing power, and which would have the advantage of being adaptive. In this document, it is proposed to carry out several non-destructive readings of a single sensor, and to adapt the replacement of the pixels of a current image by pixels of a following image according to quality criteria. This method is indeed more efficient in terms of dynamic range width. On the other hand, this method does not allow for real-time restitution of the flow and still uses relatively significant resources, in particular at the level of signal / noise ratio calculations for determining exposure times.Furthermore, this method requires the use of a sensor that allows non-destructive reading, a sensor that is not widely available on the market and is significantly more expensive. For example, the method implemented in patent document FR3062009A1 requires the use of an NSC1201 sensor from New Imaging Technologies, and is therefore reserved for specific uses. Summary of the invention
[0009] The invention meets this need by proposing a method for generating a video stream comprising a set of high dynamic range images, called HDR video stream, from a plurality of standard dynamic range images obtained by reading at least two image sensors each having an image production rate, each sensor comprising a plurality of pixels arranged in matrix form, and each associated with a photoelectric conversion element making it possible to convert received light into electrical charges and to accumulate said electrical charges during a time of exposure to the light. According to the invention, such a method comprises a plurality of iterations of creating high dynamic range images comprising:
[0010] a determination of at least three sensor exposure times comprising: a short exposure time TC, a long exposure time TL and an intermediate exposure time TI, such as TCcTIcTL;
[0011] at least three iterations of a sensor reading, among said at least two sensors, delivering at least three successive images, as a function of said at least three sensor exposure times;
[0012] a recording, within at least three dedicated memory zones, of said at least three successive images, each memory zone being dedicated to a sensor exposure time among said at least three sensor exposure times;
[0013] a generation of a high dynamic range image from information extracted from said at least three successive images recorded respectively within said at least three dedicated memory zones;
[0014] adding said high dynamic range image to said HDR video stream.
[0015] Thus, using a reduced number of sensors it is possible to efficiently create a stream of high-quality HDR images, while maintaining the initial image production frequency of the sensors used.
[0016] According to a particular characteristic, said determination of said at least three sensor exposure times comprises a determination of the intermediate exposure time TI as a function of said short exposure time TC and of the long exposure time TL.
[0017] Thus, for each image, it is possible to quickly assign a satisfactory exposure time for the production of the HDR flow.
[0018] According to a particular characteristic, the short exposure time is calculated so that it produces, when reading a sensor among said at least two sensors, a standard dynamic range image of which a percentage of pixels saturated in white is less than a predetermined threshold.
[0019] According to a particular characteristic, the long exposure time is calculated so that it produces, when reading a sensor among said at least two sensors, a standard dynamic range image of which a percentage of pixels saturated in black is less than a predetermined threshold.
[0020] According to a particular characteristic the intermediate exposure time is obtained as the square root of the product of the short exposure time and the long exposure time.
[0021] According to a particular characteristic, the long exposure time is less than the image production rate of at least one of said sensors among said at least two sensors.
[0022] This ensures that the image rate produced remains constant, regardless of the exposure time.
[0023] According to a particular characteristic, the generation of a high dynamic range image of a current iteration of creation of a high dynamic range image is implemented from information extracted from at least three successive current images is implemented in parallel with said at least three iterations of a reading of sensors, among said at least two sensors, delivering to the least three successive images from the next iteration of creating a high dynamic range image.
[0024] According to a particular characteristic, the frame rate of the HDR stream is at least equal to the frame rate of at least one image sensor among said at least two image sensors.
[0025] According to a particular exemplary embodiment, the invention is in the form of a device, or a system, for generating a video stream comprising a set of high dynamic range images, called HDR video stream, from a plurality of standard dynamic range images obtained by reading at least two image sensors each having an image production rate, each sensor comprising a plurality of pixels arranged in matrix form, and each associated with a photoelectric conversion element making it possible to convert received light into electrical charges and to accumulate said electrical charges during a time of exposure to the light, characterized in that it comprises a calculation unit adapted to the implementation of the steps of the method for generating HDR video streams according to the method previously described.
[0026] According to a preferred implementation, the different steps of the methods according to the invention are implemented by one or more software or computer programs, comprising software instructions intended to be executed by a data processor of an execution device according to the invention and being designed to control the execution of the different steps of the methods, implemented at the level of a communication terminal, an electronic execution device and / or a control device, within the framework of a distribution of the processing operations to be carried out and determined by a scripted source code and / or a compiled code.
[0027] Consequently, the invention also relates to programs, capable of being executed by a computer or by a data processor, these programs comprising instructions for controlling the execution of the steps of the methods as mentioned above.
[0028] A program may use any programming language, and be in the form of source code, object code, or code intermediate between source code and object code, such as in a partially compiled form, or in any other desirable form.
[0029] The invention also relates to an information medium readable by a data processor, and comprising instructions of a program as mentioned above.
[0030] The information carrier may be any entity or device capable of storing the program. For example, the carrier may comprise a storage means, such as a ROM, for example a CD ROM or a microelectronic circuit ROM, or a magnetic recording means, for example a mobile medium (memory card) or a hard drive or SSD.
[0031] On the other hand, the information medium may be a transmissible medium such as an electrical or optical signal, which may be conveyed via an electrical or optical cable, by radio or by other means. The program according to the invention may in particular be downloaded from a network such as the Internet.
[0032] Alternatively, the information carrier may be an integrated circuit in which the program is incorporated, the circuit being adapted to execute or to be used in the execution of the method in question.
[0033] According to an exemplary embodiment, the invention is implemented by means of software and / or hardware components. In this regard, the term "module" may correspond in this document to a software component, a hardware component or a set of hardware and software components.
[0034] A software component corresponds to one or more computer programs, one or more sub-programs of a program, or more generally to any element of a program or software capable of implementing a function or a set of functions, according to what is described below for the module concerned. Such a software component is executed by a data processor of a physical entity (terminal, server, gateway, set-top-box, router, etc.) and is capable of accessing the hardware resources of this physical entity (memories, recording media, communication buses, electronic input / output cards, user interfaces, etc.).
[0035] In the same way, a hardware component corresponds to any element of a hardware assembly capable of implementing a function or a set of functions, as described below for the module concerned. It may be a programmable hardware component or one with an integrated processor for executing software, for example an integrated circuit, a smart card, a memory card, an electronic card for executing firmware, etc.
[0036] Each component of the system described above of course implements its own software modules.
[0037] The different embodiments mentioned above can be combined with each other for implementing the invention. Presentation of the drawings
[0038] Other characteristics and advantages of the invention will appear more clearly on reading the following description of a preferred embodiment, given as a simple illustrative and non-limiting example, and the appended drawings, among which:
[0039] [Fig-1] [Fig. 1] schematically describes the method implemented;
[0040] [Fig.2] [Fig.2] describes two situations of processing pixel data from the sensors to produce an HDR stream with a frame rate equivalent to the frame rate of SDR sensors;
[0041] [Fig.3] [Fig.3] illustrates an architecture of a device capable of implementing a method which is the subject of the disclosure;
[0042] [Fig.4] [Fig.4] illustrates the parallel implementation of the process which is the subject of the di popularization. Description of the embodiments
[0043] As previously stated, the method for producing an HDR video stream of the disclosure comprises combining, from at least three SDR video streams, the images composing these SDR streams. Indeed, since an SDR camera is not capable of capturing the entire dynamic range of the scene, it inevitably loses details in the dimly lit areas (saturated pixels in the black) and in the brightly lit areas (saturated pixels in the white). The data thus acquired are then more difficult to exploit by artificial vision applications. There is therefore a strong need for cameras with an extended dynamic range that can be used in various application fields (e.g. video surveillance, autonomous vehicles or industrial vision), at a lower cost than existing solutions and which can produce an HDR stream in real time.
[0044] The method developed by the inventors aims to address this problem. It is more particularly based on the use of standard, inexpensive sensors and on the implementation of suitable management of a temporary storage memory for pixel data from these sensors, this memory playing a pivotal role in synchronization between real-time acquisition and production, also in real time. More particularly, according to the disclosure, at least two sensors are used in parallel, these two sensors making it possible to generate, simultaneously, two images, which are recorded in a temporary storage space, comprising at least three storage locations. According to the disclosure, the generation of the images and the recording thereof in the temporary storage space are carried out at a minimum at the speed of generation of the images from the sensors.More specifically, the plurality of sensors is embedded within a plurality of cameras (one sensor within a camera). According to the invention, these cameras are for example all of the same type. The cameras are for example configured to produce a stream of images at 60 images / second. In doing so, each image produced by a camera is exposed for a maximum time (i.e. integration time) before the sensor is read, by destructive reading. When the cameras are configured to produce a stream of images at 30 images / second, each image produced by a camera is exposed for a maximum time (i.e. integration time), before the . sensor is read, by destructive reading. Thus, the period T = 1 / 60th of a second includes an integration time to which is added a sensor reading time and possibly a waiting time. The integration time is directly linked to the brightness of the scene and can be less than a millisecond for sufficiently bright scenes. The reading time is linked to the technology of the sensor reading circuit. Reading is done during the period T = 1 / 60th of a second. When the integration time is sufficiently short, then the addition of the integration and reading times < 1 / 60th of a second and a waiting time occurs (up to a maximum of 1 / 60th of a second). If the integration time is too long, then we are forced to reduce the reading speed and go to 1 / 30th of a second for example to avoid truncating the acquisitions.So in the end, the sensor can have a speed of 1 / 60th of a second and consequently, to maintain the rate, the integration time is between 0 and (1 / 60th of a second - reading_time). The same logic applies for sensors at 1 / 30th of a second.
[0045] Whatever the image production speed, this determines a maximum exposure time for each image before being produced. One objective of the proposed method being to deliver an HDR stream that is produced at the same speed as that of the cameras, it is therefore necessary to produce HDR images at the speed at which the images are produced by the cameras: the maximum exposure time of the images is therefore less than the speed at which these images are produced by the sensor. As described below, the exposure time of each image is configured throughout the execution of the HDR stream production method to ensure that it is in line with the exposure time required for each image.
[0046] The method implemented is described in relation to [Fig. 1]. It comprises a plurality of iterations of creating high dynamic range images comprising:
[0047] a determination (Dl) of at least three sensor exposure times comprising: a short exposure time TC, a long exposure time TL and an intermediate exposure time TI, such as TCcTIcTL;
[0048] at least three iterations of a reading (D2) of sensors, among said at least two sensors, delivering at least three successive images (IC, II, IL), as a function of said at least three exposure times (TC, TI, TL) of sensors;
[0049] a recording (D3), within at least three dedicated memory zones (ZM#1, ZM#2, ZM#3), of said at least three successive images (IC, II, IL), each memory zone being dedicated to a sensor exposure time among said at least three sensor exposure times;
[0050] a generation (D4) of a high dynamic range image from information extracted from said at least three successive images (IC, II, IL) recorded respectively tively within said at least three dedicated memory zones (ZM#1, ZM#2, ZM#3);
[0051] adding (D5) said high dynamic range image to said HDR video stream.
[0052] More particularly, the combination of the acquired images is carried out in real time, as they are produced. The system for implementing this combination technique comprises at least two cameras, each camera being equipped with a sensor capable of capturing a scene at a given speed and resolution. The system comprises a processing unit, which is configured to extract, from these at least two cameras, the at least three SDR video streams. The processing unit also comprises at least three memory areas, intended to receive at least three different images, each image coming from one of the three SDR video streams. The processing unit performs a combination of the three images from the three different memory areas to produce an HDR image from the three SDR images from the three memory areas.Each of the three images recorded in the three different memory areas comes from a different exposure time of a camera sensor. For example, when two cameras are used, a first image II is obtained for an exposure time dl, a first image 12 is obtained for an exposure time d2 and a third image 13 is obtained for an exposure time d3, so that dl <d2<d3. Selon la présente divulgation, on s’assure que d3 est inférieur à la cadence de production d’images des caméras. Par exemple, si la caméra produit 60 images / seconde, on s’assure que : dl<d2<d3«:l / 60 s. .
[0053] Furthermore, in this case of using two cameras and therefore two sensors, we also ensure that (dl+d2)«: 1 / 60 s. This second condition ensures that we are able to produce three images with at least two cameras, the three images being produced at the maximum speed of production of the images of the camera.
[0054] Thus, using two (at least) standard (non-HDR) cameras, the proposed production method makes it possible to obtain at least three images from the same scene to be captured and to provide three streams, which are processed in real time to provide a single HDR video stream. Of course, what is possible with two cameras is also possible with three or more cameras, as described below. The principle of the proposed method is to have, at each instant, within the three memory zones, an image (one image per memory zone), each of these three images having been captured with a different exposure time (a “short” time, a “long” time and an “intermediate” time, which is determined from the “short” time and the “long” time).
[0055] According to the invention, there are at least two ways of determining the exposure times: by performing a calculation of the short times and long times to minimize black and white saturations and then determining an intermediate time (e.g. in the form sqrt(TC*TL)); or by performing a calculation of the intermediate time with e.g. the camera's "auto-exposure" or by another auto-exposure method to be implemented and then "empirical" determination of the TC (short times) and TL (long times) by removing / adding one or more EV (exposure values).
[0056] According to the disclosure, the exposure times of each of the images are determined at least partially at each capture iteration. In other words, at the nth capture iteration, “short”, “long” and “intermediate” exposure times are set, an image is obtained by at least two cameras at each of these times (“short”, “long” and “intermediate”) and recorded in the three memory areas: a first memory area for the image captured at the “short” exposure time, a first memory area for the image captured at the “intermediate” exposure time and a third first memory area for the image captured at the “long” exposure time. These three images are processed to provide an HDR image and this HDR image is added to the HDR stream.When processing these three images, a new evaluation of the “short”, “long” and “intermediate” exposure times is carried out based on the content of the three images of this nth iteration and these new “short”, “long” and “intermediate” exposure times are used to set the “short”, “long” and “intermediate” exposure times of the following iteration (n+1), and so on, throughout the HDR stream capture processing.
[0057] Thus, according to the disclosure, the values of the acquisition times are estimated at each new acquisition from statistical analyses carried out on the previous acquisitions. For three acquisitions, an estimation is carried out: the short time is estimated by minimizing the number of pixels saturated in white (< 10% for example); the long time is estimated by minimizing the number of pixels saturated in black (< 10% for example). The intermediate exposure time is then estimated in a computational manner: it can for example be a simple calculation: square root of the product of the long time and the short time.
[0058] According to the invention, the long and short times are estimated as a function of several factors, in particular that of the frame rate of the HDR stream. Indeed, unlike the techniques relating to the production of HDR images, in which multiple images can be obtained and selected according to the desired quality, the creation of an HDR video stream requires continuous adaptation to variations in brightness of the scene which must be evaluated and taken into account quickly. As a result, prior techniques in which the best images are selected from a plurality of available images (as in the patent document FR3062009) are not applicable to the creation of an HDR video stream, because they require having an excess number of images, on which the selection of the images to be kept is made. Thus, according to the invention, a rapid evaluation of the short and long exposure times is carried out. More particularly, the step of evaluating these exposure times (short and long) is based on the histograms of the IC (short exposure time) and IL (long exposure time) images previously acquired. The histograms allow for an accurate estimation of the pixel distribution. If the number of white-saturated pixels (pixels with a value greater than 240 for 8-bit images for example) in the IC image is too high (more than 10 to 15% for example), then the exposure time of the IC image at the next iteration must be reduced to be able to capture more information in the brightly lit areas.Conversely, if the number of saturated white pixels is very low (less than 2% for example), then the exposure time can be increased to avoid too large a difference with the intermediate image, which would cause a "hole" of information in the dynamics. Similarly, if the number of saturated black pixels (pixels with a value lower than 16 for 8-bit images for example) in the IL image is too high, then the exposure time of the IL image at the next iteration must be increased. Finally, if the number of saturated black pixels in the IL image is too low, then the exposure time of the IL image at the next iteration must be decreased.The variations in exposure times from one iteration to another can be expressed in the form of exposure value (EV): an increase (respectively decrease) of one unit of exposure value (1 EV) results in a multiplication (respectively division) by two of the exposure time. In the case where the number of saturated pixels is very large, it is possible to increase or decrease by 2EV (factor 4 on the exposure time) and on the contrary, in the case where we want to refine the number of saturated pixels around the chosen thresholds, it is possible to limit the variations to 1 / 2 EV (one half), or even 1 / 3 EV (one third).
[0059] These calculations made at each acquisition make it possible to take into account very quickly all the changes in lighting of the scene. According to the invention, the long exposure time is adjusted according to the number of cameras (and therefore sensors) used to supply the three memory zones. For example, if we have six 1 / 30 sec sensors whose acquisitions are offset in time, it is possible to increase the output rate. The principle being that as soon as we have three images, we can do the processing in parallel with the other acquisitions.
[0060] In relation to [Fig.2], two situations for processing SDR images to produce HDR images are presented, as explained in [Fig.l]. In this example, the width of the bars representing the images is approximately representative of the short, intermediate and long times for the exposure of each image.
[0061] In the first situation S#l, the implementation of the method for creating an HDR stream from three SDR streams is presented. In this first situation, it is assumed that the three SDR streams are respectively obtained by three different sensors (three cameras). Images 111, 121, 131 and 141 are images obtained at short integration times, images 112, 122, 132 and 142 are images obtained at intermediate integration times and images 113, 123, 133 and 143 are images obtained at long integration times. In this first situation, the processing for creating an HDR image from three SDR images (Trtl, Trt2, Trt3) is implemented after and sequentially after the acquisition of the images. Each processing (Trtl, Trt2, Trt3) follows an identical implementation (pixel registration, combination of SDR images) and identical processing times are illustrated for simplicity.The times tl, t2 and t3 represent the maximum frame rate of SDR cameras (for example 60 fps, 30 fps, etc.).
[0062] In the second situation S#2, it is still assumed that the three SDR streams are respectively obtained by three different sensors (three cameras). The processing for creating an HDR image from three SDR images (Trtl, Trt2, Trt3) is implemented after and in parallel with the acquisition of the images. This is the main difference with situation #1. The processing is desynchronized from the acquisition. The only constraint is to ensure that the processing on the images acquired at t is shorter in time than the acquisition of t+1. Thus, by using as many sensors as images to be acquired (typically three), the cycle time is at least equal to the acquisition time of the image with the long integration time.By using more sensors (for example four instead of three), it is possible to dedicate two of these four sensors to the acquisition of long-time images whose acquisition starts would be offset by half a period. For example, with a period of 1 / 30, the first sensor would provide images every 1 / 30sec, starting at t= 1 / 60, while the second sensor could provide images at t=n* 1 / 30+1 / 60: it is thus possible to produce images every sixtieth of a second. The operational implementation conditions determine the strategy to adopt, in particular according to the cost of high-performance sensors with a better acquisition speed (but more expensive) vs. a larger number of sensors (four, five or six) but individually less expensive.
[0063] Each processing (Trtl, Trt2, Trt3) follows an identical implementation (pixel registration, combination of SDR images) and identical processing times are illustrated for simplicity. The times tl, t2 and t3 represent the maximum frame rate of the SDR cameras (for example 60 imgs / sec, 30 imgs / sec, etc.).
[0064] In the first situation S#l, an HDR image is obtained from the first iteration, at the end of the time period from 0 to tl, and so on. In the second situation S#2, an HDR image is only obtained from time t'2, then t'3 and so on. There is therefore a slight delay during the production of the first HDR image. This delay at the start ultimately allows for a longer time to carry out the processing of creating the HDR image without reducing the image production rate. Concretely, the delay between tl and t' 1 corresponds to the processing time of the HDR image which initially exceeds the camera image production rate (i.e. "frame rate"). Thus, without changing the image production frequency, it is possible to have a processing time equal to the image production rate of the input cameras: at most the time separating tl and t' 1 will be equal to one cycle.
[0065] In relation to [Fig.3], an example of implementation of a device (DISP) for implementing the method for creating an HDR stream according to an exemplary embodiment is presented. Such an HDR stream acquisition device, also called an HDR camera, comprises an acquisition sub-assembly (SSACQ) which firstly comprises N sensors (Cl,... CN). The sensors are connected to an acquisition module (MACQ) comprising two sub-modules: an exposure time programming sub-module (CtrlEC), which is used to configure the exposure time of each sensor and an acquisition sub-module (AcQ) itself which is responsible for reading, for each sensor, the pixel matrix of this sensor and for transmitting, to the storage unit management module (MMU), the sets of acquired pixel data.As previously stated, it is necessary to change the exposure time with each new acquisition by a camera, in order to quickly adapt to the changing exposure conditions of the scene being filmed. Typically, for three images, we have an Image 1 with short time, an Image 2 with intermediate time, an Image 3 with long time, then an Image 4 with short time, an Image 5 with intermediate time, an Image 6 with long time, etc. The values of the acquisition times are estimated with each new acquisition from statistical analyses carried out on the previous acquisitions, as explained previously. These calculations made with each acquisition make it possible to take into account very quickly all the lighting changes of the scene.Once the exposure times have been determined, the acquisition sub-module (ACQ) can program the sensor(s), launch the acquisition and then retrieve the image thus acquired by the corresponding sensor.
[0066] The storage unit management module (MMU), for its part, receives, from the acquisition module, the sets of pixel data. Each set of pixel data relates to an image acquired by a sensor. The pixel data is provided by the acquisition module with an identifier, making it possible to determine the sensor of origin or the exposure time or both of these data at once. The Memory Unit Management Module (MMU) stores the resulting pixel data sets in the memory areas (ZM1, ..ZMN) based on the exposure time, the source sensor, or both of these information combined.
[0067] More particularly, regardless of the number of sensors, the inventors have developed a specific memory management device that makes it possible to permanently have at least three images stored in the memory, each of them having a short, intermediate or long exposure time. At start-up (initial iteration), image 1 (short time) is acquired in memory 1. Image 2 (intermediate time) in memory 2, then image 3 (long time) in memory 3. At the following iteration, for the storage of image 4 (short time), the MMU module overwrites the oldest image (image 1 - short time). For image 5 (intermediate time), it is image 2 that is overwritten. With this device, after each new sensor acquisition (regardless of the sensor used for the acquisition), the last three images acquired with a short, intermediate and long time are available in memory.
[0068] In parallel with the acquisition, the MMU module reads back the images in order to feed the processing subset (SSTRT) (see below). The advantage of this approach of writing / reading in several circular memories is to be able to generate HDR images at the same rate as the sensor: at each new acquisition, whatever the source sensor, there is enough data in memory to generate a new HDR image in the HDR video stream.
[0069] In the case of a device with many sensors, the MMU module is implemented to synchronize the different acquisitions made in parallel. At each new acquisition, at least one of the three memories is updated with a new image, so that as in the previous case, the HDR generation is carried out at the acquisition speed.
[0070] In all cases, the inventors chose to work in real time on the data flow acquired by the sensors.
[0071] It is also possible to desynchronize (situation #2, [Fig.2]) the two flows (acquisition flow and processing flow) by using twice as much memory. The first part of the memory is used to store the images to be acquired and the second to process the images already acquired. As soon as the processing done on the second part of the memory is finished, it is possible to swap the memories and start the processing on the first part of the memory (containing the most recent image acquisitions) while the second part of the memory is used to make the next acquisition. This solution was not retained in this implementation example, because the processing carried out is possible temporally with the acquisition (however, with higher acquisition frequencies, this solution could be of interest). Indeed, in this implementation example, the processing performed is achievable in the acquisition flow, i.e. simultaneously with the reading of the new image and the rereading of the images already recorded. The new image acquired by the sensor is transferred from the sensor to the MMU line by line. The SSTRT processing module is able to process in parallel all the pixels of the line read with the pixels of the corresponding lines in the other two stored images. The processing time of each pixel is much lower than the rate of supplying a complete line of pixels, which makes it possible to produce a new line of HDR pixels for each new line of pixels acquired.
[0072] If we plan to carry out more complex processing (to improve the quality of HDR images or to carry out post-processing on the HDR flow, such as object detection / recognition for example), a dual memory system could be considered.
[0073] The HDR stream acquisition device also comprises a processing sub-assembly (SSTRT). This processing sub-assembly performs the processing of the images recorded in the memory areas, continuously, at the theoretical frame capture speed by the sensors (e.g. 60 images / sec, 30 frames / sec, etc.), in order to produce an HDR stream having the same rate as the production rate of the sensors.
[0074] This processing subset (SSTRT) comprises, in this exemplary embodiment, a registration module (DEG), the function of which is to carry out a possible registration (“deghosting”) of pixels corresponding to moving objects, when such objects exist in the scene to be captured. The registration module (DEG) uses the N (eg three) acquired images to estimate the movement of the objects within these N images. This estimation is made for all the pixels. There is necessarily more movement in the case of acquisition with two sensors since the acquisitions are made sequentially (generally, when one wishes to obtain n acquisitions and one only has at most n-1 sensors, there are sequential acquisitions). In the multi-sensor case (more than two), the movements are minimized (mainly motion blur, increasing with the exposure time) due to the simultaneous acquisition.In all cases, when a movement is detected, a correction algorithm for this movement is executed on the pixels concerned before transmitting them to the HDR creation module. The inventors evaluated several possible algorithms. However, in order to allow HDR production in real time (i.e. at the frame rate of the N sensors used to capture the images) two algorithms are implemented on the device: the pixel order method and the weighting function method: these two methods give . satisfactory results while limiting processing times. The selection of these methods is linked to the fact that they are compatible with the requirements of fast calculation in order to be able to detect and correct motion artifacts at a rate higher than that of the acquisition.
[0075] When no motion is detected, then the N sets of raw pixels (corresponding to the N images) are transmitted directly to the HDR creation module (HDRC). The HDR creation module (HDRC) uses the N streams in parallel to evaluate the HDR value of each pixel. The method used uses the “Debevec and Malik” algorithm, which is adapted to the device to make it more efficient in processing time.
[0076] The Debevec method is based on the fact that a pixel of a visual scene has a constant irradiance value and that it is possible to estimate this irradiance from the values of the pixels obtained with different acquisition times and the transfer curve of the camera used. The mathematical equations of the Debevec method require calculating the logarithm of the inverse of the transfer function of the camera. According to the invention, in a real-time context, for reasons of efficiency, all the values of this logarithm have been precalculated for all possible pixel values (between 0 and 255 for an 8-bit sensor, between 0 and 1023 for a 10-bit sensor) and stored in a memory of the system, the calculation then being limited to a simple rereading of a memory box. Such an implementation makes it possible to ensure real-time processing of the flows.
[0077] Once the HDR image has been produced, it must be able to be used. This can be done in two ways:
[0078] On-screen display (using an AFF display module);
[0079] Raw output (to a communication network, using a suitable ETH module).
[0080] Regarding on-screen display, it is not possible to display HDR data on a traditional screen. Indeed, a traditional screen accepts whole pixel values generally coded on 8 to 10 bits for each of the RGB channels. In the case of HDR production, a real video stream coded on 32 bits is produced. It is therefore necessary to "compress" the format so that it is acceptable by a screen. This is what the AFF (Tone mapping) display module does. The implemented algorithm is specifically selected by the inventors. There are two main families of "tone mapping" algorithms: first, local algorithms exploit the local neighborhood of each pixel to adapt their processing and produce high-quality "tone mapping".Local algorithms require complex calculations that require significant hardware resources and are often incompatible with real-time constraints. Second, global algorithms use processing common to all . pixels, which simplifies their implementation in real time but at the expense of the overall quality of the result obtained. Thus, in view of the requirement for real-time processing, the inventors selected an algorithm of the type described in Duan et al (2010), which they adapted to the implementation conditions previously described.
[0081] Concerning the network output (ETH), an Ethernet network controller allowing the output of uncompressed HDR streams at the speed at which they are produced is implemented. Such a controller makes it possible in particular to evaluate the quality of the HDR stream production algorithms with metrics.
[0082] [Fig.4] illustrates another example of implementation, in which the pivot function of the memory areas is diverted to produce an HDR stream at a higher rate substantially close to that of the SDR camera sensor. In other words, in this example of embodiment, it is possible to produce an HDR stream at a higher rate (in number of images per second) than those of the SDR camera used to film the scene. To do this, the memory areas storing the different images are used in a desynchronized manner, according to the programming carried out on the exposure times of the camera by the exposure time programming sub-module (CtrlEC) which was presented previously. This technique can also be used with two cameras, as explained previously.
[0083] As an example for the explanation provided in relation to [Fig.4], we consider that a single sensor (a single sensor) is used to produce three SDR streams, each stream having a speed of 20 images per second (i.e. 60 images per second divided by three). Each exposure of each image is therefore less than 1 / 60th of a second. In this example, however, an HDR video comprising at least 60 images per second is produced. To do this, as explained in the general case, the images are recorded in a memory area and the pixel registration and HDR image combination processing is carried out in real time as the images are read in the memory areas ZM#1 to ZM#3. It should be noted that this mode of use of the memory area pivot function is well suited to the implementation of the production processing of an HDR stream in a use case where a single SDR sensor is present to perform the sensor of the SDR stream..
[0084] In this example of [Fig.4], at the first capture iteration, an image I[l], at short time, is captured by the sensor of the SSACQ acquisition subset. This image is stored in the memory area ZM#1 by the MMU module. At the second capture iteration, an image I[2], at intermediate time, is captured by the sensor. This image is stored in the memory area ZM#2. At the third capture iteration, an image I[3], at long time, is captured by the sensor. This image is stored in the memory area ZM#3. The three memory areas each having a image (short time, intermediate time and long time), the processing sub-assembly retrieves these three images in memory and performs the conversion into an HDR image (IHDR
[123] ). The first HDR image was therefore obtained in a capture of 3x1 / 60 s = 1 / 20 s, to which we add the processing time by the processing sub-assembly (“at 1 / 60th of a second) for the conversion into an HDR image.
[0085] In parallel, the sensor of the SSACQ acquisition sub-assembly captures a new image I[4], at short time, which is stored in the memory area ZM#1 by the MMU module. The three memory areas again each having an image (short time I[4], intermediate time I[2] and long time I[3]), the processing sub-assembly recovers these three images in memory and again performs the conversion into an HDR image (IHDR
[423] ). The second HDR image was therefore obtained in a capture “at 1 / 60th of a second.
[0086] In parallel, the sensor of the SSACQ acquisition sub-assembly captures a new image I[5], at the intermediate time, which is stored in the memory area ZM#2 by the MMU module. The three memory areas again each having an image (short time I[4], intermediate time I[5] and long time I[3]), the processing sub-assembly recovers these three images in memory and again performs the conversion into an HDR image (IHDR
[453] ). The third HDR image was therefore again obtained in a capture “at 1 / 60th of a second.
[0087] In parallel, the sensor of the SSACQ acquisition sub-assembly performs a capture of a new image I[6], at long time, which is stored in the memory zone ZM#2 by the MMU module. The three memory zones again each having an image (short time I[4], intermediate time I[5] and long time I[6]), the processing sub-assembly recovers these three images in memory and again performs the conversion into an HDR image (IHDR
[456] ). The third HDR image was therefore again obtained in a capture “at 1 / 60th of a second. This process is continued throughout the process of capture and transformation into an HDR stream and it indeed delivers an HDR stream at 60 images per second. In this exemplary embodiment, a problem that may arise is the presence of artifacts. It is therefore often necessary to perform pixel registration, which is not the case or less the case when two or more sensors are used.
[0088] In another exemplary embodiment, at least two identical sensors are used for implementing the disclosed technique. These at least two sensors, although identical, are each programmed to operate at different capture speeds. More particularly, it was previously explained that the exposure time programming sub-module (CtrlEC) carried out programming of the maximum exposure time of the sensors to obtain a short time, a long time and an intermediate time dependent on the long time. These exposure times are less than (or even much lower) than the camera's production rate. For example, in the case of a production rate of 120 images per second, the short time may be 1 / 500th of a second, the intermediate time 1 / 260th of a second and the long time 1 / 140th of a second). However, it was previously indicated that the short and long times both had the objective of minimizing the presence of pixels saturated in white and black respectively (number of pixels less than a given percentage of all the pixels in the image). However, it may happen that in certain situations, the maximum exposure time of 1 / 120th of a second is not sufficient to minimize the pixels saturated in black. Thus, in an example of a complementary embodiment, the at least two sensors are configured so that they produce SDR images at different production rates.More specifically, one of the sensors is configured to produce images at a rate of 120 frames per second, while the other sensor is configured to produce images at a rate of 60 frames per second. The second sensor produces images at a lower rate, but benefits from a longer exposure time. The tradeoff is that it can then more efficiently produce images in which the amount of saturated black pixels is lower than the predetermined value (e.g., 10%). In this situation, it is then possible to produce two types of HDR streams, depending on the available computing resources: the first type of HDR stream is framed at 60 frames per second, i.e., the "lowest" value possible, by matching the production rate of the sensor configured to be slower. The advantage of this solution is that pixel registration processes due to the presence of artifacts are less numerous.Another advantage is that it is possible to use only two sensors: the sensor operating at a rate of 120 images per second allows two captures to be made during the long-time capture time; the first sensor obtains the short-time image and the intermediate-time image while the second sensor obtains the long-time image. When the three images are present in the three memory areas considered, these are obtained and processed by the processing subset to produce a single HDR image, depending on one or other of the situations in [Fig.4].
[0089] The second type of HDR stream is clocked at 120 frames per second, that is to say the "highest" value possible, by matching the production rate of the sensor configured to be the fastest. In which case, the method as described in [Fig.4] is implemented. Each new image obtained by the sensor whose production rate is 120 frames per second is used, immediately, to perform the calculation of a new HDR image. In this situation, a current image from the sensor clocked at 60 frames per second will be used to produce two images from the HDR stream sensor.
Claims
Claims
1. Method for generating a video stream comprising a set of high dynamic range images, called HDR video stream, from a plurality of standard dynamic range images obtained by reading at least two image sensors each having an image production rate, each sensor comprising a plurality of pixels arranged in matrix form, and each associated with a photoelectric conversion element making it possible to convert received light into electrical charges and to accumulate said electrical charges during a time of exposure to the light, method characterized in that it comprises a plurality of iterations of creation of high dynamic range images comprising: - a determination (Dl) of at least three sensor exposure times comprising: a short exposure time TC, a long exposure time TL and an intermediate exposure time TI, such as TCcTIcTL; - at least three iterations of a reading (D2) of sensors, among said at least two sensors, delivering at least three successive images (IC, II, IL), as a function of said at least three sensor exposure times (TC, TI, TL); - a recording (D3), within at least three dedicated memory zones (ZM#1, ZM#2, ZM#3), of said at least three successive images (IC, II, IL), each memory zone being dedicated to a sensor exposure time among said at least three sensor exposure times, so that at any instant an image acquired at short time, an image acquired at intermediate time and an image acquired at long time are respectively present within the dedicated memory zones; - a generation (D4) of a high dynamic range image from information extracted from said at least three successive images (IC, II, IL) recorded respectively within said at least three dedicated memory zones (ZM#1, ZM#2, ZM#3); - adding (D5) said high dynamic range image to said HDR video stream.
2. Method for generating HDR video streams according to claim 1, characterized in that said determination of said at least three exposure times (TC, TI, TL) of sensors comprises a determination of the intermediate exposure time TI as a function of said one time short exposure TC and long exposure time TL.
3. Method for generating HDR video streams according to claim 1, characterized in that the short exposure time (TC) is calculated so that it produces, when reading from one sensor among said at least two sensors, a standard dynamic range image whose percentage of pixels saturated in white is lower than a predetermined threshold.
4. Method for generating HDR video streams according to claim 1, characterized in that the long exposure time (TL) is calculated so that it produces, when reading from one sensor among said at least two sensors, a standard dynamic range image of which a percentage of pixels saturated in black is lower than a predetermined threshold.
5. Method for generating HDR video streams according to claim 1, characterized in that the intermediate exposure time (TI) is obtained as the square root of the product of the short exposure time (TC) and the long exposure time (TL).
6. Method for generating HDR video streams according to claim 1, characterized in that the long exposure time (TL) is less than the image production rate of at least said sensors among said at least two sensors.
7. Method for generating HDR video streams according to claim 1, characterized in that the generation of a high dynamic range image of a current iteration of creation of a high dynamic range image is implemented from information extracted from at least three current successive images (IC, II, IL) is implemented in parallel with said at least three iterations of a reading of sensors, among said at least two sensors, delivering at least three successive images (IC, II, IL) of the following iteration of creation of a high dynamic range image.
8. Method for generating an HDR video stream according to claim 1, characterized in that the frame rate of the HDR stream is at least equal to the frame rate of at least one image sensor among said at least two image sensors.
9. A computer program product comprising program code instructions for implementing a method according to any one of claims 1 to 8, when executed by a processor.
10. Device for generating a video stream comprising a set of high dynamic range images, called HDR video stream, from a plurality of standard dynamic range images obtained by reading at least two image sensors each having an image production rate, each sensor comprising a plurality of pixels arranged in matrix form, and each associated with a photoelectric conversion element making it possible to convert received light into electrical charges and to accumulate said electrical charges during a time of exposure to the light, characterized in that it comprises a calculation unit adapted to the implementation of the steps of the HDR video stream generation method according to any one of claims 1 to 8.
