Control device, method, program and storage medium

The control device stabilizes autofocus operations by calculating focus evaluation value changes over multiple frames and executing autofocus only when sustained changes are detected, addressing instability in existing focusing systems.

JP7536529B2Active Publication Date: 2024-08-20CANON KK
View PDF -1 Cites 0 Cited by

Patent Information

Application Number
JP2020111994
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2020-06-29
Publication Date
2024-08-20
Estimated Expiration
2040-06-29

AI Technical Summary

Technical Problem

Existing focusing operations in imaging systems are unstable due to sensitivity to temporary changes in subjects, leading to unnecessary autofocus adjustments that cause image blur and view fluctuations.

Method used

A control device that calculates focus evaluation values for each image, determines changes in these values relative to a threshold, and only initiates autofocus adjustments when the changes meet specific criteria over a predetermined number of frames, thereby stabilizing focusing operations.

Benefits of technology

This approach reduces unnecessary autofocus executions, minimizing image blur and view fluctuations by ensuring responsiveness only to sustained subject changes, thus enhancing focusing stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007536529000002
    Figure 0007536529000002
  • Figure 0007536529000007
    Figure 0007536529000007
  • Figure 0007536529000008
    Figure 0007536529000008
Patent Text Reader

Abstract

To ensure stable focus adjustment motion.SOLUTION: Provided is a control device for controlling the focus adjustment motion of an imaging optical system. This control device comprises: calculation means for calculating a focus evaluation value for each image obtained by successively capturing images formed by the imaging optical system; assessment means for assessing whether or not the amount of change of the focus evaluation value calculated by the calculation means relative to a reference value is greater than or equal to a threshold; and control means for exercising control such that the focus adjustment motion of the imaging optical system is executed when the number of times the amount of change is assessed as being greater than or equal to the threshold by the assessment means is greater than or equal to a first value.SELECTED DRAWING: Figure 2
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a control device, a method, a program, and a storage medium. [Background technology]

[0002] Conventionally, when performing repeated focusing operations, a technique is known in which the restart time interval and the reference change amount of the focus evaluation value when restarting are set according to the imaging conditions, the camera state, etc. (see, for example, Patent Document 1). [Prior art documents] [Patent documents]

[0003] [Patent Document 1] JP 2006-301005 A Summary of the Invention [Problem to be solved by the invention]

[0004] The problem to be solved by the present invention is to perform a stable focus adjustment operation. [Means for solving the problem]

[0005] The present invention solves the above problems by the following solving means.

[0006] A control device according to one aspect of the present invention is a control device for controlling a focus adjustment operation of an imaging optical system. Then, a focus evaluation value is calculated for each image captured successively by the imaging optical system. a calculation means for calculating a focus evaluation value, the change amount of which is equal to or greater than a threshold value with respect to a reference value; a determination means for determining whether the amount of change is equal to or greater than the threshold value; When the number of times the focus adjustment is performed is equal to or greater than a first value, a focus adjustment operation of the imaging optical system is executed. A control means for controlling the and a storage means for storing a result of the determination by the determination means, and erasing the result of the determination when the number of times the determination means has determined whether the amount of change is equal to or greater than the threshold value becomes equal to or greater than a second value, wherein the storage means maintains the storage of the result of the determination when images for which the amount of change is equal to or greater than the threshold value are continuously counted even when the number of times the determination means has determined whether the amount of change is equal to or greater than the threshold value becomes equal to or greater than the second value. It is characterized by: [Brief description of the drawings]

