Abstract:
A focus adjusting system includes an optical unit movable to adjust a focus of an object image to an image capture unit for imaging an object to produce a signal representative of the object image, a detection unit for extracting, as a first signal, a high-frequency component of the signal produced by the image capture unit, a moving unit for moving the optical unit a first amount of movement so as to cause the first signal to reach a maximum value, and a changing unit for changing the first amount of movement according to a quantity of image shake of the object image occurring in the image capture unit.

Description:
BACKGROUND OF THE INVENTION 
   1. Field of the Invention 
   The present invention relates to a focus adjusting system, an image capture apparatus and a control method thereof, and is suitable for coping with such a situation that a large quantity of image shake (commonly called “camera shake”) occurs in an object image taken by the image capture apparatus because of, for example, an unsteady hand of the apparatus user. 
   2. Description of Related Art 
   The current trend in automatic focusing apparatuses for video cameras is to use an AF (automatic focusing) evaluation value for focus adjustment. The AF evaluation value is detected as the sharpness of a taken picture from a video signal obtained by photo-electrically converting an object image via an image capture element or the like. Then, the position of a focusing lens is controlled to make the level of the AF evaluation value maximum. 
   As the AF evaluation value, use is generally made of the level of a high-frequency component of the video signal that is extracted by a band-pass filter having a given bandwidth. When an ordinary object image is taken, the level of the AF evaluation value increases as the focusing lens approaches an in-focus point, as shown in  FIG. 2 . The in-focus point is considered to be the position of the focusing lens where the AF evaluation value has reached a maximum level. 
   In addition, some video cameras are equipped with an image stabilizing apparatus. The image stabilizing apparatus detects the quantity of image shake of a taken picture by sensing a signal from an angular velocity sensor such as a vibration gyroscope or by detecting motion vectors from an image signal, and compensates for image shake optically or electronically on the basis of the quantity of image shake detected. 
   In such a video camera capable of detecting image shake, information on image shake can be utilized for controlling automatic focusing. For example, Japanese Laid-Open Patent Application No. Hei 10-322583 (page 6 and  FIG. 2 ) proposes that automatic focusing be inhibited as long as a large quantity of image shake occurs. 
   However, the above proposal has the following problem. If automatic focusing is suspended as long as a large quantity of image shake occurs, automatic focusing cannot respond to changes in object distance that may take place during such a period. 
   SUMMARY OF THE INVENTION 
   The present invention has been made in consideration of the above situation, and an object of the present invention is to enable adequate focus adjustment even when a large quantity of image shake is occurring. 
   Another object of the present invention is to enable automatic focusing to adequately respond to changes in object distance even if a large quantity of image shake occurs. 
   According to an aspect of the present invention, the foregoing objects are attained by providing a focus adjusting system including an optical unit movable to adjust a focus of an object image to an image capture unit for imaging an object to produce a signal representative of the object image, a detecting unit for extracting, as a first signal, a high-frequency component of the signal produced by the image capture unit, a moving unit for moving the optical unit a first amount of movement so as to cause the first signal to reach a maximum value, and a changing unit for changing the first amount of movement according to a quantity of image shake of the object image occurring in the image capture unit. 
   Other features and advantages of the present invention will be apparent from the following detailed description of embodiments thereof when taken in conjunction with the accompanying drawings, in which like reference characters designate the same or similar parts throughout the figures thereof. 

   
     BRIEF DESCRIPTION OF THE DRAWINGS 
     The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the invention and, together with the description, serve to explain the principles of the invention. 
       FIG. 1  is a block diagram of the components of a video camera according to an embodiment of the invention. 
       FIG. 2  is a diagram showing a curve for an AF evaluation value. 
       FIG. 3  is a flow chart illustrating an AF control process. 
       FIG. 4  is a flow chart illustrating a minute driving operation for determining whether an in-focus point has been reached. 
       FIG. 5  is a diagram showing the movement of a focusing lens relative to time. 
       FIG. 6  is a flow chart illustrating a hill-climbing driving operation for moving the focusing lens in such a direction as to increase an AF evaluation value. 
       FIG. 7  is a diagram showing the movement of the focusing lens during the hill-climbing driving operation. 
       FIG. 8  is a flow chart illustrating a part of the AF control process performed when a large quantity of image shake occurs. 
       FIGS. 9A and 9B  are diagrams illustrating the movement of the focusing lens in a normal condition and in a condition where a large quantity of image shake occurs, respectively. 
   

   DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS 
   Preferred embodiments of the invention will be described in detail below with reference to the drawings. 
     FIG. 1  is a block diagram showing the components of a video camera VC according to an embodiment of the invention. The video camera VC includes a first fixed lens group  101 , a variator lens  102  for variable magnification, an iris  103 , a second fixed lens group  104 , and a focusing/compensating lens (hereinafter referred to as a “focusing lens”)  105 . The focusing lens  105  has both the function of compensating for movement of a focal plane resulting from variable magnification and the function of adjusting focus. The video camera VC further includes a CCD (charge coupled device)  106 , a CDS/AGC (correlated double sampling/automatic gain control) circuit  107 , a camera signal processing circuit  108 , and a recording device  109 . The CCD  106  serves as an image capture element. The CDS/AGC circuit  107  samples and gain-controls the output of the CCD  106 . The camera signal processing circuit  108  processes the output signal from the CDS/AGC circuit  107  into a signal compatible with the recording device  109 . The recording device  109  uses a magnetic tape as a recording medium. 
   The video camera VC further includes a motor  110 , a driver  111 , a timing generator (hereinafter referred to as a “TG”)  112 , an AF (automatic focusing) evaluation value processing circuit  113 , a camera AF microcomputer  114 , and a monitor device  118 . The motor  110  serves as an actuator for moving the focusing lens  105 . The driver  111  drives the motor  110  according to a signal from the camera AF microcomputer  114 . The TG  112  generates a pulse signal to drive the CCD  106  according to setting values from the camera AF microcomputer  114 . The AF evaluation value processing circuit  113  extracts a high-frequency component for use in focus detection from the output signal of the CDS/AGC circuit  107 . The camera AF microcomputer  114  controls the driver  111  on the basis of the output signal of the AF evaluation value processing circuit  113  so as to drive the focusing lens  105 , and issues to the recording device  109  a command to record an image signal. The monitor device  118  displays thereon an image represented by the output signal of the camera signal processing circuit  108 , allowing the user to observe the image. 
   The video camera VC further includes an angular velocity sensor  115 . The angular velocity sensor  115  can be a vibration gyroscope and produces a sensor output, which is used for the camera AF microcomputer  114  to detect the quantity of image shake. While, in the present embodiment, an angular velocity sensor, such as a vibration gyroscope, is used for an image-shake detecting method, an alternative arrangement for detecting motion vectors using image detection may be employed without using any sensors. 
   AF control operation of the camera AF microcomputer  114  is described next in detail with reference to  FIGS. 3 to 7 . An overall AF control process is first described with reference to  FIG. 3 . 
   At step S 301 , the processing flow for the AF control process begins. 
   At step S 302 , a minute driving operation is performed to determine whether an in-focus state has been attained and, if not, to determine in which direction an in-focus point is present. The details of the minute driving operation are described later with reference to  FIG. 4 . 
   At step S 303 , a check is made to see if an in-focus state has been successfully attained at the step S 302 . If so, the processing flow proceeds to step S 309 , where an in-focus/restart determining process is performed. If not, the processing flow proceeds to step S 304 . 
   At step S 304 , a check is made to see if the driving direction for the focusing lens  105  has been successfully determined at the step S 302 . If so, the processing flow proceeds to step S 305 , where a hill-climbing driving operation is performed. If not, the processing flow returns to step S 302 , where the minute driving operation is continued. 
   At step S 305 , the hill-climbing driving operation is performed to drive the focusing lens  105  at a predetermined speed in such a direction as to increase the AF evaluation value. The details of the hill-climbing driving operation are described later with reference to  FIG. 6 . 
   At step S 306 , a check is made to see if the AF evaluation value has passed over a peak in the hill-climbing driving operation performed at the step S 305 . If so, the processing flow proceeds to step S 307 . If not, the processing flow returns to step S 305 , where the hill-climbing driving operation is continued. 
   At step S 307 , the focusing lens  105  is returned to its position where the peak of the AF evaluation value has been found in the hill-climbing driving operation. 
   At step S 308 , a check is made to see if the focusing lens  105  has returned to its position where the peak of the AF evaluation value has been found. If so, the processing flow returns to step S 302 , where the minute driving operation is resumed. If not, the processing flow returns to step S 307 , where the operation of returning the focusing lens  105  to the peak position is continued. 
   The in-focus/restart determining process beginning with step S 309  is described next. 
   At step S 309 , an AF evaluation value obtained when the focusing lens  105  is at an in-focus point is held. 
   At step S 310 , the current AF evaluation value is taken in. 
   At step S 311 , the AF evaluation value held at the step S 309  is compared with the current AF evaluation value to make a check to see if a large change has occurred in level of the AF evaluation value. If so, the processing flow proceeds to step S 302 , where the minute driving operation is resumed. If not, the processing flow proceeds to step S 312 . 
   At step S 312 , the focusing lens  105  is brought to a stop. Then, the processing flow returns to step S 310 , where the in-focus/restart determining process is continued. 
   The minute driving operation is described next with reference to  FIG. 4 . 
   At step S 401 , the processing flow for the minute driving operation begins. 
   At step S 402 , a check is made to see if the current mode is “Mode 0”. If so, the processing flow proceeds to step S 403 , where a process in a lens position on the minimum-object-distance side is performed. If not, the processing flow proceeds to step S 411 . 
   (Process in a Lens Position on the Minimum-Object-Distance Side) 
   At step S 403 , an AF evaluation value is taken in from the AF evaluation value processing circuit  113 . This AF evaluation value is the one obtained from a video signal produced from electric charges stored in the CCD  106  when the focusing lens  105  is situated on the infinite-distance side at the time of “Mode 2” (to be described later). 
   At step S 404 , the AF evaluation value taken in at the step S 403  is stored as an infinite-distance-side AF evaluation value. 
   At step S 405 , a check is made to see if driving directions of the focusing lens  105  that have been judged a predetermined number of consecutive times to be the direction of approaching an in-focus point are the same. If so, the processing flow proceeds to step S 407 . If not, the processing flow proceeds to step S 406 . 
   At step S 406 , a check is made to see if the focusing lens  105  has reciprocated within a predetermined area a predetermined number of times. If so, the processing flow proceeds to step S 408 . If not, the processing flow proceeds to step S 409 , where a parameter indicative of the current mode number is incremented (the parameter being returned to “0” when reaching “4”). Then, the processing flow returns to step S 402 . 
   At step S 407 , the driving direction of the focusing lens  105  is considered to have been successfully determined. The processing flow proceeds to step S 410 , where the minute driving operation comes to an end. Then, the processing flow proceeds to the hill-climbing driving operation. 
   At step S 408 , an in-focus state is considered to have been successfully attained. The processing flow proceeds to step S 410 , where the minute driving operation comes to an end. Then, the processing flow proceeds to the in-focus/restart determining process. 
   At step S 411 , a check is made to see if the current mode is “Mode 1”. If so, the processing flow proceeds to step S 412 , where a process for driving the focusing lens  105  toward the infinite-distance side is performed. If not, the processing flow proceeds to step S 417 . 
   (Process for Driving the Focusing Lens  105  Toward the Infinite-Distance Side) 
   At step S 412 , a vibration amplitude and a center-shifting amplitude for use in the minute driving operation are computed. Although not been described in detail herein, the amplitude is generally decided on the basis of the depth of focus, i.e., the amplitude is made smaller if the depth of focus is shallow and the amplitude is made larger if the depth of focus is deep. 
   At step S 413 , the infinite-distance-side AF evaluation value obtained at the time of “Mode 0” (described above) is compared with a minimum-object-distance-side AF evaluation value obtained at the time of “Mode 2” (to be described later). If the infinite-distance-side AF evaluation value is larger than the minimum-object-distance-side AF evaluation value, the processing flow proceeds to step S 414 . If the infinite-distance-side AF evaluation value is equal to or smaller than the minimum-object-distance-side AF evaluation value, the processing flow proceeds to step S 415 . 
   At step S 414 , a driving amplitude is set as follows:
 
