Imaging apparatus and focus plane control method
The imaging device addresses the challenge of maintaining focus on moving subjects by using a detection and control system to adjust the focal plane based on feature points, ensuring clear imaging despite subject movement.
Patent Information
- Application Number
- JP2023026747
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-02-22
- Publication Date
- 2024-09-03
AI Technical Summary
Existing imaging devices struggle to maintain focus on moving subjects, particularly when using focus lens drive mechanisms.
An imaging device with a detection mechanism to identify feature points in image data, coupled with a control system that adjusts the inclination of the focal plane based on distance and position changes of these points, allowing for precise focus on moving subjects.
The system effectively tracks and maintains focus on moving subjects by dynamically adjusting the focal plane, ensuring clear imaging even as subjects move within the frame.
Smart Images

Figure 2024119673000001
Abstract
Description
[Technical field]
[0001] The present invention relates to an imaging device such as a video camera or a digital camera. [Background technology]
[0002] Some optical systems used in imaging devices are designed to obtain a tilt effect that tilts the focal plane so that the entire object surface tilted with respect to a plane perpendicular to the optical axis of the optical system can be focused on. The tilt effect also makes it possible to focus on multiple subjects simultaneously. Patent Document 1 discloses an optical system that obtains a tilt effect (and a shift effect that shifts the imaging range) by shifting two lens groups in a direction perpendicular to the optical axis. Patent Document 2 discloses an imaging device that determines the direction in which to tilt the focal plane after detecting a subject. Patent Document 3 discloses an imaging device that drives a focus lens according to the distance of a moving subject in order to keep the moving subject in focus. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2019-090952 A [Patent Document 2] Patent Publication No. 2021-113909 [Patent Document 3] JP 2002-250858 A Summary of the Invention [Problem to be solved by the invention]
[0004] By simply driving the focus lens as in the imaging device of Patent Document 3, it may be difficult to keep a moving subject in focus.
[0005] The present invention provides an imaging apparatus and a focal plane control method that are capable of tracking and continuously adjusting the focus on a moving subject. [Means for solving the problem]
[0006] According to one aspect of the present invention, an imaging device includes a detection unit that detects a plurality of feature points related to a subject from image data obtained by imaging, an acquisition unit that acquires information regarding distances to the plurality of feature points, and a control unit that controls the drive of a movable lens in an optical system so as to change the amount of inclination of a focal plane. The control unit controls the drive of the lens in response to at least one change in the information regarding the distance and / or the position of any of the plurality of feature points within an imaging screen.
[0007] According to another aspect of the present invention, there is provided a lens device including an optical system and a control means for controlling the driving of a movable lens in the optical system so as to change the amount of inclination of a focal plane, the control means acquiring from the imaging device a plurality of feature points of a subject detected from image data obtained by imaging and information relating to distances to the plurality of feature points, and controlling the driving of the lens in response to at least one change in the information on the distance and / or the position of any of the plurality of feature points within an imaging screen.
[0008] A focal plane control method according to another aspect of the present invention includes the steps of detecting a plurality of feature points related to a subject from image data obtained by imaging, acquiring information on the distance to the plurality of feature points, and controlling the driving of a movable lens in an optical system so as to change the amount of inclination of the focal plane. The method is characterized in that the driving of the lens is controlled in response to at least one of the change in the information on the distance and the position of any of the plurality of feature points in the imaging screen. Note that a program for causing a computer to execute processing according to the focal plane control method also constitutes another aspect of the present invention. Effect of the Invention
[0009] According to the present invention, it is possible to keep the focus on a moving subject by tracking it. [Brief description of the drawings]
[0010] [Figure 1] FIG. 1 is a cross-sectional view showing a configuration of a camera system according to an embodiment. [Diagram 2] FIG. 2 is a block diagram showing the electrical configuration of the lens unit and the camera body according to the embodiment. [Diagram 3] A diagram explaining the Scheimpflug principle. [Figure 4] 4 is a flowchart showing a process in the first embodiment. [Diagram 5] FIG. 2 is a diagram showing imaging in the first embodiment. [Figure 6] A diagram of the imaging state shown in Figure 5 when viewed from a direction perpendicular to the focus direction. [Figure 7] 11 is a flowchart showing a process according to the second embodiment. [Figure 8] FIG. 11 is a diagram showing imaging in the second embodiment. [Figure 9] 9 is a diagram showing a change in the tilt drive amount during the imaging in FIG. 8. [Figure 10] 11 is a flowchart showing a process according to a third embodiment. [Figure 11] 13 is a flowchart showing a process according to the fourth embodiment. [Figure 12] 13 is a flowchart showing another process in the fourth embodiment. [Figure 13] FIG. 4 is a diagram for explaining the definition of a focus range. [Figure 14] 13 is a flowchart showing a process according to the fifth embodiment. [Figure 15] 15 is a flowchart continuing from the flowchart of FIG. 14 . [Figure 16] 16 is a graph showing the relationship between the subject distance of the main subject and the tilt amount of the focal plane when the processing of FIGS. 14 and 15 is performed. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0011] Hereinafter, embodiments of the present invention will be described with reference to the drawings.
[0012] 1 shows the configuration of a camera system 100 including a lens unit 1 as a lens device according to an embodiment of the present invention and a camera body 2 as an imaging device (optical equipment). In the figure, the optical axis 4 of the lens unit 1 is the X-axis, the vertical axis is the Y-axis, and the horizontal axis (the direction perpendicular to the paper surface of the figure) is the Z-axis.
[0013] The camera body 2 has an image sensor 3 which is a photoelectric conversion element such as a CCD sensor or a CMOS sensor. The image sensor 3 photoelectrically converts (captures) an optical image formed by an optical system in the lens unit 1. The camera body 2 generates image data from an image signal output as an electrical signal from the image sensor 3, and displays the image data on a rear display unit 1108 or an in-finder display unit 1100, or records the image data in an image recording unit, which will be described later. The user can check the image composition and the state of the subject by looking at an image displayed on the rear display unit 1108 or an image displayed on the in-finder display unit 1100 and observable through the eyepiece unit 16.
[0014] The lens unit 1 includes an optical system having, arranged in order from the object side, a first lens 21, a second lens 22, a third lens 23, a fourth lens 24, a fifth lens 25, a sixth lens 26, a seventh lens 27, an eighth lens 28, a ninth lens 29, and a tenth lens 30. By changing the positional relationship (interval) of these lenses 21 to 30 in the optical axis direction, which is the direction along the optical axis 4, it is possible to change the focal length of the optical system (i.e., to perform zooming). The optical system also includes an aperture 11 that changes the diameter of an opening through which light passes.
[0015] Of the lenses 21 to 30, the movable lenses that can move in the optical axis direction are held by a holding frame having a cam follower. The cam follower engages with a linear groove portion formed in the guide barrel 7 so as to extend in the optical axis direction and a cam groove portion formed in the cam barrel 8 so as to have an inclination in the optical axis direction. When the zoom operation ring 6 is rotated by the user, the cam barrel 8 rotates around the optical axis 4, and the movable lenses move in the optical axis direction. This performs zooming. The amount of rotation of the zoom operation ring 6 is detected by a zoom operation rotation detection unit, which will be described later.
[0016] The second lens group 22 is a focus lens (focus element) that can adjust the focus by moving in the optical axis direction. The second lens group 22 is driven in the optical axis direction by a focus actuator 31 configured by a vibration type linear motor while being guided in the optical axis direction by a guide bar (not shown). The focus unit 10 including the second lens group 22 and the focus actuator 31 has a focus position sensor (not shown) that detects the position (focus position) of the second lens group 22 in the optical axis direction.
[0017] The sixth lens 26 and the eighth lens 28 can be moved (shifted) in a shift direction that is a direction perpendicular to the optical axis 4. By shifting the sixth lens 26 and the eighth lens 28, a tilt effect that tilts the focal plane, which is the surface on the subject side where the optical system is focused, relative to the imaging surface (surface perpendicular to the optical axis 4) of the imaging element 3, and a shift effect that moves the imaging range can be obtained. Specifically, the sixth lens 26 and the eighth lens 28 both have positive refractive power or both have negative refractive power, and the tilt effect can be obtained by shifting them in opposite directions, and the shift effect can be obtained by shifting them in the same direction. In addition, when the sixth lens 26 and the eighth lens 28 have refractive powers of different signs, the shift effect can be obtained by shifting them in opposite directions, and the tilt effect can be obtained by shifting them in the same direction.
[0018] The sixth lens group 26 is held by a holding frame capable of shifting in a shift direction, and is driven in the shift direction by a first shift unit 12 including a shift actuator such as a voice coil motor. The eighth lens group 28 is held by a holding frame capable of shifting in the shift direction, and is driven in the shift direction by a second shift unit 13 including a shift actuator such as a voice coil motor.
[0019] The lens unit 1 is detachably attached to the camera body 2 via a mount 5. The lens unit 1 and the camera body 2 have a lens contact 1009 and a camera contact 1010 for communicating with each other.
[0020] 2 shows the electrical configuration of the lens unit 1 and the camera body 2. In the camera body 2, a camera CPU 1100 is configured with a microcomputer. The camera CPU 1100 controls the operation of each part in the camera body 2. The camera CPU 1100 also communicates with the lens CPU 1000 in the lens unit 1 via the camera contact 1010 described above.
[0021] The camera information that the camera CPU 1100 transmits to the lens CPU 1000 includes drive amount information of the second group lens 22, focus information of the optical system, and attitude information of the camera body 2 based on a signal from a camera attitude detection unit 1110 such as an acceleration sensor. The camera information further includes distance information to a subject on which the user wishes to focus and shift information of the imaging range, which are specified by the user through the operation of the TS instruction unit 1109. The TS instruction unit 1109 will be described in detail later.
[0022] The lens information transmitted by the lens CPU 1000 to the camera CPU 1100 includes optical information such as the imaging magnification of the optical system, and information on lens functions such as zoom and vibration isolation. The lens information further includes attitude information of the lens unit 1 based on a signal from a lens attitude detection unit 1008 such as a gyro sensor or an acceleration sensor. Attitude information is included.
[0023] The lens contact 1009 and the camera contact 1010 also include a contact for supplying power from the camera body 2 to the lens unit 1 .
[0024] The power switch 1101, when operated by a user, starts the camera CPU 1100 and starts supplying power to actuators, sensors, and the like within the camera system 100. The release switch 1102 has a first stroke switch SW1 that is turned on when the user presses it halfway down, and a second stroke switch SW2 that is turned on when the user presses it all the way down. In response to an ON signal input from the first stroke switch SW1, the camera CPU 1100 performs image capture preparation operations including measurement of subject brightness by a photometry unit 1103 and focus detection by a focus detection unit 1104.
[0025] The camera CPU 1100 calculates the aperture value of the aperture 11 and the exposure (shutter time) of the image sensor 3 included in the imaging unit 1106 based on the photometry result by the photometry unit 1103. The camera CPU 1100 also determines the drive amount (including the direction) of the second lens group 22 for focusing on the subject based on focus information (defocus amount and direction) which is the detection result of the focus state of the optical system by the focus detection unit 1104. The drive amount information of the second lens group 22 is transmitted to the lens CPU 1000. The lens CPU 1000 controls the AF drive unit 1006 (including the focus actuator 31 described above) to drive the second lens group 22 in the optical axis direction based on the received drive amount information. This performs AF (autofocus).
[0026] Moreover, the camera CPU 1100 as a detection means detects one or more subjects from image data obtained through the imaging element 3. Moreover, the camera CPU 1100 as an acquisition means acquires information for adjusting the focus on each subject. Specifically, it acquires information on the distance of the subject at each point on the imaging element 3, that is, information such as distance, amount of focus deviation, or degree of focus. Since the amount of focus deviation and the degree of focus change according to the distance of the subject, they are included in the information on the distance. Furthermore, the camera CPU 1100 can detect feature points related to the subject from the image data and acquire information on the position of the feature points on the imaging element 3 (within the image data) and the distance of the feature points (distance, amount of focus deviation, etc.).
[0027] Furthermore, the camera CPU 1100 as a control means calculates a tilt drive amount for focusing on a subject instructed through the TS instruction unit 1109, and calculates a shift drive amount for changing the current imaging range to the imaging range instructed through the TS instruction unit 1109. Tilt drive amount information and shift drive amount information are transmitted from the camera CPU 1100 to the lens CPU 1000. The lens CPU 1000 controls the first shift unit 12 and the second shift unit 13 through a TS driver 1007 described later based on the tilt drive amount information and shift drive amount information. As a result, the sixth group lens 26 and the eighth group lens 28 are shift-driven.
[0028] There may be multiple subjects designated by the TS designation unit 1109. Multiple subjects at different distances from the camera system 100 can also be focused on if they are on a focal plane tilted by the tilt effect. Details of imaging using such a tilt effect will be described later.
[0029] 2, the TS instruction unit may be provided in the lens unit 1. In this case, it is also possible to assign the function of the TS instruction unit to an existing operation unit such as a dial or button provided in the lens unit 1.
[0030] The camera CPU 1100 instructs the lens CPU 1000 to perform decentering (shift) driving of an anti-vibration lens (not shown) in order to perform image blur correction in a predetermined imaging mode. The lens CPU 1000 controls the shift driving of the anti-vibration lens through an IS driver 1004 (described later).
[0031] The camera CPU 1100, which receives an ON signal from the second stroke switch SW2, transmits an aperture drive command to the lens CPU 1000. In response to the received aperture drive command, the lens CPU 1000 sets the aperture 11 to an aperture value calculated by the camera CPU 1100 through an electromagnetic aperture drive unit 1005, which will be described later. The camera CPU 1100 also transmits an exposure start command to the exposure unit 1105, and causes the exposure unit 1105 to perform a retracting operation of a mirror (not shown) if the camera has one, or to perform an opening operation of a shutter (not shown). The camera CPU 1100 then causes the image sensor 3 of the image sensor 1106 to capture an image of a subject. The signal processor in the camera CPU 1100 converts an analog image signal from the image sensor 3 into a digital signal, and further performs various image processes on the digital image signal to generate image data of a moving image or a still image. The image data is recorded in the image recording unit 1107 on a recording medium such as a semiconductor memory, such as a flash memory, a magnetic disk, or an optical disk.
[0032] Furthermore, the display image data generated by the image processing unit before the ON signal is input from the second stroke switch SW2 is displayed as a live view image on the display unit 1108 configured with a liquid crystal, an organic EL, or the like. A user viewing the live view image can select a subject to focus on or instruct a shift in the imaging composition (imaging angle of view) by operating the TS instruction unit 1109. The TS instruction unit 1109 may be configured on the display unit 1108 equipped with a touch sensor.
[0033] In the lens unit 1, a focus operation rotation detection unit 1002 detects the amount of rotation of the focus operation ring 19 shown in Fig. 1. An aperture operation rotation detection unit 1011 detects the amount of rotation of the aperture operation ring 20 shown in Fig. 1. A zoom operation rotation detection unit 1003 detects the amount of rotation of the zoom operation ring 6 as described above.
[0034] The object storage unit 1012 stores the spatial position of the object in the imaging range specified via the TS specification unit 1109 or the display unit 1108. This position can be defined by the distance to the object and the coordinates (X, Y) when the imaging surface is an XY plane. Details will be described later.
[0035] The TS operation detection unit 1001 includes a manual operation unit for obtaining tilt and shift effects and a sensor for detecting the amount of operation.
[0036] The IS driver 1004 includes an anti-vibration actuator that drives and shifts the above-mentioned anti-vibration lens, and a drive circuit for the actuator.
[0037] The AF driving unit 1006 includes a focus unit 10 (focus actuator 31) that drives the second lens group 22 in the optical axis direction and a driving circuit for the focus actuator 1006. The lens CPU 1000 controls the AF driving unit 1006 in accordance with drive amount information from the camera CPU 1100 or the rotation operation amount from the focus operation rotation detection unit 1002 to move the second lens group 22.
[0038] The electromagnetic aperture driving unit 1005 includes an aperture actuator and its driving circuit that drives the aperture 11. The lens CPU 1000 receives an aperture drive command from the camera CPU 1100 and controls the electromagnetic aperture driving unit 1005 to operate the aperture 11 to an aperture value determined by the camera CPU 1100 or specified by the user.
[0039] 1 and their drive circuits. The lens CPU 1000 controls the TS drive unit 1007 based on the tilt drive amount information and shift drive amount information received from the camera CPU 1100 or in response to the operation of the TS operation detection unit 1001, and shifts the sixth lens 26 and the eighth lens 28. The shifting of the sixth lens 26 and the eighth lens 28 provides a tilt effect that tilts the focal plane with respect to a plane perpendicular to the optical axis 4, and also provides a shift effect that shifts the imaging range.
[0040] In this embodiment, focusing is performed by shifting the sixth lens 26 and the eighth lens 28 by the TS driver 1007 and by moving the second lens 22 in the optical axis direction by the AF driver 1006. The optical system has optical characteristics in which the focus changes by shifting the sixth lens 26 and the eighth lens 28 even if the subject distance does not change, and the TS driver 1007 and the AF driver 1006 are appropriately controlled in accordance with the characteristics.
[0041] An angular shake sensor (not shown) made of a gyro sensor is provided in the lens unit 1, and the angular shake sensor is electrically connected to the lens CPU 1000. The angular shake sensor detects the angular velocity of each of the vertical (pitch) shake and horizontal (yaw) shake, which are the angular shake of the lens unit 1, and outputs the angular velocity signal to the lens CPU 1000. The lens CPU 1000 electrically or mechanically integrates the angular velocity signals of the pitch shake and yaw shake from the gyro sensor to calculate the pitch shake amount and yaw shake amount. The lens CPU 1000 then controls the IS driver 1004 based on the pitch shake amount and yaw shake amount to shift and drive the vibration-proof lens, thereby correcting image blur caused by angular shake. Note that an acceleration sensor may be used as the angular shake sensor instead of the gyro sensor.
[0042] In addition, a focus shake sensor (not shown) composed of an acceleration sensor is provided in the lens unit 1, and the focus shake sensor is electrically connected to the lens CPU 1000. The focus shake sensor detects the acceleration of focus shake, which is a shake in the optical axis direction of the lens unit 1, and outputs an acceleration signal to the lens CPU 1000. The lens CPU 1000 electrically or mechanically integrates the acceleration signal to calculate the amount of focus shake. Then, the lens CPU 1000 controls the AF drive unit 1006 based on the amount of focus shake to drive the second group lens 22 in the optical axis direction, thereby correcting image shake caused by focus shake. Note that an angular shake sensor and a focus shake sensor may be provided in the camera body 2, and the lens CPU 1000 may receive the amount of angular shake and the amount of focus shake through the camera CPU 1100.
[0043] Furthermore, the lens CPU 1000 controls the TS driver 1007 based on the amount of angular shake of the lens unit 1 calculated based on the output from the angular shake sensor. For example, if a user shakes while holding the camera system 100 in his / her hand to capture an image, the focal plane of the subject shifts. In this case, the lens CPU 1000 controls the TS driver 1007 to keep the focal plane aligned with the subject while correcting the camera shake based on the position of the subject stored in the subject memory unit 1012. Details of this control will be described later.
[0044] The Scheimpflug principle will be described with reference to Figs. 3(a) to (c). When the principal plane of the optical system is tilted (not parallel) to the imaging surface of the imaging element 3, the Scheimpflug principle determines the range in focus on the subject side (hereinafter referred to as the focus range). Fig. 3(a) shows a focus plane 1202a in focus when the principal plane 1203a of the optical system 1201a is not tilted to the imaging surface 1200a. Fig. 3(b) shows a focus plane 1202b in focus when the principal plane 1203a is tilted to the imaging surface 1200a. The Scheimpflug principle is that, as shown in Fig. 3(b), when the imaging surface 1200a and the principal plane 1203a of the optical system 1201a intersect at a point 1204b on a certain line, the focus plane 1202b also passes through the point 1204b.
[0045] When the subject to be imaged has depth as seen from the camera system, tilting the focal plane 1202b in the depth direction makes it possible to focus on the subject from the foreground to the background. In a lens unit without a TS (tilt / tilt) mechanism, the aperture is narrowed to deepen the depth of field when the range in focus in the depth direction is to be expanded. In contrast, in a lens unit with a tilt mechanism, even when the aperture is fully open, the main surface 1203a can be tilted with respect to the imaging plane 1200a by the tilt mechanism to expand the range in focus in the depth direction.
[0046] Conversely, by tilting the principal plane of the optical system in the opposite direction to the inclination of the subject with depth, it is possible to make the focal plane intersect the subject's depth direction at an angle close to a right angle. In this case, the range in focus in the depth direction can be made extremely narrow, allowing the capture of a diorama-like captured image.
[0047] However, in this embodiment, instead of tilting the principal plane of the optical system with respect to the imaging plane, as shown in Fig. 3(c), the image plane tilt caused by the shift (decentering) of the lens in the optical system 1201c is used to generate a tilt angle θobj on the focal plane 1202c with respect to the imaging plane 1200c. However, when the Scheimpflug principle is applied to the principal plane 1203c of the optical system 1201c and the focal plane 1202c, an image plane tilt of an angle θimg occurs on the image plane 1200d. In this embodiment, the optical system 1201c corrects this image plane tilt angle θimg, so that the focal plane 1202c tilts (tilts) without tilting the imaging plane 1200c, and the range in focus in the depth direction can be expanded.
[0048] In FIG. 3(c), the distance in the optical axis direction between the principal plane 1203c of the optical system 1201c and the imaging plane 1200c is called the principal plane distance Lp, and the distance in the optical axis direction between the focal plane 1202c and the imaging plane 1200c is called the subject distance (object plane distance) Lo.
[0049] On the other hand, if the image plane tilt correction effect is to be ensured, the shift amount of the lenses in the optical system 1201c increases, and the deviation of the imaging composition becomes large. For this reason, in this embodiment, the deviation of the imaging composition is suppressed while ensuring the image plane tilt correction effect by shifting another lens designed to reduce the aberration variation during shifting. In this embodiment, the sixth group lens 26 and the eighth group lens 28 are shifted as these two lenses. EXAMPLES
[0050] In the first embodiment, tracking control is performed to control the focus range so as to include one moving subject. The flowchart in Fig. 4 shows the tracking control process (focus plane control method) in the first embodiment. The camera CPU 1100 executes this process according to a computer program.
[0051] When a user selects a tracking mode in which the camera tracks and focuses on a subject, the camera CPU 1100 starts tracking control in step 401. At this time, the user operates the TS instruction unit 1109 to select a subject to be imaged and to determine a desired tilt angle.
[0052] In step 402, the camera CPU 1100 defines a plurality of feature points of the subject from the image data obtained through the image sensor 3. In this embodiment, two feature points are defined for one subject. The method of defining the feature points will be described later.
[0053] In step 403, the camera CPU 1100 judges whether or not at least one of the positions of the multiple feature points (i.e., the image capturing composition) and the focus state (i.e., information related to distance such as distance and the amount of focus deviation) has changed in the image data. If the camera CPU 1100 judges that at least one of the positional relationship of the feature points and the focus state has changed, it performs the process of step 404, and if it judges that there has been no change, it repeats this judgment.
[0054] In step 404, the camera CPU 1100 judges whether or not all (two) feature points are out of focus. If all feature points are out of focus, the camera CPU 1100 performs processing in step 405, and if any of the feature points is in focus, the camera CPU 1100 performs processing in step 406.
[0055] In step 405, the camera CPU 1100 performs focus control to perform AF by moving the second lens group 22 so as to focus on at least one feature point. At this time, the camera CPU 1100 can determine whether each feature point is located near or far from the focal plane. For this reason, the camera CPU 1100 performs focus control by calculating the drive direction and drive amount of the second lens group 22 to focus on the feature point closer to the focal plane, for example, and transmitting the information to the lens CPU 1000.
[0056] In step 406, the camera CPU 1100 judges whether or not there is an out-of-focus feature point. If there is an out-of-focus feature point, the camera CPU 1100 performs the process of step 407, and if there is no out-of-focus feature point, the camera CPU 1100 performs the process of step 408.
[0057] In step 407, the camera CPU 1100 performs tilt control to shift and drive the sixth lens 26 and the eighth lens 28 so as to focus on the out-of-focus feature point. At this time, the camera CPU 1100 can determine whether the out-of-focus feature point is close or far from the focus plane, so it calculates the direction and amount (angle) of tilting the focus plane to focus on the out-of-focus feature point, and transmits this information to the lens CPU 1000. After performing tilt control in this manner, the camera CPU 1100 returns to the processing of step 404.
[0058] Even if the tilt control causes the focus to shift away from a feature point that was previously in focus, the focus can be adjusted using the focus control described above, and by repeating the tilt control and focus control, it is possible to focus on all feature points.
[0059] In step 408, the camera CPU 1100 determines whether or not there is an instruction from the user to end the tracking control. If there is no instruction to end the control, the process returns to step 403, and if there is an instruction to end the control, the process ends.
[0060] 5(a) and (b) show an example of tracking control in the first embodiment. FIG. 5(a) shows a state in which an optical image including one subject (person) 2101 is formed on the image sensor 3 and the user selects the subject 2101. Tracking control is performed from this state. In the optical image, a region in focus extends in a horizontal direction 2102 parallel to the long side of the image sensor 3, as specified by the user. The range in the vertical direction between lines 2103 and 2104 indicates the in-focus range, and in this example, the in-focus range is the range in the short side direction of the image sensor 3 that includes the head to the feet of the subject 2101. The user aims to capture an image that is in focus in the horizontal direction 2102 and blurred in other directions.
[0061] Fig. 6(a) shows the state shown in Fig. 5(a) viewed from a direction perpendicular to the horizontal direction 2102. The focal plane 2105 has a tilt amount (inclination amount) 2109 with respect to a plane perpendicular to the optical axis, so that it is possible to focus on a range including the head to the feet of the subject 2101 described above while blurring the other parts. At this time, the point of the subject 2101 captured on the image sensor 3 that is closest to the focal plane 2105 on the camera system side is defined (set) as a first feature point 2106, and the point that is farthest from the focal plane 2105 on the opposite side to the camera system side is set as a second feature point 2107. The camera CPU 1100 can set each feature point by detecting the face of the subject from the image data or detecting the focus range. Furthermore, the depth of field 2108 based on the focal plane 2105 is determined by the subject distance, the focal length of the optical system, the aperture value, and the permissible circle of confusion, and both the first feature point 2106 and the second feature point 2107 are within the depth of field 2108.
[0062] 5(b) and 6(b) show states in which the subject 2101 has moved (come closer) to the camera system from the states shown in FIG. 5(a) and FIG. 6(a). As shown in FIG. 5(b), the subject 2101 after the movement appears larger on the image sensor 3 than before the movement. At this time, as shown in FIG. 6(b), even if focus control is performed on the subject 2101 in step 405 of FIG. 4, the depth of field 2108' becomes shallower because the subject distance becomes shorter due to the movement. As a result, there is a risk that the first feature point 2106 and the second feature point 2107 will fall out of the focus range.
[0063] In such a case, as shown in FIG. 6(c), in step 407 in FIG. 4, tilt control is performed so that the tilt amount of focal plane 2105 becomes tilt amount 2109'' which is smaller than tilt amount 2109. This deepens the depth of field 2108'', making it possible to include first feature point 2106 and second feature point 2107 in the focal range. In other words, when the focal range of the optical system for a moving subject becomes small, the tilt amount of the focal plane is reduced to widen the focal range.
[0064] In this tilt control, since the user has first decided to focus in the horizontal direction 2102 shown in Fig. 5(a), the tilt direction of the focal plane 2105 is set to the direction around an axis along the horizontal direction 2102. This makes it possible to change the focus range for the subject 2101 after movement without changing the focused direction.
[0065] Next, a direction (tilt direction) in which to change the tilt amount of the focal plane 2105 is determined based on the positional relationship between the focal plane 2105 and the first feature point 2106 and second feature point 2107 after the movement. By determining the tilt direction and performing tilt control so that the tilt amount 2109'' is smaller than before the movement of the subject 2101 as shown in FIG. 6(c), it is possible to bring both the first feature point 2106 and the second feature point 2107 after the movement into the focus range.
[0066] On the other hand, as for focus control, known servo focus control is performed with the first feature point 2106 as the main feature point. By performing servo focus control in accordance with the movement of the subject 2101 and by performing the above-mentioned tilt control so as to change the tilt amount by unit tilt amount, it is possible to maintain a state in which the first feature point 2106 and the second feature point 2107 are in focus.
[0067] According to this embodiment, it is possible to capture an image while maintaining a state in which a plurality of characteristic points of at least one moving subject are in focus.
[0068] In this embodiment, the tilt direction is described as the direction around an axis along the horizontal direction 2102, but the tilt direction is not limited to this, and the tilt direction may be a direction specified by the user or a direction around an axis calculated from the subject. EXAMPLES
[0069] In the second embodiment, tracking control is performed to control the focus range so as to include two moving subjects. The flowchart in Fig. 7 shows the tracking control process (focus plane control method) in the second embodiment. The camera CPU 1100 executes this process according to a computer program.
[0070] When a user selects a tracking mode in which the camera tracks and focuses on a subject, the camera CPU 1100 starts tracking control in step 701. At this time, the user operates the TS instruction unit 1109 to select a subject to be imaged and to determine a desired tilt angle.
[0071] In step 702, the camera CPU 1100 defines the subject from the image data obtained through the image sensor 3. In this embodiment, the main subject, which is the main imaging target of the two subjects, is defined (determined) from the area of the subject that is in focus, optical information, and subject distance. The subject distance is the distance from the image sensor 3 to the subject in its normal direction (optical axis direction) on the spatial coordinates. The subject distance can be calculated from the phase difference detected by the focus detection unit 1104. It can be calculated from the distance on the optical axis, the tilt amount of the focal plane obtained from Scheimpflug's theorem, the focal length of the optical system, and the spatial coordinates detected from the position on the image sensor 3. As described above, the shorter the subject distance, the shallower the depth of field, and the longer the subject distance, the deeper the depth of field. Also, when the focal plane is tilted, it becomes more difficult to include the larger the subject within the depth of field. For this reason, the ease with which a subject falls within the depth of field is calculated from the subject distance and the recognized size of the subject, and the subject that is least likely to fall within the depth of field is defined as the main subject, so that a sub-subject that is not defined as the main subject can also be included within the focus range.
[0072] In this embodiment, since the depth of field can be approximated as being proportional to the subject distance when the focal length is sufficiently larger (longer) than the subject distance, the main subject is determined by comparing the division value obtained by dividing the size of the subject in the spatial coordinate system by the subject distance. At this time, the larger the division value, the more difficult it becomes to include the entire subject within the depth of field, so the subject with the largest division value is defined as the main subject.
[0073] The main subject may be defined as a subject selected by the user, a subject that matches a pre-registered pattern (such as a person or an animal), or the closest subject.
[0074] In step 703, the camera CPU 1100 defines (sets) feature points of the subject from image data obtained through the image sensor 3. In this embodiment, two feature points are defined for the main subject, and one feature point is defined for the sub-subject.
[0075] In step 704, the camera CPU 1100 judges whether or not at least one of the position of any feature point and the subject distance (information on distance) has changed. If the camera CPU 1100 judges that either the position of the feature point or the subject distance has changed, it performs the process of step 705, and if it judges that neither has changed, it repeats this judgment.
[0076] In step 705, camera CPU 1100 judges whether or not the main subject needs to be redefined. Specifically, using the division value described in step 702, it judges whether or not there is a subject with a larger division value than the main subject. In other words, it judges whether or not there is a subject that is more difficult to include within the depth of field than the main subject. If there is no subject with a larger division value than the main subject, camera CPU 1100 performs the process of step 707, and if there is a subject with a larger division value than the main subject, it defines the main subject in step 706 in the same way as step 702. Then, it performs the process of step 707.
[0077] In step 707 , the camera CPU 1100 defines feature points in the same manner as in step 703 .
[0078] In step 708, the camera CPU 1100 defines a focal plane. Specifically, a plane formed by connecting three points on the spatial coordinates corresponding to two feature points of the main subject and one feature point of the sub-subject is defined as the focal plane. At this time, if the shapes of the main subject and the sub-subject on the spatial coordinates are the same, it is possible to guarantee the focal range for the main subject by guaranteeing the focal range for the sub-subject as well. In other words, by aligning the focal plane of the actual optical system with the defined focal plane, it is possible to continue imaging without changing the focal range for the main subject and the sub-subject.
[0079] After defining the focal plane in this way, in step 709, the camera CPU 1100 performs focus control and tilt control to match the focal plane of the actual optical system to the defined focal plane. First, the camera CPU 1100 calculates the focal plane before control from the focus position, tilt direction, and tilt amount of the optical system before focus and tilt control. Then, it calculates the drive direction and drive amount of the focus unit 10 and the first and second shift units 12 and 13 required to match the focal plane before control to the defined focal plane, and performs focus and tilt control with these drive amounts. This makes it possible to focus on two feature points of the main subject and one feature point of the sub-subject.
[0080] In step 710, the camera CPU 1100 determines whether or not there is an instruction from the user to end the tracking control. If there is no instruction to end the control, the process returns to step 704, and if there is an instruction to end the control, the process ends.
[0081] 8(a) and (b) show an example of tracking control in the second embodiment. FIG. 8(a) shows a state in which the user selects two subjects (cars) traveling on a road captured on the image sensor 3 as a first subject 2201 and a second subject 2202. Tracking control is performed from this state. The user selects a first selection point 2203 on the first subject 2201 and a second selection point 2204 on the second subject 2202. For the tilt state, the tilt direction and tilt amount are set so that the focus is set on the horizontal range enclosed by lines 2205 and 2206 on the image sensor 3. The lines 2205 and 2206 are approximately parallel to the straight line (shown by a dashed line in the figure) connecting the first selection point 2203 and the second selection point 2204, and the first subject 2201 and the second subject 2202 are within the focus range. FIG. 8(b) shows the positions and focus ranges of a first subject 2201 and a second subject 2202 that have moved from the state shown in FIG. 8(a).
[0082] Hereinafter, the process of the follow-up control from the state of FIG. 8(a) to the state of FIG. 8(b) will be described with reference to FIG. 7 again.
[0083] The camera CPU 1100, which has started tracking control in step 701, defines a main subject in step 702. The first subject 2201 and the second subject 2202 are cars, and are approximately equal in size. For this reason, the effect described above can be obtained by defining the subject that is closer to the camera system as the main subject. Here, the first subject 2201 is defined as the main subject.
[0084] In step 703, the camera CPU 1100 defines the feature points. Here, the process of defining the first feature point 2207 and the second feature point 2208 related to the main subject will be described. The camera CPU 1100 defines the first selected point 2203 as the first feature point 2207. Next, the range of the first subject 2201 is detected. Then, the camera CPU 1100 defines the longest line segment on the image sensor 3 that passes through the first feature point 2207 and is among the subjects recognized within the focus range as the subject axis 2209 on the image sensor 3. At this time, as shown in FIG. 8(b), the end of the focus range of the subject on the subject axis 2209 on the image sensor 3, which is the far or near end, is defined as the second feature point 2208. The line connecting the first feature point 2207 and the second feature point 2208 on the spatial coordinate system is defined as the subject axis. The subject axis is an axis that passes through the subject and determines the focus range for the subject. The camera CPU 1100 defines the second selected point 2204 as a third feature point 2210 .
[0085] In step 704, the camera CPU 1100 determines whether the positions of the first feature point 2207 and the second feature point 2208 defined in step 703 have changed (moved), and if the feature points have moved as shown in Figure 8(b), the camera CPU 1100 performs processing in step 705.
[0086] In step 705, camera CPU 1100 determines whether or not it is necessary to change (redefine) the main subject. In this example, since there is no change in the correlation between the subject distances of first subject 2201 and second subject 2202 that have moved, the main subject is not changed.
[0087] The processing from step 706 onwards is as described above, and therefore description thereof will be omitted. By defining the focal plane in this way, and performing focus control and tilt control so as to align the focal plane of the actual optical system with the defined focal plane, it is possible to focus on the first subject 2201 and the second subject 2202. In addition, in a scene in which two cars are running along a road, the running directions of the two cars captured on the image sensor 3 are the same. Therefore, by guaranteeing the focus range for the first subject 2201, it is possible to continue capturing images of the first subject 2201 and the second subject 2202 while focusing on these subjects and without changing the focus range for these subjects.
[0088] FIG. 9 shows the change in tilt direction and tilt amount from the state of FIG. 8(a) to the state of FIG. 8(b). The vertical axis represents the tilt amount in the pitch direction, and the horizontal axis represents the tilt amount in the yaw direction. Point 2212 represents the tilt direction and tilt amount in the state of FIG. 8(a). Point 2213 represents the tilt direction and tilt amount in FIG. 8(b), where the tilt amount in the yaw direction remains the same while the tilt amount in the pitch direction is tilted. In the case of a conventional optical system, it is necessary to perform the same focus plane control by revolving and tilting, and it is difficult to follow a subject with a fast moving speed. In contrast, in the optical system of this embodiment, tilt control can be performed by shift driving of the lens, so that the focus plane can be easily controlled even for a subject with a fast moving speed.
[0089] In this embodiment, the second feature point 2208 is always defined from the range of the first feature point 2207 and the first subject 2201. However, the second feature point may be defined by tracking the change of the defined second feature point. In this case, when the second feature point is lost, the second feature point may be redefined by performing a process of tracking the change of the second feature point. Similarly, when the first feature point is lost, the first feature point may be redefined by a similar process. Furthermore, although it is not used when defining the focal plane, a fourth feature point may be defined for the third feature point in the same way as when the second feature point is obtained from the first feature point. In this case, even if one of the third feature point and the fourth feature point is lost, as long as the other feature point is not lost, the one feature point can be redefined, making it easier to track. EXAMPLES
[0090] In the third embodiment, tracking control is performed to control the focus range so as to include two moving subjects. The flowchart in Fig. 10 shows the tracking control process (focus plane control method) in the third embodiment. The camera CPU 1100 executes this process according to a computer program. Here, the process different from the process in the second embodiment (Fig. 7) will be mainly described.
[0091] The process of step 1001 is the same as the process of step 701 in FIG.
[0092] In step 1002, the camera CPU 1100 defines a subject from image data obtained through the image sensor 3. In this embodiment, the subject selected first by the user or selected by the user as an image capture target is defined as the main subject. In addition, another subject is defined as a sub-subject. In this embodiment, the main subject is not changed (redefined).
[0093] In step 1003, camera CPU 1100 defines one first feature point from the main subject and one second feature point from the sub-subject. At this time, points that are easy to recognize from image data in the main subject selected by the user are defined as feature points. For example, the lights of an airplane or a car, or the eyes of a person or an animal are easily recognized points.
[0094] The process of step 1004 is the same as the process of step 704 in FIG.
[0095] If at least one of the feature point position and the subject distance has changed in step 1004, then in step 1005, camera CPU 1100 defines a subject axis. Specifically, a line that passes through the first feature point and is parallel to the direction in which the main subject moves is defined as the subject axis in spatial coordinates. Since the user is capturing an image of a moving subject, the direction in which the main subject moves can be defined in spatial coordinates based on the attitude of the camera system and the movement of the main subject on image sensor 3. For a fast-moving subject such as a car, setting the subject axis in the direction in which it moves makes it possible to capture a moving captured image.
[0096] In step 1006, the camera CPU 1100 calculates the tilt amount of the focal plane of the current optical system with respect to the subject axis. The tilt amount of the focal plane with respect to the subject axis is the angle between the focal plane in the normal direction of the image sensor 3 and the subject axis. When this angle is 0 degrees, the subject is in focus in the direction in which the subject moves. The tilt amount of the focal plane of the current optical system can be calculated from an equation expressing the focal plane that can be calculated from the tilt direction and tilt amount determined by the driving state of the sixth lens group 26 and the eighth lens group 28, and an equation expressing a line on the spatial coordinate system extending in the direction in which the subject moves. Defining the subject axis and the tilt amount (angle) in this way is equivalent to defining a third feature point different from the first feature point for determining the focal plane in which the main subject is in focus, and this makes it possible to focus in the direction in which the main subject moves.
[0097] In step 1007, camera CPU 1100 defines a focal plane. At this time, camera CPU 1100 defines an axis from a first feature point and a first angle with respect to the subject axis, and defines a focal plane using this axis and a second feature point. When the first feature point is in focus, the focal range for the main subject is determined by the tilt amount of the focal plane with respect to the subject axis and the depth of field.
[0098] In this case, if there is little change in the subject distance or if the subject is sufficiently far away, there is almost no change in the depth of field. Therefore, if tilt control is performed so as to keep the amount of tilt of the focal plane relative to the subject axis constant, it is possible to maintain the focus range for any subject. Also, if the difference in subject distance between the main subject and the sub-subject is small or the subject distances are sufficiently long, it can be said that the depth of field for each is approximately equal. In this case, the method of defining the first feature point and the second feature point is the same as in step 1005. In other words, if the main subject and the sub-subject are running in the same direction like in a race, the focus range can be maintained for the sub-subject as well. EXAMPLES
[0099] In the fourth embodiment, tracking control is performed to control the focus range so as to include three moving subjects. The flowchart in Fig. 11 shows the tracking control process (focus plane control method) in the fourth embodiment. The camera CPU 1100 executes this process according to a computer program.
[0100] When a user selects a tracking mode in which the camera tracks and focuses on a subject, the camera CPU 1100 starts tracking control in step 1101. At this time, the user operates the TS instruction unit 1109 to select a subject to be imaged and to determine a desired tilt angle.
[0101] In step 1102, the camera CPU 1100 defines one feature point for each of the three subjects. That is, a total of three feature points are defined. At this time, points that are easily recognizable from image data in the subjects selected by the user are defined as feature points. For example, the lights of an airplane or a car, or the eyes of a person or an animal are easily recognizable points.
[0102] In step 1103, the camera CPU 1100 judges whether or not at least one of the feature point position and the focus state (focus deviation amount or focus degree) has changed in the image data. If the camera CPU 1100 judges that at least one of the feature point position and the focus state has changed, it performs the process of step 1104, and if it judges that there has been no change, it repeats this judgment.
[0103] In step 1104, the camera CPU 1100 defines a focal plane. Specifically, the focal plane is defined by the three feature points defined in step 1102.
[0104] In step 1105, the camera CPU 1100 performs focus control and tilt control to adjust the focal plane of the actual optical system to the defined focal plane. First, the camera CPU 1100 calculates the focal plane before the focus and tilt control from the focus position, tilt direction, and tilt amount of the optical system before the focus and tilt control. Then, it calculates the driving direction and driving amount of the focus unit 10 and the first and second shift units 12 and 13 required to adjust the focal plane before the control to the defined focal plane, and performs focus and tilt control with these driving amounts. This makes it possible to adjust the focus to the three feature points.
[0105] In step 1106, the camera CPU 1100 determines whether or not there is an instruction from the user to end the tracking control. If there is no instruction to end the control, the process returns to step 1103, and if there is an instruction to end the control, the process ends.
[0106] When all three subjects are far enough away from the aperture value and the size of the main subject set by the user, the depth of field does not change much regardless of the movement of the subjects. In such a case, it is possible to capture an image while maintaining the focus range for the three subjects. In addition, it may be determined whether the depth of field is sufficient for the three subjects from the aperture value of the optical system, the size of the subjects, and the subject distance when the tracking control is started, and it may be determined to perform the tracking control according to the result. At this time, if it is determined that the depth of field is not sufficient, the tracking control described below may be performed.
[0107] The flowchart in Fig. 12 shows the tracking control process when the depth of field is insufficient for three subjects. Here, the process different from the process in Fig. 11 will be mainly explained.
[0108] The process of step 1201 is the same as the process of step 1101 in FIG.
[0109] In step 1202, the camera CPU 1100 defines a main subject. The main subject may be defined using the subject distance and size of three subjects as in the second embodiment, or may be defined only by the subject distance when three subjects whose sizes do not vary much relative to the imaging range are being captured.
[0110] The process of step 1203 is the same as the process of step 1102 in FIG.
[0111] In step 1204, the camera CPU 1101 defines a focus range for the main subject. Specifically, the camera CPU 1101 defines a subject axis for the main subject, and defines the focus range on the subject axis calculated from the depth of field and the tilt amount of the focus plane relative to the subject axis as the focus range for the main subject. This will be described in detail later.
[0112] The process of step 1205 is the same as the process of step 1103 in FIG.
[0113] If the positions of the feature points or the focus state have changed in step 1205, camera CPU 1101 determines whether or not it is necessary to redefine the main subject in step 1206. This determination is made in the same manner as in step 705 in the second embodiment (FIG. 7). If redefinition is necessary, the main subject is redefined in step 1207, and if redefinition is not necessary, processing in step 1208 is performed.
[0114] The processes in steps 1208 and 1209 are the same as those in steps 1104 and 1105 in FIG.
[0115] In step 1210, the camera CPU 1100 determines whether there is a change in the focus range for the main subject. That is, it determines whether there is a change in the focus range when the focus range is defined again in the same way as the focus range defined in step 1203. In this embodiment, it determines whether there is a change in the focus range calculated from the depth of field and the tilt amount of the focus plane relative to the subject axis. If there is a change, the process of step 1211 is performed, and if there is no change, the process of step 1212 is performed.
[0116] In step 1211, the camera CPU 1100 performs aperture control. As described above, the depth of field is determined by the focal length of the optical system, the aperture value, and the subject distance. In addition, since there are three feature points in this embodiment, the tilt direction and tilt amount are uniquely determined, so even if the focus range for the main subject changes, it is difficult to change the focus range for the main subject by tilt control. For this reason, it is possible to maintain the focus range for the main subject by changing the focus range by adjusting the aperture and changing the depth of field. After this, the camera CPU 1100 performs the process of step 1212.
[0117] The process of step 1212 is the same as the process of step 1106 in FIG.
[0118] 13 shows a method of defining the focus range for the main subject in step 1204. Here, a case where the pupil of the main subject is defined as a feature point in step 1203 will be described.
[0119] The subject 2300 has an eye pupil 2301 as a feature point, and the eye pupil 2301 is defined as a first feature point 2302 by the camera CPU 1100. First, in step 1204, the camera CPU 1100 defines the gravity axis passing through the first feature point 2302 as the subject axis 2303 on the image sensor 3. In a scene in which people or objects are moving, these are moving relative to gravity, so that the effect of this embodiment described above can be obtained with this definition as well.
[0120] Next, the camera CPU 1101 defines the focal plane from the tilt direction and tilt amount of the optical system and the focus position. When the first feature point 2302 is in focus, the first feature point 2302 is the intersection of the subject axis 2303 and the focal plane. At this time, the tilt amount 2304 of the focal plane relative to the subject axis 2303 in the normal direction of the image sensor 3 can be calculated from the equation representing the subject axis 2303 and the equation representing the focal plane. In addition, the distance (subject distance) 2305 to the first feature point 2302 can be calculated from the phase difference detected by the focus detection unit 1104 as described above. In addition, the depth of field 2306 can be calculated from the permissible circle of confusion of the optical system, the aperture value, the focal length, and the subject distance as described above. That is, the focus range 2307 can be calculated from the depth of field 2306 in the direction of the subject axis passing through the feature point and the tilt amount 2304 using the following formula (1), and this is defined as the focus range for the main subject.
[0121] Focus range for the main subject = Depth of field / sin(tilt amount) (1) By defining the focus range for the main subject in this manner, it is possible to obtain the same effect as maintaining the focus ranges of the fourth feature point 2308 and the fifth feature point 2309, which are the two ends of the focus range 2307 for the subject 2300.
[0122] In step 1211 in Fig. 12, the depth of field 2306 is controlled by changing the aperture value based on formula (1). This makes it possible to maintain the focus range for the main subject. Also, by defining the main subject as in the second embodiment, it is possible to maintain the focus range for sub-subjects other than the main subject. That is, the aperture value may be changed at least in either the case where the focus range for the main subject is insufficient only by controlling the tilt of the focal plane or the case where the focus range for the sub-subject has changed.
[0123] Alternatively, in steps 1204 and 1210, the size of the focus range in spatial coordinates for the main subject may be calculated from the subject distance of the main subject captured on the image sensor 3 and the focal length of the optical system, and it may be determined whether or not this focus range has changed in step 1210. In this case, the focus range for the main subject can be maintained by storing the relationship between the subject distance at which the focus range has changed and the aperture.
[0124] In addition, when it is recognized that an object having a size upper limit and small individual differences such as a human face is being imaged, the size of the focus range in spatial coordinates may be assumed to be the size of the object. In this case, when the focus range for the main object becomes smaller than the size of the main object, tracking control may be performed. EXAMPLES
[0125] In the fifth embodiment, tracking control is performed to control the focus range so as to include a plurality of moving subjects. In this embodiment, the camera body 2 stores subject information in a memory (not shown). The subject information includes face information of the subject, and further includes information such as the position of the pupils, the size of the face, and the height as related elements associated with the face information. The user can specify the order of the related elements in the subject information, and the camera CPU 1100 can perform imaging based on the related elements that are higher in the order.
[0126] The flowcharts in Fig. 14 and Fig. 15 show the tracking control process (focus plane control method) in the fifth embodiment. The parts with the same circled numbers in Fig. 14 and Fig. 15 are connected to each other. The camera CPU 1100 executes this process according to a computer program.
[0127] When a user selects a tracking mode in which the camera tracks and focuses on a subject, the camera CPU 1100 starts tracking control in step 1401. At this time, the user has selected a subject to be imaged by operating the TS instruction unit 1109, and has also determined a desired tilt angle.
[0128] In step 1402, camera CPU 1100 defines a main subject from image data obtained through image sensor 3. Here, a subject having a specific face in the subject information is defined as the main subject, and further the most significant related element (e.g., pupil) in the subject information of the main subject is determined as the pupil of the main subject.
[0129] In step 1403, camera CPU 1100 defines a first feature point in the main subject, and further defines a second feature point and a third feature point in the order of the highest rank in the subject information. For example, camera CPU 1100 defines the midpoint of the two pupils of the main subject as the first feature point based on the position of the pupils included in the subject information. Furthermore, the camera CPU 1100 defines the intersection line of a plane passing through the midpoint of the two pupils of the main subject and perpendicular to the line connecting the two pupils, and a plane passing through the midpoint of the two pupils of the main subject and including the gravity axis and the line connecting the two pupils as the subject axis in the spatial coordinate system. Then, based on the face size and height included in the subject information, the camera CPU 1100 defines the second feature point and the third feature point in order from the first feature point downward on the subject axis in the spatial coordinate system.
[0130] In step 1404, the camera CPU 1100 defines a feature point for a sub-subject other than the main subject. For example, the midpoint between the two pupils of the sub-subject is set as the feature point.
[0131] In step 1405, the camera CPU 1100 judges whether or not at least one of the position of any feature point and the focus state has changed. If at least one of the position of the feature point and the focus state has changed, the camera CPU 1100 performs the process of step 1406, and if not, repeats this judgment.
[0132] In step 1406, the camera CPU 1100 calculates the focus range for the main subject. The calculation method is the same as in the fourth embodiment.
[0133] In step 1407, the camera CPU 1100 determines a first focus plane element from the focus range for the main subject and the above-mentioned first and third feature points. The first focus plane element is an element for determining the focus plane for the main subject, and in this embodiment, it is related to the tilt amount of the focus plane with respect to the subject axis. In this embodiment, the focus position is set so that the focus is on the pupil. Therefore, the angle of the focus plane passing through the pupil position with respect to the subject axis at the position where the focus range passes through the first or third feature point can be calculated. At this time, an axis on the spatial coordinate system can be defined from the pupil position, the subject axis, and the tilt amount that the focus plane makes with the subject axis, and this axis is set as the first focus plane element.
[0134] The feature points of the main subject in the first focus plane element may be any one of two feature points set by the user, the closest and farthest feature points of the main subject, and feature points detected from image data. The axis passing through the feature points in the first focus plane element may be defined using any one of the gravity axis, an axis defined by the user, an axis calculated from the main subject, an axis calculated from the movement of the main subject, and an axis calculated from the first focus plane element.
[0135] In step 1408, camera CPU 1100 calculates a second focus plane element from a sub-subject other than the main subject. The second focus plane element is an element for determining a focus plane for the sub-subject. Specifically, a straight line is calculated in spatial coordinates from the midpoint of the two pupils of the main subject through the midpoint (or its vicinity) of the two pupils of one or more sub-subjects excluding the main subject. When there is only one main subject and one sub-subject, a straight line is calculated that passes through the midpoint of the two pupils of the main subject and the midpoint of the pupil of the sub-subject. The calculated straight line can be defined as an axis in spatial coordinates that passes through the position of the pupil of the main subject, and this axis is set as the second focus plane element.
[0136] The second focus plane element is defined by any one of the following axes. First, it is an axis passing through a feature point related to the sub-subject and another feature point related to the sub-subject. Second, it is an axis passing through a feature point related to the main subject and a feature point related to the sub-subject. Third, it is an axis calculated from a change in information related to the distance to the feature point related to the main subject or a change in the position of any one of multiple feature points in the captured image. Fourth, it is an axis that approximates the positions of multiple feature points. Fifth, it is an axis calculated from an in-focus area on the image data (on the captured image). Sixth, it is an axis selected by the user.
[0137] In step 1409, the camera CPU 1100 defines a focus plane from the first focus plane element and the second focus plane element. Since both the first focus plane element and the second focus plane element are axes passing through the pupil of the main subject, the focus plane can be defined.
[0138] In step 1410, the camera CPU 1100 calculates the tilt amount of the optical system from the defined focal plane and judges whether or not this is greater than a first threshold (first predetermined value). If the tilt amount is greater than the first threshold, the camera CPU 1100 performs the process of step 1411, and if it is equal to or less than the first threshold, the camera CPU 1100 performs the process of step 1412.
[0139] In step 1411, the camera CPU 1100 calculates the first focus plane element, which is the tilt amount corresponding to the first threshold, by changing the first focus plane element without changing the second focus plane element. In this embodiment, since the focus is on the pupil, the feature point farthest from the camera system is the third feature point. In other words, if it is confirmed that the third feature point is within the depth of field, it is equivalent to confirming that all feature points are in focus. At this time, the camera CPU 1100 changes the tilt amount of the focus plane relative to the subject axis, which is the first focus plane element, so that the tilt amount coincides with the first threshold. After this, the process of step 1418 is performed.
[0140] On the other hand, in step 1412, the camera CPU 1100 calculates the tilt amount of the optical system from the defined focal plane, and judges whether or not this is smaller than a second threshold (a second predetermined value). If the tilt amount is smaller than the second threshold, the process of step 1413 is performed, and if it is equal to or larger than the second threshold, the process of step 1419 is performed.
[0141] In step 1413, the camera CPU 1100 calculates the first focus plane element, which is the tilt amount corresponding to the second threshold, by changing the first focus plane element without changing the second focus plane element. The camera CPU 1100 changes the tilt amount of the focus plane relative to the subject axis, which is the first focus plane element, so that the tilt amount coincides with the first threshold.
[0142] In step 1414, the camera CPU 1100 calculates the first focus plane element in which the first feature point and the second feature point are within the focus range. The calculation method is as described in step 1407.
[0143] In step 1415, the camera CPU 1100 determines whether the first focus surface element (tilt amount) calculated in step 1413 is larger than the first focus surface element calculated in step 1414. If the first focus surface element calculated in step 13 is larger than the first focus surface element calculated in step 1414, the camera CPU 1100 performs processing in step 1416. If the first focus surface element calculated in step 13 is equal to or smaller than the first focus surface element calculated in step 1414, the camera CPU 1100 performs processing in step 1417.
[0144] In step 1416, the camera CPU 1100 sets the first focus plane element calculated in step 1413 as the final first focus plane element, and then performs the process of step 1418.
[0145] In step 1417, the camera CPU 1100 sets the first focus plane element calculated in step 14 as the final first focus plane element, and then performs the process of step 1418.
[0146] In step 1418 , the camera CPU 1100 defines a focus plane from the first focus plane element and the second focus plane element set in step 1416 or step 1417 .
[0147] In step 1419, the camera CPU 1100 performs focus control and tilt control so that the focal plane of the optical system coincides with the defined focal plane.
[0148] In step 1420, the camera CPU 1100 determines whether or not there is an instruction from the user to end the tracking control. If there is no instruction to end the control, the process returns to step 14405, and if there is an instruction to end the control, the process ends.
[0149] In the above tracking control, the upper and lower limits of the tilt amount of the focal plane can be set. When reverse tilt imaging is performed, the range in which the image sensor 3 is in focus (hereinafter referred to as the focal range on the sensor) is determined by the tilt of the focal plane, and the larger the tilt amount of the focal plane, the narrower the focal range on the sensor. That is, by setting an upper limit of the tilt amount of the focal plane, the focal range on the sensor can be prevented from becoming narrower than a certain width. On the other hand, by setting a lower limit of the tilt amount of the focal plane, the focal range on the sensor can be prevented from becoming wider than a certain width. Regarding the lower limit, when the face cannot be captured on the focal plane defined by the first feature point and the second feature point, control can be performed to allow the tilt amount to fall below the lower limit. This allows the object to be captured, such as the face of the subject, to be kept in focus.
[0150] That is, when the subject is far away, the focal plane can be tilted to the upper limit value to control the width of the focal range on the sensor not to be narrower than a certain amount. Also, when the subject is far away, the depth of field for the subject is deep, so the subject can be tracked while capturing its entire body. When the subject is close, it is better to have a small tilt amount of the focal plane in order to focus on the subject. However, by determining the lower limit of the tilt amount, the width of the focal range on the sensor can be controlled not to be larger than a certain amount, and this makes it possible to narrow the focal range on the sensor up to the point where the face is captured. Then, when the subject is even closer and the size of the face becomes larger than the set focal range, the limit on the tilt amount of the focal plane can be removed to widen the focal range on the sensor and focus on the face.
[0151] The graph in Figure 16 shows the subject distance of the main subject and the tilt amount of the focal plane relative to the subject axis when the tracking control process shown in Figures 14 and 15 is performed. The imaging situation in this graph is an example when the tilt amount is determined only by the main subject. The horizontal axis shows the subject distance, and the vertical axis shows the tilt amount of the focal plane.
[0152] The first distance region farther than the first subject distance 2401 is a region where the tilt amount is determined by the first threshold. That is, it is a region where the tilt amount is larger than the first threshold. This first distance region is a region where the entire body of the main subject is sufficiently included within the depth of field. For this reason, the camera CPU 1100 performs control so that the tilt amount is constant in the first distance region and the focus range on the sensor is constant. That is, the camera CPU 1100 makes the tilt amount constant when the focus range calculated from the distance to the main subject, the aperture value of the optical system, the focal length of the optical system, and the tilt amount of the focus plane is larger than the main subject.
[0153] The second distance region between the first subject distance 2401 and the second subject distance 2402 is a region where the tilt amount is determined by the focus range on the sensor. In this second distance region, the camera CPU 1100 performs control so that the focus range on the sensor becomes wider than the first distance region so that the entire body of the main subject is in focus.
[0154] The third distance region between the second object distance 2402 and the third object distance 2403 is a region where the tilt amount changes in the focus range for the main object. In this third distance region, the camera CPU 1100 determines the tilt amount so that the entire body of the object is captured. In other words, the camera CPU 1100 performs control to change the focus range on the sensor according to the range of the main object.
[0155] The fourth distance region between the third object distance 2403 and the fourth object distance 2404 is a region where the tilt amount is determined by the second threshold. That is, it is a region where the tilt amount is smaller than the second threshold. In this fourth distance region, the entire body of the main object is not within the depth of field, but the tilt amount is constant. That is, control is performed so that the focal range on the sensor is constant.
[0156] A fifth distance region, which is closer than the fourth object distance 2404, is a region in which the tilt amount is changed within the focus range for the main object. At this fourth object distance 2404, the face of the main object is in focus, and control is performed to make the focus range on the sensor wider than the fourth distance region.
[0157] In this way, by performing the tracking control shown in Fig. 14 and Fig. 15, it becomes possible to capture an image while adjusting the focus range for the main subject and the focus range on the sensor. Since the focus range on the sensor is also an important element in image expression, this control makes it possible to capture an image as intended by the user.
[0158] In this embodiment, the second focus plane element is a straight line passing through multiple subjects including the main subject (or their vicinity). Therefore, in a scene where the relative positions of multiple subjects (players) do not change significantly, such as a footrace at an athletic meet, the focus range can be roughly maintained not only for the main subject but also for the surrounding subjects.
[0159] In this embodiment, the focus is set on the pupil of each subject. Therefore, the changes in the focus state at the first feature point (a point on the subject axis in the spatial coordinate system), the second feature point, and the third feature point can be rephrased as changes in the position of each feature point on the subject axis in the spatial coordinate system, the tilt of the focal plane, and the depth of field.
[0160] Furthermore, if the main subject is no longer recognized, the main subject is redefined according to the order of the subjects stored as the subject information. If there is no subject matching the subject information, the closest subject may be set as the main subject.
[0161] Also, the first focus plane element for each object distance may be set in advance using object information, aperture value, and focal length, and the first focus plane element may be changed based on this.
[0162] In addition, in this embodiment, the first focus plane element is set by obtaining a straight line on the spatial coordinates that passes through multiple subjects including the main subject, but the first focus plane element may be set by obtaining a straight line connecting two registered subjects. In this case, when only one subject is recognized, the straight line may be controlled not to be changed. Furthermore, when tracking two registered subjects, the closest of these subjects may be set as the main subject.
[0163] In this embodiment, the focus position is set to be in focus on the pupil position, but the focus position may be set to be in focus at a point shifted from the pupil position on the axis in the spatial coordinate, such as the midpoint between the first and third feature points on the subject axis in the spatial coordinate. In this case, by setting a lower limit of the tilt amount of the focal plane, the set point of the focus position changes from the midpoint between the first and third feature points to the first feature point side as the width of the depth of field for the subject decreases. Finally, the focus position may change to the midpoint between the first and second feature points or the pupil position.
[0164] In this embodiment, the control for guaranteeing the focus range for the main subject has been described, but in order to guarantee the focus range for other subjects as well, feature points for the other subjects may be provided to track changes in the focus state. In this case, by adjusting the aperture value as described in the fourth embodiment, it becomes easier to maintain the focus range for the other subjects.
[0165] In addition, in this embodiment, two feature points are defined in the in-focus area of the subject, but a collection of multiple points in the in-focus area may be defined as one feature point, and tilt control may be performed to correct the out-of-focus state of that feature point.
[0166] In each of the above embodiments, a case has been described in which the camera CPU 1100 as a control means is provided in a lens-interchangeable imaging device as an optical device, but a control means equivalent to the camera CPU 1100 may also be provided in a lens-integrated imaging device as an optical device.
[0167] Also, the lens CPU 1000 may have a function equivalent to the camera CPU 1100. That is, the lens CPU as a control means in the lens unit may acquire information on a plurality of characteristic points and distances to the plurality of characteristic points from the camera body through communication. The lens CPU may then perform tilt control in response to at least one of the changes in the information on the distance and the positions of the plurality of characteristic points within the captured image.
[0168] The above embodiment includes the following configurations.
[0169] (Configuration 1) A detection means for detecting a plurality of feature points related to a subject from image data obtained by imaging; an acquisition means for acquiring information regarding distances to the plurality of feature points; a control means for controlling the driving of a movable lens in the optical system so as to change the amount of inclination of the focal plane; The imaging device according to claim 1, wherein the control means controls the driving of the lens in response to a change in at least one of the information regarding the distance and the position of any one of the plurality of feature points within an imaging screen. (Configuration 2) The imaging device according to configuration 1, wherein the control means controls the driving of the lens so as to maintain a focused state on at least two feature points related to a main subject among the plurality of feature points. (Configuration 3) The imaging device according to configuration 2, wherein the control means determines, as the main subject, one of a subject selected by a user, a subject matching a registered pattern, a closest subject, and a subject calculated from distance and size. (Configuration 4) The imaging device described in any one of configurations 1 to 3, characterized in that the control means controls the drive of the lens based on a first focus plane element for determining a focus plane for a main subject and a second focus plane element for determining a focus plane for a sub-subject different from the main subject. (Configuration 5) The imaging device described in configuration 4, characterized in that the first focus plane element is an axis defined by an amount of inclination of the focus plane with respect to an axis passing through at least one of the feature points related to the main subject. (Configuration 6) The at least one feature point regarding the main subject in the first focus plane element is Two feature points set by the user, the nearest and farthest feature points in the subject; and The imaging device according to configuration 5, wherein the feature point is any one of the feature points detected from the image data. (Configuration 7) The axis passing through the feature point in the first focus plane element is gravity axis, User-defined axes, An axis calculated from the main subject; an axis calculated from the movement of the main subject; and The imaging device according to configuration 5, characterized in that the focal plane is defined using any one of the axes calculated from the first focal plane element. (Configuration 8) The second focus surface element is an axis passing through the feature point on the sub-subject and another feature point on the sub-subject; an axis passing through the feature points regarding the main subject and the feature points regarding the sub-subject; an axis calculated from a change in information about a distance to the feature point of the main subject or a change in a positional relationship of the feature points in the captured image; An axis approximating the positions of the feature points; An axis calculated from an in-focus area on the captured image, and The imaging device according to configuration 4, wherein the axis is defined by one of the axes selected by a user. (Configuration 9) The imaging device according to any one of configurations 1 to 8, wherein the control means drives the lens so that the inclination angle of the focal plane becomes smaller as the focal range of the optical system becomes smaller with respect to a main subject. (Configuration 10) The imaging device described in any one of configurations 1 to 9, characterized in that the control means changes the aperture value of the optical system when at least one of the following occurs: when the focus range of the optical system for a main subject is insufficient by driving the lens, and when the focus range for a sub-subject different from the main subject has changed. (Configuration 11) The imaging device described in any one of configurations 1 to 10, characterized in that the control means keeps the amount of tilt constant when the focus range of the optical system calculated from the distance to the main subject, the aperture value of the optical system, the focal length of the optical system, and the amount of tilt of the focal plane is larger than the main subject. (Configuration 12) 12. The imaging apparatus according to any one of configurations 1 to 11, wherein the control means changes a focus range for a main subject in accordance with an amount of driving of the lens. (Configuration 13) The imaging device described in any one of configurations 1 to 12, characterized in that the control means controls the driving of a focus element included in the optical system in addition to driving the lens, thereby focusing on the multiple feature points. (Configuration 14) An optical system; a control means for controlling the driving of a movable lens in the optical system so as to change the amount of inclination of the focal plane; The control means acquiring from an imaging device a plurality of feature points of a subject detected from image data obtained by imaging and information relating to distances to the plurality of feature points; A lens device, characterized in that driving of the lens is controlled in response to a change in at least one of the information regarding the distance and the position of any one of the plurality of characteristic points within an image capture screen. (Other Examples) 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.
[0170] The embodiments described above are merely representative examples, and various modifications and alterations are possible for each embodiment when implementing the present invention. [Explanation of symbols]
[0171] 1 Lens unit 2 Camera body 3. Image sensor 26 6-group lens 28 8-group lens 1100 Camera CPU
Claims
1. A detection means for detecting a plurality of feature points related to a subject from image data obtained by imaging; an acquisition means for acquiring information regarding distances to the plurality of feature points; a control means for controlling the driving of a movable lens in the optical system so as to change the amount of inclination of the focal plane; The imaging device according to claim 1, wherein the control means controls the driving of the lens in response to a change in at least one of the information regarding the distance and the position of any one of the plurality of feature points within an imaging screen.
2. 2. The image pickup apparatus according to claim 1, wherein the control means controls the driving of the lens so as to maintain a state in which at least two of the plurality of feature points related to a main subject are in focus.
3. The imaging device according to claim 2, characterized in that the control means determines as the main subject one of a subject selected by a user, a subject matching a registered pattern, the closest subject, and a subject calculated from distance and size.
4. 2. The imaging device according to claim 1, wherein the control means controls the driving of the lens based on a first focus plane element for determining a focus plane for a main subject and a second focus plane element for determining a focus plane for a sub-subject different from the main subject.
5. 5. The imaging apparatus according to claim 4, wherein the first focus plane element is an axis defined by an inclination amount of the focus plane with respect to an axis passing through at least one of the feature points related to a main subject.
6. The at least one feature point regarding the main subject in the first focus plane element is Two feature points set by the user, the nearest and farthest feature points in the subject; and 6. The imaging device according to claim 5, wherein the feature points are any of the feature points detected from the image data.
7. The axis passing through the feature point in the first focus plane element is gravity axis, User-defined axes, An axis calculated from the main subject; an axis calculated from the movement of the main subject; and 6. The imaging device according to claim 5, wherein the focal point is defined using any one of the axes calculated from the first focal plane element.
8. The second focus surface element is an axis passing through the feature point on the sub-subject and another feature point on the sub-subject; an axis passing through the feature points regarding the main subject and the feature points regarding the sub-subject; an axis calculated from a change in information about a distance to the feature point of the main subject or a change in a positional relationship of the feature points in the captured image; An axis approximating the positions of the feature points; An axis calculated from an in-focus area on the captured image, and 5. The imaging device according to claim 4, wherein the axis is defined by one of the axes selected by a user.
9. 2. The image pickup apparatus according to claim 1, wherein the control means drives the lens so that the inclination angle of the focal plane becomes smaller as the focal range of the optical system becomes smaller with respect to a main subject.
10. The imaging device according to claim 1, characterized in that the control means changes the aperture value of the optical system when at least one of the following occurs: when the focus range of the optical system for a main subject is insufficient by driving the lens, and when the focus range for a sub-subject different from the main subject has changed.
11. 2. The imaging device according to claim 1, wherein the control means keeps the amount of inclination constant when the focus range of the optical system calculated from the distance to the main subject, the aperture value of the optical system, the focal length of the optical system, and the amount of inclination of the focal plane is larger than the main subject.
12. 2. The image pickup apparatus according to claim 1, wherein the control means changes a focus range for a main subject in accordance with an amount of driving of the lens.
13. 2. The imaging apparatus according to claim 1, wherein the control means controls driving of a focus element included in the optical system in addition to driving the lens, thereby adjusting the focus on the plurality of characteristic points.
14. An optical system; a control means for controlling the driving of a movable lens in the optical system so as to change the amount of inclination of the focal plane; The control means acquiring from an imaging device a plurality of feature points of a subject detected from image data obtained by imaging and information relating to distances to the plurality of feature points; A lens device, characterized in that driving of the lens is controlled in response to a change in at least one of the information regarding the distance and the position of any one of the plurality of characteristic points within an image capture screen.
15. detecting a plurality of feature points relating to a subject from image data obtained by imaging; obtaining information regarding distances to the plurality of feature points; and controlling the driving of a movable lens in the optical system so that the amount of inclination of the focal plane is changed; A focal plane control method, comprising controlling the driving of the lens in response to a change in at least one of the information regarding the distance and the position of any one of the plurality of characteristic points within an imaging screen.
16. A program for causing a computer to execute a process according to the focus plane control method according to claim 15.
Citation Information
Patent Citations
Automatic focusing device and automatic focusing camera
JP2002250858A
Zoom lens and image capturing device having the same
JP2019090952A
Control unit, imaging apparatus, surveillance camera system, control method, and program
JP2021113909A