[0007] [Figure 1] FIG. 2 is a diagram illustrating a functional configuration. [Diagram 2] 5 is a flowchart showing a sequence of AF processing in the first embodiment. [Diagram 3] 5 is a flowchart showing AF focusing processing in the first embodiment. [Figure 4] 6 is a flowchart showing an example of focus evaluation values ​​in the first embodiment. [Diagram 5] 5 is a flowchart showing an AF execution determination process in the first embodiment. [Figure 6] 10 is a flowchart showing an AF execution determination process in the second embodiment. [Figure 7] 13 is a flowchart showing an AF execution determination process in the third embodiment. [Figure 8] FIG. 4 is a diagram showing a transition of focus evaluation values ​​in the first embodiment. [Figure 9] FIG. 11 is a diagram showing a transition of focus evaluation values ​​in the second embodiment. [Figure 10] FIG. 13 is a diagram showing a transition of focus evaluation values ​​in the third embodiment. [Figure 11] FIG. 2 is a diagram illustrating a hardware configuration of a control device according to the present embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0008] Hereinafter, an embodiment of the present invention will be described with reference to the drawings.

[0009] (First embodiment) FIG. 1 is a diagram showing the functional configuration of a control device (imaging device) in this embodiment.

[0010] A light beam transmitted through a lens group 101 (imaging optical system) passes through an optical filter 102 , an aperture 103 , and a color filter 104 and enters an imaging element 105 .

[0011] The lens group 101 is an optical system that collects incident light from a subject onto the image sensor 105. The lens group 101 includes a focus lens that adjusts the focus on the subject, a zoom lens that adjusts the angle of view, and the like.

[0012] As the optical filter 102, for example, an infrared cut filter (IRCF) or the like is provided.

[0013] The aperture 103 adjusts the amount of light that passes through the lens group 101 and the optical filter 102 and enters the image sensor 105 .

[0014] The color filters 104 are arranged for each pixel on the light receiving surface of the image sensor 105 in a predetermined order.

[0015] The image sensor 105 outputs captured image information of an object as an analog signal. The image sensor 105 captures and outputs frames continuously at intervals of a predetermined number of times per second (frame rate).

[0016] The image formed by the image sensor 105 is gain-controlled by the AGC 106. Then, the analog image signal is converted by the A / D converter 107 into a digital signal.

[0017] The video signal processor 108 performs predetermined processing on the digital imaging signal from the A / D converter 107, and outputs a luminance signal and a color signal for each pixel. It also creates an image to be output, and generates various parameters for controlling the camera.

[0018] Here, the parameters for controlling the camera include those used for, for example, aperture control, focus evaluation value (AF evaluation value) which is a frequency component value for focusing (focusing operation), white balance control for adjusting color, etc. Each of these parameters is generated for each frame.

[0019] The video signal output unit 109 outputs the video signal generated by the video signal processing unit 108 to the outside.

[0020] The exposure control unit 110 calculates luminance information within the captured image from the luminance information output from the video signal processing unit 108. Then, it controls the aperture 103 and the AGC 106 to adjust the captured image to a desired brightness. In addition, it is also possible to adjust the brightness by adjusting the shutter speed to adjust the accumulation time of the image sensor 105.

[0021] In the focusing operation in this embodiment, a contrast value and the strength of high frequency components are calculated from the video signal generated by the video signal processor 108 and used as a focus evaluation value. Then, the optical controller 111 controls the lens group 101 to the position (focus position) where the focus evaluation value is maximum, which is a so-called contrast AF method.

[0022] An external setting unit 112 performs general camera operations such as focusing, brightness specification, and zoom magnification specification.

[0023] The control setting unit 113 sets control commands for the camera sent from an external setting means, and performs settings for exposure control, lens control, etc. Each of the functions 108-113 described above may be provided in a device connected to the imaging device via a network.

[0024] The flow of processing in this embodiment will be described below with reference to the flowchart shown in FIG.

[0025] Here, the process in FIG. 2 is executed every time the video signal processor 108 generates a focus evaluation value.

[0026] In step S201, the optical control unit 111 determines whether or not an AF execution instruction has been received from the user by the external setting means 112 via the control setting unit 113. If an instruction has been received, the process proceeds to step S204, and if not, the process proceeds to step S202.

[0027] In step S202, the optical control unit 111 performs a process of determining whether or not to execute AF processing. The details of the process will be described later.

[0028] In step S203, the optical control unit 111 determines whether the flag instructing AF execution is True as a result of step S202. If the result of the determination is True, the process proceeds to step S204, and if not, the process ends.

