Focus control apparatus and methods

Abstract: A focus control system for a video camera determines a first gradient (ϑ₀) indicative of a change in value of a predetermined frequency component in the video signal for first and second lens positions (lm, lm+1) obtained from the signal of predetermined frequency component in the video signal sampled at the first lens position (lm) and at the second lens position (lm+1), and determines a second gradient (ϑ₁) indicative of a change in value of the predetermined frequency component in the video signal for the second lens position (lm+1) and a third lens position (lm+2) obtained from the signal of the predetermined frequency component in the video signal sampled at the third lens position (lm+2). The speed of longitudinal movement of the lens is controlled in accordance with changes in the first and second gradients (ϑ₀, ϑ₁), thereby permitting faster focusing and reducing the amount of overrun of the lens during focusing.

Description: This invention relates to focus control apparatus and methods, and in particular to focus control apparatus and methods used in contrast detecting systems of video cameras. In an autofocusing system of the kind used in a video camera, a system has been proposed for obtaining a correct focus position that involves what is called peak detecting control. One such autofocusing system is based on the finding that selected frequency components in the video signal, excluding the DC component, become a maximum at the correct focus position. The frequency components (excluding the DC component) in the video signal are integrated and form so-called evaluation value data, and the lens is then moved to the position at which the evaluation value data is a maximum. An example of such a system is described in Japanese Patent Application JP-A-62146 628. In that type of autofocusing system, in order to move the lens to the focus position at which the evaluation value data becomes a maximum, several processes must be executed in which the evaluation value data at the front and rear lens positions are compared and a discrimination made, in order to determine the point at which the evaluation value data changes from increasing to decreasing with change in position; such processes are called peak detecting control. Figure 1 of the accompanying drawings represents an example of such an autofocusing system, in which a lens 51 is moved by a lens drive motor 52, and an image obtained through the lens 51 is picked up by a CCD image pickup device 53. The output of the CCD image pickup device 53 is supplied to a signal processing circuit 54 and a luminance signal Y is extracted. The luminance signal Y is fed through a bandpass filter 55 to a detecting circuit 56 whose output is supplied to an analog-to-digital (A/D) converter 57. The digital output of the A/D converter 57 is supplied to an integrating circuit 58, in which the output of the A/D converter 57 is integrated over a predetermined area. The output of the integrating circuit 58 then constitutes the evaluation value data. The evaluation value data is supplied to a controller 60 that produces a drive signal which is supplied to the lens drive motor 52 through a driver interface unit 61. The controller 60 controls the position of the lens 51 by moving it to the position at which the evaluation value data, which is the output from the integrating circuit 58, becomes a maximum. As described above, this is peak detecting control being used in an autofocusing system. Such peak detecting control assumes that the relation between the lens position and the evaluation value data can be described by a curve, such as that shown in Figure 2 of the accompanying drawings. In Figure 2, evaluation value data Dn that is obtained at a lens position ln and evaluation value data Dn+1 that is obtained at a lens position ln+1, which is a subsequent continuous lens position relative to the lens position ln, are compared while moving the lens 51 in one direction. The lens 51 is moved until the evaluation value data Dn obtained at the lens position ln is smaller than the evaluation value data Dn+1 obtained at the subsequent continuous lens position ln+1. As shown in Figure 2, when the lens position moves to the right, the evaluation value data increases until the lens passes through a lens position indicated as l focus, at which point the evaluation value data reaches a maximum value Dmax. When the lens passes through the lens position l focus, the evaluation value data changes in the decreasing direction. Therefore, by performing the peak detecting control such that a discrimination is made to determine whether the evaluation value data Dn and Dn+1 at the two lens positions ln and ln+1 change from increasing to decreasing directions while moving the lens in one direction, it is possible to determine that the lens has passed through the lens position l focus at which the evaluation value data reaches its maximum value Dmax, so that the correct focus position can be derived. Nevertheless, although this method appears to be effective in theory, there is a situation that occurs in practice wherein a concave/convex portion appears in the evaluation value data curve that indicates a variation in the relation between a change in lens position versus a change in evaluation value data. This concave/convex portion of the response curve may be due to noise and/or to the influence of vibrations caused by the person holding the camera, as well as other outside influences on the mechanical structure of the camera and on the electronic components. In the case where such a concave/convex portion occurs in the curve, if the peak detecting control is operated to discriminate whether the evaluation value data at the two continuous lens positions have changed from increasing in value to decreasing in value while moving the lens in one direction, as explained above, there is the distinct possibility that the concave/convex portion, sometimes called a "false peak", will be erroneously thought to be the lens position at which the evaluation value data is a maximum. For example, as shown in Figure 3 of the accompanying drawings, when evaluation value data Da derived at a lens position la and evaluation value data Da+1 derived at a lens position la+1 are compared, the evaluation value data Da+1 at the lens position la+1 is found to be smaller than the evaluation value data Da at the lens position la. Therefore, upon determining that the evaluation value data at the two successive lens positions has changed from increasing to decreasing, it will be determined that at this position the lens has passed through the point at which the evaluation value data becomes maximum. An erroneous focus position will have then been found. Therefore, a predetermined threshold value is provided when discriminating whether the evaluation value data at the two successive lens positions changes from increasing to decreasing. In this way, a check is made to determine whether the difference between the evaluation value data at the two lens positions has been reduced by the predetermined threshold value. If such difference exceeds the predetermined threshold value and changes in the decreasing direction, it is determined that the lens has actually passed through the lens position at which the evaluation value data is a maximum. When using peak detecting control to perform the autofocus operation, the position of the lens at which the evaluation value data is detected as a maximum can overrun or overshoot the actual lens position at which the evaluation value data is the maximum. Therefore, a process must be performed to return the position of the lens by only the overrun amount. If the amount of overrun that occurs when detecting the lens position of maximum evaluation value data is large, an undesirable oscillation in focus occurs in the video signal on the screen. Therefore, it is desirable to reduce the amount of lens overrun past the actual focus point. As might be assumed, this overrun amount increases when rotating the lens drive motor 52 of Figure 1 at a high speed. Therefore, with a view to reducing the overrun amount, it is desirable to reduce the speed of rotation of the drive motor when executing peak detecting control; however, when the lens drive motor is operated at a low speed, the control speed and autofocus system response is slow. On the other hand, as mentioned above, if a predetermined threshold value is provided when discriminating whether the evaluation value data at the two successive lens positions have changed from increasing to decreasing, the evaluation value data will be detected as having passed through the maximum value only when the evaluation value data has actually exceeded the maximum value and has decreased to the threshold value or less; consequently, the overrun amount will be greater. Further prior art is given in EP-A-0 092 850, which relates to an automatic focussing apparatus for use in a television camera. According to the present invention there is provided focus control apparatus for a video camera in which a component of a video signal is maximised for performing focus control, the apparatus comprising: means for extracting a signal having a predetermined frequency component from a video signal; means for moving a position of a lens of the camera; and means for sampling the signal of predetermined frequency component extracted from the video signal at continuous, successive at least first, second, and third lens positions; characterized by: means for determining a first gradient in response to a change in value of the signal of predetermined frequency component for a change in lens position between said first and second lens positions from the signal of the predetermined frequency component sampled at the first lens position (lm) and the signal of the predetermined frequency component sampled at the second lens position; means for determining a second gradient in response to a change in value of the signal of predetermined frequency component for a change in lens position between said second and third lens positions from the signal of the predetermined frequency component sampled at the second lens position and the signal of the predetermined frequency component sampled at the third lens position; and means for controlling the speed of movement of the lens at said successive lens positions in response to a comparison of said first and second gradients. According to a second aspect of the present invention there is provided a method of focus control for a video camera wherein a video signal level from the camera is maximised by movement of the lens through continuous positions to the in-focus position, the method comprising the steps of: extracting a signal having a predetermined frequency component from the video signal; and sampling the extracted signal at at least three successive points corresponding to three respective lens positions; characterized by; deriving a first gradient indicative of a change in value between said extracted signal at a first sample point and a second sample point; deriving a second gradient indicative of a change in value between said extracted signal at said second sample point and a third sample point; comparing the first and second gradients; and controlling the speed of movement of the lens at said successive lens positions in response to the comparison. In a focus control apparatus according to a preferred embodiment of the invention, to be described in greater detail hereinafter, a driving voltage v for the lens drive motor is determined by the following equation: v = (tan ϑ₁/tanϑ₀).v₀ where ϑ is the angle or slope between successive data points on the evaluation value data curve. Thus, when the lens position is far from the location corresponding to the maximum of the evaluation value data, the lens drive motor is operated at a high speed, and when the lens position approaches the location corresponding to the maximum evaluation value data, the lens drive motor can be operated at a low speed. Accordingly, the preferred embodiment of the present invention provides a focus control apparatus in which the lens drive motor is driven at a high speed until the evaluation value data approaches a maximum value and, as the evaluation value data approaches the maximum value, the driving motor is driven at a low speed, thereby allowing the control speed to be high and at the same time reducing the amount of lens overshoot. The invention will now be described by way of example with reference to the accompanying drawings, throughout which like parts are referred to by like references, and in which: Figure 1 is a schematic in block diagram form of a previously proposed autofocusing system; Figure 2 is a graph useful in explaining the ideal operation of the autofocusing system of Figure 1; Figure 3 is a graph similar to that of Figure 2 useful in explaining operation in practice of the system of Figure 1; Figure 4 is a schematic in block diagram form of an autofocusing system according to an embodiment of the present invention; Figure 5 is a flowchart useful in explaining the operation of a peak detecting control portion of the system shown in Figure 4; Figure 6 is a graph useful in explaining the operation of the embodiment of Figure 4; Figure 7 is a flowchart useful in explaining the operation of the embodiment of Figure 4; and Figure 8 is a pictorial representation showing the integration area on a typical scene as viewed by a video camera. Referring to Figure 4, a lens 1 is mounted for rotation in either of the directions of arrows a and b by a lens drive motor 2 interacting with a focus ring 1a, so that by use of suitable mechanical elements (not shown), the lens 1 is moved longitudinally in either of the directions of arrows c and d , and the focus position is thereby controlled. More specifically, when the lens 1 is rotated in the direction of the arrow a by the drive motor 2, the lens 1 is moved in the direction of the arrow c , and is focused to the near distance. When the lens 1 is rotated in the direction of the arrow b , the lens 1 is moved in the direction of the arrow d and is focused to the far distance. The image obtained through the lens 1 is picked up by a CCD image pickup device 3, and an output signal of the CCD image pickup device 3 is supplied to a signal processing circuit 4. The signal processing circuit 4 operates on the image signal to extract a luminance signal Y and a chrominance or chroma signal C, and it typically includes a processing circuit, a colour encoder and the like. The luminance signal Y extracted by the signal processing circuit 4 is supplied to bandpass filters 5A and 5B. In this embodiment, the passband frequency of the bandpass filter 5A is set from 100 kHz to 4 MHz, and the passband frequency of the bandpass filter 5B is set from 500 kHz to 4 MHz. Thus, signals with only predetermined frequency components are extracted by the bandpass filters 5A and 5B from the luminance signal Y output from the signal processing circuit 4, and are selectively supplied through a switching circuit 6. The switching circuit 6 is controlled in accordance with the image of an object by a switch control signal SC from a controller 10. For example, in the case of an object of strong contrast, the output of the bandpass filter 5B is selected and in the case of an object of weak contrast, the output of the bandpass filter 5A is selected. The output of the switching circuit 6 is supplied to a detecting circuit 7 where the level of the output from one of the bandpass filters 5A or 5B is detected. The output of the detecting circuit 7 is supplied to an analog-to-digital (A/D) converter 8 wherein the portion of the luminance signal Y having a predetermined level and a predetermined frequency component is digitised. The output of the A/D converter 8 is supplied to an integrating circuit 9 that also receives an integration area control signal SA supplied from the controller 10. The digital data of known level and predetermined frequency component derived from the luminance signal Y is integrated by the integrating circuit 9 over an area that is designated by the integration area control signal SA and is supplied as evaluation value data D to the controller 10. Figure 8 is a pictorial schematic representation of a typical scene A as might be seen by a video camera, and the area over which the signal is to be integrated is shown at B. The controller 10 controls the position of the lens 1 in accordance with the peak detecting control method by using the evaluation value data D from the integrating circuit 9, thereby obtaining the proper focus position of the lens 1. The driving signal for the lens drive motor 2 is supplied from the controller 10 and fed through a driver interface 11 to the lens drive motor 2. A counter or back electromotive force (EMF) signal is typically generated by the lens drive motor 2 in association with its rotation, and the counter electromotive force signal is supplied to the controller 10 through the driver interface 11 as a frequency generator (FG) signal used by the controller 10 to detect the rate of rotation of the lens drive motor 2. The FG signals are counted over a predetermined time and the rotational speed of the lens drive motor 2 is detected based on the count value of the FG signals. The detected rotational speed and the derived rotational speed are compared and the driving voltage according to the results of the comparison is provided to the drive motor 2 through the driver interface 11. The FG signal can be also obtained by optical means or magnetic means using any of several well-known approaches. A potentiometer 12 is mechanically connected to detect the longitudinal position of the lens 1 and the potentiometer 12 is electrically connected to the controller 10. A diaphragm or iris opening detecting device 13 detects the extent or degree of the iris opening and a signal representing this is supplied to the controller 10. When performing peak detecting control by using the evaluation value data D that is output from the integrating circuit 9, a coefficient for the evaluation value data D is set by the outputs of the potentiometer 12 and the iris opening detecting device 13. A reflective film 15 is attached to a part of the outer periphery of the barrel of the lens 1, and a light emitting diode 16 and a photodiode 17 are provided to cooperate with the reflective film 15. The output of the photodiode 17 is also supplied to the controller 10. The reflective film 15 is arranged to correspond to a region wherein the lens 1 lies within a movable range. The region where the lens 1 is out of the movable range corresponds to the remainder of the lens barrel not covered by the light reflective tape 15, an area forming a non-reflective portion 18. When the lens 1 lies within the movable range, the output of the light emitting diode 16 is reflected by the reflective film 15, and the reflected light is received by the photodiode 17 and an output signal is produced. When the lens 1 is moved so that the edge of the reflective tape 15 is out of view of the light emitting diode 16, the light from the light emitting diode 16 irradiates the non-reflective portion 18 of the lens barrel, so that no output is obtained from the photodiode 17. The focusing of the lens 1 can be performed by using the evaluation value data D obtained by integrating the data of the level-limited, predetermined-frequency component of the luminance signal Y over a predetermined area, as shown for example at B in Figure 8. More specifically, when measuring a distribution of the spectrum components and the corresponding intensity in which the focusing state extends from the complete out-of focus state to the in-focus state and back again to the out-of focus state, in the out-of focus state the spectrum component exists on the low-frequency side and its magnitude is small. As the lens approaches the in-focus state, the spectrum component deviates to the high-frequency side and its magnitude also increases. As a result of this, all of the frequency components, excluding the DC component, in the video signal are integrated, and the resultant data can be used as the focus evaluation value data D obtained from the output of the integrating circuit 9. The lens position at which the evaluation value data D becomes maximum is searched for in accordance with a peak detecting control method, as represented in Figure 5. In this manner, the lens position at which the evaluation value data D becomes maximum is set to be the in-focus position. As shown in the flowchart of Figure 5, evaluation value data Dn is obtained while moving the lens 1 in one direction by the lens drive motor 2, in a step 31. Then, evaluation value data Dn+1, which is continuous to the data Dn, is obtained in a step 32 by continuing to drive the lens in the same direction. The difference between the evaluation value data Dn and Dn+1 is calculated in a step 33 and a check is made to determine whether the evaluation value data difference has exceeded a predetermined threshold value Δ and has begun to decrease. If the evaluation value data Dn+1 is larger than the evaluation value data Dn, the lens has not yet reached the position that would result in the maximum value of the evaluation value data. Therefore, the decision in the step 33 is YES, the processing routine returns to the step 31, and the driving of the lens drive motor 2 continues. When the difference between the evaluation value data Dn and Dn+1 is found to exceed the predetermined threshold value Δ and the evaluation value data Dn+1 is smaller than the evaluation value data Dn, it is determined in a step 34 that the lens has gone past the point resulting in the maximum of the evaluation value data. The threshold value Δ is provided to allow for the case where a so-called concave/convex portion or false peak occurs in the curve of the lens position versus the evaluation value data. When it is determined that the lens has been moved past the position that would result in the maximum of the evaluation value data, the lens drive motor 2 is driven back by the amount of such overrun. In the embodiment of the present invention described above, the rotating speed of the lens drive motor 2 is controlled in accordance with the curve indicative of the relationship between the change in lens position and the change in evaluation value data. That is, when the lens position is distant from the maximum value of the evaluation value data, the lens drive motor 2 is rotated at a high speed. When the lens position approaches the maximum value of the evaluation value data, the speed of rotation of the lens drive motor 2 is slowed. Using such control, the peak detecting control can be performed at a high speed and yet the overrun amount, when it is detected that the lens has assumed a position that exceeds the position that would result in the maximum value of the evaluation value data, can be minimised. The motor speed is set on the basis of the FG signal derived as described above. More specifically, according to an embodiment of the present invention, the rotating speed of the lens drive motor 2 has been set on the basis of the ratio of the gradient of the curve plotting the change in the lens position versus the change in evaluation value data at continuous, successive lens positions. When the lens position approaches the maximum value of the evaluation value data, the curve representative of the relation between the change in lens position and the change in evaluation value data gradually becomes flat. For example, as shown in Figure 6, assuming that at three continuous, successive lens positions lm, lm+1, and lm+2, a gradient of the evaluation value data between the lens positions lm and lm+1 is ϑ ₀, a gradient of the evaluation value data between the lens positions lm+1 and lm+2 is ϑ₁, and v₀ is a constant voltage, a driving voltage v for the lens drive motor 2 is determined by the following equation: v = (tan ϑ₁/tan ϑ₀).v₀ If it is then assumed that the distance that the lens moves between the positions lm and lm+1 is Δstep₀, and the movement distance between the lens positions lm+1 and lm+2 is Δstep₁, the difference between the evaluation value data at the lens position lm and the evaluation value data at the lens position lm+1 is ΔMAX₀, and the difference between the evaluation value data at the lens position lm+1 and the evaluation value data at the lens position lm+2 is ΔMAX₁. In which case, the above equation becomes: = ΔMAX₁/ Δstep₁ ΔMAX₀/ Δstep₀ · v₀ = ΔMAX₁. Δstep₀ ΔMAX₀. Δstep₁ · v₀ = k.v₀ k is calculated as follows, by obtaining a factor n such that A in the following equation is equal to 0 and k=(n/N). A = ΔMAX₁. Δstep₀ - (n/N)(ΔMAX₀.Δstep₁) where N is a constant for determining the accuracy, and as N increases the analysis quality also increases. A typical value of N is 100. Figure 7 is a flowchart of a method of performing the arithmetic operation based on the equation (3). In the equation (3), in the case of obtaining n when A is equal to 0, as shown in Figure 7, the differences ΔMAX₀ and ΔMAX₁ between the continuous evaluation value data and the movement distances Δstep₁ and Δstep₀ are first obtained and n is initialised in a step 41. The calculation process of the equation (3) is executed and the value of A is obtained in a step 42. In a step 43, a check is made to determine whether the value of A is 0 or less, and when the value of A is not 0 or less, n is increased by one in a step 44 and the processing routine returns to the step 42. When the value of A is 0 or less, a control voltage for the lens drive motor 2 corresponding to the value of n at that moment is produced in a step 45. By executing the foregoing processes to set the speed of rotation of the lens drive motor 2, the lens drive motor 2 is rotated at a low speed as the lens position approaches the maximum value of the evaluation value data, so that the amount of overrun or overshoot of the lens position is effectively reduced. According to the focus control system as described, the speed of the lens drive motor is determined based upon the ratio of the gradient of the curve indicative of the relationship between the change in lens position and the change in evaluation value data at the continuous lens positions between the two end positions of the lens. Thus, when the lens position is far from the maximum value of the evaluation value data, the driving motor is rotated at a high speed and when the lens position approaches the maximum value of the evaluation value data. the driving motor is rotated at a low speed. By executing such control, peak detecting control can be performed at a high speed. The lens overrun amount when it is detected that the lens position has passed the point corresponding to the maximum value of the evaluation value data can be minimised by the peak detecting control. Since the rotational speed of the focusing ring is controlled to the optimum state on the basis of the result of the detection of the integrated value of the luminance component in the image pickup signal, there are advantages in that the motion of the focusing ring becomes smooth, the focus position approaches the in-focus point in a short time, and the tracking capability for following fluctuations in the in-focus point is improved.

