Referring to
The digital camera 100 includes a lens module 102 for focusing an image of a person or an object 101 onto an image sensor 104 (e.g., a CCD or CMOS sensor). The image sensor 104 includes an array of sensor cells that convert light into analog electrical image signals 112 that are converted into digital image data 114 by an analog-to-digital (A/D) converter 105. In some examples, each sensor cell includes a color filter positioned in front of a photodetector. The color filters can allow red, green, or blue light to pass so that some cells detect red light, some cells detect green light, and some cells detect blue light.
The lens module 102 (or a body of the camera) may include a diaphragm that determines an aperture, which controls the amount of light reaching the image sensor 104 per unit of time. A shutter 103, controlled by an auto exposure module 108, determines an exposure time, which together with the aperture determines the amount of light that reaches the image sensor 104. The auto exposure module 108 determines the exposure time based on, among other factors, the intensity of incoming light and the size of the aperture. A higher shutter speed means that the shutter is open for a shorter amount of time. In this example, the shutter 103 is a mechanical shutter.
The digital image data 114 are sent to an image data processor 106, a motion detection module 107, and the auto exposure (AE) module 108. The motion detection block 107 detects camera motion by measuring differences between preview images. The image data processor 106 processes the digital image data 114 and generates still image data 116 that conforms to an industry standard, e.g., JPEG format. The still image data 116 are recorded in a recording device 109, which can include, e.g., flash memory. A preview image display 100 (which can be part of a viewfinder) shows preview images corresponding to optical images sensed by the image sensor 104. A controller 116 controls the operations of various components described above.
In the examples described below, it is assumed that the camera has been set to auto-exposure mode, in which the camera 100 automatically determines the shutter speed.
If camera motion is not detected or is below a threshold value, the still image is captured 128 by the image sensor 104 at a normal shutter speed determined by the auto exposure module 108, and image data is generated. The image data are processed 130 by the image data processor 106 using a normal process, and the processed image data are written 132 into the recording device 109. The image data stored in the recording device 109 represent the final image that the user can view, print, or upload to a computer for further processing.
Here, “normal shutter speed” refers to a shutter speed determined by the auto exposure module 108 that takes into account, for example, the amount of light reaching the image sensors when a particular aperture is selected. The shutter speed is designed so that there is sufficient time for the image sensor 104 to collect enough light to generate an image having a proper brightness (as determined according to a pre-stored algorithm) and with sufficiently low noise, the exposure time also being sufficiently short to prevent over saturation of the image. In some examples, the normal shutter speed is determined without considering camera movement.
If camera motion is detected to be above the threshold value, the still image is captured 134 by the image sensor 104 at higher shutter speed. The higher shutter speed can be, e.g., N times faster than the normal shutter speed. The image data are processed 136 by the image data processor 106 using a process that includes a gain increase process. The processed image data are written 138 into the recording device 109.
Here, “higher shutter speed” refers to a shutter speed that is higher than the normal shutter speed. The higher shutter speed can be determined, for example, based on the normal shutter speed and the level of camera motion—the greater the camera motion, the higher the shutter speed. The higher shutter speed may depend on the particular type of sensor 104 and lens 102 being used. The higher shutter speed can also be determined by increasing normal shutter speed to n times the normal shutter speed, where n is a predetermined number.
If camera motion is detected to be above the threshold value, the captured or recorded image data (if any) related to the image currently being captured in step 144 are deleted 146, and a new still image is captured 148 using a higher shutter speed (i.e., a shutter speed higher than the normal shutter speed determined by the auto exposure module 108). The new still image data are processed according to a gain increase process described below. The processed image data are recorded as a final still image in the recording device 109.
The gain increase process is described below.
The period T1 for the normal shutter speed is the amount of time determined by the auto exposure module 108 that is sufficient to obtain an image with an appropriate brightness. Because the period T2 is shorter than T1, the accumulated amount of light received by the image sensor during the period T2 may not be sufficient to generate an image having the appropriate brightness. Accordingly, the second image that is captured using the higher shutter speed is processed using a gain increase process, in which the gain used for processing raw image data is increased by a ratio substantially equal to T1/T2. The processed image is then stored in the recording device 109.
The following describes how the motion detection module 107 detects camera motion using preview images.
Referring to
The camera 100 provides a continuous live view on the preview image display 110 after the camera 100 is turned on. The image sensor 104 continuously captures preview images that are processed and shown on the preview image display 110. A memory buffer (not shown) is provided to store preview image data corresponding to the image shown on the preview image display 110. The memory buffer also stores pixel data of the motion detection areas 150 of a previous preview image. When the user half-presses the shutter button intending to capture an image, the pixel data corresponding to the motion detection areas 150 of a previous preview image are compared with the pixel data corresponding to the current preview image.
Referring to
For example, if the 5-by-5 array of subpixels captured by a detection area 150 is at a position 154a in the previous preview image, and the array highly correlates to a 5-by-5 array of subpixels at a position 154b in the current preview image, it indicates that the camera 100 has moved (or tilted) relative to objects (or portions of objects) represented by the 5-by-5 array of subpixels during the time that the two preview images were taken.
A motion value Xi (i=1 to n, where n is the number of motion detection areas 150, n=8 in this example) for each detection area 150 is calculated as the distance between the two highly correlated 5-by-5 arrays of subpixels in the two preview images. An average motion value X_ave is determined by X_ave=(X1+X2+ . . . +Xn)/n.
If X_ave is equal to or greater than a predetermined threshold value Xc, the controller 116 determines that the camera motion is equal to or above a certain threshold when the current preview image was taken, so the controller 116 causes a still image to be captured using a higher shutter speed. The still image is processed using a gain increase process and stored in the recording device 109 as the final captured image. The threshold value Xc may be different for different types of cameras and can be determined based on experiments performed on each type of camera.
If X_ave is less than the predetermined threshold value Xc, the controller 116 determines that the camera motion is negligible, so that the image can be captured using the normal shutter speed. The captured image data are processed using a normal image processing procedure, and the processed image data are stored in the recording device 109.
The following describes a gain increase process that uses a cell clustering method. When the higher shutter speed is used, the shutter is open for a shorter amount of time than when the normal shutter speed is used, so less photo carriers are collected by the image sensor 104. To compensate for the reduced photo carriers, the signals read out from the image sensor 104 are amplified using a cell clustering method in which the value of each cell is increased by adding the value of four neighboring cells.
Referring to
V′center=a×(V1+V2+V3+V4)/4+b×Vcenter, (Equ. 1)
where Vcenter, V1, V2, V3, and V4 are the readout values of cell 160a, 160b, 160c, 160d, and 160e, respectively, V′center is the final value for the sensor cell 160a, and a and b are coefficients. If a and b are selected such that the condition a+b=1 is met, then V′center will be approximately the same as Vcenter. By increasing a and/or b, V′center can become larger than Vcenter. For example, if a=4 and b=1, there will be a gain of 5 (i.e., V′center will have a value approximately equal to five times the value of Vcenter).
Similarly, referring to
The gain increase process using the cell clustering method reduces noise due to spatial filtering. By comparison, if the readout value of the cell 160a is multiplied by four, the noise contained in the readout value will also be amplified. The resolution or sharpness of the image may be reduced when the cell clustering method is used because a feature of the object 101 is spread out to several pixels. Thus, to prevent loss of resolution of sharpness, a digital multiplication method can be used, in which the readout value of each sensor cell data is multiplied by a predetermined gain multiplication ratio. The camera 100 can be configured to automatically choose between the cell clustering method and the digital multiplication method based on an image fineness setting determined by the user. For example, suppose the camera 100 provides “Normal,” “Fine,” and “Superfine” resolution settings. If the user selects the “Normal” and “Fine” resolution settings, the cell clustering method is used, and if the user selects the “Superfine” resolution setting, the digital multiplication method is used.
By detecting camera motion using preview image data, or replacing a first image captured at a normal shutter speed with a second image captured at a higher shutter speed when camera motion is detected, memory size can be reduced, and the total operation time for obtaining a clear image can be reduced, as compared with previous methods.
A number of embodiments of the invention have been described. Nevertheless, it will be understood that various modifications may be made without departing from the spirit and scope of the invention. For example, in the digital camera 100, instead of using a mechanical shutter, an electronic shutter can be used, in which the signals from the image sensor 104 that are obtained within a preset period of time (corresponding to the opening period of a mechanical shutter) are processed as image data representing a captured image. A camcorder that is capable of capturing both videos and still images can use the methods described above for generating still images with reduced blurring. By using different color filters, the image sensor 104 can have sensor cells that detect light having colors other than red, green, and blue, such as cyan, magenta, and yellow. The image sensor 104 can be designed to capture black and white images, so that each sensor cell corresponds to a pixel in the image. In some examples of sensor cells, instead of using separate red, green, and blue pixels, as shown in
The camera 100 can use a gain increase process different from those described above. The camera 100 can adaptively switch between different gain increase methods based on criteria other than those described above. The cell clustering method can use different numbers of cells. For example, referring to
Two or more of the A/D converter 105, image data processor 106, motion detection module 107, auto exposure module 108, and the controller 116 can be combined in a single unit. For example, a digital signal processor or central processing unit can perform the functions of two or more of the units 105 to 108 and 116 mentioned above. The functions of these units can be achieved using hardware, software, or a combination of hardware and software. The preview image display 110 can be turned off to conserve power, while the preview image data are still processed by the image data processor 106 to detect camera motion.
Accordingly, other implementations and applications are also within the scope of the following claims.
Number | Date | Country | Kind |
---|---|---|---|
2006-105004 | Apr 2006 | JP | national |
2006-291594 | Oct 2006 | JP | national |