Automatic focusing apparatus

Abstract: An automatic focusing apparatus comprising: focusing means for repetitively detecting a defocus amount of a photographing lens, moving object discriminating means for discriminating whether or not an object is moving, pursuit correction amount calculating means for calculating a pursuit correction amount for the moving object on the basis of the present and previous defocus amounts, lens drive means for, when the discrimi­ nating means discriminates that the object is not moved, calculating a drive amount of the lens on the basis of the present defocus amount and for, when the discriminating means discriminates that the object is moving, calculating the drive amount of the lens on the basis of a pursuit drive amount as a sum of the present defocus amount and the pursuit correction amount, so as to drive the lens, and pursuit enable/disable determining means for determi­ ning whether the drive means calculates the drive amount of the lens on the basis of the discrimination result of the discriminating means or calculates the drive amount of the lens on the basis of the present defocus amount, wherein when a drive direction of the lens is reversed, the pursuit enable/disable determining means causes the lens drive means to calculate the drive amount of the photographing lens on the basis of the present defocus amount to drive the lens in a predetermined number of times of drive operation after the reversal.

Description: BACKGROUND OF THE INVENTION : Field of the Invention The present invention relates to an automatic focusing apparatus for a camera or the like. Related Background Art A so-called pursuit or follow-up drive technique is known. In this technique, a defocus amount of a photographing lens is repetitively detected, and it is determined on the basis of the present and previous defocus amounts whether or not an object to be photographed is moving. If it is determined that the object is moving, a correction amount for correcting the position of the photographing lens with respect to the moving object is calculated on the basis of the present and previous defocus amounts, and a drive amount of the photographing lens is calculated on the basis of a sum of the defocus amounts and the correction amount, thereby driving the photographing lens with respect to the moving object without being delayed. For example, this technique is disclosed in Japanese Patent Laid-Open (Kokai) No. 60-214325 filed by the present applicant. SUMMARY OF THE INVENTION: In accordance with the present invention there is provided an automatic focusing apparatus comprising: focus detecting means for repetitively detecting a defocus amount of an image plane of a photographing lens from a predetermined focal plane; and drive control means for controlling a drive operation of said photographing lens on the basis of at least the repetitively detected defocus amounts; characterised in that said apparatus further comprises: acceleration information calculating means for calculating acceleration information associated with acceleration of the image plane with respect to said predetermined focal plane on the basis of the repetitively detected defocus amounts; and in that said drive control means is arranged to control the drive operation of said photographing lens additionally on the basis of said acceleration information, so that said drive operation is adapted to the acceleration of the image plane. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is a chart for explaining the principle of operation of a conventional automatic focusing apparatus; Fig. 2 is a flow chart showing the operation of this embodiment; Fig. 3 is a graph showing a path of an image surface of an object and a path of an estimated focusing surface; Fig. 4 is a graph showing an image surface path when an object is being separated; Figs. 5 and 6 are flow charts showing a modified embodiment for calculating an acceleration component; and Fig. 7 is a chart showing paths of an image surface and an estimated focusing surface together with storage, calculation, and lens drive cycles and an exposure such as a mirror-up operation. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS : Fig. 1 shows a pursuit state, and illustrates a path (solid curve P) of an image forming surface of an moving object and a path (dotted curve Q) of a predetermined image forming surface conjugate with a film surface. In Fig. 1, a time t is plotted along the abscissa, and a distance between the image forming surface and a virtual single lens along an optical axis is plotted along the ordinate. In Fig. 1, coordinates (t n ,x n ) represent charge storage start time t n and a position x n of the predetermined image forming surface at that time, coordinates (t n ′,x n ′) represent charge end time t n ′ and a position x n ′ of the predetermined image forming surface at that time, and coordinates (t n ⁰,x n ⁰) represent AF calculation end time t n ⁰ and a position x n ⁰ of the predetermined image forming surface at that time. The curve Q represents a drive state without a pursuit operation, and follows the path P of an object image. A curve Q′ represents a pursuit drive state. The pursuit operation is performed along the path P, and an approximate in-focus state is always maintained. A difference between Q′ and Q corresponds to a pursuit correction amount C n calculated by a correction section. During the storage/calculation time interval (t₁ to t1⁰), the lens is not moved, x1 = x₁′ = x₁⁰. An out-of-focus amount D₁ at time (t₁+t₁′)/2 becomes a difference (X₁ - x₁⁰) in distance between points a₁ and b₁, and a defocus amount calculated by an AF section 101 at the calculation end time t₁⁰ is equal to this value D₁ if there is no detection error. Thereafter, an nth defocus amount calculated by the AF section is represented by D n hereinafter. A drive operation is performed until the image surface moves by an amount equal to the defocus amount D₁ while counting feedback pulses using the defocus amount D₁ calculated at the time t₁⁰. As described above, an image surface movement Δ Bf per unit movement of the photographing lens varies depending on the photographing lens, and a feedback pulse count Δn giving a lens movement also tends to vary depending on the photographing lens. A conversion coefficient K B for converting the image surface movement ΔBf into the feedback pulse count Δn according to the relationship Δn = K B x ΔBf is stored, and actual drive control is performed using this coefficient. The storage operation is restarted at time t₂ at which the lens drive operation is almost converged. A second defocus amount D₂ is calculated at time t₂⁰ and is equal to a value (X₂ - x₂⁰) corresponding to a difference between points a₂ and b₂ as an out-of-focus amount at an intermediate point of the storage time (t₂ to t₂′) if there is no error. If an object stands still and a detection error is sufficiently small, the defocus amount D₂ becomes much smaller than the amount D₁. In principle, the presence/absence of movement of an object can be discriminated on the basis of the ratio of these values. When an image surface is moved at a constant speed, in a follow-up state without pursuit correction drive operation, each calculated defocus amount D n is never converged to zero and becomes an almost constant value, thus yielding D n /D n-1 1. If this value is monitored, the presence/absence of movement of an object can be discriminated. However, when a photographing lens is driven by an additional correction drive operation in addition to a drive operation on the basis of a normal defocus amount like a characteristic curve Q′ in Fig. 1, it is difficult to discriminate the presence/absence of movement of an object using the calculated defocus amounts D n and D n-1 . An amount P n given by equation (1) is calculated as a pursuit defocus amount, and is used as a reference value. P n = D n + (immediately preceding drive amount) - D n-1 Equation (1) is one at time t n ⁰ at which an nth defocus amount D n is calculated. In equation (1), D n is the presently calculated defocus amount, and D n-1 is the immediately preceding defocus amount, i.e., the previous defocus amount. The (immediately preceding drive amount) is the value X(n-1) actually driven by the drive operation of the photographing lens between times t⁰ n-1 to t n or a calculated value D n-1 ′ as a reference value for driving the lens by the amount X(n-1). Of course, if there is no error, these values are equal to each other (D n ′= X(n)). If the correction amount for the pursuit operation is represented by C n , the drive amount D n ′ is given by: D n ′ = D n + C n Using this equation, equation (15) can be rewritten as: P n = D n + C n-1 . As can been seen from Fig. 1 according to the definition of equation (15), if n ≧ 3, the pursuit defocus amount P n is a difference in distance between points a n and a n-1 (e.g., P₄ = D₄ + C₃), i.e., a drive amount of an object image. Whether or not an object is moving is discriminated by comparing P n /P n-1 and a predetermined constant (threshold value) k . In consideration of the influence of various errors, a practical range of the constant k is: 0.3 ≦ k ≦ 0.8 An optimal range is 0.4 ≦ k ≦ 0.6. When P n /P n-1 ≧ k, it is determined that the object is moving. An image surface moving amount corresponding to movement of an object in one cycle at this time is given by almost P n . The pursuit correction amount C n for a pursuit operation is calculated. More specifically, when an object movement discrimination section determines that an object is moving, C n = P n When it determines that an object is not moved, C n = 0 However, with this apparatus, an acceleration of movement of an image surface is not taken into consideration. For example, even when an object is coming closer at a constant speed, a moving speed of an image surface is abruptly increased in a small focal length lens as an object is coming closer, and a pursuit operation tends to be delayed. When an object is going away, the moving speed of the image surface is abruptly decreased, and a pursuit operation tends to overrun. In the present invention, when a moving object is pursued, a drive amount of the photographing lens is corrected taking an acceleration component of movement of an image surface into consideration. As described above, the pursuit defocus amount P n corresponds to an image surface moving amount corresponding to object movement in one cycle of the sequential lens drive processing. Therefore, assuming that the image surface moving speed is almost constant, pursuit defocus amounts P n in respective cycles are almost equal to each other. Therefore, the pursuit defocus amount P n can be directly used as the pursuit correction amount C n as an estimated value of image surface movement and used in the next lens drive operation. This technique is a lens drive technique described in the prior art. However, if the image surface moving speed is not constant, the estimated value P n used in the immediately preceding lens drive operation cannot be directly used in a next lens drive operation. More specifically, when an image surface is accelerated, a value larger than the estimated value P n used in the immediately preceding cycle must be used. On the other hand, if the image surface is decelerated, a value smaller than the estimated value P n used in the immediately preceding cycle must be used. In this embodiment, information associated with an acceleration of the image surface is calculated from two, i.e., new and old pursuit defocus amounts (estimated values) P n and P n-1 , and the latest pursuit defocus amount P n is corrected according to the calculated acceleration, thereby calculating the pursuit correction amount C n used in the next lens drive operation. An image surface moving amount upon movement of an object is estimated on the basis of the present defocus amount D n , present and previous pursuit defocus amounts P n and P n-1 , and the previous pursuit correction amount C n-1 taking an image surface acceleration into consideration, thus calculating a new pursuit correction amount C n . More specifically, the present pursuit defocus amount P n is calculated by: P n = D n + C n-1 A parameter β representing an image surface acceleration (to be referred to as an image surface acceleration parameter hereinafter) is calculated by: β = P n P n-1 A new pursuit correction amount C n is calculated by: C n = α · P n In this embodiment, α = β. For this purpose, the pursuit defocus amount P n is calculated on the basis of equation (3), and it is checked if |P n | > k x |P n-1 |, thereby discriminating the presence/absence of movement of an object. Then, the image surface acceleration parameter β is calculated on the basis of equation (4), and a correction term α is calculated from the acceleration parameter β. On the basis of equation (5), the pursuit correction amount C n is calculated. The drive sequence of the photographing lens according to this embodiment will be described below with reference to Fig. 2. Initialization is performed in step S1. A storage operation is started in step S2, and is ended in step S3. An AF calculation is started in step S4, and is ended in step S5, thus calculating the defocus amount D n . When the AF section outputs the defocus amount D n , the lens drive operation is normally performed on the basis of this data. However, in this embodiment, the defocus amount D n undergoes processing for a pursuit drive operation. In step S6, a pursuit defocus amount P n is calculated on the basis of equation (3). If |P n | > k x |P n-1 | in step S7, it is determined that an object is moving. If it is determined in step S7 that the object is moving, the flow advances to step S8. In step S8, the image surface acceleration β is calculated on the basis of equation (4). In step S9, the correction term α is calculated from the image surface acceleration β. In this embodiment, β is directly used as α. In step S10, the pursuit correction amount C n is calculated on the basis of equation (5). If it is determined in step S7 that the object is not moved, 0 is substituted in C n in step S15. A drive amount D n ′ (D n + C n ) is calculated in step S11, and values P n and C n necessary for the next calculation are stored in step S12. In step S13, a lens drive operation is started. Drive control is performed using the correspondence between the value D n ′ and the feedback pulse count in association with the stored conversion coefficient K B . In step S11, the drive amount D n ′ is calculated as (D n + C n ) to perform a lens drive operation. However, the present invention is not limited to this. For example, C n may be diffused and may be added to D n in one drive control cycle, so that a lens drive operation is continuously performed during the storage operation and AF calculation. If it is determined in step S14 that a drive stop condition is satisfied, the lens drive operation is stopped. The flow then returns to step S2, and the storage operation is restarted. A path Q′ of the AF surface (film conjugate surface) by the lens drive operation on the basis of the above processing sequence and a path P of the image surface will be described in detail below with reference to Fig. 3. In Fig. 3, the image surface path represented by the solid curve P indicates a case wherein the image surface is accelerated, and the path of the AF surface following the image surface is represented by a broken curve Q′. The lens drive processing consists of a cycle of the charge storage operation to a CCD image sensor, a calculation of the defocus amount D n and the pursuit correction amount C n , and the lens drive operation, and a difference between an image surface at an intermediate point of the storage time and the AF surface is subjected to the AF operation. If a circle PT is present time, the latest (present) defocus amount D n is known. An image surface moving amount in an immediately preceding cycle, i.e., the pursuit defocus amount P n can be calculated using equation (3) on the basis of D n and the pursuit correction amount C n-1 used in the immediately preceding lens drive operation. Note that equation (3)′ may be used in place of equation (3). P n = D n + (moving amount of AF surface upon lens drive operation between intermediate point of storage operation upon calculation of D n-1 and intermediate point of storage operation upon calculation of D n ) - D n-1 The acceleration parameter β is calculated from the pursuit defocus amount P n-1 similarly calculated in the immediately preceding lens drive operation and the presently calculated pursuit defocus amount P n . If the acceleration β is not taken into consideration in the next lens drive operation, the pursuit correction amount C n is equal to P n , and becomes a value indicated by ξ in Fig. 3. For this reason, a pursuit operation cannot be satisfactorily performed, and a difference between the image surface and the AF surface upon exposure is large. When the acceleration parameter β is taken into consideration in the next lens drive operation like in this embodiment, as described above, the pursuit correction amount C n is given by α x P n , and becomes a value indicated by η in Fig. 3. As a result, the difference between the image surface and the AF surface upon exposure is decreased, and a high-accuracy pursuit operation can be performed. Fig. 3 shows characteristic curves when an object is coming closer to the camera at a constant speed. As shown in Fig. 4, when an object is going away from the camera at a constant speed, the image surface speed is decreased as the time elapses. In this case, pursuit accuracy can be improved as in Fig. 3. The acceleration parameter β calculated from P n and P n-1 is directly used as α. However, when β is considerably large, such an immediate acceleration must not be performed, and may be a detection error. For example, if β >> 1.5, α = 1.5; when 1.5 > β > 0.5, α = β; and when β < 0.5, α = 0.5. Note that the upper limit value of α is preferably about 1.3 to 2. Alternatively, α can be obtained with reference to the following table in correspondence with β. According to such a correspondence, since the value α becomes smaller than the value β, an overrun tendency can be suppressed. In the above embodiment, the image surface acceleration parameter β is calculated from the ratio of the new and old pursuit defocus amounts P n and P n-1 . However, γ = P n - P n-1 may be calculated, and the correction term a may be calculated from this image acceleration parameter Y. In this case, γ and α have the following correspondence. (1) When α = γ, or (2) when |γ| is equal to or larger than a predetermined value, α = predetermined value x γ/|γ| Otherwise, α = γ may be set. In this case, since γ is limited, an operation can be stabilized. (3) α can be calculated by α = γ x q (where q falls within the range of 0.5 to 1). In this case, an overrun tendency can be suppressed. Fig. 5 shows the sequence of this case. When the correction term α is used, the pursuit correction amount C n is calculated from P n + α, as in step S10′ in Fig. 5. Another embodiment for calculating the correction term α will be described below with reference to Fig. 6. In this embodiment, the correction term α of the image surface acceleration is calculated on the basis of a separation Y of the object from an infinity. The separation Y from the infinity means a value Y in a so-called Newton's formula defining the following relation: A x Y = f x f where A is the distance between an object-side focal point and an object, Y is the distance between an image-side focal point and an image surface, and f is the focal length. The separation Y can be calculated on the basis of an extension amount from the infinity of a lens. When a photographing lens to be used is not a whole-group extension type, the moving amount of the lens does not directly correspond to Y. In this case, the relationship between the lenses and Y can be stored as equations or tables, thus allowing calculation of Y. More specifically, the separation Y can be calculated by the following methods. (1) When a photographing lens comprises a distance encoder, an object distance A or magnification M is read from the output of the encoder, and at the same time, the focal length f is read from a lens ROM of the photographing lens. On the basis of these values, the separation Y is calculated: Y = f x f/A or Y = f/M (2) When a photographing lens does not comprise the distance encoder, an accumulation value of a pulse count after the lens abuts against an infinity end is counted. This count value corresponds to the position of a distance ring. Thus, the separation Y is calculated on the basis of the accumulated value and the conversion coefficient K B read from lens information to convert the pulse count into a defocus amount. When an object is moved at a constant speed, the image surface acceleration parameter β can be calculated by: β = 1 + 2 x P n /Y The pursuit correction amount C n is calculated using the image surface acceleration parameter β in the same manner as described above, thus calculating the lens drive amount D n ′. In the above description, a cycle of a storage operation of the CCD image sensor, which is started upon half depression of the release button, a calculation of a lens drive amount, and a lens drive operation is constant. A case will be described wherein the mirror-up operation is included in the cycle upon full-depression of the release button. When a mirror-up operation is permitted in response to full-depression of the release button, an actual mirror-up operation is performed after the lens drive operation or after the lapse of a predetermined period of time from the beginning of the lens drive operation. Fig. 7 is a diagram showing a case wherein the half-depression state of the release button transits to the full-depression state. In Fig. 7, P is the path of the image forming surface, and Q′ is the path of the AF surface as in Fig. 3. In Fig. 7, before full depression, the storage, calculation, and the drive operations are performed in a period F₀. After full depression, various exposures upon the mirror-up operation are performed between the storage/calculation operation and the drive operation. The image forming surface and the AF surface preferably coincide at the intermediate point (indicated by E in Fig. 7, and corresponding to a central timing during exposure time) of exposure during the exposure. The full-depression operation is detected, and the lens drive amount immediately before the mirror-up operation is increased as compared to that in the half-depression state. In the continuous photographing mode, a plurality of mirror-up operations are performed in response to the full-depression operation. In this case, since the period of one cycle upon the first mirror-up operation is different from that of a cycle upon a second or subsequent mirror-up operation, an identification section for identifying the present exposure state is arranged, and its identification result PCOUNT is set to be 0 in a full-depression state; 1 in a first mirror-up state; 2, in a second mirror-up state; and 3, in a third mirror-up state. A correction method of a lens drive amount upon variation in cycle when the image surface moving speed is constant will be described below. The pursuit correction amount C n before full-depression is given by: C n = P n x α for α = 1 Before full-depression, an in-focus state is obtained at every intermediate point of the storage operation. Therefore, a cycle time F0 between adjacent storage operations is constant, and α = F₀/F₀ = 1. However, after full-depression, an instance of an optimal in-focus state must correspond to an intermediate point of exposure. For this purpose, the correction term α is calculated as: α = (time from storage operation immediately before mirror-up to intermediate point of present exposure)/(time between adjacent storage operations immediately before mirror-up) Therefore, in the mirror-up operation after full-depression, i.e., when PCOUNT = 1, α is calculated by: α = F₁′ F₀ After the second mirror-up operation, i.e., when PCOUNT = 2, α is calculated by: α = F₂′ F₁ Furthermore, after the third mirror-up operation, i.e., when PCOUNT = 3, α is calculated by: α = F₃′ F₂ In this manner, the correction term α is calculated using equation (6) to calculate the pursuit correction amount C n . Thus, high-accurate pursuit operation can be performed while compensating for a variation in cycle time. Therefore, a more accurate pursuit operation can be performed taking a compensation upon variation in cycle time and correction using an image surface acceleration into consideration. The pursuit correction amount is calculated as follows. The correction term α corresponding to the identification result PCOUNT is obtained like in the table below, and the pursuit correction amount C n can be calculated from equation (19). F₁′/F₀, F₂′/F₁, and F₃′/F₂, can be obtained by measuring a time from the storage operation to the beginning of the lens drive operation, and adding it to a time from the mirror-up to the intermediate point to exposure (by calculation). Alternatively, typical values can be prestored as numerical values, and are used. In the above description, the lens drive operation is intermittently performed together with the pursuit correction amount. The lens may be continuously driven to achieve the pursuit correction amount in the entire cycle.

