Automatic focusing apparatus for automatically matching focus in response to video signal

Abstract: An automatic focusing apparatus includes a circuit (5) for integrating high frequency component of a video signal every field to generate a focus evaluating value; a control unit (2, 3, 6, 7, 8, 9, 11, 12, 13, 14, 30, 110, 131) for moving position of a focusing lens (1) so that the focus evaluating value attains the maximum value; four memories (41 to 44) for respectively storing focus evaluating values of four fields successively supplied from the focus evaluating value generating circuit 5; and four memories (52 to 55) for storing four position data of the focusing lens corresponding to the focus evaluating values. The automatic focusing apparatus further includes a circuit (61) for calculating an amount of change of the focus evaluating value based on the focus evaluating values of the current and second last fields, a circuit (63) for calculating an amount of change of the lens position corresponding thereto, and a circuit (65) for calculating the rate of change of the focus evaluating value based on these amounts of change. The automatic focusing apparatus further includes a circuit (62) for calculating an amount of change of the focus evaluating value based on the focus evaluating values of the last and the third last fields, a circuit (54) for calculating an amount of change of the lens position corresponding thereto, and a circuit (66) for calculating rate of change of the focus evaluating value based on these amounts of change. The automatic focusing apparatus further includes a circuit (67) for comparing the change rates from these two change rate calculating circuits. In response to the comparison output from the change rate comparing circuit, the speed of moving the focusing lens is made lower when the change rate of the focus evaluating value is decreasing than when increasing.