[0029] In step S204, focusing processing is performed using AF.

[0030] Here, the detailed process of step S204 will be described with reference to the flowchart shown in FIG.

[0031] First, in step S301, the optical control unit 111 starts a focus search operation. In the focus search operation, while driving the focus lens of the lens group 101 in a predetermined direction (nearby or infinity), a focus evaluation value is obtained (step S302) and the position of the focus lens (hereinafter, focus position) is obtained (step S303).

[0032] In step S304, the optical control unit 111 determines whether the focus evaluation value acquired in step S302 is greater than the focus evaluation value acquired last time. If it is greater, the process proceeds to step S305, and if not, the process proceeds to step S306.

[0033] In step S305, the optical control unit 111 updates the peak value of the focus evaluation value. Specifically, if the current focus evaluation value is greater than the peak focus evaluation value (the focus evaluation value stored as the peak value), the optical control unit 111 sets (stores) the current focus evaluation value as the peak focus evaluation value. Furthermore, the optical control unit 111 sets (stores) the current focus position as the peak focus position (the focus lens position corresponding to the peak value of the focus evaluation value).

[0034] In step S306, the optical control unit 111 sets the lens drive direction in the focus search operation to the opposite direction to the current direction. That is, if the lens is currently being driven toward the closest point, it is set to the infinity point, and if the lens is currently being driven toward the infinity point, it is set to the closest point.

[0035] During focus search, if the focus evaluation value increases, it is assumed that the focus position is in the current drive direction, so the drive direction of the focus lens is not changed and the peak value is updated. On the other hand, if the focus evaluation value becomes smaller than the previous value, it is assumed that the focus has moved away from the focus position, and the focus is driven in the opposite direction to the current drive direction.

[0036] In step S307, the optical control unit 111 judges whether the focus lens has reciprocated within the same range (focus position) a predetermined number of times or more. If so, the process proceeds to step S308, and if not, the process returns to step S301 to continue the focus search. This judgment is that if the focus lens continues to remain within the same driving range, the in-focus position is within that range.

[0037] In step S308, the optical control unit 111 drives the focus lens to the peak focus position set in step S305 and stops the focus lens (focus stop).

[0038] In step S309, the optical control unit 111 stores the current focus evaluation value as the focus evaluation value at the time of stopping the focusing, and ends this process. This focus evaluation value (AF evaluation value) is used in the AF execution determination process in step S202, which will be described later.

[0039] Fig. 4 shows the relationship between the focus evaluation value and the focus position. At the end of the series of processes in Fig. 3, the focus lens stops at a position (focus position 402) where the focus evaluation value reaches its peak (evaluation value peak 401).

[0040] Next, the process of step S202 will be described with reference to the flowchart shown in FIG.

[0041] In step S501, the optical control unit 111 calculates the amount of change in the focus evaluation value. The amount of change is the absolute difference between the focus evaluation value (reference value) at the time of focus stop stored in step S309 and the focus evaluation value of the current frame.

[0042] In step S502, the optical control unit 111 determines whether the amount of change in the focus evaluation value calculated in step S501 is equal to or greater than a threshold value. If it is equal to or greater than the threshold value, the process proceeds to step S503; if not, the process proceeds to step S504. The threshold value is used to adjust the sensitivity to changes in the subject. Setting the threshold value low makes it easier to react to slight changes in the subject, but it may also react to disturbances such as noise. On the other hand, setting the threshold value high makes it more resistant to disturbances such as noise, but it may be less responsive to changes in the subject. For this reason, it is desirable to adjust the threshold value in advance according to the actual imaging scene.

[0043] Steps S503 and S504 are processes for accumulating the determination results of S502. In this process, a buffer for storing the determination results of each past frame is used to hold the determination results of a predetermined number of recent frames.

[0044] In step S503, the optical control unit 111 sets the determination result corresponding to the current frame to 1.

