CONTROL DEVICE, IMAGING DEVICE, CONTROL METHOD, AND PROGRAM
The control device stabilizes automatic focus adjustment by calculating defocus amounts from divided frames and switching priority methods based on contrast and reliability ratios, addressing instability in low brightness or contrast conditions.
Patent Information
- Application Number
- JP2020076366
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-04-22
- Publication Date
- 2024-08-13
- Estimated Expiration
- 2040-04-22
AI Technical Summary
Existing automatic focus adjustment methods face instability in low brightness or low contrast conditions due to decreased S/N ratio when distance measurement points are divided into smaller blocks, leading to variations in measurement results.
A control device and method that calculate multiple defocus amounts from divided distance measurement frames, selecting one frame for AF control using a close-range priority method if a high proportion of frames are low contrast, and switching to continuity priority when necessary to stabilize focus adjustment.
Stabilizes automatic focus adjustment operations by prioritizing high-contrast frames and adjusting methods based on contrast and reliability ratios, ensuring consistent focus performance.
Smart Images

Figure 0007532077000001 
Figure 0007532077000002 
Figure 0007532077000003
Abstract
Description
[Technical field]
[0001] The present invention relates to a control device, an imaging device, a control method, and a program. [Background technology]
[0002] Patent Document 1 discloses a method for predicting the movement of a photographing lens by regarding the past changes in the image plane position as a predetermined function of time and calculating the function. Patent Document 2 discloses a method for dividing a pair of electric signal trains used for focus adjustment into multiple blocks and calculating the defocus amount and determining perspective conflict for each block. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2001-021794 A [Patent Document 2] Japanese Patent Application Publication No. 8-015603 Summary of the Invention [Problem to be solved by the invention]
[0004] However, as disclosed in Patent Document 2, when the distance measurement points are divided into divided blocks and each of the distance measurement points becomes small, the S / N ratio decreases, and therefore the variation in the distance measurement results is likely to increase in low brightness or low contrast conditions. For this reason, when executing the method disclosed in Patent Document 1, it is difficult to perform a stable automatic focus adjustment operation (AF operation).
[0005] SUMMARY OF THE PRESENT EMBODIMENTS An object of the present invention is to provide a control device, an imaging device, a control method, and a program that perform stable autofocus adjustment operations. [Means for solving the problem]
[0006] A control device according to one aspect of the present invention includes a calculation means for calculating a plurality of defocus amounts corresponding to a plurality of distance measurement frames obtained by dividing an area corresponding to a display frame, and a selection means for selecting one distance measurement frame corresponding to one defocus amount used for AF control from the plurality of distance measurement frames, the selection means comprising: The AF operation for selecting one of the distance measuring frames is performed in a close-up priority mode, and the selecting means selects a frame that is determined to have low contrast by a contrast detection process. The ratio of the number of low contrast frames to the number of the plurality of distance measurement frames If the percentage is equal to or greater than a certain percentage ,before Table A F operation From the nearest priority system to another priority system Change 。 Other objects and features of the present invention will be described in the following embodiments. Effect of the Invention
[0007] According to the present invention, it is possible to provide a control device, an imaging device, a control method, and a program that perform stable autofocus adjustment operations. [Brief description of the drawings]
[0008] [Figure 1] FIG. 2 is a block diagram of an imaging device in each embodiment. [Diagram 2] 6 is a flowchart showing a servo mode process in each embodiment. [Diagram 3] 6 is a flowchart illustrating a focus detection process in each embodiment. [Figure 4] 5A to 5C are diagrams illustrating examples of a display frame, a distance measurement frame, and a priority area in each embodiment. [Diagram 5] 10 is a flowchart showing a method for selecting a distance measurement frame in the first and second embodiments. [Figure 6] 11 is a flowchart showing a nearest object priority process according to the first embodiment. [Figure 7] 11 is a flowchart showing a continuity priority process in each embodiment. [Figure 8] 5A to 5C are diagrams illustrating an example of a method for selecting a ranging frame according to the first embodiment. [Figure 9] 13 is a flowchart showing a nearest object priority process according to the second embodiment. [Figure 10]13 is a flowchart showing a method for selecting a distance measurement frame according to a third embodiment. [Figure 11] 13A and 13B are diagrams illustrating an example of a method for selecting a distance measurement frame according to the third embodiment. [Figure 12] 13 is a flowchart showing a method for selecting a distance measurement frame according to a fourth embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. Note that overlapping descriptions of parts common to each embodiment will be omitted.
[0010] First Embodiment First, an imaging device according to a first embodiment of the present invention will be described with reference to Fig. 1. Fig. 1 is a block diagram of an imaging device (lens-interchangeable camera, camera system) 10. The imaging device 10 is configured to include a camera body (imaging device body) 200 and a lens unit (lens device) 100 that is detachable (replaceable) from the camera body 200. However, this embodiment is not limited to this, and can also be applied to an imaging device in which the camera body and the lens unit are integrally configured.
[0011] The lens unit 100 has a lens control unit 106 that controls the overall operation of the lens unit 100. The camera body 200 has a camera control unit 212 that controls the overall operation of the imaging device 10 including the lens unit 100. The lens control unit 106 and the camera control unit 212 can communicate with each other via a terminal provided on the lens mount.
[0012] First, the configuration of the lens unit 100 will be described. Fixed lens 101, aperture 102, and focus lens 103 constitute an imaging optical system. Aperture 102 is driven by aperture drive unit 104 and controls the amount of light incident on image sensor 201 (described later). Focus lens 103 is driven by focus lens drive unit 105 and the focal distance of the imaging optical system changes depending on the position of focus lens 103. Aperture drive unit 104 and focus lens drive unit 105 are controlled by lens control unit 106 and determine the opening amount of aperture 102 and the position of focus lens 103, respectively.
[0013] The lens operation unit 107 is a group of input devices for the user to make settings related to the operation of the lens unit 100. By operating the lens operation unit 107, it is possible to switch between AF (autofocus) / MF (manual focus) modes, adjust the position of the focus lens 103 by MF, set the operating range of the focus lens 103, set the image stabilization mode, etc. The lens control unit 106 performs control according to the operation of the lens operation unit 107 by the user.
[0014] The lens control unit 106 controls the aperture driving unit 104 and the focus lens driving unit 105 in response to a control command and control information received from a camera control unit 212 (described later). The lens control unit 106 also transmits lens control information to the camera control unit 212.
[0015] Next, a description will be given of the configuration of the camera body 200. The camera body 200 is configured so as to be able to obtain an imaging signal from a light beam that has passed through the imaging optical system of the lens unit 100.
[0016] The image sensor 201 is composed of a CCD sensor or a CMOS sensor, and photoelectrically converts an optical image formed via the image sensor of the lens unit. That is, a light beam incident from the image sensor is imaged on the light receiving surface of the image sensor 201, and is converted into a signal charge according to the amount of incident light by photodiodes provided in pixels arranged in the image sensor 201. The signal charge accumulated in each photodiode is sequentially read out from the image sensor 201 as a voltage signal according to the signal charge by a drive pulse output by a timing generator 214 in accordance with a command from a camera control unit 212.
[0017] In this embodiment, each pixel of the image sensor 201 is composed of two (a pair) photodiodes A and B and one microlens provided for the pair of photodiodes A and B. Each pixel splits incident light with the microlens to form a pair of optical images on the pair of photodiodes A and B, and outputs a pair of pixel signals (A signal and B signal) used for an AF signal described later from the pair of photodiodes A and B. In addition, an image signal (A+B signal) can be obtained by adding the outputs of the pair of photodiodes A and B.
[0018] A pair of image signals is obtained as an AF signal (signal for focus detection) used for AF by an image plane phase difference detection method (image plane phase difference AF) by synthesizing the multiple A signals output from multiple pixels with each other, and multiple B signals are synthesized with each other. An AF signal processor 204, which will be described later, performs a correlation operation on the pair of image signals, calculates a phase difference (image shift amount) which is the amount of shift between the pair of image signals, and calculates the defocus amount (and defocus direction) of the imaging optical system from the image shift amount.
[0019] The CDS / AGC / AD converter 202 performs correlated double sampling, gain adjustment, and AD conversion to remove reset noise on the AF signal and the imaging signal read out from the image sensor 201. The CDS / AGC / AD converter 202 outputs the imaging signal and AF signal that have been subjected to these processes to an image input controller 203 and an AF signal processor 204, respectively.
[0020] The image input controller 203 stores the imaging signal output from the CDS / AGC / AD converter 202 in the SDRAM 209 as an image signal via the bus 21. The image signal stored in the SDRAM 209 is read out by the display control unit 205 via the bus 21 and displayed on the display unit 206. In a recording mode in which an image signal is recorded, the image signal stored in the SDRAM 209 is recorded in a recording medium 208 such as a semiconductor memory by the recording medium control unit 207. The ROM 210 stores a control program and a processing program executed by the camera control unit 212, as well as various data required for executing these programs. The flash ROM 211 stores various setting information related to the operation of the camera body 200 set by the user.
[0021] The AF signal processor (focus detection device) 204 performs correlation calculations on a pair of image signals, which are AF signals output from the CDS / AGC / AD converter 202, and calculates the image shift amount and reliability of the pair of image signals. The reliability is calculated using the degree of coincidence between the two images and the steepness of the correlation change amount. The AF signal processor 204 also sets the position and size of a ranging area (focus detection area) in which focus detection and AF are performed within the imaging screen. The AF signal processor 204 outputs information on the image shift amount (detection amount) and reliability calculated in the ranging area to the camera control unit 212.
[0022] The camera control unit 212 has an AF control unit 2121, a motion determination unit 2122, a storage unit 2123, and a prediction unit 2124. The AF control unit 2121 instructs the lens control unit 106 to move the focal position based on the converted defocus amount. The motion determination unit 2122 performs motion determination based on the photographing time and the subject image plane position calculated from the defocus amount stored in the memory circuit 215 by the storage unit 2123. The AF control unit 2121 predicts the future image plane position using the prediction unit 2124, calculates the lens drive amount required for the focus lens 103 to reach the predicted image plane position, and instructs the lens control unit 106.
[0023] The camera control unit 212 controls each unit in the camera body 200 while exchanging information with each unit. In addition, the camera control unit 212 executes various processes corresponding to user operations such as power ON / OFF, changing various settings, imaging processing, AF processing, and playback processing of recorded images, in response to an input from a camera operation unit 213 based on a user operation. In addition, the camera control unit 212 transmits control commands for the lens unit 100 (lens control unit 106) and information on the camera body 200 to the lens control unit 106, and also acquires information on the lens unit 100 from the lens control unit 106. The camera control unit 212 is configured by a microcomputer, and controls the entire imaging device 10 including the lens unit 100 by executing a computer program stored in the ROM 210.
[0024] The camera control unit 212 calculates a defocus amount using the image shift amount in the distance measurement area calculated by the AF signal processing unit 204, and controls the driving of the focus lens 103 through the lens control unit 106 based on the defocus amount. The following describes the processing performed in the camera body 200. The camera control unit 212 performs the following processing according to an imaging processing program, which is a computer program.
[0025] 2, the photographing process of the camera body 200, particularly the servo mode process performed by the camera control unit 212 including the AF control unit 2121, will be described below. Fig. 2 is a flowchart showing the servo mode process.
[0026] First, in step S201, the camera control unit 212 determines the state of SW1 (shooting start switch) of the camera operation unit 213. If SW1 is in the ON state, the process proceeds to step S202. On the other hand, if SW1 is in the OFF state, the servo mode process ends.
[0027] In step S202, the camera control unit 212 (AF signal processing unit 204) performs focus detection processing. Details of the focus detection processing will be described later with reference to Fig. 3. Here, the distance measurement frame for performing the focus detection processing in step S202 will be described with reference to Fig. 4. Fig. 4 is a diagram showing an example of the display frame, the distance measurement frame, and the priority area.
[0028] Fig. 4(a) shows one ranging display frame (display frame). Fig. 4(b) shows a state in which the area corresponding to the ranging display frame in Fig. 4(a) is divided into a total of 25 ranging frames, a 5 x 5 arrangement. In this embodiment, as shown in Fig. 4(b), the area in the center row of the 25 ranging frames is set as a first priority area, and the remaining areas are set as second priority areas.
[0029] FIG. 4(c) is a diagram showing a case where one distance measurement display frame (display frame 1) and eight distance measurement display frames (display frame 2) exist around it. FIG. 4(d) is a diagram showing a state where the corresponding areas are divided into a total of 81 frames of 9×9. The priority area (first priority area and second priority area) corresponding to display frame 1 is the same as that in FIG. 4(b), and the priority area corresponding to display frame 2 is the third priority area. Note that the priority areas can be changed depending on whether the positional relationship with the ground is the center, upper, or lower, and the number of first priority areas and second priority areas in FIG. 4(d) can be changed, for example, to 3×3 frames. It is also possible to set more finely divided row or column units (for example, 18×18 frames in total, 324 frames. In the following explanation, it is assumed that the distance measurement frames of the division and priority areas in FIG. 4 are set.
[0030] Next, in step S203 of Fig. 2, the camera control unit 212 performs a ranging frame selection process. Details of the ranging frame selection process will be described later with reference to Fig. 5. Next, in step S204, the camera control unit 212 performs a moving object determination process. Details of the moving object determination process will be omitted. For example, based on the focus detection result of the ranging frame (main frame) determined in step S203, there is a determination method of whether the subject image plane position calculated from the shooting time and defocus amount stored in the memory circuit 215 has changed continuously by more than a predetermined amount.
[0031] Next, in step S205, the camera control unit 212 determines whether or not the subject is a moving object by the moving object determination process in step S204. If the subject is a moving object, the process proceeds to step S206. On the other hand, if the subject is not a moving object, the process proceeds to step S207.
[0032] In step S206, the camera control unit 212 (prediction unit 2124) performs prediction calculation processing using the subject image plane position calculated from the shooting time and defocus amount stored in the memory circuit 215 by the storage unit 2123, and calculates the future image plane position. Note that although details of the prediction method will be omitted, there is a method of using a quadratic curve as a prediction function, and a method of obtaining only the most recent two points and predicting using a linear curve. In addition, a prediction formula f(t) represented by the following formula (1) may be obtained by statistical calculation using the least squares method.
[0033] f(t) = α + βt + γt n (1) Next, in step S207, the camera control unit 212 determines whether or not the focus state is in focus. If the focus state is in focus, the process returns to step S201. On the other hand, if the focus state is not in focus, the process proceeds to step S208.
[0034] In step S208, the camera control unit 212 determines whether or not the focus detection process has ended. If the focus detection process has ended, the camera control unit 212 ends the servo mode process. On the other hand, if the focus detection process has not ended, the process proceeds to step S209. An example of the determination of whether or not the focus detection process has ended is when it is determined that the focus lens 103 will not be in focus even if it is moved any further, such as when the entire range in which the focus lens 103 can be driven has been scanned.
[0035] In step S209, the camera control unit 212 calculates the difference between the current image plane position of the focus lens 103 and the image plane position calculated in step S206, and calculates the driving amount of the focus lens 103.
[0036] Next, an example of the focus detection process (step S202) will be described with reference to Fig. 3. Fig. 3 is a flowchart showing the focus detection process. First, in step S301, the AF signal processing unit 204 acquires a pair of image signals (image data) as AF signals from a plurality of pixels included in the ranging area of the image sensor 201.
[0037] Next, in step S302, the AF signal processing unit 204 performs contrast detection based on information on the peaks and bottoms of the image data acquired in step S301. Although it is possible to hold the results of contrast detection as numerical values, in this embodiment, a contrast value equal to or greater than a predetermined contrast value will be described as high contrast, and a contrast value less than the predetermined contrast value will be described as low contrast.
[0038] Next, in step S303, the AF signal processing unit 204 calculates a correlation amount between the pair of acquired image signals while relatively shifting the pair of image signals by one pixel (one bit). Next, in step S304, the AF signal processing unit 204 calculates a correlation change amount based on the correlation amount calculated in step S303. Next, in step S305, the AF signal processing unit 204 calculates an image shift amount using the correlation change amount calculated in step S304. Next, in step S306, the AF signal processing unit 204 calculates a defocus amount of the ranging area using the image shift amount of the ranging area calculated in step S305.
[0039] Next, in step S307, the AF signal processor 204 calculates reliability based on the defocus amount calculated in step S306. The reliability calculation can be held as a numerical value like contrast detection, but here a predetermined numerical value is used as a threshold. For example, it is divided into four stages: "Focus OK" which is sufficient for focusing, "Defocus OK" which is reliable for the defocus amount, "Direction OK" which is reliable for the defocus direction, and "NG" which is unreliable. Note that the reliability here is different from the contrast detected in step S302, and "low contrast = low reliability" does not necessarily mean. This series of focus detection processes is performed for each set ranging frame, for example, all 25 frames in the case of the setting shown in FIG. 4(b).
[0040] Next, the ranging frame selection process (step S203) will be described with reference to Fig. 5 to Fig. 8. Fig. 5 is a flowchart showing the ranging frame selection process (method of selecting a ranging frame).
[0041] First, in step S501, the camera control unit 212 determines whether the ratio of the number of frames determined to have low contrast by the contrast detection process in step S302 (low contrast frames) to all distance measurement frames in the display frame is equal to or greater than a predetermined ratio. If the ratio of the low contrast frames in the display frame is equal to or greater than the predetermined ratio, the process proceeds to step S503. On the other hand, if the ratio of the low contrast frames in the display frame is lower than the predetermined ratio, the process proceeds to step S502.
[0042] FIG. 8 is a diagram showing an example of the result of the focus detection process in step S202, and corresponds to FIG. 4(b). The numerical value written in each ranging frame indicates the amount of defocus, and the smaller the numerical value, the closer the defocus. The ranging frames expressed with diagonal lines indicate ranging frames determined to be high-contrast ranging frames (high-contrast frames) by the contrast detection process in step S302. In the example of FIG. 8, 5 of the total 25 frames are determined to be high-contrast frames and 20 are determined to be low-contrast frames. For this reason, if the predetermined ratio is set to 70% or more, for example, in the ranging result of FIG. 8, the ratio of low-contrast frames is 80%, so the process proceeds to step S503.
[0043] Next, the close distance priority in step S502 will be described with reference to FIG. 6. First, in step S601, the camera control unit 212 judges whether the distance measurement result is included in the first priority area and whether the distance measurement result in the close distance direction has been calculated. Here, by judging whether the distance measurement result is in the close distance direction, even when multiple subjects are included in the distance measurement frame, it is possible to prevent the focus from being on a subject with a high contrast in the background direction. If the distance measurement result is included in the first priority area and the distance measurement result in the close distance direction has been calculated, the process proceeds to step S602. On the other hand, if the distance measurement result is not included in the first priority area or the distance measurement result in the close distance direction has not been calculated, the process proceeds to step S605.
[0044] In step S602, the camera control unit 212 judges whether or not the reliability calculated in step S307 for the temporary main frame is high. If it is judged that the reliability is high, the process proceeds to step S604, where the temporary main frame is updated (determined). On the other hand, if it is judged that the reliability is low, the process proceeds to step S603. In step S603, the camera control unit 212 judges whether or not the reliability is the same as that of the temporary main frame, and a distance measurement result (defocus) closer than the temporary main frame has been calculated. If the reliability is the same as that of the temporary main frame, and a distance measurement result closer than the temporary main frame has been calculated, the process proceeds to step S604, where the temporary main frame is updated. On the other hand, if the reliability is different from that of the temporary main frame, or if a distance measurement result closer than the temporary main frame has not been calculated, the process proceeds to step S605.
[0045] In step S605, the camera control unit 212 determines whether the determination in step S601 has been performed for all the ranging frames, and repeats steps S601 to S605 until the determination for all the ranging frames has been completed. If the determination for all the ranging frames has been completed, the process proceeds to step S606. In step S606, the camera control unit 212 determines the provisional main frame as the main frame, and ends this process.
[0046] The closest subject priority mode allows the user to focus on the closest subject captured within the range finder frame, regardless of the position of the focus lens 103. For this reason, the closest subject priority mode is an effective selection method when a subject has not yet been captured immediately after SW1 has started, or when the user wants to focus on a subject in the foreground when the focus is far away.
[0047] Next, the continuity priority (continuity priority 1) of step S503 will be described with reference to Fig. 7. Fig. 7 is a flowchart of the continuity priority.
[0048] First, in step S701, the camera control unit 212 judges whether the distance measurement result is a priority area or not, and whether the distance measurement result is within a predetermined range with respect to the prediction. Here, the predicted position is the result calculated by the prediction calculation process in step S206. If the subject is not judged to be a moving object, the current lens position is used. The threshold for whether the subject is a priority area or not can be made different depending on the timing of performing the continuity priority, such that the threshold is higher than the first priority area in step S503 (continuity priority 1) and higher than the second priority area in step S505 (continuity priority 2) described later. Similarly, the predetermined range with respect to the prediction can be made different depending on the timing of performing the continuity priority. In this case, the predetermined range of the previous continuity priority is set to be a narrower one. If the distance measurement result is a priority area and is within the predetermined range with respect to the prediction, the process proceeds to step S702. On the other hand, if the distance measurement result is not a priority area or is not within the predetermined range with respect to the prediction, the process proceeds to step S705.
[0049] In step S702, the camera control unit 212 determines whether the reliability calculated in step S307 is higher than that of the temporary main frame. If it is determined that the reliability is high, the process proceeds to step S704, where the camera control unit 212 updates (determines) the temporary main frame. On the other hand, if it is determined that the reliability is low, the process proceeds to step S703. In step S703, if the reliability is the same as that of the temporary main frame and a defocus closer to the prediction than that of the temporary main frame has been calculated, the process proceeds to step S704, where the camera control unit 212 updates (determines) the temporary main frame. On the other hand, if the reliability is not the same as that of the temporary main frame or a defocus closer to the prediction than that of the temporary main frame has not been calculated, the process proceeds to step S705.
[0050] In step S705, the camera control unit 212 judges whether or not the judgment in step S701 has been performed for all the ranging frames. If the judgment has not been performed for all the ranging frames, steps S701 to S705 are repeated. On the other hand, if the judgment for all the ranging frames has been completed, the process proceeds to step S706. In step S706, the camera control unit 212 judges whether or not a temporary main frame has been determined within the priority area. If the temporary main frame has been determined, the process proceeds to step S712, where the camera control unit 212 determines the temporary main frame as the main frame and ends this process. On the other hand, if the temporary main frame has not been determined, the process proceeds to step S707, where the camera control unit 212 judges whether or not the distance measurement result is within a predetermined range with respect to the prediction. As described above, the predetermined range here can be set wider than the predetermined range in step S701. Note that steps S708 to S711 are similar to steps S702 to S705, respectively, and therefore their explanations will be omitted. Continuity priority is an effective selection method when tracking of a subject continues after the subject is captured, especially when prediction is used.
[0051] 5, the camera control unit 212 determines whether or not a main frame determined by the closest priority in step S502 or the continuity priority 1 in step S503 exists. If a main frame exists, this process ends. On the other hand, if a main frame does not exist, the process proceeds to continuity priority 2 in step S505. As described above, continuity priority 2 in step S505 differs in the concept of the priority area and the threshold value for the predetermined range for prediction, and the process flow is similar, so a description thereof will be omitted.
[0052] The result of the above measurement frame selection is considered to be "35" as the predicted position calculated by the prediction calculation process in step S206 in the example of Fig. 8. If the process of step S501 is not performed, the measurement frame 801 that has calculated the closest defocus in the first priority area by the closest object priority is selected as the main frame.
[0053] If the subject moves significantly toward the closest position, or if a close subject is reframed, there is no problem in driving the lens based on the defocus result of "3". However, in this example, since this ranging frame is a low-contrast ranging frame, it is highly likely that the result is due to variation, and if the focus lens is driven using this ranging frame as the main frame, the continuity with respect to "35" is low, so focus tracking may become unstable. However, if it can be determined in the process of step S501 that the proportion of low-contrast frames is equal to or greater than a predetermined value, ranging frame 802 can be selected by prioritizing continuity, and the focus lens can be driven stably with continuity.
[0054] As described above, in this embodiment, the control device (camera body 200) has a calculation means (AF signal processing unit 204) and a selection means (AF control unit 2121). The calculation means calculates a plurality of defocus amounts corresponding to a plurality of distance measurement frames obtained by dividing an area corresponding to a display frame (distance measurement display frame). The selection means selects one distance measurement frame corresponding to one defocus amount used for AF control from the plurality of distance measurement frames. The selection means also changes the AF operation for selecting one distance measurement frame based on the ratio of the number of low contrast frames (frames determined to have low contrast by contrast detection processing) to the number of the plurality of distance measurement frames. Preferably, the selection means changes the AF operation based on whether the ratio is equal to or greater than a predetermined ratio. More preferably, when the ratio is equal to or greater than a predetermined ratio, the selection means changes the AF operation from the closest priority method to another priority method (for example, a continuity priority method). The other priority method is, for example, a continuity priority method, but is not limited thereto.
[0055] As described above, according to this embodiment, the automatic focus adjustment operation (AF operation) is switched depending on the ratio of high-contrast and low-contrast distance measurement results, thereby enabling a stable automatic focus adjustment operation.
[0056] Second Embodiment Next, a second embodiment of the present invention will be described with reference to Fig. 9. Fig. 9 is a flowchart showing the closest object priority in this embodiment. Fig. 9 differs from Fig. 6 in that a high-contrast range finder frame is preferentially selected in step S903.
[0057] The determination of whether the contrast is high or low may be made based on the magnitude of the numerical value, or the result determined to be high contrast may be prioritized from the results determined to be high contrast or low contrast. As described in the first embodiment, in step S901, it is determined whether the distance measurement result is in the close direction. Therefore, even if the priority of the high contrast distance measurement frame is set high in step S903, it is possible to prevent the focus from being set on a subject with a high contrast in the background direction. Considering the above selection result based on close priority in the example of FIG. 8, among the high contrast frames included in the first priority area, the distance measurement frame 803 "31" has calculated the closest defocus.
[0058] In this embodiment, the selection unit (AF control unit 2121) performs an AF operation to select one ranging frame so as to prioritize a high contrast frame over a low contrast frame. Preferably, the AF operation is a close-up priority method. Also preferably, the selection unit divides the multiple ranging frames into at least two priority areas, a first priority area and a second priority area.
[0059] As described above, even if it is determined in step S501 that the ratio of low-contrast frames is equal to or lower than a predetermined ratio, if a high-contrast ranging frame is present in the first priority area, the closest ranging result can be selected from the ranging frames with small variation. Thus, according to this embodiment, stable automatic focus adjustment operation (AF operation) is possible by prioritizing the high-contrast ranging result.
[0060] Third embodiment Next, a third embodiment of the present invention will be described with reference to Fig. 10 and Fig. 11. Fig. 10 is a flowchart showing distance measurement frame selection (a distance measurement frame selection method) in this embodiment. Fig. 11 is a diagram showing an example of a distance measurement frame selection method. Fig. 11(a) is an explanatory diagram of an example of the result of focus detection processing in step S202 and an example of distance measurement frame selection at that time, and corresponds to Fig. 4(b). Fig. 11(b) corresponds to Fig. 4(d).
[0061] The numerical value written in each measurement frame indicates the amount of defocus, and the smaller the numerical value, the closer the defocus. The measurement frames represented by diagonal lines indicate measurement frames determined to be highly reliable by the reliability calculation in step S307. High reliability refers to "focus OK" and "defocus OK" among "focus OK", "defocus OK", "direction OK", and "NG", and is equivalent to the reliability in steps S1002 and S1003 described later being equal to or higher than a predetermined level. In the example of FIG. 11(a), 17 frames out of a total of 25 frames are determined to be highly reliable and 8 frames are determined to be low reliable, and in the example of FIG. 11(b), 57 frames out of a total of 81 frames are determined to be highly reliable and 24 frames are determined to be low reliable.
[0062] First, in step S1001 in Fig. 10, the camera control unit 212 determines a provisional main frame with close-up priority in Fig. 6. In the example in Fig. 11, a ranging frame 1101 for which the closest defocus amount is calculated in the first priority area becomes the main frame.
[0063] Next, in step S1002, the camera control unit 212 determines whether a main frame has been determined in step S1001 and whether the reliability of the selected main frame is equal to or higher than a predetermined reliability. If a main frame exists and its reliability is equal to or higher than the predetermined reliability, the process proceeds to step S1004. On the other hand, if a main frame does not exist or its reliability is less than the predetermined reliability, the process proceeds to step S1003. In the example of FIG. 11(a), the reliability of the ranging frame 1101 is less than the predetermined reliability, so the process proceeds to step S1003.
[0064] In step S1003, the camera control unit 212 determines whether the number of frames whose reliability is determined to be equal to or higher than a predetermined reliability accounts for a predetermined percentage or more of all ranging frames in the display frame. If the number of frames whose reliability is determined to be equal to or higher than a predetermined percentage of all ranging frames in the display frame is equal to or higher than a predetermined percentage, the process proceeds to step S1005. On the other hand, if the number of frames whose reliability is determined to be equal to or higher than a predetermined percentage of all ranging frames in the display frame is less than a predetermined percentage, the process proceeds to step S1004. For example, if the predetermined percentage is 60% or more, the percentage of high reliability frames is 68% in the ranging result of FIG. 11(a) as an example, and the process proceeds to step S1005.
[0065] In step S1005, the camera control unit 212 determines the main frame with continuity priority 2 described with reference to Fig. 7. With continuity priority, a measurement frame that calculates a defocus amount closest to the prediction is selected from among the measurement frames with high reliability. Taking Fig. 11(a) as an example with the predicted position set to "30", the measurement frame 1102 becomes the main frame.
[0066] 11(b), the process proceeds to step S1005 as well, since the proportion of the high reliability frame to the total distance measurement results including the first to third priority regions is determined in step S1003 and the proportion of the high reliability frame is 70%. In continuity priority 2 in step S1005, the second priority region is prioritized in step S701, and therefore the main frame is determined from the third priority region only when there is no distance measurement result included within the predicted range in the second priority region.
[0067] As described above, the first priority area is given priority to the closest object, and the second and third priority areas are given priority to the continuity, but the result of the second priority area is given priority in the continuity priority. Note that the reason why a highly reliable ranging frame is not given priority from step S1001 is that a blurred subject is likely to be less reliable. If the initial focus position is the background, or if you want to focus on a blurred subject on the closest side after the background has been focused on once, you cannot select a ranging frame that has calculated the defocus for that subject.
[0068] As described above, in this embodiment, the calculation means calculates a plurality of defocus amounts corresponding to a plurality of ranging frames obtained by dividing an area corresponding to a display frame, and calculates the reliability of each of the plurality of defocus amounts. The area corresponding to the display frame has at least two priority areas, a first priority area and a second priority area. The selection means changes the AF operation for selecting one ranging frame when the reliability selected from the first priority area is lower than a predetermined reliability and a frame having a reliability higher than the predetermined reliability is included in the area corresponding to the display frame at a predetermined ratio or more. Preferably, the selection means changes the AF operation from the closest object priority method to another priority method. The other priority method is, for example, a continuity priority method, but is not limited thereto. Also preferably, the selection means performs the closest object priority method in the first priority area and the continuity priority method in the second priority area.
[0069] In this manner, in this embodiment, when the reliability of the distance measurement result selected from the first priority area is equal to or lower than a predetermined reliability and a predetermined ratio or more of frames with a reliability equal to or higher than the predetermined reliability are included in an area corresponding to one distance measurement display frame, the automatic focus adjustment operation (AF operation) is switched. Therefore, according to this embodiment, a stable automatic focus adjustment operation is possible.
[0070] (Fourth embodiment) Next, a fourth embodiment of the present invention will be described with reference to Fig. 12. Fig. 12 is a flowchart showing range finding frame selection (range finding frame selection method) in this embodiment.
[0071] First, in step S1201, the camera control unit 212 determines whether the subject distance is a predetermined distance or more, or whether the state is before the subject is captured. If the subject distance is a predetermined distance or more, or the state is before the subject is captured, the process proceeds to step S1202. On the other hand, if the subject distance is not a predetermined distance or more, and the state is not before the subject is captured, the process proceeds to step S1206.
[0072] In step S1202, the camera control unit 212 determines whether or not a subject is being captured. Here, the state of being captured refers to a state after a state in which the focus on the main subject is within a predetermined focal depth has continued for a predetermined period of time or a predetermined number of times. If the subject is being captured, the process proceeds to step S1203. On the other hand, if the subject is not being captured, the process proceeds to step S1204.
[0073] In step S1203, camera control unit 212 makes the same determination as in step S501 in Fig. 5, and proceeds to either closest subject priority in step S1204 or continuity priority in step S1205. Note that the closest subject priority in step S1204 is similar to the content explained with reference to Fig. 9, and the continuity priority in step S1205 is similar to the content explained with reference to Fig. 7. The subsequent processes in steps S1206 to S1209 are similar to the processes explained in steps S1002 to S1005 in Fig. 10, respectively.
[0074] In this embodiment, the subject distance and subject capture status are added. The closest subject priority is an effective selection method when the subject has not yet been captured immediately after SW1 has started, or when the focus is far away and you want to focus on a subject in the foreground. The continuity priority is an effective selection method when the subject continues to be tracked after it has been captured, especially when prediction is used.
[0075] In each embodiment, preferably, the selection means changes the AF operation when the subject distance is equal to or greater than a predetermined distance. Also preferably, the selection means changes the AF operation when the subject is captured. Also preferably, the threshold value at which it is determined that there is continuity in the continuity priority method is different between the first priority region and the second priority region. Also preferably, the threshold value at which it is determined that there is continuity in the continuity priority method is smaller for the first priority region than for the second priority region.
[0076] (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.
[0077] According to each embodiment, in the servo mode, the AF operation can be switched according to the ratio of the distance measurement results of high contrast and low contrast. Therefore, according to each embodiment, it is possible to provide a control device, an imaging device, a control method, and a program that perform a stable autofocus adjustment operation.
[0078] Although the preferred 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. [Explanation of symbols]
[0079] 200 Camera body (control device) 204 AF signal processing unit (calculation means) 2121 AF control section (selection means)
Claims
1. a calculation means for calculating a plurality of defocus amounts corresponding to a plurality of distance measurement frames obtained by dividing an area corresponding to the display frame; a selection means for selecting one of the plurality of distance measurement frames corresponding to one defocus amount used for AF control, the selection means performs an AF operation for selecting the one of the distance measurement frames in a closest focus priority system; The control device is characterized in that the selection means changes the AF operation from the close distance priority method to another priority method when the number of low contrast frames determined to have low contrast by contrast detection processing accounts for a predetermined percentage or more of the number of the plurality of distance measurement frames.
2. 2. The control device according to claim 1, wherein the other priority method is a continuity priority method.
3. 3. The control device according to claim 2, wherein the selection means divides the plurality of distance measurement frames into at least two priority areas, a first priority area and a second priority area.
4. 4. The control device according to claim 3, wherein a threshold value for determining that there is continuity in the continuity priority method is different between the first priority region and the second priority region.
5. 5. The control device according to claim 3, wherein a threshold value for determining that there is continuity in the continuity priority method is smaller in the first priority region than in the second priority region.
6. a calculation means for calculating a plurality of defocus amounts corresponding to a plurality of distance measurement frames obtained by dividing an area corresponding to the display frame; a selection means for selecting one of the plurality of distance measurement frames corresponding to one defocus amount used for AF control, The selection means is when the ratio of the number of low contrast frames determined to have low contrast by the contrast detection process to the number of the plurality of distance measurement frames is equal to or less than a predetermined ratio, an AF operation is performed to select the one distance measurement frame in a close-up priority method so that a high contrast frame determined to have high contrast by the contrast detection process is given priority over the low contrast frames; When the ratio is not equal to or less than the predetermined ratio, the AF operation is performed in another priority method.
7. 7. The control device according to claim 1, wherein the selection means changes the AF operation when the subject distance is equal to or greater than a predetermined distance.
8. A control device according to any one of claims 1 to 7; An imaging device comprising: an imaging element.
9. a calculation step of calculating a plurality of defocus amounts corresponding to a plurality of distance measurement frames obtained by dividing an area corresponding to the display frame; a selection step of selecting one of the plurality of distance measurement frames corresponding to one defocus amount used for AF control, In the selection step, performing an AF operation for selecting the one range finder frame in a closest focus priority mode; a control method for changing the AF operation from the closest object priority method to another priority method when the number of low contrast frames determined to have low contrast by a contrast detection process accounts for a predetermined percentage or more of the number of the plurality of distance measurement frames.
10. A program causing a computer to execute the control method according to claim 9.
Citation Information
Patent Citations
Automatic focus detector
JP1988194240A
Focus detecting device
JP1989077007A
Device for detecting focus and method thereof
JP1996015603A
Focus detector
JP1996262315A
Auto-focusing adjusting device, and optical instrument
JP2001021794A