Claims: An automatic focusing apparatus comprising: focus detecting means for repetitively detecting a defocus amount (D1) of an image plane of a photographing lens from a predetermined focal plane; and drive control means for controlling a drive operation of said photographing lens on the basis of at least the repetitively detected defocus amounts ; characterised in that said apparatus further comprises: acceleration information calculating means for calculating acceleration information associated with acceleration of the image plane with respect to said predetermined focal plane on the basis of the repetitively detected defocus amounts; and in that said drive control means is arranged to control the drive operation of said photographing lens additionally on the basis of said acceleration information, so that said drive operation is adapted to the acceleration of the image plane. An automatic focusing apparatus according to claim 1, wherein said drive control means is arranged to calculate velocity information associated with the velocity of the image plane on the basis of the repetitively detected defocus amounts and to calculate a drive amount on the basis of said velocity information, said acceleration information and the present defocus amount. An automatic focusing apparatus according to claim 2, wherein said drive control means is arranged to calculate a correction amount on the basis of said velocity information and said acceleration information and to calculate said driving amount on the basis of the present defocus amount and said correction amount. An automatic focusing apparatus according to any preceding claim, wherein said acceleration information calculating means is arranged to calculate said acceleration information on the basis of the relationship between the present and previous defocus amounts. An automatic focusing apparatus according to claim 4, wherein said acceleration information calculating means is arranged to calculate the ratio of the present defocus amount to the previous defocus amount as said acceleration information. An automatic focusing apparatus according to claim 4, wherein said acceleration information calculating means is arranged to calculate the arithmetic difference between the present defocus amount and the previous defocus amount as said acceleration amount. An automatic focusing apparatus according to any one of claims 1 to 3, wherein said acceleration information calculating means is arranged to calculate said acceleration information on the basis of an object distance or a magnification. An automatic focusing apparatus according to any one of claims 1 to 3, wherein said acceleration information calculating means is arranged to calculate said acceleration information on the basis of the ordinal number of the photograph currently being taken in a continuous photographing mode.

Inventors: KUSAKA YOSUKE, MURAMATSU MASARU, UTAGAWA KEN, YAMANO SHOZO, KUSAKA, YOSUKE, MURAMATSU, MASARU, UTAGAWA, KEN, YAMANO, SHOZO
Applicants: NIPPON KOGAKU KK, NIKON CORPORATION
Application year: 1989
Main classification: G03B3
IPC codes: G02B7