[0045] In step S504, the optical control unit 111 sets the determination result corresponding to the current frame to 0.

[0046] In step S505, the optical control unit 111 calculates the total value of the determination results corresponding to a predetermined number of immediately previous frames.

[0047] In step S506, the optical control unit 111 determines whether the total value calculated in step S505 is equal to or greater than a threshold value (first value / AF execution threshold value). If it is equal to or greater than the threshold value, the process proceeds to step S507; if not, the process proceeds to step S509. The threshold value (first value) in step S506 is a parameter that controls the responsiveness from when a change in the subject occurs until AF execution is performed. If the threshold value (first value) is set high, the reaction to a temporary change in the subject, such as a person crossing the street, can be suppressed, but the responsiveness is accordingly reduced. If the threshold value is set low, the responsiveness can be increased, but the reaction to a temporary change in the subject becomes easier. For this reason, it is advisable to set the threshold value (first value) according to the imaging scene.

[0048] In addition, the predetermined number of frames (second value) for calculating the total value in step S505 is set in correspondence with the threshold value (first value). The relationship between the threshold value (first value) and the predetermined number of frames (second value) is set so as to satisfy the condition: threshold value≦predetermined number of frames.

[0049] A specific setting example is as follows.

[0050] First, a threshold value (first value / AF execution threshold value) is determined so as to obtain a desired responsiveness. For example, if a response is desired within 1 second from a change in the subject, the threshold value is set to 60 [frames] if the image capture device has a frame rate of 60 fps. This is because, at 60 fps, the time per frame is 1 / 60 seconds.

[0051] Next, the predetermined number of frames is set to a value equal to or greater than the threshold value. For example, if the predetermined number of frames is set to 60, which is the same as the threshold value, the AF operation (focus adjustment operation) is executed (activated) only when the change in the focus evaluation value in all 60 frames is equal to or greater than the threshold value of the focus evaluation value in step S502.

[0052] Since the focus evaluation value is sensitive to noise in the image, it may be difficult to perform the AF operation in an environment where noise due to high gain is likely to occur, such as low-light imaging. This is because the focus evaluation value caused by the change in the subject, which should be reacted to, is buried in the focus evaluation value caused by noise, resulting in a small total change in the focus evaluation value. Therefore, by setting the predetermined number of frames to a value larger than the threshold value, such cases can be reduced. In other words, the value of the predetermined number of frames is set depending on how much of an effect the noise, etc., has on the focus evaluation value is tolerable. For example, the relationship between the predetermined number of frames and the threshold value is determined according to the amount of noise in the image.

[0053] In step S507, the optical control unit 111 clears (deletes) the buffer of the determination result.

[0054] In step S508, the optical control unit 111 sets the AF execution flag, which instructs the execution (activation) of the AF operation, to True, and ends this process.

[0055] In step S509, the optical control unit 111 sets the AF execution flag to False, and ends this process.

[0056] FIG. 8(a) illustrates the transition of the focus evaluation value in this embodiment. FIG. 8(b) illustrates the transition of the total value calculated in step S505. In this example, the predetermined number of frames for calculating the total value is set to 6 frames (803), and the threshold value (first value / AF execution threshold value) in step S506 is set to 5. That is, when the change amount of the focus evaluation value exceeds the threshold value in 5 frames out of 6 frames, the AF operation is executed. If the frame rate (fps) is fixed, the time per frame is also fixed, so the predetermined number of frames can be read as a predetermined time. For example, when the frame rate is 50 fps, the time per frame is 1 / 50 seconds = 20 milliseconds. Therefore, the above 5 frames out of 6 frames are synonymous with 100 milliseconds out of 120 milliseconds. Therefore, when the focus evaluation value exceeds the threshold value for a predetermined time (period), the AF operation is executed.

[0057] When there is a momentary change in the subject, such as a person crossing the street, the amount of change in the focus evaluation value only temporarily becomes a high value, as shown in 801. However, as shown in FIG. 8(b), with such a momentary change in the subject, the total value does not reach the threshold, so AF is not performed. On the other hand, when there is a continuous change in the subject, the amount of change in the focus evaluation value also becomes a continuously high value, as shown in 802. In this case, the total value exceeds the threshold, so AF is performed.

