Method and apparatus for capturing images

Information

  • Patent Application
  • 20060012684
  • Publication Number
    20060012684
  • Date Filed
    September 22, 2005
    19 years ago
  • Date Published
    January 19, 2006
    18 years ago
Abstract
A first set of image data is acquired based on a first frame of light entering the camera before receiving an instruction to capture an image from a user. The first set of image data is then used to test the performance of at least one hardware component in the camera.
Description
BACKGROUND OF THE INVENTION

The present application relates to digital cameras. In particular, the present invention relates to image control and processing in digital cameras.


Digital cameras capture images by converting light into electrical signals and processing the electrical signals to produce a set of image data. The image data is then stored in a long-term memory for later retrieval.


The processing of captured images is compute-intensive, often making the user wait for the final picture after the shutter button is pressed. For users who want to take a series of photographs in rapid succession, this delay is undesirable.


SUMMARY OF THE INVENTION

A first set of image data is acquired based on a first frame of light entering the camera before receiving an instruction to capture an image from a user. The first set of image data is then used to test the performance of at least one hardware component in the camera.




BRIEF DESCRIPTION OF THE DRAWINGS


FIG. 1 is a general block diagram of a camera under an embodiment of the present invention.



FIG. 2 is a flow diagram of a method under one embodiment of the present invention.



FIG. 3 is a block diagram of software components under one embodiment of the present invention.



FIG. 4 is a flow diagram of an alternative method under one embodiment of the present invention.



FIG. 5 is a flow diagram of an alternative method under one embodiment of the present invention.



FIG. 6 is a flow diagram of a method of verifying pre-processing results under one embodiment of the present invention.




DETAILED DESCRIPTION OF ILLUSTRATIVE EMBODIMENTS


FIG. 1 is a block diagram of a camera 200 under an embodiment of the present invention. Light 202 enters camera 200 through a lens assembly 204, which focuses the light onto a photo array 206. In many embodiments, lens assembly 204 is controlled by an auto-focus controller 208 that modifies lens assembly 204 to bring an image into focus on photo array 206.


Photo array 206 is constructed of an array of specialized transistors known as Charge Coupled Devices (CCDs). For black-and-white images, each CCD represents a separate pixel in the captured image. For color images, a set of CCD pixels with overlaid color filters are combined to represent a single pixel, with each CCD providing information on a different color of light.


Based on the output of the CCDs, photo array 206 transmits an analog signal to an analog-to-digital (A/D) converter 210. A/D converter 210 converts the analog signal into a series of digital values, with each value representing the brightness or intensity of a pixel's color. The digital values produced by A/D converter 210 are stored in a register 212 that receives read and write control signals from an image processor 214. By controlling when A/D converter 210 can write to register 212, image processor 214 is able to capture and store values representing a single frame of light.


Image processor 214 and auto-focus controller 208 are able to access and use the image data in register 212. Auto-focus controller 208 uses the data to adjust lens assembly 204. Image processor 214 uses the image data for a number of processing functions described further below.


In most embodiments, image processor 214 processes the image data in register 212 using software components stored in code storage 216. Intermediate results of this processing are stored in a second register 218, and the final image data resulting from the processing is stored in long-term storage 220.


In most embodiments, image processor 214 receives input from a capture. button 222 that is depressed by the user to indicate when the user wants to capture an image. In some embodiments, the user is able to press capture button 222 half-way down to indicate that they want the camera to prepare to capture an image by, for example, activating the auto-focus feature of the camera.


Image processor 214 is also able to set parameters for a flash 224, which is controlled by a flash controller 226. The flash parameters are stored in register 228 by image processor 214 and include parameters such as a red-eye reduction flash parameter, a duration parameter, and a brightness parameter.


Under the present invention, image processor 214 performs some processing functions before the user indicates that they wish to capture an image. Thus, before capture button 222 is fully depressed, image processor 214 performs one or more functions such as white balance, contrast adjustment, and red-eye reduction. After the user fully depress capture button 222, image processor 214 performs additional post-capture processing functions. The results of the pre-capture and post-capture processing functions are then combined to produce a final set of image data. By performing some of the image processing functions before the user tries to capture an image, the present invention reduces the post-capture processing time.



FIG. 2 is a flow diagram of a method for capturing images under one embodiment of the present invention. Under one embodiment, the process of FIG. 2 is performed by image processor 214 by invoking a set of software components. FIG. 3 provides a block diagram of some of these components, which are described below in connection with the method of FIG. 2.


The method of FIG. 2 begins at step 300 and proceeds to step 302 where a system control component 400 invoked by image processor 214 causes image data for a frame of light to be written to register 212. System control 400 then retrieves the stored values from register 212 and at step 304 invokes a pre-capture process control 402 that controls one or more pre-capture processing functions.