Description: BACKGROUND OF THE INVENTION Field of the Invention The present invention relates generally to an automatic focusing apparatus, and more particularly, to an improvement of an automatic focusing apparatus for automatically matching the focus relative to an object in response to a video signal obtained from an image sensor, in an image sensing apparatus such as a video camera having an automatic focusing mechanism. Description of the Background Art Conventionally, in an automatic focusing apparatus used in an image sensoring apparatus such as a video camera, an approach utilizing a video signal itself obtained from an image sensor for evaluating the state of focus control has been developed. According to such an approach, a lot of good characteristics can be obtained. For example, there exists substantially no parallax. In addition, even if the depth of field is small and an object is located in the distance, the focus can be exactly matched. Furthermore, according to this approach, a specific sensor for automatic focusing need not be separately provided, so that the apparatus has very simple mechanism. As one example of such a focus control method utilizing a video signal, a control method so-called hill-climbing servo system has been conventionally known. The hill climbing servo system is described, for example, in United States Patent Nos. 4,922,346 and 5,003,339. Briefly stated, a high frequency component of a video signal is detected every one field as a focus evaluating value, the focus evaluating value is always compared with a focus evaluating value detected one field before, and the position of a focusing lens is continuously slightly vibrated such that the focus evaluating value always takes the maximum value. In the above described hill-climbing servo system, if only the slope of a focus evaluating value is detected, the focusing lens is not stopped in the defocused position by always driving the focussing lens in the direction of increasing the focus evaluating value, even if the object is changed, so that very good follow-up characteristics with respect to the object can be achieved. Fig. 6 is a block diagram showing the whole structure of the automatic focusing apparatus and Fig. 7 is a block diagram showing details of the focus evaluating value generating circuit of Fig. 6. Referring to Fig. 6, the video camera includes a focusing ring 2 for moving forward and backward the focusing lens 1, a focusing motor 3 for driving focus ring 2, an iris mechanism 21 for adjusting exposure, and an image sensor circuit 4 including an image sensor (not shown) such as a CCD. An image formed on a surface of the image sensor by focusing lens 1 is converted into a video signal by image sensing circuit 4, and applied to a focus evaluating value generating circuit 5. Referring to Fig. 7 showing details of focus evaluating value generating circuit 5, a luminance signal component in the video signal applied from image sensing circuit 4 is applied to asynchronous separator 5a and to a highpass filter (HPF) 5c. When the luminance signal passes through highpass filter 5c, only the high frequency component is separated from the luminance signal, and is applied to a detector 5d. The high frequency component of the luminance signal is amplitude-detected by detector 5d, and the detected output is sampled and successively converted to a digital value by an A/D converter 5e. Meanwhile, synchronous separator 5a separates a vertical synchronizing signal and a horizontal synchronizing signal from the applied luminance signal, and applies these to a gate control circuit 5b. Gate control circuit 5b sets a rectangular focusing area in a central portion of a picture in response to the applied vertical and horizontal synchronizing signals and to a fixed output of an oscillator (not shown). Gate control circuit 5b applies a signal for opening or closing a gate every field to gate circuit 5f such that passage of the high frequency component of the luminance signal which has been digitized is permitted only in the range of the focusing area. Gate circuit 5f may be provided anywhere in the former stage of an integration circuit 5g, which will be described later. Only the detected output corresponding to the focusing area is applied every field to integration circuit 5g by gate circuit 5f. Integration circuit 5g integrates the applied detected output field by field, and provides the result as a focus evaluating value (FEV) of the current field. In other words, in integration circuit 5g, digital integration, in which A/D converted outputs of the focusing area obtained in 1 field period are all added, is performed. Focus evaluating value generating circuit 5 structured as described above constantly outputs the focus evaluating value of 1 field, and circuits in the succeeding stage start focusing operation by utilizing the focus evaluating value. Fig. 8 is a graph showing relation between the focus evaluating value and the lens position (distance between the lens and the object, that is, object distance) in the automatic focusing apparatus shown in Fig. 6. In Fig. 8, the abscissa represents the position of the focusing lens, and the ordinate represents the focus evaluating value. Referring to Figs. 6 and 8, immediately after an automatic focusing operation is started, the focus evaluating value corresponding to the first one field supplied from the focus evaluating value generating circuit 5 is applied to a maximum value memory 6 and an initial value memory 7 and held therein. Thereafter, a focusing motor control circuit 10 controls a focusing motor driving circuit 31 such that focusing motor 3 rotates in a prescribed direction. Then, a comparator 9 compares the initial focus evaluating value held in the initial value memory 7 and the current focus evaluating value provided from focus evaluating value generating circuit 5, and provides a comparison signal. Focusing motor control circuit 10 initializes direction of rotation of focusing motor 3 in response to the comparison signal. More specifically, focusing motor control circuit 10 rotates focusing motor 3 in the above described predetermined direction until comparator 9 generates a comparison output of "large" or "small". If a comparison output indicating that the current focusing evaluating value is larger than the initial focus evaluating value held in initial value memory 7 is output from comparator 9, focusing motor control circuit 10 maintains the above mentioned prescribed direction of rotation. If a comparison output indicating that the current focus evaluating value is smaller than the initial focus evaluating value is obtained, focusing motor control circuit 10 reverses the direction of rotation of focusing motor 3. Thus initialization of the direction of rotation of focus motor 3 is completed, and from this time on, focusing motor control circuit 10 monitors the output from comparator 8. In order to prevent a malfunction due to noise of the focus evaluating value, comparator 9 is adapted not to generate the comparison output indicating "large" or "small" as long as the difference between the initial focus evaluating value and the current focus evaluating value does not exceed a predetermined threshold value. Meanwhile, comparator 8 compares the maximum focus evaluating value so far held in maximum value memory 6 and the current focus evaluating value output from focus evaluating value generating circuit 5, and outputs two different comparison signals S1 and S2 indicating a mode (first mode) in which the current focus evaluating value is larger than the focus evaluating value held in maximum value memory 6 and a mode (second mode) in which the current focus evaluating value is decreased by more than a predetermined threshold value M. Here, when the current focus evaluating value is larger than the content of maximum value memory 6, the content of the maximum value memory is updated in response to the output S1 of comparator 8, so that the maximum value of the focus evaluating value so far is always held in the maximum value memory 6. A motor position detector 30 detects amount of rotation of focusing motor 3, and generates a corresponding lens position signal. The lens position signal indicates the position (lens position) of lens 1 in the direction of the optical axis. The lens position signal is applied to lens position memory 13. Similar to maximum value memory 6, lens position memory 13 is updated such that the lens position signal at which the focus evaluating value attains the maximum is always held, in response to the output S1 from comparator 8. As described above, focusing motor control circuit 10 monitors the output from comparator 8 while rotating the focusing motor 3 in the initially set direction, in response to the output from comparator 9. When comparison output S2 of the second mode indicating that the current focusing evaluating value decreases from the maximum focus evaluating value by more than the threshold value M is obtained from comparator 8, as shown in Fig. 8, focusing motor control circuit 10 reverses the direction of rotation of focusing motor 3. By this reverse rotation of focusing motor 3, the direction of movement of the lens switches from the direction toward the image sensor to the direction away from the image sensor, or vice versa. After focusing motor 3 is reversed, a comparator 14 compares the content in lens position memory 13 corresponding to the maximum value of the focusing evaluating value with the current lens position signal supplied from motor position detector 30. When these two match, that is, when lens 1 returns to a position at which focus evaluating value attains the maximum, focusing motor control circuit 10 stops rotation of focusing motor 3. At the same time, focusing motor control circuit 10 provides a lens stop signal LS. In the above described manner, a series of automatic focusing operations are completed. A memory 11 and a comparator 12 are provided for resuming an automatic focusing operation by focusing motor control circuit 10 if the focus evaluating value changes by more than a predetermined threshold value while the focusing lens is stopped. More specifically, a focus evaluating value at the time point when the automatic focusing operation by focusing motor control circuit 10 is terminated and lens stop signal LS is generated is held in memory 11. Comparator 12 compares the content of memory 11 with the current focus evaluating value supplied from focus evaluating value generating circuit 5, and if the difference therebetween exceeds the predetermined threshold value, it is considered that there has been a change in the object, and a signal indicating the change of object is applied to focusing motor control circuit 10. As a result, automatic focusing operation by focusing motor control circuit 10 is resumed, so that an automatic focusing operation following the change of the object can be achieved. However, the above described automatic focusing apparatus suffers from the following disadvantageous. First, since the rotational speed of the focusing motor 3 cannot be increased, it is difficult to achieve a high-speed automatic focusing operation. Referring to Fig. 8, it is assumed that the automatic focusing operation is started in the state in which the lens is in a position A considerably spaced apart from an in-focus position P on the side of the object. In this case, focusing motor 3 rotates in the direction of increasing the distance between the lens and the object from the position A where the focus evaluating value is small and the object is significantly defocused, so that the focus evaluating value rises rapidly. In the lens reaches the vicinity of point P1, the rise of the focus evaluating value becomes moderate. Then, the lens passes through the in-focus position p and reaches a position P' of the lens where the focus evaluating value drops by more than the aforementioned threshold value M. Thereafter, the lens returns from the lens position P' to the in-focus position P and stops there. It is required that such a series of automatic focusing operations are performed at high speed. However, when focusing lens 1 is moved at high speed by rotating focusing motor 3 at high speed, the following problem arises. First, it is inevitable that overrun occurs due to the inertia of the motor itself when the motor is reversed in the position P' or the motor is stopped at lens position P. The higher the speed of rotation of focusing motor 3 is, the larger the overrun becomes. As a result, the time is made rather longer until the lens reaches the in-focus position. The conventional automatic focusing system is superior in precision of focusing and response to objects in wide variety. However, whether the in-focus position is reached or not is detected by the decrease of focus evaluating value, and there is inevitably a delay in the focus evaluating value by the period from the time point when the light enters the image sensor until the end of integration in the focus evaluating value generating circuit 5, the focusing lens 1 cannot help passing over the in-focus position principally. Accordingly, if the speed of moving the lens is increased, the amount of overrun of the focusing lens 1 would be significantly large. Therefore, blur of the picture caused by the overrun is inevitable. Thus, in the conventional automatic focusing apparatus, the speed of rotation of focusing motor 3 cannot be set very high, so that a high-speed automatic focusing operation cannot be performed. Furthermore, the conventional automatic focusing apparatus suffers from a disadvantage that the focus evaluating value changes because of interlaced scanning. More specifically, in the above described conventional automatic focusing apparatus, the position of the lens is controlled such that a focus evaluating value obtained from a level of high frequency component of the video signal is always the maximum. However, since the video signal is generally subjected to interlace scanning, the positions of even and odd fields constituting one picture are shifted in the picture by one scanning line. Consequently, even if the same object is continuously picked up, the focus evaluating value fluctuates every field, resulting in the disadvantage that the lens position at which the focus evaluating value attains the maximum cannot be definitely determined. In EP-A-0 331 502, there is a focus control apparatus for a video camera disclosed in which apparatus the ratio of change of amount is calculated based on the amount of change of the evaluating value and the amount of change in position of the lens in one field, that is, between the present field and the last field and between the last field and the second last field, which means that the influence of interlacing remains. In US-A-4 920 420 there is an automatic focus system disclosed but such difference is not at all discussed in that document. SUMMARY OF THE INVENTION Therefore, an object of the present invention is to provide an automatic focusing apparatus allowing high speed automatic focusing operation. Another object of the present invention is to provide an automatic focusing apparatus which can reduce overrun of the lens at the in-focus position. According to the present invention, automatic focusing apparatus for automatically matching focus with respect to an object in response to a video signal obtained from an image sensing circuit according to claim 1 having a lens and an image sensor receiving incident light through the lens includes a focus evaluating value supplying unit, lens position changing unit, calculating unit and a speed control unit. The focus evaluating value supplying unit supplies high frequency component level of the video signal obtained from the image sensing circuit as the focus evaluating value in every first prescribed period. Lens position changing unit changes relative position of the lens along the direction of the optical axis with respect to the image sensor, so that the focus evaluating value from the focus evaluating value supplying unit attains the maximum. The calculating unit calculates the ratio of the amount of change of the focus evaluating value in a second prescribed time period with respect to the amount of change of the corresponding lens position, and supplies the result as the evaluating value change rate. The speed control unit controls the speed of changing relative lens position by lens position changing unit, in response to the evaluating value change rate from the calculating unit. In the above described automatic focusing apparatus, the focus evaluating value supplying unit integrates the high frequency component every field, and supplies the result as the focus evaluating value. The calculating unit calculates the ratio of the amount of change of the focus evaluating value from a certain field and a field succeeding by two with respect to the amount of change of the corresponding relative lens position, and supplies the result as the evaluating value change rate. The calculating unit according to claim 3 calculates the ratio of the amount of change of the focus evaluating value from a certain field to the next field with respect to the amount of change of the corresponding lens position, and supplies the result as the evaluating value change rate. The foregoing and other objects, features, aspects and advantages of the present invention will become more apparent from the following detailed description of the present invention when taken in conjunction with the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is a block diagram showing the whole structure of an automatic focusing apparatus in accordance with Embodiment 1 of the present invention. Fig. 2 is a graph showing relation between a focus evaluating value and a position of a focusing lens in the automatic focusing apparatus shown in Fig. 1. Fig. 3 is a block diagram showing the whole structure of an automatic focusing apparatus in accordance with Embodiment 2 of the present invention. Fig. 4 is cancelled. Fig. 5 is cancelled. Fig. 6 is a block diagram showing the whole structure of a conventional automatic focusing apparatus. Fig. 7 is a block diagram showing details of a focus evaluating value generating circuit of Fig. 6. Fig. 8 is a graph showing relation between the focus evaluating value and the position of the focusing lens in the automatic focusing apparatus shown in Fig. 6. DESCRIPTION OF THE PREFERRED EMBODIMENTS Embodiments of the present invention will be described in detail with reference to the figures. In the figures, the same reference characters denote the same or corresponding portions. Fig. 1 is a block diagram showing the whole structure of the automatic focusing apparatus in accordance with Embodiment 1 of the present invention. Referring to Fig. 1, the automatic focusing apparatus includes a focusing lens 1, a focusing ring 2 for moving focusing lens 1 along the direction of the optical axis, a focusing motor 3 for rotating the focusing ring, and an image sensing circuit 4 including an image sensor such as a CCD (not shown) receiving incident light through focusing lens 1. Between focusing lens 1 and the image sensor, an iris mechanism 21 for adjusting amount of light incident on the image sensor through focusing lens 1 is provided. In response to the incident light, image sensing circuit 4 generates a video signal. The automatic focusing apparatus further includes a focus evaluating value generating circuit 5 which detects high frequency component level of the video signal obtained from image sensing circuit 4, and integrates the high frequency component level every field to provide the result as a focus evaluating value (FEV). The video signal from the image sensing circuit 4 is also applied to a signal processing circuit (not shown), and the video signal processed therein is recorded on a magnetic tape, for example. The automatic focusing apparatus further includes a maximum value memory 6, an initial value memory 7, comparators 8 and 9, a motor position detector 30, a lens position memory 13, a comparator 14, a focusing motor control circuit 110 and a focusing motor driving circuit 131. By these components, position of focusing lens 1 is changed, such that the focus evaluating value from focusing evaluating value generating circuit 5 becomes the maximum. The automatic focusing apparatus further includes a memory 11 and a comparator 12 and by these components, when the object changes after the end of focusing operation, automatic focusing operation by focusing motor control circuit 110 is resumed. The structures and operation heretofore are approximately the same as those of the conventional automatic focusing apparatus shown in Fig. 6, and therefore detailed description thereof is not repeated. However, focusing motor control circuit 110 and the focusing motor driving circuit 131 are further provided with new functions, which will be described later. The automatic focusing apparatus further includes four focus evaluating value memories 41 to 44. These four memories 41 to 44 respectively store focus evaluating values of 4 fields continuously supplied from focus evaluating value generating circuit 5. The automatic focusing apparatus further includes five position history memories 51 to 55. These five memories 51 to 55 respectively store position data of focusing lens 1 in 5 fields continuously supplied from motor position detector 30. The automatic focusing apparatus further includes an FEV change amount calculating circuit 61, a position change amount calculating circuit 63 and an FEV change rate calculating circuit 65. Calculating circuit 61 calculates the amount of change A1 of the focus evaluating value based on the focus evaluating value V1 stored in memory 41 and the focus evaluating value V3 stored in memory 43. Calculating circuit 63 calculates the amount of change V1 of lens 1 based on position data L1 stored in memory 52 and position data L3 stored in memory 54. Calculating circuit 65 calculates the rate of change R1 of the focus evaluating value based on the amounts of change A1 and B1 from calculating circuits 61 and 63. The automatic focusing apparatus further includes an FEV change amount calculating circuit 62, a position change amount calculating circuit 64 and an FEV change rate calculating circuit 66. Calculating circuit 62 calculates the amount of change A2 of the focus evaluating value based on the focus evaluating value V2 stored in memory 42 and the focus evaluating value V4 stored in memory 44. Calculating circuit 64 calculates the amount of change V2 of lens position based on position data L2 stored in memory 53 and position data L4 stored in memory 55. Calculating circuit 66 calculates the rate of change R2 of focus evaluating value based on the amounts of change A2 and B2 from calculating circuits 62 and 64. The automatic focusing apparatus further includes a change rate comparing circuit 67 for comparing rates of change R1 and R2 from calculating circuits 65 and 66. Focusing motor control circuit 110 is adapted such that it generates a speed control signal SC in response to the result of comparison from comparing circuit 67 and applies the signal to focusing motor driving circuit 131. Focusing motor driving circuit 131 is adapted to change the speed of rotation of focusing motor 3 in response to the speed control signal SC. Therefore, as compared with the conventional apparatus, in the automatic focusing apparatus of the present invention, memories 41 to 44 and 51 to 55, calculating circuits 61 to 66 and a comparing circuit 67 are newly added, and the conventional focusing motor control circuit 10 and focusing motor driving circuit 31 are improved. Operations of the newly provided components will be described. In Embodiment 1, the focus evaluating value FEV from focus evaluating value generating circuit 5 is applied to comparators 8 and 9 as in the prior art example, and based on the focus evaluating value, focusing operation is carried out. The focus evaluating value FEV is also successively applied to focus evaluating value memory 41. When focus evaluating value generating circuit 5 generates a focus evaluating value of a certain field, the focus evaluating value is first stored in memory 41. Thereafter, when focus evaluating value generating circuit 5 generates a focus evaluating value of the next field, the focus evaluating value V1 which has been stored in memory 41 is stored in memory 42, and the new focus evaluating value just generated from focus evaluating value generating circuit 5 is stored in memory 41. Thereafter, when focus evaluating value generating circuit 5 generates a focus evaluating value of still another field, the focus evaluating value V2 which has been stored in memory 42 is stored in memory 43, and the focus evaluating value V1 which has been stored in memory 41 is stored in memory 42. The new focus evaluating value just generated from focus evaluating value generating circuit 5 is stored in memory 41. Thereafter, when focus evaluating value generating circuit 5 generates a focus evaluating value of a still another field, the focus evaluating value V3 which has been stored in memory 43 is stored in memory 44, the focus evaluating value V2 which has been stored in memory 42 is stored in memory 43, and the focus evaluating value V1 which has been stored in memory 41 is stored in memory 42. The new focus evaluating value generated from focus evaluating value generating circuit 5 is stored in memory 41. Consequently, in memory 41, the newest focus evaluating value V1, that is, the focus evaluating value of the current field is always stored in memory 41, the focus evaluating value V2 of one field before is stored in memory 42, the focus evaluating value V3 of two fields before is stored in memory 43, and the focus evaluating value V4 of three fields before is stored in memory 44. In short, in these four memories 41 to 44, focus evaluating values of four fields, that is, from the current field to the third last field are stored respectively. As described above, the focus evaluating value is generated successively field by field. Between respective fields, focusing lens 1 moves continuously. Accordingly, at an intermediate time point of each exposure time (1 field) of the image sensor, position of focusing motor 3 is detected by motor position detector 30, and the detected position is supplied as a representative lens position of each field to the position history memory 51. Therefore, in memory 51, the newest lens position data L0 is always stored. Data L0 stored in memory 51 is stored as lens position data L1 in position history memory 52 after 1 field. The data L1 stored in memory 52 is stored as lens position data L2 in position history memory 53 after another 1 field. Data L2 stored in memory 53 is stored as lens position data L3 in position history memory 54 after still another 1 field. Data L3 stored in memory 54 is stored as lens position data L4 in position history memory 55 after still another 1 field. In position history memory 51, the corresponding lens position data is stored at an intermediate time point in each field, while the corresponding focus evaluating value is stored in focus evaluating value memory 41 at the end of each field. This is because the focus evaluating value is an integration of the video signals successively applied every field. When the focus evaluating value is supplied from focus evaluating value generating circuit 5 to focus evaluating value memory 41, the data L0 which has been stored in memory 51 is transferred to memory 52. Therefore, in memory 52, lens position data L1 corresponding to the focus evaluating value V1 stored in memory 41 is stored. In memory 53, lens position data L2 is stored, which corresponds to the focus evaluating value V2 stored in memory 42. In memory 54, lens position data L3 is stored which corresponds to the focus evaluating value V3 stored in memory 43. In memory 55, lens position data L4 is stored which corresponds to the focus evaluating value V4 stored in memory 44. As described above, in these five memories 51 to 55, lens position data L0 to L4 of 5 fields, that is, from the current field to the fourth last field are stored respectively. Focus evaluating values V1 and V3 stored in memories 41 and 43 are applied to FEV change amount calculating circuit 61, and in calculating circuit 61, difference A1 (=V1-V3) between these focus evaluating values is calculated. The difference A1 corresponds to the amount of change of the focus evaluating value generated in 2 fields, that is, from the second last to the current field. Focus evaluating values V2 and V4 stored in memories 42 and 44 are applied to FEV change amount calculating circuit 62, and in calculating circuit 62, difference A2 (=V2-V4) of these focus evaluating values is calculated. The difference A2 corresponds to the amount of change of the focus evaluating value generated in 2 fields from three fields before to one field before the current field. Lens position data L1 and L3 stored in memories 52 and 54 are applied to position change amount calculating circuit 63, and in calculating circuit 63, absolute value B1 (=|L1-L3|) of the difference between these data is calculated. The value B1 corresponds to the distance of movement of lens 1 during 2 fields, that is, the second last to the current field. Lens position data L2 and L4 stored in memories 53 and 55 are applied to position change amount calculating circuit 64, and in calculating circuit 64, absolute value B2 (=|L2-L4|) of the difference between these data is calculated. The value B2 corresponds to the distance of movement of lens 1 during 2 fields, that is, the third last to the last field. The amount of change A1 of the focus evaluating value from calculating circuit 61 and the amount of change V1 of position from calculating circuit 63 are both applied to focus change rate calculating circuit 65, and in calculating circuit 65, the ratio A1/B1 of these amounts of change is calculated and applied as change rate R1 of focus evaluating value with respect to the amount of change of lens 1, to change rate comparing circuit 67. The ratio A1/B1 corresponds to the change rate of two fields, that is, from the second last to the current field. Focus evaluating value change amount A2 from calculating circuit 62 and position change amount B2 from calculating circuit 64 are both applied to focus change rate calculating circuit 66, and in calculating circuit 66, the ratio A2/B2 of the amounts of change is calculated and the result is applied to change rate comparing circuit 67 as the change rate R2 of the focus evaluating value with respect to the amount of change of the lens 1. The ratio A1/B2 corresponds to the change rate in 2 fields, that is, from three fields before to one field before. Fig. 2 is a graph showing relation between the focus evaluating value and the position of the focusing lens, and the relation between the change rate of the focus evaluating value and the position of the focusing lens. In the graph, the solid line 100 represents the relation between the focus evaluating value and the position of the focusing lens, and the dotted line 101 represents the relation between the change rate of the focus evaluating value and the position of the focusing lens. Referring to Fig. 2, the relation between the focus evaluating value and the position of the focusing lens is represented as a curve which assumes the maximum value at the in-focus position P. The relation between the change rate and the focusing lens position is represented as a curve which indicates the differential coefficient of the curve 100 of the focus evaluating value. It is assumed that at first the focusing lens 1 is at a near point considerably spaced apart to the object side from the in-focus position P. At this time, as it is considerably defocused, the focus evaluating value is nearly 0. From this near point to a point P1, the change rate of the focus evaluating value increases. From this point P1 to the in-focus position P, the change rate of the focus evaluating value decreases. By contrast, when the focusing lens 1 draws near to the in-focus position P from the infinite side, the change rate of the focus evaluating value from the infinite position to a position P2 increases, and from the point P2 to the in-focus position P, the change rate of the focus evaluating value decreases. As described above, since the change rate of the focus evaluating value decreases as it comes near to the in-focus position P, how close focusing lens 1 is to the in-focus position P can be determined by monitoring the change rate calculated in FEV change rate calculating circuits 65 and 66. Now, since the video signal is subjected to interlace scanning at present, the positions of scanning lines shift to some extent between the even and odd fields. Consequently, vertical positions in the picture differ slightly in adjacent fields. Namely, the focus evaluating value fluctuates in a period of 2 fields. Therefore, even if the amount of change of the focus evaluating value of 1 field is calculated, accurate rate of change of the focus evaluating value cannot be calculated based on the amount of change. In Embodiment 1, two change rate calculating circuits 65 and 66 are provided as mentioned above, calculating circuit 65 calculating the change rate between odd fields while calculating circuit 66 calculating change rate of even fields. Therefore, the influence of fluctuation of the focus evaluating value generated in the period of 2 fields can be removed. Change rates R1 and R2 from change rate calculating circuits 65 an 66 are both applied to change rate comparing circuit 67 in which these rates R1 and R2 are compared with each other. As a result of comparison, when R1≧R2, that is, when the change rate is increasing, an H (High) level comparison output is provided from comparing circuit 67. Meanwhile, if R1<R2, that is, when change rate is decreasing, an L (Low) level comparison output is provided from comparing circuit 67. Similar to the control circuit 10 of Fig. 6, focusing motor control circuit 110 performs hill-climbing focusing operation based on the comparison output from comparators 8, 9 and 14, and changes the speed of driving focusing motor 3 based on the comparison output from change rate comparing circuit 67. In other wards, a function of controlling the speed of the motor is added to control circuit 110. If the comparison output from change rate comparing circuit 67 is at the H level, that is, when the change rate is increasing, an H level speed control signal SC is applied to focusing motor driving circuit 131, and in response, focusing motor driving circuit 131 drives focusing motor 3 at high speed. Meanwhile, if the comparison output from change rate comparing circuit 67 is at the L level, that is, when the change range is decreasing, the speed control signal SC changes from the H level to the L level, and the L level speed control signal SC is applied to the focusing motor driving circuit 131. In response, focusing motor driving circuit 131 drives focusing motor 3 at a low speed. Similar to focusing motor driving circuit 31 of Fig. 6, focusing motor driving circuit 131 drives or stops focusing motor 3 or reverses the direction of rotation of the focusing motor in response to the output from focusing motor control circuit 111 which is based on the output from comparators 8, 9 and 14, and in addition, it switches the speed of driving the focusing motor 3 between two steps, that is, high speed and low speed, in response to the speed control signal SC from focusing motor control circuit 110 based on the output from comparing circuit 67. More specifically, a function of switching the speed of driving the focusing motor 3 in two steps in response to speed control signal SC is added to focusing motor driving circuit 131. When focusing motor 3 is driven at high speed, the amount of change of the focusing lens position per unit time increases when the focusing motor 3 is driven at low speed. For example, when focusing lens 1 is on the near point side, the direction of initial movement of focusing lens 1 is determined by comparator 9. While lens 1 moves from the near point side to a point P1 near the in-focus point P, the change rate of the focus evaluating value increases, and therefore, an H level speed control signal SC is applied to the focusing motor driving circuit 131. Consequently, focusing motor 3 is driven at high speed, and lens 1 reaches the point P1 quickly. When focusing lens 1 passes the position P1, the change rate of the focus evaluating value begins to decrease. Consequently, the comparison output from change rate comparing circuit 67 changes from the H level to the L level, and hence the speed control signal SC from the focusing motor control circuit 110 changes from the H level to the L level. As the speed control signal SC attains to the L level, focusing motor driving circuit 131 switches the speed of driving the focusing motor 3 to low speed. Therefore, from the position P1 to the in-focus position P, the amount of change of the lens position per unit time becomes smaller. Focusing lens 1 passes through in-focus position P and reaches a position P' at which the focus evaluating value decreases from the maximum value by more than the threshold value M. However, since the speed of driving the focusing motor 3 is low, overrun of the focusing lens 1 can be suppressed. When the focusing lens 1 moves from the infinite side to the in-focus position P, the speed of driving focusing motor 3 is switched from the high speed to the low speed when the focusing lens 1 reaches the position P2. As described above, in Embodiment 1, since the speed of movement of focusing lens 1 is made lower when the change rate of the focusing evaluating value is decreasing than when the rate of the focusing evaluating value is increasing, focusing lens 1 can be moved quickly to the in-focus position P while overrun of the focusing lens 1 can be suppressed. Since the change rate of the focus evaluating value is calculated based on the focus evaluating value of a certain field and a field succeeding by two, fluctuation of the focus evaluating value derived from interlace scanning does not appear. Therefore, according to Embodiment 1, focusing lens 1 can be accurately moved to the in-focus position P. Fig. 3 is a block diagram showing the whole structure of an automatic focusing apparatus in accordance with Embodiment 2 of the present invention. Embodiment 2 differs from Embodiment 1 above in that the change rate of the focus evaluating value is calculated based on the focus evaluating value of a certain field and the focus evaluating value of the next field, and the driving speed of the focusing motor 3 is changed based on the change rate. Referring to Fig. 3, the automatic focusing apparatus includes a change amount calculating circuit 71 for calculating an amount of change of the focus evaluating value based on the focus evaluating values V1 and V2 stored in memories 41 and 42, a change amount calculating circuit 73 for calculating an amount of change of the lens position based on lens position data L1 and L2 stored in memories 52 and 53, and a change rate calculating circuit 75 for calculating the change rate of the focus evaluating value based on the amounts A3 and B3 of change from calculating circuits 71 and 73. The automatic focusing apparatus further includes a change amount calculating circuit 72 for calculating an amount of change of the focus evaluating value based on focus evaluating values V3 and V4 stored in memories 43 and 44, a change amount calculating circuit 74 for calculating an amount of change of lens position based on lens position data L3 and L4 stored in memories 54 and 55, and a change rate calculating circuit 76 for calculating rate of change of focus evaluating value based on these amounts A4 and B4 of change, from these calculating circuits 72 and 74. The automatic focusing apparatus further includes a change rate comparing circuit 77 for comparing the change rates R3 and R4 from change rate calculating circuits 75 and 76. In Embodiment 2, in calculating circuit 71, the difference V1-V2 of the focus evaluating value V1 of the current field and the focus evaluating value V2 of the preceding field is calculated, and the result is applied as the amount of change A3 of the focus evaluating value to change rate calculating circuit 75. In calculating circuit 73, the absolute value |L1-L2| of the difference between lens position data L1 corresponding to the focus evaluating value V1 and lens position data L2 corresponding to the focus evaluating value V2 is calculated, and the result is applied as the amount of change B3 of the lens position to change rate calculating circuit 75. In change rate calculating circuit 75, the ratio A3/B3 of the amounts of change A3 and B3 from calculating circuits 71 and 73 is calculated, and the result is applied to change rate comparing circuit 77 as change rate R3 of the focus evaluating value. In calculating circuit 72, the difference V3-V4 between the focus evaluating value V3 of the field preceding by two from the current field and the focus evaluating value V4 of the field preceding by three is calculated, and the result is applied as the amount of change A4 of the focus evaluating value to change rate calculating circuit 76. In calculating circuit 74, the absolute value |L3-L4| of the difference between lens position data L3 corresponding to the focus evaluating value V3 and lens position data L4 corresponding to focus evaluating value V4 is calculated, and the result is applied as the amount of change B4 of the lens position to change rate calculating circuit 76. In change rate calculating circuit 76, the ratio A4/B4 of the amounts A4 and B4 of change from calculating circuits 72 and 74 is calculated, and the result is applied as the change rate R4 of the focus evaluating value to change rate comparing circuit 77. When R3≧R4, that is, when the change rate of the focus evaluating value is increasing, change rate comparing circuit 77 controls focusing motor control circuit 110 so that an H level speed control signal SC is generated. In response to the H level speed control signal SC, focusing motor driving circuit 131 drives the focusing motor 3 at high speed. Consequently, the amount of change of the lens position per unit time increases, and focusing lens moves quickly to the in-focus position. Meanwhile, when R3<R4, that is, when the change rate of the focus evaluating value is decreasing, change rate comparing circuit 77 controls focusing motor control circuit 110 so that an L level speed control signal SC is generated. In response to the L level speed control signal SC, focusing motor driving circuit 131 switches the speed of driving the focusing motor 3 from high speed to low speed. Consequently, the amount of change of the lens position per unit time decreases, and overrun of the lens near the in-focus position can be minimized. In Embodiment 2, the change rate of the focus evaluating value between the current field and the last field is calculated, the change rate of the focus evaluating value between the second last and the third last fields is calculated, and these two calculated change rates are compared. Since there is time difference of 2 fields between these two change rates R3 and R4, fluctuation of the focus evaluating value of 2 field period caused by interlace scanning can be almost fully removed. In Embodiments 1 and 2 above, the speed of driving focusing motor 3 cannot be controlled based on the comparison output from change rate comparing circuit 67 until at least 4 fields of time has passed. Therefore, it is preferred that the focusing motor driving circuit 131 is initially set to drive focusing motor 3 at high speed during these initial four fields. Alternatively, focusing motor driving circuit 131 may be initially set so that focusing motor 3 is driven at low speed. In Embodiments 1 and 2, the speed of rotation of focusing motor 3 is switched in two steps. However, it may be switched in three steps. More specifically, in the vicinity of the near point, infinite point and points P1 and P2 at which change rate of the focus evaluating value hardly changes, focusing motor 3 may be rotated at an intermediate speed. Further, the speed of rotation of the focusing motor 3 may be changed continuously in response to the change rate of the focus evaluating value. The Embodiments 1 and 2 may be constituted by a microprocessor. The movement forward and rearward of focusing lens 1 may be implemented by a piezoelectric element instead of a motor. Further, not the focusing lens but the image sensor itself such as the CCD (not shown) may be moved forward or rearward. In either of the embodiments, the front focus method in which the lens nearest to the object is moved as the focusing lens, or a rear focus method in which the lens nearest to the image sensor is moved as the focusing lens, may be employed. Although the present invention has been described and illustrated in detail, it is clearly understood that the same is by way of illustration and example only and is not to be taken by way of limitation, the scope of the present invention being limited only by the terms of the appended claims.