[0058] As described above, according to this embodiment, the AF execution decision is made taking into account past changes in focus evaluation value, so it is possible to suppress reactions to temporary changes in the subject, such as a person crossing the street, and as a result, blurring of the image and fluctuations in the angle of view caused by unnecessary AF execution can be suppressed.

[0059] Second embodiment In the first embodiment, the determination results of past frames are stored for a predetermined number of frames, and a total value is calculated each time to determine whether or not to perform AF. In the second embodiment, a simpler method is used to determine whether or not to perform AF, which does not involve storing past determination results or calculating a total value.

[0060] The AF execution determination process according to this embodiment will be described below with reference to the flowchart shown in Fig. 6. Note that the start timing of the process is the same as in the first embodiment, so a description thereof will be omitted.

[0061] In step S601, the optical control unit 111 determines whether a predetermined number of frames have passed. The number of frames passed is calculated based on the frame for which the previous step S601 was determined to be Yes. If the predetermined time has passed, the process proceeds to step S602, and if not, the process proceeds to step S603. Note that the determination is Yes when the process is executed for the first time.

[0062] In step S602, the optical control unit 111 clears the count value. The count value will be described in detail later.

[0063] In step S603, the optical control unit 111 calculates the amount of change in the focus evaluation value. The calculation method is the same as in step S501 in the first embodiment.

[0064] In step S604, the optical control unit 111 judges whether the amount of change in the focus evaluation value calculated in step S603 is equal to or greater than a threshold (count threshold). The judgment method is the same as in step S502 in the first embodiment. If it is judged to be equal to or greater than the threshold, the process proceeds to step S605, and if not, the process proceeds to step S606.

[0065] In step S605, the optical control unit 111 counts up a count value indicating that there has been a change in the focus evaluation value, that is, a change in the subject.

[0066] In step S606, the optical control unit 111 determines whether the count value is equal to or greater than a threshold value (first value / AF execution threshold value). If it is equal to or greater than the threshold value, the process proceeds to step S607, and if not, the process proceeds to step S609.

[0067] In step S607, the optical control unit 111 clears the count value.

[0068] In step S608, the optical control unit 111 sets the AF execution flag, which instructs the execution of AF, to True, and ends this process.

[0069] In step S609, the optical control unit 111 sets the AF execution flag, which instructs the execution of AF, to False, and ends this process.

[0070] The predetermined number of frames in step S601 and the threshold value in step S604 can be set in the same manner as in the first embodiment.

[0071] FIG. 9(a) illustrates the transition of the focus evaluation value in this embodiment. FIG. 9(b) illustrates the transition of the count value calculated in step S605. In this example, the predetermined number of frames (second value) for clearing (erasing) the count value is set to 6 frames (901), and the threshold value (first value) in step S606 is set to 5. As in the first embodiment, when there is a temporary subject change such as a person crossing the street, the amount of change in the focus evaluation value is only temporarily high as in 801. In such a case, as shown in FIG. 9(b), the count value does not reach the threshold value within 6 frames when the count value is cleared, so AF is not performed. On the other hand, when there is a continuous subject change, the amount of change in the focus evaluation value is also continuously high as in 802. In such a case, the count value in FIG. 9(b) exceeds the threshold value, so AF is performed.

[0072] As described above, according to this embodiment, since there is no need to store the determination results corresponding to each past frame or to calculate a total value, it is possible to perform AF execution determination in a simpler manner than in the first embodiment.

[0073] Third embodiment In the second embodiment, a method for easily determining whether or not to perform AF has been described by counting up a count value each time a change in the subject is detected and comparing it with a threshold value. However, since the count value is cleared each time a predetermined number of frames have elapsed, a delay in performing AF may occur depending on the timing of the change in the subject. For example, even if the count value is continuously counted up when a change in the subject is detected, if the count value is cleared after the predetermined number of frames has elapsed, a delay in performing AF may occur.