Under one embodiment, pre-capture process control 402 invokes one or more separate image processing components such as white balance component 404, red-eye reduction component 406, contrast adjustment component 408, flesh tone correction component 410, and edge enhancement component 412 of FIG. 3. When invoked, each of these components is given access to the image data. When a component completes its operation, it typically returns one or more processing values to pre-capture process control 402. Under some embodiments, pre-capture process control 402 invokes two or more of the image processing components in parallel. In other embodiments, the image processing components are invoked serially.


In some embodiments, pre-capture process control 402 also invokes processing functions to test the performance of some hardware components of the camera. For example, under one embodiment, pre-capture process control 402 invokes a defective pixel detection component 428, which determines if one or more of the CCD transistors is malfunctioning. In other embodiments, pre-capture process control 402 invokes a memory availability component 430, which determines if long term image storage 220 of FIG. 1 has enough available memory to accommodate the next image. If there is insufficient available memory, system control 400 either sends a message to the user through a display driver 423 in operating system 416 or reallocates the memory resources by remapping virtual address space, terminating other components or minimizing other components. When system control 400 reallocates the memory resources, it acts as a memory management component. As shown in FIG. 1, this message is provided to the user through a display 230 that is controlled by a display interface 232. Display interface 232 receives its display data from display driver 423 in image processor 214.


Returning to the method of FIG. 2, after step 304, system control 400 checks to see if the user has pressed the image capture button at step 306. Under some embodiments, information as to whether the user has pressed the button is provided by a user input component 414 shown in operating system 416 in FIG. 3. If the capture button has not been pressed at step 306, the process of FIG. 2 returns to step 302, and steps 302 and 304 are repeated.


If the capture button has been pressed at step 306, system control component 400 captures image data for a second frame of light at step 308. System control component 400 then invokes a post-capture process control component 418 that invokes one or more image processing components at step 310. Some of the image processing components, such as compression component 420 of FIG. 3, change the image data as they process it. If another image processing component is invoked after a component that changes the image data, the subsequent image processing component receives the modified image data. Post-capture process control 418 also acts as an image production control that utilizes the results of the pre-capture processing components and the post-capture processing components to produce a final set of image data.


At step 312, the final set of image data is stored in long-term image storage 220 of FIG. 1. Under the embodiment of FIG. 3, the process of storing the final image data is controlled by operating system 416. After the final image data has been stored, the process of FIG. 2 ends at step 314.



FIG. 4 provides a flow diagram for an alternative method of capturing images under the present invention. The process of FIG. 4 starts at step 480 and continues at step 482 where system control 400 waits for the user to depress the capture button. When the user depresses the capture button, system control 400 uses a flash control component 422 in operating system 416 of FIG. 3 to trigger a red-eye reduction flash at step 484 of FIG. 4. At step 486, system control 400 captures image data generated from a frame of light that includes light from the red-eye reduction flash. The red-eye reduction flash illuminates the subject of the photograph so that the captured image has color, contrast, and brightness characteristics more similar to the image produced when the main flash is later triggered, as described below.


At step 488, system control 400 invokes pre-capture process control 402, which invokes one or more processing components as described above.


In addition to using some or all of the processing components described above, some embodiments that utilize the method of FIG. 4 perform an additional pre-capture processing function. This additional function is performed by flash control 424 in FIG. 3 and involves adjusting the parameters of the camera's flash system. For example, in some embodiments, flash control 424 changes the duration and/or brightness of the flash. The changes to the flash parameters are stored in register 228 of FIG. 1 through flash control 422 of operating system 416.


When the pre-capture processing is complete, the method of FIG. 4 continues at step 490 where system control 400 triggers the main flash. The image generated by the light of the main flash is then captured at step 492. At step 494, system control 400 invokes post-capture process control 418, which invokes one or more post-capture processing functions as described above. Post-capture process control 418 utilizes the results of the pre-capture processing and post-capture processing to form a final set of image data that is stored before the process of FIG. 4 ends at step 496.



FIG. 5 provides a flow diagram of an alternative method for capturing images under the present invention. The method of FIG. 5 begins at step 520 and proceeds to step 522 where system control 400 waits to receive a pre-capture event. The pre-capture event can be generated by a software routine based on a timer or some other triggering event or can be generated when the user presses the capture button half-way down. When the pre-capture event occurs, the method of FIG. 5 continues at step 524 where system control 400 captures image data for a first frame of light. At step 526, system control 400 invokes pre-capture process control 402, which invokes one or more pre-capture processing components as described above in connection with FIGS. 2 and 3. In the method of FIG. 5, the pre-capture processing components can include an auto-focus component such as auto-focus component 426 of FIG. 3.