driving amplitude=vibration amplitude+center-shifting amplitude.
 
   At step S 415 , the driving amplitude is set as follows:
 
driving amplitude=vibration amplitude.
 
   At step S 416 , the focusing lens  105  is driven toward the infinite-distance side at the driving amplitude as set at the step S 414  or S 415 . 
   Then, the processing flow proceeds to step S 405  and subsequent steps, which have been described above. 
   At step S 417 , a check is made to see if the current mode is “Mode 2”. If so, the processing flow proceeds to step S 418 , where a process in a lens position on the infinite-distance side is performed. If not, the processing flow proceeds to step S 420 . 
   (Process in a Lens Position on the Infinite-Distance Side) 
   At step S 418 , an AF evaluation value is taken in from the AF evaluation value processing circuit  113 . This AF evaluation value is the one obtained from a video signal produced from electric charges stored in the CCD  106  when the focusing lens  105  is situated on the minimum-object-distance side at the time of “Mode 0” (described above). 
   At step S 419 , the AF evaluation value taken in at the step S 418  is stored as an minimum-object-distance-side AF evaluation value. 
   Then, the processing flow proceeds to step S 405  and subsequent steps, which have been described above. 
   (Process for Driving the Focusing Lens  105  Toward the Minimum-Object-Distance Side) 
   At step S 420 , a vibration amplitude and a center-shifting amplitude for use in the minute driving operation are computed. Although not been described in detail herein, the amplitude is generally decided on the basis of the depth of focus, i.e., the amplitude is made smaller if the depth of focus is shallow and the amplitude is made larger if the depth of focus is deep. 
   At step S 421 , the minimum-object-distance-side AF evaluation value obtained at the time of “Mode 2” (described above) is compared with the infinite-distance-side AF evaluation value obtained at the time of “Mode 0” (described above). If the minimum-object-distance-side AF evaluation value is larger than the infinite-distance-side AF evaluation value, the processing flow proceeds to step S 422 . If the minimum-object-distance-side AF evaluation value is equal to or smaller than the infinite-distance-side AF evaluation value, the processing flow proceeds to step S 423 . 
   At step S 422 , a driving amplitude is set as follows:
 