[0074] In the third embodiment, a method for suppressing this delay using simple processing similar to that in the second embodiment will be described.

[0075] Fig. 7 is a flowchart of this embodiment. Hereinafter, the AF execution determination process according to this embodiment will be described with reference to the flowchart shown in Fig. 7. Note that a description of steps similar to those in the above-described embodiments will be omitted.

[0076] In step S702, the optical control unit 111 determines whether or not the number of continuous counts, which will be described later, is less than a predetermined value. If it is less than the predetermined value, the process proceeds to step S703, and if not, the process proceeds to step S705.

[0077] In step S704, the optical control unit 111 clears the continuous count number.

[0078] In step S708, the optical control unit 111 increments the continuous count number indicating that a change in focus evaluation value, that is, a change in the subject, has been detected continuously.

[0079] In step S709, the optical control unit 111 clears the continuous count number.

[0080] In step S712, the optical control unit 111 clears the continuous count number.

[0081] FIG. 10(a) illustrates the transition of the focus evaluation value in this embodiment. FIG. 10(b) illustrates the transition of the count value calculated in step S605. In this example, the predetermined number of frames (second value) for clearing the count value is set to 6 frames (1001), and the threshold value (first value) in step S606 is set to 5. The predetermined value for the number of consecutive counts in step S702 is set to 1. As in the first embodiment, when there is a temporary change in the subject, such as a person crossing the road, the amount of change in the focus evaluation value is only temporarily high, as in 801. In such a case, the count value in FIG. 10(b) does not reach the threshold, so AF is not performed. On the other hand, when there is a continuous change in the subject, the amount of change in the focus evaluation value is also continuously high, as in 802. In such a case, the count value in FIG. 10(b) exceeds the threshold, so AF is performed. In the example described in FIG. 9(b) of the second embodiment, the count value is cleared twice, but in this example, the count value is not cleared a second time. This is because the number of continuous counts at that point exceeds 1. As a result, the threshold is reached earlier than in the example of the second embodiment, and AF is performed.

[0082] According to the process described above, when the number of consecutive counts is equal to or greater than a predetermined value, that is, when a change in the subject is continuously detected, the count value is not cleared in step S703 (the count value is maintained). In this way, it is possible to suppress a delay in AF execution in the second embodiment.

[0083] (Other embodiments) The present invention can also be realized by a process in which a program for implementing one or more of the functions of the above-described embodiments is supplied to a system or device via a network or a storage medium, and one or more processors in a computer of the system or device read and execute the program. The present invention can also be realized by a circuit (e.g., ASIC) that implements one or more of the functions.

[0084] FIG. 11 is a block diagram showing an example of the hardware configuration of a computer that executes the processes according to the above embodiments as a program.

[0085] The control device 1100 includes a CPU 1101 , a ROM 1102 , a RAM 1103 , an external memory 1104 , a communication I / F 1105 , and a system bus 1106 .

[0086] The CPU 1101 generally controls the operations in the control device 1100 , and controls each of the components ( 1102 to 1105 ) via a system bus 1106 .

[0087] The ROM 1102 is a non-volatile memory that stores control programs and the like necessary for the CPU 1101 to execute processes. Note that the programs may be stored in the external memory 1104 or a removable storage medium.

[0088] The RAM 1103 functions as a main memory, a work area, etc., for the CPU 1101. That is, when executing processing, the CPU 1101 loads necessary programs, etc. from the ROM 1102 into the RAM 1103, and executes the programs, etc. to realize various functional operations.

[0089] The external memory 1104 stores, for example, various data and various information required when the CPU 1101 performs processing using a program. Also, the external memory 1104 stores, for example, various data and various information obtained when the CPU 1101 performs processing using a program.

[0090] The communication I / F 1105 is an interface for communicating with an external device, and is, for example, a LAN interface.

[0091] The system bus 1106 connects the CPU 1101, the ROM 1102, the RAM 1103, the external memory 1104, and the communication I / F 1105 so as to be able to communicate with each other.