Claims: An automatic focusing apparatus for automatically matching focus with respect to an object in response to a video signal obtained from image sensing means (1, 4) having a lens and an image sensor receiving incident light through said lens, comprising: focus evaluating value supplying means (5) for supplying high frequency component level of the video signal obtained from said image sensing means as a focus evaluating value (FEV) at every first prescribed period; lens relative position changing means (2, 3, 6, 7, 8, 9, 11, 12, 13, 14, 30, 110, 131) for changing relative position of said lens along an axial direction with respect to said image sensor so that the focus evaluating value from said focus evaluating value supplying means attains a maximum value; calculating means (51-55, 41-44, 61-66) for calculating ratio of an amount of change (A1, A2) of the focus evaluating value in a second prescribed period with respect to an amount of change (B1, B2) of position of said lens corresponding thereto, and for supplying the ratio as an evaluating value change rate (R1, R2); and speed control means (67, 110, 131) responsive to the evaluating value change rate from said calculating means for controlling speed of changing said relative lens position by said lens relative position changing means, wherein said speed control means includes increase/decrease detecting means (67) for detection whether the evaluating value change rate supplied successively from said calculating means is increasing or decreasing, and means (110, 131) responsive to an output from said increase/decrease detecting means for making slower the speed of change of said relative lens position by said lens relative position changing means when the evaluating value change rate is decreasing, than when the evaluating value change rate is increasing; characterized in that said focus evaluating value supplying means integrates the high frequency component level every field and supplies result of integration as the focus evaluating value, and said calculating means calculates ratio of an amount of change of the focus evaluating value from a certain field to second next field with respect to an amount of change of said relative lens position corresponding thereto, and supplies the ratio as the evaluation value change rate. The automatic focusing apparatus according to claim 1, wherein said calculating means includes evaluating value storing means (41-44), for storing focus evaluating values of four fields supplied continuously from said focus evaluating value supplying means, lens position storing means (52-55) for storing four position data of said lens corresponding to the four focus evaluating values stored in said evaluating value storing means, first change rate calculating means (62, 64, 66) for calculating, based on first and third (V4, V2) of the four focus evaluating values stored in said evaluating value storing means and on corresponding first and third (L4, L2) of the four position data stored in said lens position storing means, ratio of an amount of change (A2) of the focus evaluating values with respect to an amount of change (B2) of these positions, and for supplying the ratio as a first evaluating value change rate (R2), and second change rate calculating means (61, 63, 65) for calculating, based on second and fourth (V3, V1) of the four focus evaluating values stored in said evaluating value storing means and on corresponding second and fourth (L3, L1) of the four position data stored in said lens position storing means, ratio of an amount of change (A1) of the focus evaluating values with respect to an amount of change (B1) of these positions, an for supplying the ratio as a second evaluating value change rate (R1); said increase/decrease detecting means includes comparing means ((67) for comparing the first evaluating value change rate from said first change rate calculating means it the second evaluating value change rate from said second charge rate calculating means and for indicating that the change rate of the focus evaluating value is increasing when the first evaluating value change rate is smaller than the second evacuating value change rate, and otherwise indicating that the change rate of the focus evaluating value is decreasing. The automatic focusing apparatus according to claim 1, wherein said calculating means includes a first evaluating value memory (41) for successively storing a focus evaluating value of each field successively supplied from said focus evaluating value supplying means, a second evaluating value memory (42) for storing, instead of said first evaluating value memory, the focus evaluating value which has been stored in said first evaluating value memory, when said focus evaluating value supplying means supplies a focus evaluating value of a next field, a third evaluating value memory (43) for storing, instead of said second evaluating value memory, the focus evaluating value which has been stored in said second evaluating value memory, when said focus evaluating value supplying means supplies a focus evaluating value of a next field, a fourth evaluating value memory (44) for storing, instead of said third evaluating value memory, the focus evaluating value which has be stored in said third evaluating value memory, when said focus evaluating value supplying means supplies a focus evaluating value of a next field, a first position memory (52) for storing position data of said lens corresponding to the focus evaluating value stored in said first evaluating value memory, a second position memory (53) for storing, instead of said first position memory, the position data which has been stored in said first position memory, when said focus evaluating value supplying means supplies a focus evaluating value of a next field, a third position memory (54) for storing, instead of said second position memory, the position data wich has been stored in said second position memory, when said focus evaluating value supplying means supplies a focus evaluating value of a next field, a fourth position memory (55) for storing, instead of said third position memory, the position data which has been stored in said third position memory, he said focus evaluating value supplying means supplies a focus evaluating value of a next field, first evaluating value change amount calculating means (62) for calculating difference between the focus evaluating value stored in said second evaluating value memory and the focus evaluating value stored in said fourth evaluating value memory, and supplies the difference as a first evaluating value change amount (A2), first position change amount calculating means (64) for calculating difference between the position data stored in said second position memory and the position data stored in said fourth position memory for supplying the difference as a first position change amount (B2), first evaluating value change rate calculating means (66) for calculating ratio of the first evaluating value change amount from said first evaluating value change amount calculating means with respect to the first position change amount from said first position change amount calculating means, and for supplying the ratio as a first evaluating value change rate (R2), second evaluating value change amount calculating means (61) for calculating difference between the focus evaluating value stored in said first evaluating value memory and the focus evaluating value stored in said third evaluating value memory and for supplying the difference as a second evaluating value change amount (A1), second position change amount calculating means (63) for calculating difference between the position data stored in said first position memory and the position data stored in said third position memory, and for supplying the difference as a second position change amount (B1), and second evaluating value change rate calculating means (65) for calculating ratio of said second evaluating value change amount from said second evaluating value change amount calculating means with respect to the second position change amount from said second position change amount calculating means and for supplying the ratio as a second evaluating value change rate (R1); and said increase/decrease detecting means includes comparing means (67) for comparing the first evaluating value change rate from said first evaluating value change rate calculating means with the second evaluating value change rate from said second evaluating value change rate calculating means and for indicating that the change rate of the focus evaluating value is increasing when the first evaluating value change rate is smaller than the second evaluating value change rate, and otherwise indicating that the change rate of the focus evaluating value is decreasing. An automatic focusing apparatus for automatically matching focus with respect to an object in response to a video signal obtained from image sensing means (1, 4) having a lens and an image sensor receiving incident light through said lens, comprising: focus evaluating value supplying means (5) for supplying high frequency component level of the video signal obtained from said image sensing means as a focus evaluating value (FEV) at every first prescribed period; lens relative position changing means (2, 3, 6, 7, 8, 9, 11, 12, 13, 14, 30, 110, 131) for changing relative position of said lens along an axial direction with respect to said image sensor so that the focus evaluating value from said focus evaluating value supplying means attains a maximum value; calculating means (51-55, 41-44, 61-66) for calculating ratio of an amount of change (A1, A2) of the focus evaluating value in a second prescribed period with respect to an amount of change (B1, B2) of position of said lens corresponding thereto, and for supplying the ratio as an evaluating value change rate (R1, R2); and speed control means (67, 110, 131) responsive to the evaluating value change rate from said calculating means for controlling speed of changing said relative lens position by said lens relative position changing means, wherein said speed control means includes increase/decrease detecting means (67) for detection whether the evaluating value change rate supplied successively from said calculating means is increasing or decreasing, and means (110, 131) responsive to an output from said increase/decrease detecting means for making slower the speed of change of said relative lens position by said lens relative position changing means when the evaluating value change rate is decreasing, than when the evaluating value change rate is increasing; characterized in that said focus evaluating value supplying means integrates the high frequency component level every field and supplies result of integration as the focus evaluating value, said calculating means includes evaluating value storing means (41-44) for storing focus evaluating values of four fields supplied continuously from said focus evaluating value supplying means, lens position storing means (52-55) for storing four position data of said lens corresponding to the four focus evaluating values stored in said evaluating value storing means, first change rate calculating means (72, 74, 76) for calculating, based on preceding two (V4, V3) of the four focus evaluating values stored in said evaluating value storing means and corresponding preceding two (L4, L3) of the four position data stored in said lens position storing means, ratio of an amount of change (A4) of the focus evaluating values with respect to an amount of change (B4) of these positions, and for supplying the ratio as a first evaluating value change rate (R4), and second change rate calculating means (71, 73, 75) for calculating, based on succeeding two (V2, V1) of the four focus evaluating values stored in said evaluating value storing means and corresponding succeeding two (L2, L1) of the four position data stored in said lens position storing means, ratio of an amount of change (A3) of the focus evaluating values with respect to an amount of change (B3) of these positions, and for supplying the ratio as a second evaluating value change rate (R3); and said increase/decrease detecting means includes comparing means (77) for comparing the first evaluating value change rate from said first change rate calculating means with the second evaluating value change rate from said second change rate calculating means and for indicating that the change rate of the focus evaluating value is increasing when the first evaluating value change rate is smaller than the second evaluating value change rate, and otherwise indicating that the change rate of the focus evaluating value is decreasing. The automatic focusing apparatus according to claim 4, wherein said calculating means includes a first evaluating value memory (41) for successively storing a focus evaluating value of each field supplied successively from said focus evaluating value supplying means, a second evaluating value memory (42) for storing, instead of said first evaluating value memory, the focus evaluating value which has been stored in said first evaluating value memory, when said focus evaluating value supplying means supplies a focus evaluating value of a next field, a third evaluating value memory (43) for storing, instead of said second evaluating value memory, the focus evaluating value which has been stored in said second evaluating value memory, when said focus evaluating value supplying means supplies a focus evaluating value of a next field, a fourth elating value memory (44) for storing, instead of said third evaluating value memory, The focus evaluating value which has been stored in said third evaluating value memory, when said focus evaluating value supplying means supplies a focus evaluating value of a next field, a first position memory (52) for storing position data of said lens corresponding to the focus evaluating value stored in said first evaluating value memory, a second position memory, (53), for storing, instead of said first position memory, the position data which has been stored in said first position memory, when said focus evaluating value supplying means supplies a focus evaluating value of a next field, a third position memory (54) for storing, instead of said second position memory, the position data which has been stored in said second position memory, when said focus evaluating value supplying means supplies a focus evaluating value of a next field, a fourth position memory (55) for storing, instead of said third position memory, the position data which has been stored in said third position memory, when said focus evaluating value supplying means supplies a focus evaluating value of a next field, first evaluating value change amount calculating means (72) for calculating difference between the focus evaluating value stored in said fourth evaluating value memory and the focus evaluating value stored in said third evaluating value memory and for supplying the difference as a first evaluating value change amount (A4), first position change amount calculating means (74) for calculating difference between position data store in said fourth position memory and position data stored in said third position memory and for supplying the difference as a first position change amount (B4), first evaluating value change rate calculating means (76) for calculating ratio of said first evaluating value change amount from said first evaluating value change amount calculating means with respect to the first position change amount from said first position change amount calculating means and for supplying the ratio as a first evaluating value change rate (R4), second evaluating value change amount calculating means (71) for calculating difference between the focus evaluating value stored in said second evaluating value memory and the focus evaluating value stored in said first evaluating value memory and for supplying the difference as a second evaluating value change amount (A3), second position change amount calculating means (73) for calculating difference between the position data stored in said second position memory and the position data stored in said first position memory and for supplying the difference as a second position change amount (B3), and second evaluating value change rate calculating means (75) for calculating ratio of the second evaluating value change amount from said second evaluating value change amount calculating means with respect to the second position change amount from said second position change amount calculating means and for supplying the ratio as a second evaluating value change rate (R3); and said increase/decrease detecting means includes comparing means (77) for comparing the first evaluating value change rate from said first evaluating value change rate calculating means with the second evaluating value change rate from said second evaluating value change rate calculating means and for indicating that the change rate of the focus evaluating value is increasing when to first evaluating value change rate is smaller than the second evaluating value change rate, and otherwise indicating that the change rate of the focus evaluating value is decreasing.

Inventors: HARUKI TOSHINOBU, HARUKI, TOSHINOBU
Applicants: SANYO ELECTRIC CO, SANYO ELECTRIC CO., LTD.
Application year: 1994
Main classification: H04N5
IPC codes: H04N5