Claims: Focus control apparatus for a video camera in which a component of a video signal is maximised for performing focus control, the apparatus comprising: means (5A, 5B) for extracting a signal having a predetermined frequency component from a video signal; means (2) for moving a position of a lens (1) of the camera; and means (8, 9) for sampling the signal of predetermined frequency component extracted from the video signal at continuous, successive at least first, second, and third lens positions (lm, lm+1, lm+2); characterized by: means (10) for determining a first gradient (ϑ₀) in response to a change in value of the signal of predetermined frequency component for a change in lens position between said first and second lens positions (lm, lm+1) from the signal of the predetermined frequency component sampled at the first lens position (lm) and the signal of the predetermined frequency component sampled at the second lens position (lm+1); means (10) for determining a second gradient (ϑ₁) in response to a change in value of the signal of predetermined frequency component for a change in lens position between said second and third lens positions (lm+1, lm+2) from the signal of the predetermined frequency component sampled at the second lens position (lm+1) and the signal of the predetermined frequency component sampled at the third lens position (lm+2); and means (11) for controlling the speed of movement of the lens (1) at said successive lens positions in response to a comparison of said first and second gradients (ϑ₀, ϑ₁). Focus control apparatus according to claim 1, wherein said means for extracting a predetermined frequency component comprises bandpass filter means (5A, 5B). Focus control apparatus according to claim 2, wherein said bandpass filter means includes a first bandpass filter (5A) and a second bandpass filter (5B) having a higher centre frequency than said first bandpass filter (5A), and comprising means (6) for selecting said first bandpass filter (5A) when an object forming the image of the video camera has a weak contrast, and selecting said second bandpass filter (5B) when said image has a strong contrast. Focus control apparatus according to claim 1, comprising: an image pickup element (3) for receiving an image through the lens (1) of the video camera and producing an output signal therefrom; a video signal processing circuit (4) for receiving said output signal from said image pickup element and producing the video signal including at least a luminance signal (Y) and a chrominance signal (C); bandpass filter means (5A, 5B) for receiving said luminance signal (Y) and extracting the signal having predetermined frequency components therefrom; and means for comparing said first and second gradients (ϑ₀, ϑ₁) and producing an output indicative of the comparison; in which: the means (2) for moving the lens is operable to move the lens over predetermined lens travel limits; and the means for controlling the speed of said means (2) for moving the lens is responsive to said output of said comparing means. A method of focus control for a video camera wherein a video signal level from the camera is maximised by movement of the lens (1) through continuous positions to the in-focus position, the method comprising the steps of: extracting (5A, 5B) a signal having a predetermined frequency component from the video signal; and sampling (8, 9) the extracted signal at at least three successive points corresponding to three respective lens positions (lm, lm+1, lm+2); characterized by: deriving (10) a first gradient (ϑ₀) indicative of a change in value between said extracted signal at a first sample point and a second sample point; deriving (10) a second gradient (ϑ₁) indicative of a change in value between said extracted signal at said second sample point and a third sample point; comparing the first and second gradients (ϑ₀, ϑ₁); and controlling the speed of movement of the lens (1) at said successive lens positions in response to the comparison.

Inventors: HAMADA KENICHI PATENTS DIVISIO, HIROTA KATSUAKI C O PATENTS DI, IWAMOTO KOJI C O PATENTS DIVIS, HAMADA, KENICHI PATENTS DIVISION, HIROTA, KATSUAKI C/O PATENTS DIVISION, IWAMOTO, KOJI C/O PATENTS DIVISION
Applicants: SONY CORP, SONY CORPORATION
Application year: 1989
Main classification: H04N5
IPC codes: H04N5