This application claims the benefit of Japanese Patent Application No. 2011-126498, filed Jun. 6, 2011, the entire disclosure of which is incorporated by reference herein.
This application relates generally to a video creation device, video creation method and non-transitory computer-readable storage medium.
In the past, a CCD (Charge-Coupled Device) or a CMOS (Complementary Metal-Oxide Semiconductor) has been used as the imaging element of a digital camera and/or the like. The dynamic range of this kind of imaging element is narrow compared to the naked eye and silver halide film. Consequently, when a subject with stark differences in brightness is photographed with a conventional digital camera and/or the like, the problem arose that the background became white or the subject was completely black.
In order to resolve this problem, technology for obtaining high-dynamic-range (HDR) images is being developed. This technology can obtain a high-dynamic-range image by synthesizing a bright image shot with a long exposure time and a dark image shot with a short exposure time.
Recently, this technology is also being applied to video creation. For example, in Unexamined Japanese Patent Application KOKAI Publication No. 2007-274285, an invention is disclosed in which high-dynamic-range video is obtained using a light-reduction device that causes the intensity of light reaching the imaging element to periodically change.
However, with the above-described technology, not only is the special mechanism of a light-reduction device necessary, but when the view angle changes during capture or when the subject moves, synthesis blurring occurs, creating the problem that it is difficult to obtain high-quality high-dynamic-range video.
Consequently, technology is being sought that can create high-quality high-dynamic-range video even when the capture view angle changes or the subject moves, without providing a special mechanism.
In consideration of the foregoing, it is an object of the present invention to make it possible to create high-quality high-dynamic-range video.
To achieve the above object, the imaging device of the present invention comprises:
a successive creator for successively and alternately creating, through imaging, a frame of a first type and a frame of a second type, wherein a frame of the second type have a shorter exposure than the frame of the first type;
a difference determiner for determining whether or not the difference between frames of a determination pair exceeds a prescribed threshold, wherein the determination pair contains two frames of the first type next to each other in imaging timing, or the frame of the first type and the frame of the second type next to each other in imaging timing;
a frame creator for creating, when the difference determiner determines the difference exceeds the threshold, a frame of a third type between frames of a data pair in imaging timing based on the frames of the data pair, wherein the data pair contains two frames of the first type next to each other in imaging time and at least one frame is contained in the determination pair;
a synthesizer for creating high-dynamic-range frame by successively synthesizing frames of synthesized pair, wherein synthesized pair contains the frame of the second type and the frame of the first type next to the frame of the second type in imaging timing, or the frame of the second type and the frame of the third type next to the frame of the second type in imaging timing; and,
a video creator for creating video comprised of the frame synthesized by the synthesizer.
In addition, to achieve the above object the video creation method of the present invention comprises:
a successive creation step for successively and alternately creating, through imaging, a frame of a first type and a frame of a second type, wherein a frame of the second type have a shorter exposure than the frame of the first type;
a determination step for determining whether or not the difference between frames of a determination pair exceeds a prescribed threshold, wherein the determination pair contains two frames of the first type next to each other in imaging timing, or the frame of the first type and the frame of the second type next to each other in imaging timing;
a frame creation step for creating, when the result of the determination in the determination step is a determination that the difference exceeds the threshold, a frame of a third type between frames of a data pair in imaging timing based on the frames of the data pair, wherein the data pair contains two frames of the first type next to each other in imaging time and at least one frame is contained in the determination pair;
a synthesizing step for creating high-dynamic-range frame by successively synthesizing frames of synthesized pair, wherein synthesized pair contains the frame of the second type and the frame of the first type next to the frame of the second type in imaging timing, or the frame of the second type and the frame of the third type next to the frame of the second type in imaging timing; and,
a video creation step for creating video comprised of the frame synthesized by the synthesizer.
In addition, to achieve the above object the non-transitory computer-readable storage medium of the present invention is a non-transitory computer-readable storage medium on which is recorded a program executable by an electronic device having an imager, this program causing this electronic device to function as:
a successive creator for successively and alternately creating, through imaging, a frame of a first type and a frame of a second type, wherein a frame of the second type have a shorter exposure than the frame of the first type;
a difference determiner for determining whether or not the difference between frames of a determination pair exceeds a prescribed threshold, wherein the determination pair contains the frame of first type, and another frame of first type next to the frame of first type in imaging timing or frame of second type next to the frame of first type in imaging timing;
a frame creator for creating, when the difference determiner determines the difference exceeds the threshold, a frame of a third type between frames of a data pair in imaging timing based on the frames of the data pair, wherein the data pair contains two frames of the first type next to each other in imaging time and at least one frame is contained in the determination pair;
a synthesizer for creating high-dynamic-range frame by successively synthesizing frames of synthesized pair, wherein synthesized pair contains the frame of the second type and the frame of the first type next to the frame of the second type in imaging timing, or the frame of the second type and the frame of the third type next to the frame of the second type in imaging timing; and,
a video creator for creating video comprised of the frame synthesized by the synthesizer.
A more complete understanding of this application can be obtained when the following detailed description is considered in conjunction with the following drawings, in which:
The embodiment of the present invention is described below with reference to the drawings. In this preferred embodiment, a case wherein the present invention is realized through a digital camera capable of capturing video (hereafter, digital camera 100) will be presented as an example. As shown in
The lens block 101 comprises an optical system such as a zoom lens, a focus lens and/or the like, and a drive mechanism (motor, actuator and/or the like) for driving this optical system. The lens block 101 condenses incident light through the optical system controlled by the drive mechanism and also adjusts the optical elements related to focal distance, aperture stop, view angle, focus, exposure and/or the like.
The image sensor block 102 comprises an imaging element such as a CCD (Charge Coupled Device), a CMOS (Complementary Metal Oxide Semiconductor) and/or the like, and a driver circuit (vertical/horizontal control circuit and/or the like) for driving this imaging element. The image sensor block 102 is positioned such that the light-receiving surface of the imaging element is on the optical axis of the lens block 101, so that an image of the subject (in other words, an optical image) is formed via the lens block 101. Furthermore, an imaging signal in accordance with the optical image is supplied to the image processing engine 103 under control by the driver circuit.
This image sensor block 102 can appropriately change the time during which electric charge is accumulated by the imaging element (exposure time) by controlling the charge transfer time. For example, in video imaging mode, frame (a image which complies the video) is successively created in which the exposure time is caused to change alternately between long and short.
Specifically, as shown in
In
For example, the image processing engine 103 performs a process such as a pedestal clamp and/or the like on input imaging signals, and converts such into a luminosity (Y) signal and a color component (UV) signal and also accomplishes image processes for improving image quality such as auto white balance, contour emphasis and pixel interpolation. Furthermore, the image processing engine 103 successively supplies the converted YUV data to the SDRAM 107. In addition, in a mode in which the thru-image (finder image) is displayed, the data is converted to a video signal each time one frame of data is accumulated and is supplied to the liquid crystal display 104.
In addition, in video capture mode, the image processing engine 103 creates an interpolated frame when the image difference between frames exceeds a prescribed threshold value.
For example, when the change in imaging angle or displacement of the subject is large, the image processing image 103 creates interpolated frames (including frames A2, A4, A6, B3, B5, B7, . . . ) as frames of a third type, as shown in
Furthermore, the image processing engine 103 synthesizes a frame with a long exposure and a frame with a short exposure and creates a high-dynamic-range frames (including frames C2, C3, C4, C5, C6, C7, . . . ), as shown in
In addition, the image processing engine 103 accomplishes a contrast emphasis process and a saturation emphasis process for the high-dynamic-range synthesized frames created.
Returning to
The bus 105 is a data path mutually linking the image processing engine 103, the external memory 106, the SRAM 107, the flash memory 108 and the CPU 109. Each type of data is sent and received via this bus 105.
The external memory 106 comprises a removable memory card and/or the like and can record image data that was captured. For example, image data compressed by the CPU 109 (still image files and video files in prescribed formats, and/or the like) is recorded on the external memory 106.
The SDRAM (Synchronous Dynamic Random Access Memory) 107 temporarily stores image data that was captured. For example, the SDRAM successively stores frames created by the image processing engine 103.
The flash memory 108 stores programs and data necessary for operation of the digital camera 100.
The CPU (Central Processing Unit) 109 controls each part of the digital camera 100. For example, in video capture mode, the CPU 109 reads a program stored in the flash memory 108 and executes the below-described video creation process. In other words, the CPU 109 controls the image processing engine 103 and/or the like as indicated below and creates a high-dynamic-range video.
First, the CPU 109 determines whether or not the difference in images between frames created by the image processing engine 103 exceeds a prescribed threshold value. As an example, the CPU 109 determines whether or not changes in specific image regions in the frame A1 and the frame A3 having long exposures in the above-described
Specifically, subjects in the view angle are compared with each other and a determination is made as to whether or not displacement exceeds a threshold value. As an example, when the subject is a person, the image of the person is specified through facial recognition and/or the like, the degree of displacement of that person in each frame is distinguished. And based on the distinguished degree of displacement, a determination is made as to whether or not that displacement exceeds a threshold value.
Specifically, the position where the face of a given person is (coordinates in that frame) is extracted through facial recognition for each frame. Furthermore, when the difference in extracted positions is greater than a prescribed threshold, a determination is made that the displacement exceeds the threshold. In the determination, if multiple people can be simultaneously recognized, the displacement of each person is specified and a determination is made as to any of the displacement exceed the threshold. This kind of method of determining the displacement of a person and/or the like is an example, and it would be fine to determine displacement through another method.
For example, the coordinates and size of a region (facial region) occupied by the face is obtained through facial recognition for one piece of frame (for example, long exposure frame). Furthermore, using the facial region and the corresponding region (with the same coordinates and size) in the other frame (for example, short exposure frame), a coefficient indicating the difference in images in the region (for example, the sum of squared difference (SSD) of the pixel values) is computed. Furthermore, when the computed coefficient is greater than a prescribed threshold value, the determination may be made that there was displacement exceeding the threshold. Furthermore, in a preset important region (for example, a prescribed region in the center of the screen), a coefficient (SSD and/or the like) indicating the difference between images in the region is computed and when the computed coefficient is greater than a prescribed threshold value, a determination may be made that there was displacement exceeding the threshold. As a coefficient indicating the difference between images, besides SSD it would be fine to use SAD (sum of absolute difference), NCC (normalized cross-correlation) and/or the like.
In addition, it would be fine to not distinguish changes in a specific image region in this manner but rather to determine changes in the image as a whole. For example, image regions as a whole in the view angle could be compared and a determination made as to whether or not there was displacement exceeding the threshold. Specifically, a coefficient (SSD, SAD, NCC and/or the like) indicating the difference between images in the image as a whole could be computed, and when the computed coefficient is greater than a prescribed threshold value, it may be determined that there was displacement exceeding the threshold.
In this case, when a determination is made that there is displacement exceeding the threshold, the CPU 109 controls the image processing engine 103 and causes an interpolated frame to be created. In other words, as shown in above-described
Furthermore, the CPU 109 controls the image processing engine 103 to create HDRF through high dynamic range imaging. In other words, as shown in above-described
The CPU 109 creates a video file from the HDRF created in this manner. In other words, after the contrast emphasis process and the saturation emphasis process are performed on the created HDRF, frame spacing is compressed, and a video file in a prescribed format is created and stored in the external memory 106.
The audio block 110 comprises an audio processing circuit and/or the like and processes audio data. For example, when the video file stored in the external memory 106 is played back, the audio block 110 decompresses the compressed audio data and outputs this audio via an unrepresented speaker and/or the like.
The microprocessor 111 comprises a single-chip microprocessor and/or the like and conveys to the CPU 109 instructions and/or the like in accordance with input from the operation IF unit 112. In addition, the microprocessor 111 controls the power supply control block 113 and causes necessary power to be supplied to each component.
The operation IF (Interface) unit 112 has various types of switches and keys appropriately arranged thereon and receives operation from a user. For example, the operation IF unit 112 includes a power switch, a mode selection key, a shutter key, a zoom key and/or the like. Furthermore, when any (or in some cases, multiple) of these is operated (pressed and/or the like) by a user, an operation signal in accordance with the operation contents thereof is supplied to the microprocessor 111. For example, when the video capture mode is selected through the mode selection key, that operation signal is supplied to the microprocessor 111. The shutter key has a so-called half-finder function capable of being half-pressed or fully pressed.
The power supply control block 113 is controlled by the microprocessor 111 and supplies power from the battery 114 to each component.
The battery 114 is composed of a rechargeable battery (lithium ion battery, nickel-hydride battery and/or the like) and supplies power to each component via the power supply control block 113.
The action of the digital camera 100 having this composition is described below. Here, a video creation process executed by the digital camera 100 in the video capture mode is described with reference to
When the video capture mode is selected, the digital camera 100 successively creates frame data with the exposure time changing, alternating long and short (step S201). That is to say, the image sensor block 102 creates frames of the first type with long exposures (frames A1, A3, A5, A7, . . . ) in odd frame numbers and creates frames of second type with short exposures (frames B2, B4, B6, . . . ) in even frames, as shown in above-described
The digital camera 100 determines whether or not the difference in images in the created frame exceeds a prescribed threshold (step S202). That is to say, the CPU 109 determines, for example, whether or not the index of difference (for example, SSD) in a specific image region between frames exceeds the threshold value. As an example, the CPU 109 determines whether or not the change in a specific image region in the frame A1 and the frame A3 having long exposures in the above-described
When the determination is that the difference does not exceed the threshold (step S202: No), the digital camera 100 proceeds to the process in below-described step S204.
On the other hand, when it is determined that the difference exceeds the threshold (step S202: Yes), the digital camera 100 creates an interpolated frame (step S203). That is to say, the image processing engine 103 creates interpolated frame (frames A2, A4, A6, B3, B5, B7, . . . ) as shown in above-described
The digital camera 100 creates HDRF (step S204). That is to say, the image processing engine 103 creates the HDRF by synthesizing frame with long exposure and frame with short exposure. As an example, when displacement of the subject is large, the image processing engine 103 creates the HDRF C2 by synthesizing the interpolated frame A2 having long exposure and the frame B2 having short exposure, as shown in above-described
The digital camera 100 creates a video file from the HDRF (step S205). That is to say, the CPU 109 creates a video file in a prescribed format from the HDRF created in this manner. In other words, after performing a contrast emphasis process and a saturation emphasis process on the created HDRF, frame spacing is compressed and a video file is created and stored in the external memory 106.
Through this kind of video creation process, the difference in images between frame is determined, appropriate frames of long exposure and frames of long exposure are synthesized and a dynamic range video is created. Consequently, it is possible to create a high-quality, high-dynamic-range video even when the capture view angle changes or the subject moves, without providing a special mechanism.
As noted above, with this preferred embodiment, it is possible to create a high-quality, high-dynamic-range video.
When realizing a photography device (video creation device) such as the digital camera 100 that exemplified the present invention in the above-described preferred embodiment, it is possible to provide the composition and functions of the present invention as a photography device prepared in advance. And it is also possible to cause an existing photography device to function as the photography device according to the present invention by applying a program that realizes the same functions as the CPU 109 and/or the like.
In addition, with the above-described preferred embodiment, a pair of frames with long exposures (long exposure pair), the frames being next to each other is compared, out of the image data successively acquired, and a determination is made as to whether or not the difference is greater than a prescribed threshold value. However, this is intended to be illustrative and not limiting, for a composition is also possible in which the difference is determined by comparing a determination pair including frames with a long exposure (for example, frame data A3) and frame data with a short exposure (for example, frame data B4 to frame data A3), the frames being next to each other, in the capture timing. In this case, the HDRF is created by synthesizing the long exposure frame that is the subject of determination and the long exposure frame with short exposure data interposed in between. For example, when the determination pair has the frame A3 and the frame B4, the HDRF data is created from the frame A3 and the frame A5.
With the above-described preferred embodiment, a digital camera having a video capture function was presented as an example of an imaging device, but this aspect of the imaging device is arbitrary, and it is possible to realize this with a stand-alone digital video camera or digital still camera, and the present invention may also be applied to various types of electronic equipment (for example, cell phones and/or the like) provided with imaging functions similar to this.
In such a case, it is possible to cause an existing device to function as the imaging device according to the present invention by applying a program.
The method of applying this kind of program is arbitrary, and application can be by storing on a recording medium such as a CD-ROM or memory card, for example, and can also be via a communication medium such as the Internet, for example.
Having described and illustrated the principles of this application by reference to one preferred embodiment, it should be apparent that the preferred embodiment may be modified in arrangement and detail without departing from the principles disclosed herein and that it is intended that the application be construed as including all such modifications and variations insofar as they come within the spirit and scope of the subject matter disclosed herein.
Number | Date | Country | Kind |
---|---|---|---|
2011-126498 | Jun 2011 | JP | national |
Number | Name | Date | Kind |
---|---|---|---|
7301563 | Kakinuma et al. | Nov 2007 | B1 |
7755664 | Kakinuma et al. | Jul 2010 | B2 |
20070159538 | Kakinuma et al. | Jul 2007 | A1 |
20070229698 | Kakinuma et al. | Oct 2007 | A1 |
20080219585 | Kasai et al. | Sep 2008 | A1 |
20100271512 | Garten | Oct 2010 | A1 |
20100295954 | Kotani | Nov 2010 | A1 |
20110292243 | Nagataki et al. | Dec 2011 | A1 |
20120033131 | Chen et al. | Feb 2012 | A1 |
Number | Date | Country |
---|---|---|
101867727 | Oct 2010 | CN |
101917551 | Dec 2010 | CN |
0 977 432 | Feb 2000 | EP |
2007-274285 | Oct 2007 | JP |
2008-099158 | Apr 2008 | JP |
Entry |
---|
Chinese Office Action dated Mar. 3, 2014 (and English translation thereof) in counterpart Chinese Application No. 201210182706.5. |
Number | Date | Country | |
---|---|---|---|
20120307102 A1 | Dec 2012 | US |