After pre-capture process control 402 has finished executing, system control 400 waits for the user to fully depress the capture button at step 528. When the user fully depresses the capture button, system control 400 retrieves a new set of image data based on a second frame of light that entered the camera just after the capture button was depressed. This is shown in step 530 of FIG. 5. System control 400 then invokes post-capture process control 418 at step 532. Post-capture process control 418 invokes one or more post-capture processing components and utilizes the results from the pre-capture processing components and the post-capture processing components to form a set of final image data. System control 400 then stores the final image data before the method of FIG. 5 ends at step 534.


Under some embodiments of the invention, post-capture process control 418 invokes a verify pre-capture results component 432 to verify the results from one or more of the pre-capture components before utilizing those results. Such verification is helpful because the lighting conditions may have changed between the time when the image data for the first frame of light was collected and the time when the image data for the second frame of light was collected. FIG. 6 is a flow diagram of one method for verifying the pre-capture processing results.


The method of FIG. 6 begins at step 600 where a portion of the image data for the second frame of light is selected. At step 602, this sub-set of image data is provided to the pre-capture processing component that is having its results verified. This produces a verification result that is compared to the original result produced by the pre-capture processing component for the first frame of light. This comparison is performed in step 604. The difference between the two results is compared to a threshold at step 606. If the two results differ by more than the threshold, all of the image data for the second frame of light is passed to the pre-capture processing component to generate a new result at step 608. If the two results differ by less than the threshold, the original result formed from the first frame of light is used at step 610. Thus, if image conditions have changed substantially between the first and second frames of light, the pre-capture processing functions are repeated using the second frame of light instead of the first frame of light. However, if image conditions have not changed substantially between the frames of light, the results formed from the first frame of light are used to determine the final image data.


Although the present invention has been described with reference to particular embodiments, workers skilled in the art will recognize that changes may be made in form and detail without departing from the spirit and scope of the invention.

Claims
  • 1. A method in a camera, the method comprising: acquiring a first set of image data based on a first frame of light entering the camera before receiving an instruction to capture an image from a user; and testing the performance of at least one hardware component in the camera using the first set of image data.
  • 2. The method of claim 1 wherein testing the performance of at least one hardware component comprises determining if the camera has enough available memory to store the first set of image data.
  • 3. The method of claim 2 further comprising determining that the camera does not have enough available memory to store the first set of image data and indicating to the user that there is insufficient memory before acquiring a second set of image data.
  • 4. The method of claim 2 further comprising determining that the camera does not have enough available memory to store the first set of image data and reallocating memory before acquiring the second set of image data.
  • 5. The method of claim 4 wherein reallocating memory comprises terminating a software component.
  • 6. The method of claim 4 wherein reallocating memory comprises minimizing a software component.
  • 7. The method of claim 4 wherein reallocating memory comprises remapping virtual address space.
  • 8. The method of claim 1 wherein testing the performance of at least one hardware component comprises determining if a light sensor is working.
  • 9. The method of claim 8 wherein testing the performance of at least one hardware component comprises determining if each light sensor in an array of light sensors is working.
  • 10. The method of claim 9 further comprising providing an indication of which light sensors are not working before acquiring a second set of image data.
  • 11. The method of claim 1 further comprising receiving a pre-capture event before acquiring the first set of image data.
  • 12. The method of claim 11 wherein the pre-capture event is an indication that a user has pressed a capture button half-way down.
  • 13. The method of claim 11 wherein the pre-capture event is produced by a software routine.
  • 14. A camera having processor-executable components for capturing images, the components comprising: an image acquisition component capable of acquiring image data representing a first frame of light; and a hardware testing component capable of testing a hardware component in the camera based on image data acquired by the image acquisition component for the first frame of light.
  • 15. The camera of claim 14 wherein the hardware testing component comprises a memory availability component capable of performing a memory resource function to determine if there is sufficient available memory to store the image data.
  • 16. The camera of claim 15 further comprising a user notification component capable of notifying the user when there is insufficient memory to store the image data before the image acquisition component acquires image data for a second frame of light.
  • 17. The camera of claim 15 further comprising a memory management component that is capable of reallocating memory resources before the image acquisition component acquires image data for a second frame of light.
  • 18. The camera of claim 17 wherein the memory management component reallocates memory resources by terminating components.
  • 19. The camera of claim 17 wherein the memory management component reallocates memory by remapping a virtual address space.
  • 20. The camera of claim 14 wherein the hardware testing component comprises a defective pixel detection component that is capable of identifying defective light sensors in the camera based on image data acquired for the first frame of light.
REFERENCE TO RELATED APPLICATIONS

The present application is a Continuation of U.S. patent application Ser. No. 09/505,223, filed on Feb. 16, 2000, which claims priority benefit from U.S. Provisional Application 60/136,517, filed on May 28, 1999 and entitled “EARLY IMAGE ACQUISITION”.

Provisional Applications (1)
Number Date Country
60136517 May 1999 US
Continuations (1)
Number Date Country
Parent 09505223 Feb 2000 US
Child 11233349 Sep 2005 US