[0092] Although the embodiments of the present invention have been described above, the present invention is not limited to these embodiments, and various modifications and changes are possible within the scope of the gist of the present invention.

Claims

1. A control device for controlling a focus adjustment operation of an imaging optical system, a calculation means for calculating a focus evaluation value for each image captured successively by the imaging optical system; a determination means for determining whether or not a change amount of the focus evaluation value calculated by the calculation means with respect to a reference value is equal to or greater than a threshold value; a control means for controlling the imaging optical system to perform a focus adjustment operation when the number of times that the determination means determines that the amount of change is equal to or greater than the threshold value becomes equal to or greater than a first value; a storage means for storing a result of the determination by the determination means, and erasing the result of the determination when the number of times the determination means has determined whether the amount of change is equal to or greater than a threshold value becomes equal to or greater than a second value, The control device is characterized in that the storage means maintains the memory of the judgment result even if the number of times the judgment means has determined whether the amount of change is greater than or equal to the threshold value becomes greater than the second value, as long as the number of images for which the judgment means has determined that the amount of change is greater than or equal to the threshold value is continuously counted.

2. 2. The control device according to claim 1, wherein said storage means stores, as said determination result, the number of times that said determining means has determined that said amount of change is equal to or greater than said threshold value.

3. 2. The control device according to claim 1, wherein the second value is equal to or greater than the first value.

4. 4. The control device according to claim 1, wherein the reference value is a focus evaluation value in a state where a predetermined subject is focused.

5. 5. The control device according to claim 1, wherein the threshold value is determined in accordance with an image capture scene.

6. 5. The control device according to claim 1, wherein the threshold value is determined in accordance with an amount of noise in an image.

7. 1. A method for controlling a focus adjustment operation of an imaging optical system, comprising: a calculation step of calculating a focus evaluation value for each image captured continuously by the imaging optical system; a determination step of determining whether or not a change amount of the focus evaluation value calculated in the calculation step with respect to a reference value is equal to or greater than a threshold value; a control step of controlling the imaging optical system to perform a focus adjustment operation when the number of times that the amount of change is determined to be equal to or greater than the threshold value in the determination step becomes equal to or greater than a first value; a storage step of storing a result of the determination step, and erasing the result of the determination when the number of times it has been determined in the determination step whether or not the amount of change is equal to or greater than a threshold value becomes equal to or greater than a second value, The method is characterized in that, in the storage step, even if the number of times in the judgment step that it has been determined whether the amount of change is greater than or equal to the threshold value becomes greater than the second value, if the number of images in which the amount of change is determined to be greater than or equal to the threshold value in the judgment step is continuously counted, the memory of the judgment result is maintained.

8. 8. The method according to claim 7, wherein said storing step stores, as said determination result, the number of times that said amount of change is determined to be equal to or greater than said threshold value in said determining step.

9. A program for causing a computer to execute a method for controlling a focus adjustment operation of an imaging optical system, the method comprising: a calculation step of calculating a focus evaluation value for each image captured continuously by the imaging optical system; a determination step of determining whether or not a change amount of the focus evaluation value calculated in the calculation step with respect to a reference value is equal to or greater than a threshold value; a control step of controlling the imaging optical system to perform a focus adjustment operation when the number of times that the amount of change is determined to be equal to or greater than the threshold value in the determination step becomes equal to or greater than a first value; a storage step of storing a result of the determination step, and erasing the result of the determination when the number of times it has been determined in the determination step whether or not the amount of change is equal to or greater than a threshold value becomes equal to or greater than a second value, The program is characterized in that, in the storage step, even if the number of times in the judgment step that it has been determined whether the amount of change is greater than or equal to the threshold value becomes greater than the second value, if the number of images in which the amount of change is determined to be greater than or equal to the threshold value in the judgment step is continuously counted, the storage step maintains the memory of the judgment result.

10. A computer-readable storage medium storing the program according to claim 9.