driving amplitude=vibration amplitude+center-shifting amplitude.
 
   At step S 423 , the driving amplitude is set as follows:
 
driving amplitude=vibration amplitude.
 
   At step S 424 , the focusing lens  105  is driven toward the minimum-object-distance side at the driving amplitude as set at the step S 422  or S 423 . 
   Then, the processing flow proceeds to step S 405  and subsequent steps, which have been described above. 
     FIG. 5  shows the above-described behavior of the focusing lens  105  relative to time. In  FIG. 5 , the abscissa axis indicates time, and the ordinate axis indicates the position of the focusing lens  105 . A periodic pattern of downward projections shown in the upper part of  FIG. 5  indicates a vertical synchronizing signal included in a video signal. Referring to  FIG. 5 , an AF evaluation value EV A  produced from electric charges (indicated by a hatched ellipse) stored in the CCD  106  during a period of time A is taken in at a point of time T A , and an AF evaluation value EV B  produced from electric charges (also indicated by a hatched ellipse) stored in the CCD  106  during a period of time B is taken in at a point of time T B . At a point of time T C , the AF evaluation value EV A  is compared with the AF evaluation value EV B . If EV B &gt;EV A , the center of vibration is shifted. On the other hand, if EV A =EV B , the center of vibration is not shifted. 
   Essential features of the invention are described next with reference to  FIGS. 8 ,  9 A and  9 B.  FIG. 8  shows the details of the processing flow of step S 412  or S 420  shown in  FIG. 4 . 
   At step S 801 , the processing flow for the driving amplitude computing process begins. 
   At steps S 802  and S 803 , the vibration amplitude and the center-shifting amplitude are computed, respectively. The vibration amplitude can be set, based on the depth of focus, to an amount of movement that causes such a variation in AF evaluation value as to enable the driving direction of the focusing lens  105  to be determined. The center-shifting amplitude can also be set, based on the depth of focus, to an amount of movement that enables the focusing lens  105  to respond to a change in object distance without delay. 
   At step S 804 , the quantity of image shake is detected to make a check as to whether the quantity of image shake is larger than a predetermined level. If the quantity of image shake is not larger than the predetermined level, the processing flow proceeds to step S 806 . If the quantity of image shake is larger than the predetermined level, the processing flow proceeds to step S 805 . 
   At step S 805 , since the image shake, the quantity of which is large, is considered to have a great influence on an AF evaluation value, the vibration amplitude as set at the step S 802  is increased, so that a variation in AF evaluation value resulting from a difference in position of the focusing lens  105  can be made larger. 
   At step S 806 , the processing flow for the driving amplitude computing process comes to an end. 
     FIGS. 9A and 9B  show the behavior of the focusing lens  105  according to the embodiment of the invention.  FIG. 9A  shows the position of the focusing lens  105  relative to time in a normal condition, and  FIG. 9B  shows the position of the focusing lens  105  relative to time in a condition where a large quantity of image shake occurs. The abscissa axis indicates time and the ordinate axis indicates the position of the focusing lens  105 . Each bi-arrowed line indicates a vibration amplitude, and each arrowed line having a square base point indicates an amount of shifting of the center of vibration (i.e., a center-shifting amplitude). 
   When a large quantity of image shake occurs, only the vibration amplitude (indicated by the bi-arrowed lines) is increased. Thus, since the amount of shifting of the center does not change, the behavior of shifting of the average position of the focusing lens  105  (indicated by dotted lines) does not differ, in terms of time, from that taken when no image shake occurs. Under this condition, two AF evaluation values resulting from a larger difference in position of the focusing lens  105  can be obtained. 
   On the contrary, should the amount of shifting of the center be increased instead, a variation in the average position of the focusing lens  105  becomes large, so that there is an increased probability that the position of the focusing lens  105  may deviate from a range corresponding to the depth of focus. In this case, an unfavorable, unsteady focusing state will occur frequently. 
   The hill-climbing driving operation is described next with reference to  FIG. 6 . 
   At step S 601 , the processing flow for the hill-climbing driving operation begins. 
   At step S 602 , an AF evaluation value is taken in from the AF evaluation processing circuit  113 . 
   At step S 603 , a check is made to see if the AF evaluation value taken in at the step S 602  is larger than the previous AF evaluation value. If so, the processing flow proceeds to step S 604 . If not, the processing flow proceeds to step S 606 . 
   At step S 604 , the focusing lens  105  is driven in the hill-climbing fashion at a predetermined speed in the forward direction (i.e., in the same direction as the previous one). Then, the processing flow proceeds to step S 605 , where the present process comes to an end. 
   At step S 606 , a check is made to see if the AF evaluation value has decreased after passing over a peak. If not, the processing flow proceeds to step S 607 . If so, the processing flow proceeds to step S 605 , where the present process comes to an end. In this case, the processing flow proceeds to the minute driving operation. 
   At step S 607 , the focusing lens  105  is driven in the hill-climbing fashion at a predetermined speed in the backward direction (i.e., in the direction opposite to the previous one). Then, the processing flow proceeds to step S 605 , where the present process comes to an end. 
     FIG. 7  shows the behavior of the focusing lens  105  during the hill-climbing driving operation described above. In  FIG. 7 , a solid curve C indicates that, since the AF evaluation value decreases after passing over the peak, an in-focus point is considered to be found and, therefore, the processing flow brings the hill-climbing driving operation to an end and proceeds to the minute driving operation. On the other hand, a dotted curve D indicates that, since the AF evaluation value decreases without passing through a peak, the driving direction of the focusing lens  105  is considered to be misjudged and, therefore, the processing flow continues the hill-climbing driving operation after causing the driving direction of the focusing lens  105  to be inverted. 
   As described above, in order to attain and maintain an in-focus state, the camera AF microcomputer  114  operates to make the AF evaluation value reach a predetermined value, for example, a maximum value, by causing the focusing lens  105  to move while repeating the above-stated processes, i.e., the in-focus/restart determining process—the minute driving operation—the hill-climbing driving operation—the minute driving operation—the in-focus/restart determining process—. . . , in that order. 
   With the video camera as configured above, in a photographic condition where a large quantity of image shake occurs, an amount of movement of the focusing lens  105  is increased as much as a change of the AF evaluation value increases (i.e., noise increases) owing to image shake. Thus, a change of the AF evaluation value caused by the movement of the focusing lens  105  is increased to heighten an S/N ratio of the AF evaluation value. Therefore, the precision in determining a direction of moving the focusing lens  105  can be improved. 
   The present invention can be applied to a system constituted by a plurality of devices (e.g., host computer, interface, reader, printer) or to an apparatus comprising a single device (e.g., copying machine, facsimile machine). 
   Further, the object of the present invention can also be achieved by providing a storage medium storing program codes for performing the aforesaid processes to a computer system or apparatus (e.g., a personal computer), reading the program codes, by a CPU or MPU of the computer system or apparatus, from the storage medium, and then executing the program. 
   In this case, the program codes read from the storage medium realize the functions according to the embodiments, and the storage medium storing the program codes constitutes the invention. 
   Further, the storage medium, such as a floppy disk, a hard disk, an optical disk, a magneto-optical disk, a CD-ROM, a CD-R, a magnetic tape, a non-volatile type memory card, and a ROM, can be used for providing the program codes. 
   Furthermore, besides the aforesaid functions according to the above embodiments being realized by executing the program codes which are read by a computer, the present invention includes a case where an OS (operating system) or the like running on the computer performs a part of or entire processes in accordance with designations of the program codes and realizes functions according to the above embodiments. 
   Furthermore, the present invention also includes a case where, after the program codes read from the storage medium are written in a function expansion card which is inserted into the computer or in a memory provided in a function expansion unit which is connected to the computer, a CPU or the like contained in the function expansion card or unit performs a part of or entire processes in accordance with the designations of the program codes and realizes functions of the above embodiments. 
   In a case where the present invention is applied to the aforesaid storage medium, the storage medium stores program codes corresponding to the flowcharts described in the embodiments. 
   The present invention is not limited to the above embodiments and various changes and modifications can be made within the spirit and scope of the present invention. Therefore, to apprise the public of the scope of the present invention, the following claims are made.