# Patent

## Title
Tracking device, automatic focusing device, and camera

## Abstract

A tracking device includes: a light measurement device for light measuring an object; a focus detection device for performing focus detection of the object by an optical system; and a tracking control device for tracking the object based on light measurement information from the light measurement device and focus detection information from the focus detection device corresponding to the light measurement information.

## Background
TECHNICAL FIELD
The present invention relates to a tracking device, an automatic focusing device, and a camera.
BACKGROUND ART
Conventionally, detecting the movement of a subject based on light measurement information for every divided region of a field divided into plurals, and tracking a region focused by manual operation while tracking the subject as a new subject are known (see e.g., Patent Document 1).
A camera which automatically tracks the subject when photographing a moving subject, and performs focus detection and exposure calculation is known. In the conventional camera, an image that becomes a reference for tracking the subject is stored, and a target of high correlation is tracked by pattern matching (see e.g., Patent Document 2).

    Patent Document 1: Japanese Unexamined Patent Publication No. 06-230453
    Patent Document 2: Japanese Unexamined Patent Publication No. 2006-58431


DISCLOSURE OF THE INVENTION
Problem to be Solved by the Invention
In the prior art, focus may be made on an unintended subject, or accurate tracking may be limited even if the intended subject.
Means for Solving the Problem
According to a first aspect of the present invention, a tracking device includes a light measurement device for light measuring an object; a focus detection device for performing focus detection of the object by an optical system; and a tracking control device for tracking the object based on light measurement information from the light measurement device and focus detection information from the focus detection device corresponding to the light measurement information.
According to a second aspect of the present invention, in the tracking device according to the first aspect, the light measurement information is preferably luminance or color information of the object.
According to a third aspect of the present invention, in the tracking device according to the first or the second aspect, preferably the light measurement device and the focus detection device respectively obtains the light measurement information and the focus detection information at a plurality of positions in a field of the optical system; and the tracking control device determines a position having information with high matching degree of the light measurement information and the focus detection information with respect to the object of the light measurement information and the focus detection information at the plurality of positions as a position where the object exists.
According to a fourth aspect of the present invention, in the tracking device according to the third aspect, the tracking control device preferably performs the tracking based on focus detection information detected at a focus detection position in the vicinity of a light measurement position when the light measurement position at where the light measurement device obtains the light measurement information and the focus detection position at where the focus detection device obtains the focus detection information are different.
According to a fifth aspect of the present invention, in the tracking device according to any one of the first to fourth aspects, the tracking control device preferably sets reference information for tracking the object based on the light measurement information and the focus detection information.
According to a sixth aspect of the present invention, in the tracking device according to the fifth aspect, the reference information is preferably a range of an image including the object of the light measurement information.
According to a seventh aspect of the present invention, in the tracking device according to any one of the firs to sixth aspects, the tracking control device preferably sets the reference information for tracking the object based on the light measurement information and the focus detection information, and changes size of the reference information according to change of the focus detection information.
According to an eighth aspect of the present invention, in the tracking device according to the seventh aspect, a determination device for determining whether the object is moving closer to or moving away from the optical system based on the focus detection information is preferably arranged; wherein the tracking control device changes the size of the reference information based on a determination result of the determination device.
According to a ninth aspect of the present invention, in the tracking device according to any one of the first to eighth aspects, the tracking control device preferably selects a candidate of the object based on a hue value of the reference information.
According to a tenth aspect of the present invention, in the tracking device according to the ninth aspect, the tracking control device preferably determines the object based on the focus detection information from the selected candidate of the object.
According to an eleventh aspect of the present invention, an automatic focusing device includes the tracking device according to any one of the first to tenth aspects; and a focus control device for obtaining a driving amount of a focus adjustment optical system for adjusting a focus position of the optical system according to the focus detection information obtained by the focus detection device; wherein the tracking control device tracks an object, which focus detection is performed by the focus detection device.
According to a twelfth aspect of the present invention, in the automatic focusing device according to the eleventh aspect, the tracking control device preferably corrects the focus detection information according to an amount the focus adjustment optical system is driven.
According to a thirteenth aspect of the present invention, in the automatic focusing device according to the eleventh or the twelfth aspect, the tracking control device preferably predicts movement of a focusing plane of the optical system involved in the movement of the object, and corrects the focus detection information according to the predicted result.
According to a fourteenth aspect of the present invention, a camera is equipped with the automatic focusing device according to any one of the eleventh to thirteenth aspects.
According to a fifteenth aspect of the present invention, a tracking method includes a light measurement step of light measuring an object; a focus detection step of performing focus detection of the object by an optical system; and a tracking step of tracking the object based on at least one of a light measurement result in the light measurement step or a focus detection result in the focus detection step.
According to a sixteenth aspect of the present invention, in the tracking method according to the fifteenth aspect, in the tracking step, reference information for tracking the object is preferably set based on at least one of the light measurement result or the focus detection result.
According to a seventeenth aspect of the present invention, in the tracking method according to the sixteenth aspect, in the tracking step, size of the reference information is preferably changeable according to the focus detection result.
According to an eighteenth aspect of the present invention, in the tracking method according to any one of the fifteenth to seventeenth aspects, in the light measurement step and the focus detection step, the light measurement result and the focus detection result are preferably obtained at a plurality of positions in a field of the optical system; and in the tracking step, a position having high matching degree of the light measurement result and the focus detection result with respect to the object of the light measurement results and the focus detection results at the plurality of positions is preferably determined as a position where the object exists.
According to a nineteenth aspect of the present invention, in the tracking method according to the eighteenth aspect, in the tracking step, when the light measurement position at where the light measurement result is obtained and a focus detection position at where the focus detection result is obtained are different, the tracking is preferably performed based on the focus detection result detected at a focus detection position in the vicinity of a light measurement position.
According to a twentieth aspect of the present invention, in the tracking method according to any one of the sixteenth to nineteenth aspects, a determination step of determining whether the object is moving closer to or moving away from the optical system is further provided; wherein in the tracking step, the size of the reference information is preferably changed based on a determination result in the determination step.
According to a twenty-first aspect of the present invention, in the tracking method according to any one of the sixteenth to twentieth aspects, in the tracking step, a candidate of the object is preferably selected based on a hue value of the reference information.
According to a twenty-second aspect of the present invention, in the tracking method according to the twenty-first aspect, in the tracking step, the object is preferably determined based on the focus detection result from the selected candidate of the object.
Effects of the Invention
The object can be accurately tracked with the tracking device according to the present invention.
The object can be accurately tracked with the automatic focusing device according to the present invention.
The object can be accurately tracked with the camera according to the present invention.



BRIEF DESCRIPTION OF THE DRAWINGS
FIG. 1 is a view describing the main configuration of a single-lens reflex electronic camera of the present invention.
FIG. 2 is a view describing a pixel configuration of an imaging element of a light measurement image sensor (light measurement unit).
FIG. 3 is a view showing a light measurement range of the light measurement image sensor (light measurement unit) of a first embodiment.
FIG. 4 is a flowchart describing a tracking process performed by a body side microcomputer of the first embodiment.
FIG. 5 is a view describing a range of storing as a template of the first embodiment.
FIG. 6 is a view showing a light measurement range of the light measurement image sensor (light measurement unit) according to variant 1 of the first embodiment.
FIG. 7 is a view describing a movement example of a focusing plane by a photographing lens in a case where the focus adjustment optical system is driven temporally continuously according to variant 2 of the first embodiment.
FIG. 8 is a view describing a movement example of a focusing plane by a photographing lens in a case where the focus adjustment optical system is driven temporally continuously and a predicted position of the main subject according to variant 3 of the first embodiment.
FIG. 9 is a view conceptually describing various regions used in a subject tracking control of a second embodiment.
FIG. 10 is a view describing a tracking method of the second embodiment.
FIG. 11 is a flowchart describing the operation of a subject tracking process of the second embodiment.
FIG. 12 is a flowchart describing a sub-routine for determining the position and the size of the tracking target in the subject tracking process of the second embodiment.



BEST MODE FOR CARRYING OUT THE INVENTION
First Embodiment
Embodiments for implementing the present invention will be hereinafter described with reference to the drawings. FIG. 1 is a view describing the main configuration of a single-lens reflex electronic camera according to a first embodiment of the present invention. In FIG. 1, an interchangeable lens 20 configured to be removable with respect to a camera body 10 is attached to the camera body 10.
The camera body 10 includes a body side microcomputer 21, a focus detection unit 22, a shutter control unit 23, a quick return mirror 11, a focus plate 12, a roof prism 13, an eyepiece 15, a lens 16, a light measurement unit 17, an imaging element 18, a shutter 19, a liquid crystal display plate 121, a CCD control unit 31, an A/D converter 32, a tracking control unit 33, a focus detection calculation unit 35, an area selection operation unit 351, a lens driving amount calculation unit 36, a light on/off control unit 37, and a display unit 371. The body side microcomputer 21, the CCD control unit 31, the A/D converter 32, a storage unit 38, the area selection operation unit 351, and the display unit 371 are drawn outside the camera body 10 in FIG. 1, but are arranged inside the camera body 10 in the actual configuration.
The interchangeable lens 20 includes a photographing lens 1, an aperture 2, a lens drive unit 3, a distance detection unit 4, an aperture control unit 5, and a lens side microcomputer 6. The lens side microcomputer 6 is drawn outside the interchangeable lens 20 in FIG. 1, but is arranged inside the interchangeable lens 20 in the actual configuration. When the interchangeable lens 20 is attached to the camera body 10, the lens side microcomputer 6 and the body side microcomputer 21 are connected through an electoral contacting point 7.
The body side microcomputer 21 performs a well-known exposure calculation, a well-known automatic focus (AF) calculation, and the like when the release switch (not shown) is half-push operated, and starts the photograph control when the release switch (not shown) is full-push operated. The body side microcomputer 21 also communicates with the lens side microcomputer 6. The content transmitted by the body side microcomputer 21 to the lens side microcomputer 6 includes movement amount, movement direction of the focus adjustment optical system calculated by AF calculation, narrowing amount of the aperture 2 calculated in the exposure calculation, and the like. The focus adjustment optical system is a focus adjustment lens included in the photographing lens 1.
The lens side microcomputer 6 performs communication with the body side microcomputer 21, drive control of the focus adjustment optical system, narrowing control of the aperture 2, and the like. The movement of the focus adjustment optical system includes sending an instruction to the lens drive unit 3 and moving the focus adjustment optical system forward and backward in an optical axis direction according to the data (lens driving amount) transmitted from the lens driving amount calculation unit 36 of the body side microcomputer 21. The narrowing of the aperture 2 includes sending an instruction to the aperture control unit 5, and narrowing the aperture 2 according to the data transmitted from the body side microcomputer 21. The distance detection unit 4 detects a signal indicating the movement distance of the focus adjustment optical system using a detection signal by a detecting device (not shown). When the focus adjustment optical system is moved to a focused position, a sharp image of the main subject is focused on the imaging element 18 and the light measurement unit 7 of the camera body 10 side.
The subject light entered to the camera body 10 through the photographing lens 1 and the aperture 2 is guided upward by the quick return mirror 11 at an illustrated position before the full-push operation of the release switch, and focused on the focus plate 12. The subject light is further entered to the roof prism 13. The roof prism 13 guides the incident subject light to the eyepiece 15 and also guides one part thereof to the lens 16. The light entered to the lens 16 enters the light measurement unit 17 and focuses a subject image on a sensor.
The light measurement unit 17 includes a light measurement image sensor (CCD or CMOS sensor) including a plurality of photoelectric conversion elements corresponding to pixels. FIG. 2 is a view describing a pixel configuration of a light measurement image sensor. As shown in FIG. 2(a), the light measurement image sensor includes a plurality of (20×14 in the illustrated example) pixels 191 arrayed in a matrix form. Each pixel 191 is further divided into three thin pixels 191a to 191c, as shown in FIG. 2(b). Each thin pixel 191a to 191c is arranged with a three primary color filters of R (red), G (green), and B (blue) to obtain an RGB output of the subject image.
The light measurement unit 17 accumulates signal charges corresponding to the subject image focused on the light measurement image sensor and sweeping of accumulated charges by the CCD control unit 31. The A/D conversion circuit 32 converts an analog imaging signal output from the light measurement unit 17 to a digital image signal, and outputs the digital signal to the tracking control unit 33 of the body side microcomputer 21. The body side microcomputer 21 includes CPU, ROM, RAM, and various peripheral circuits. The tracking control unit 33 performs tracking of a tracking target based on the digital image signal of the image data acquired in the light measurement unit 17. The body side microcomputer 21 performs a predetermined exposure calculation based on the photoelectric conversion signal output from the light measurement image sensor, and determines a control aperture value and an exposure shutter speed.
Furthermore, one part of the subject is transmitted through the quick return mirror 11 and guided to the focus detection unit 22 at a lower side of a sub-mirror 20. The focus detection unit 22 includes an image sensor (CCD or CMOS sensor) for defocus amount detector through a phase difference detection method. The defocus amount detection image sensor images the subject image focused on the sensor, and outputs the photoelectric conversion signal corresponding to the brightness of the subject image to the focus detection calculation unit 35 of the body side microcomputer 21. The focus detection calculation unit 35 of the body side microcomputer 21 performs the AF calculation based on the photoelectric conversion signal output from the focus detection unit 22, and calculates the defocus amount.
The body side microcomputer 21 performs tracking of the tracking target based on the tracking result of the tracking control unit 33 and the detection result of the focus detection calculation unit 35. The body side microcomputer 21 outputs a tracking subjection region that becomes the tracking target to the focus detection calculation unit 35. The focus detection calculation unit 35 calculates the defocus amount of a focus detection region 40 (to be hereinafter described) corresponding to the focus detection region closest to the middle of the tracking subject region, and outputs the calculation result to the lens driving amount calculation unit 36.
The light on/off control unit 37 outputs the focus detection region 40 closest to the tracking subject region to the display unit 371. The display units 371 performs light-on/light-off (light on/off) of the AF area mark representing the focus detection region 40 output from the light on/off control unit 37. the display unit 371 can display the AF area mark by a liquid crystal display plate 121 arranged at a vicinity of the focus plate 12.
Specifically, the calculation of the defocus amount obtains the relative position shift amount (relative interval) of the image by a pair of defocus amount detection light fluxes entered through different regions of the photographing lens 1. The images by the pair of defocus amount detection light fluxes are two images imaged at different positions on the defocus amount detection image sensor. The pair of images move close to each other in a so-called pre-pin state in which the photographing lens 1 focuses a sharp image of the subject before the scheduled focus plane, and move away from each other in a so-called post-pin state in which the sharp image of the subject is focused behind the scheduled focus plane. The pair of images relatively match in a focused state in which the sharp image of the subject is focused on the scheduled focus plane. Therefore, the focus detection calculation unit 35 obtains the focus adjustment state, that is, the defocus amount of the photographing lens 1 by obtaining the relative position shift amount of the pair of images. The lens driving amount calculation unit 36 of the body side microcomputer 21 determines the forward/backward movement amount and the movement direction of the focus adjustment optical system according to the defocus amount, and transmits the necessary data (lens driving amount in the present embodiment) to the lens side microcomputer 6.
After the full-push operation of the release switch, the quick return mirror 11 turns to outside the optical path. The subject light is guided to the imaging element 18 for photographing through the shutter 19, and focuses the subject image on the imaging plane. The imaging element is configured by a photographing image sensor (CCD or CMOS sensor) with a plurality of photoelectric conversion elements corresponding to pixels. the imaging element 18 images the subject image focused on the imaging plane and outputs the photoelectric conversion signal corresponding to the brightness of the subject image.
(Light Measurement Information)
The light measurement image sensor (light measurement unit 17) described above has color filters of R (red), G (green), and B (blue) arranged corresponding to the pixel positions on the imaging plane, similar to the imaging element 18 for photographing (see FIG. 2(a) and FIG. 2(b)). Since the image sensor images the subject image through the color filter, the photoelectric conversion signal output from the light measurement image sensor contains color information of one of the RGB color system.
The body side microcomputer 21 groups the pixels of the light measurement image sensor (light measurement unit 17) for every predetermined region, and handles the photoelectric conversion signal from each region in block units. FIG. 3 is a view showing a light measurement range of the light measurement image sensor (light measurement unit 17). In the present embodiment, the light measurement range is divided into a total of forty-eight regions of eight blocks in the horizontal direction (X direction) and six blocks in the vertical direction (Y direction). The body side microcomputer 21 adds the R component signal, the G component signal, and the B component signal contained in the region for each divided region, and assumes the addition result as the light measurement information in the relevant region. The light measurement information of the R component is expressed as R[X, Y], the light measurement information of the G component is expressed as G[X, Y], and the light measurement information of the B component is expressed as B[X, Y]. Here, X=1 to 8 and Y=1 to 6.
(Focus Detection Information)
The photoelectric conversion signal from the defocus amount detection image sensor (focus detection unit 22) has tone information for every pixel corresponding to the brightness of the subject image. The focus detection calculation unit 35 groups the pixels of the defocus amount detection image sensor (focus detection unit 22) for every predetermined region, and performs the defocus amount deriving calculation for every block using the photoelectric conversion signal from each region. In the present embodiment, the divided region used in the defocus amount detection is matched with the divided region of the light measurement image sensor (light measurement unit 17) shown in FIG. 3.
The cross line shown in each divided region of FIG. 3 shows the pixel order on the defocus amount detection image sensor (focus detection unit 22) which outputs the photoelectric conversion signal used in defocus amount calculation. The focus detection calculation unit 35 of the body side microcomputer 21 calculates the defocus amount using the photoelectric conversion signal from the pixels lined in a cross-shape for each divided region, and assumes the calculation result as the focus detection information in the relevant region. The focus detection information is expressed as D[X, Y], where X=1 to 8, and Y=1 to 6.
(Tracking Process)
The process of tracking the main subject performed in the body side microcomputer 21 will be described with reference to the flowchart of FIG. 4. The program of performing the process of FIG. 4 is stored in the memory (not shown) in the body side microcomputer 21, and is activated when the half-push ON signal (half-push operation signal) from the release switch (not shown) is input to the body side microcomputer 21.
In step S1, the body side microcomputer 21 instructs the focus detection unit 22 of the exposure to the defocus amount detection image sensor, instructs the light measurement unit 17 of the exposure to the light measurement image sensor, and proceeds to step S2. The analog imaged signal form the light measurement image sensor is converted to a digital image signal in the A/D conversion circuit 32, and output to the tracking control unit 33. In step S2, the tracking control unit 33 of the body side microcomputer 21 calculates the light measurement information, and proceeds to step S3.
The light measurement information is calculated in the following manner. The tracking control unit 33 of the body side microcomputer 21 calculates the color information RG[X, Y] and BG[X, Y] from the following equations (1) and (2) using the light measurement information R[X, Y], G[X, Y], and B[X, Y] of each color component described above,

RG[X,Y]=Log2(R[X,Y])−Log2(G[X,Y])  (1)

BG[X,Y]=Log2(B[X,Y])−Log2(G[X,Y])  (2)

wHere X=1 to 8 and Y=1 to 6

The tracking control unit 33 of the body side microcomputer 21 also calculates the luminance information L[X, Y] from the following equation (3),

L[X,Y]=Log2(Kr×R[X,Y]+Kg×G[X,Y]+Kb×B[X,Y])−Log2(T)−Log2(G)  (3)

where T is the exposure time of the light measurement image sensor, G is the gain, and Kr, Kg, Kb are respectively the color composition coefficient of each color of RGB.

In step S3 of FIG. 4, the focus detection calculation unit 35 of the body side microcomputer 21 calculates the defocus amount D[X, Y] in the divided region and proceeds to step S4. Here, X=1 to 8 and Y=1 to 6.
In step S4, the storage unit 38 of the body side microcomputer 21 stores, as templates, the defocus amount calculated for the specified focus detection area (one of the regions of the divided region shown in FIG. 3) and the neighboring region of the relevant specified area (nine adjacent regions with the specified area as the center in the present embodiment), and the light measurement information (color information and luminance information) calculated in the nine light measurement regions corresponding to the focus detection areas of the relevant nine regions, and proceeds to step S5. The specification of the focus detection area is performed by the operation signal from the area selection operation unit 351 in advance.
FIG. 5 is a view describing the range of storing as a template. In the present embodiment, information on a total of nine regions, three blocks in the horizontal direction (X direction) and three blocks in the vertical direction (Y direction) are stored. The middle of the nine regions corresponds to the region specified as the focus detection area, and corresponds to the region of X=5, Y=3 of the light measurement range of FIG. 3 in the example of FIG. 5. Information on the range of X=4 to 6, Y=2 to 4 having the region X=5, Y=3 as the center is stored in the template in this case. The stored information represents the color information TRG[TX, TY] and TBG[TX, TY], luminance information TL[TX, TY] and defocus amount TD[TX, TY], where TX=1 to 3, TY=1 to 3.
In step S5 of FIG. 4, the body side microcomputer 21 instructs the next exposure to the focus detection unit 22 and the light measurement unit 17. The body side microcomputer 21 further performs the calculation of the light measurement information similar to step S2 and the calculation of the defocus amount similar to step S3, and proceeds to step S6. Thus, new color information RG[X, Y] and BG[X, Y], luminance information L[X, Y], and defocus amount D[X, Y] corresponding to the light measurement range (forty-eight regions) are thereby obtained. Here, X=1 to 8 and Y=1 to 6.
In step S6, the body side microcomputer 21 obtains a coordinate [HX, HY] at which the difference of the stored information (light measurement information, defocus amount) of the template and the calculation information (light measurement information, defocus amount) related to an evaluation area is the smallest while shifting the evaluation area (nine regions to be compared with the template) in the light measurement range (forty-eight regions).
The body side microcomputer 21 calculates the sum Diff[HX, HY] of the absolute values of the differences of each information from the following equation, and obtains the HX, HY at which a minimum value is obtained,
[Equation 1]
where Krg, Kbg, Kl, and Kd are predetermined coefficients.
In step S7 of FIG. 4, the body side microcomputer 21 proceeds to step S8 with the region indicating the coordinate [HXmin, HYmin] at which the minimum value of Diff[HX, HY] is obtained as the tracking region. In step S8, the lens driving amount calculation unit 36 of the body side microcomputer 21 determines the forward/backward movement amount and the movement direction of the focus adjustment optical system based on the defocus amount calculated for the region of X=HXmin, Y=HYmin, and transmits the necessary data to the lens side microcomputer 6. The focus adjustment optical system of the interchangeable lens 20 is thereby driven.
In step S9, the body side microcomputer 21 updates the stored information of the template to the information on the tracking region, and proceeds to step S10. The middle of the nine regions stored in the storage unit 38 as the template in this case corresponds to the tracking subject region, and corresponds to the region of X=4, Y=2 of the light measurement range of FIG. 3 etc. in the example of FIG. 5. The storage unit 38 updates and stores the information on the range of X=3 to 5, Y=1 to 3 having the region of X=4, Y=2 as the center as the template. The stored information is color information TRG[TX, TY] and TBG[TX, TY], luminance information TL[TX, TY] and defocus amount TD[TX, TY], where TX=1 to 3, TY=1 to 3.
In step S10, the body side microcomputer 21 determines whether or not the half-push ON signal is input. The body side microcomputer 21 determines as positive in step S10 if the half-push operation signal is input from the release switch (not shown) (during half-push) and returns to step S5, and determines as negative in step S10 if the half-push operation signal is not input. When returning to step S5, the processes in step S5 to step S9 are repeated, and thus the defocus amount is sequentially calculated with the moving main subject as the target. The body side microcomputer 21 determining step S10 as negative starts the photograph control if the full-push operation signal is input, and waits until the half-push ON signal is again input if the full-push operation signal is not input.
The embodiment described above has the following effects.
(1) The tracking device of the present embodiment obtains the tracking subject region (existence position of the main subject) in view of not only the light measurement information targeting on the main subject but also in view of the defocus amount corresponding to the light measurement information. Therefore, the tracking device of the present embodiment does not have the tracking target if the defocus amount is substantially equal, as opposed to the conventional tracking device of obtaining the tracking region based only on the light measurement information for the main subject. Thus, the tracking device of the present embodiment prevents background (or foreground) from which the light measurement information substantially equal to the main subject is obtained from being mistakenly set as the tracking target although the defocus amount is different.
(2) The light measurement unit 17 acquires the light measurement information at a plurality of positions (regions) on the light measurement image sensor. The focus detection unit 22 acquires the focus detection information at a plurality of positions (regions) on the defocus amount detection image sensor corresponding to the light measurement information acquiring position. Thus, the tracking device of the present embodiment acquires the light measurement information and the focus detection information for the main subject itself by matching the positions at which both sensor acquire the information. Accordingly, the tracking device of the present embodiment prevents tracking error of acquiring the focus detection information targeting on the background (or foreground) different from the main subject arising from the difference in the information acquiring position of the sensors.
(3) The storage unit 38 of the body side microcomputer 21 stores the light measurement information and the focus detection information acquired for the main subject (step S1 to step S3) as the template (step S4). The body side microcomputer 21 obtains information of the highest matching degree (small difference Diff[HX, HY]) from the newly acquired (step S5) light measurement information and the focus detection information (step S6), and determines the position at which the relevant information is acquired (step S7). Therefore, the tracking device of the present embodiment can obtain the tracking region with a simple template matching calculation even if the position at which the main subject is light measured is moved within the light measurement range.
(4) The tracking device of the present embodiment updates and stores the light measurement information and the focus detection information of the position determined as the tracking region as the template (step S9), and repeats step S5 to step S9 while the half-push operation is being continued, and thus the moving main subject can be reliably tracked.
(Variant 1)
In the first embodiment described above, an example of matching the divided region used in the defocus amount detection with the divided region of the light measurement image sensor (light measurement unit 17) has been described, but the following is performed if the divided regions do not match. FIG. 6 is a view showing a light measurement range of the light measurement image sensor (light measurement unit 17) in variant 1.
In FIG. 6, the aspect of dividing the light measurement range into a total of forty-eight regions of eight blocks in the horizontal direction (X direction) and six blocks in the vertical direction (Y direction) is the same as the above-described embodiment. The detection range of the photoelectric conversion signal used in the defocus amount calculation (i.e., detection range of the focus detection information) corresponds to the range in which the cross lines are lined shown in FIG. 6, and has a total of twenty-five detection positions of five blocks in the horizontal direction (AFX direction) and the vertical direction (AFY direction). AFX=1 to 5, and AFY=1 to 5.
The body side microcomputer 21 of variant 1 corresponds the light measurement position and the focus detection position in the following manner when storing the template in step S3. For instance, the focus detection position corresponding to the light measurement position of X=4, Y=2 of the light measurement range of FIG. 6 is AFX=3, AFY=2 adjacent to the relevant light measurement position.
The body side microcomputer 21 represents the defocus amount calculated using the photoelectric conversion signal obtained at the detection position of AFX=3, AFY=2 as D[4, 2].
The focus detection position corresponding to the light measurement position of X=4, Y=3 of the light measurement range of FIG. 6 is AFX=3, AFY=3 adjacent to the light measurement position. The body side microcomputer 21 represents the defocus amount calculated using the photoelectric conversion signal obtained at the detection position of AFX=3, AFY=3 as D[4, 3].
Furthermore, the focus detection position corresponding to the light measurement position of X=1, Y=1 of the light measurement range of FIG. 6 is AFX=1, AFY=1 closest to the light measurement position. The body side microcomputer 21 represents the defocus amount calculated using the photoelectric conversion signal obtained at the detection position of AFX=1, AFY=1 as D[1, 1].
According to variant 1 described above, if the light measurement position and the focus detection position are not directly corresponded, the defocus amount is detected based on the photoelectric conversion signal obtained at the focus detection position in the vicinity of the light measurement position, and thus the occurrence of tracking error of acquiring the focus detection information targeting on the background (or foreground) different from the main subject due to difference in the information acquiring position of the sensors although the light measurement information is obtained targeting on the main subject is suppressed.
(Variant 2)
When calculating the sum Diff[HX, HY] of the absolute values of the differences in step S6, the body side microcomputer 21 may correct the defocus amount TD[TX, TY] in the calculation formula using the amount (movement distance) the focus adjustment optical system is driven. The following equation (5) is a calculation formula of the sum Diff[HX, HY] of the absolute values of the differences in variant 2,
[Equation 2]
where Krg, Kbg, Kl, and Kd are predetermined coefficients, and Hk is a correction term involved in the movement distance of the focus adjustment optical system.
The signal indicating the movement distance is detected by a range ring position detection encoder (not shown) of the distance detection unit 4, and transmitted to the body side microcomputer 21 via the lens side microcomputer 6. The body side microcomputer 21 calculates the movement distance of the focus adjustment optical system based on the detection signal from the distance detection unit 4, and multiplies a predetermined focusing position change coefficient Kk to the movement distance to calculate the correction term Hk (Hk=Kk×(movement distance)).
FIG. 7 is a view describing a movement example of an focusing plane by the photographing lens 1 in a case of driving the focus adjustment optical system continuously in terms of time. In FIG. 7, the horizontal axis represents time, and the vertical axis represents the depth in the optical axis direction. The upper line is the subject position (focusing plane of the main subject) and the lower line is the position of the focusing plane by the photographing lens 1. The body side microcomputer 21 calculates the defocus amount D[X, Y] at each time point of time t0, t1, and t2, and moves the focus adjustment optical system by the movement amount corresponding to the defocus amount.
According to the configuration of variant 2, adverse affect on the calculation of the sum Diff[HX, HY] of the absolute values of the differences due to movement of the focus adjustment optical system when the movement amount (movement distance) of the focus adjustment optical system is large is prevented.
(Variant 3)
When calculating the sum Diff[HX, HY] of the absolute values of the differences in variant 2, the body side microcomputer 21 may predict the subject position further correct the defocus amount TD[TX, TY] in the calculation formula using the prediction result. The following equation (6) is a calculation formula of the sum Diff[HX, HY] of the absolute values of the differences in variant 3,
[Equation 3]
where Krg, Kbg, Kl, and Kd are predetermined coefficients, Hk is a correction term involved in the movement distance of the focus adjustment optical system, and Hy is a correction term involved in the subject predicted position.
FIG. 8 is a view describing a movement example of an focusing plane by the photographing lens 1 in a case of driving the focus adjustment optical system continuously in terms of time, and the predicted position of the main subject. In FIG. 8, the horizontal axis represents time, and the vertical axis represents the depth in the optical axis direction. The upper line is the subject position (focusing plane of the main subject), the dotted line is the predicted position of the subject (predicted focusing plane of the main subject predicted by linear approximation), and the lower line is the position of the focusing plane by the photographing lens 1. The body side microcomputer 21 calculates the defocus amount D[X, Y] at each time point of time t0, t1, and t2, and moves the focus adjustment optical system by the movement amount corresponding to the defocus amount.
According to the configuration of variant 3, adverse affect on the calculation of the sum Diff[HX, HY] of the absolute values of the differences due to movement of the main subject when the movement amount in the depth direction of the main subject is large is prevented.
The above description is merely an example, and is not limited to the configuration of the above-described embodiment.
The automatic focusing device of the single-lens reflex electronic camera has been described by way of example, but the automatic focusing device may be mounted on the single-lens reflex silver salt camera. The tracking device for performing the tracking process according to the present invention is not limited to being mounted on cameras and may be mounted on a telescope and the like. In this case, the subject field corresponds to the field, and the subject corresponds to the object.
It may also be mounted on a camera for realizing, as a light measurement unit, the light measurement function by light measurement outputting a value obtained by averaging each color output of the imaging sensor image for every divided region.
Second Embodiment
The second embodiment for implementing the present invention will be described with reference to the drawings. The single-lens reflex electronic camera of the second embodiment has substantially the same configuration as the single-lens reflex electronic camera of the first embodiment other than that the subject tracking process and the setting of the focus detection position are different, and thus same reference numerals are denoted for the same configuring positions, and the description will be omitted.
FIG. 9 is a view conceptually describing various regions used in the subject tracking control of the present embodiment. As shown in FIG. 9(a), in the camera of the present embodiment, eleven focus detection regions 40a to 40k, for example, are set within a screen 41 such as a finder field. When one of the eleven focus detection regions 40a to 40k such as the focus detection region 40e of FIG. 9(a) is selected by the area selection operation unit 351, the focus detection calculation unit 35 calculates the focus detection information (defocus amount) on the selected focus detection region 40e. The area selection operation unit 351 outputs a selected region signal indicating which focus detection region of the eleven focus detection regions 40a to 40k is selected to the tracking control unit 33. The defocus amount calculated in the focus detection calculation unit 35 is output to the lens driving amount calculation unit 36. The lens driving amount calculation unit 36 calculates the lens driving amount based on the input defocus amount, and transmits the lens drive signal to the lens side microcomputer 6. The lens side microcomputer 6 moves the focus adjustment optical system in the optical axis direction by the lens drive unit 3 according to the lens drive signal, and performs focus adjustment. The focus detection calculation unit 35 calculates the defocus amount of all the focus detection regions 40a to 40k, detects a focus detection region 40i in the vicinity of the focus detection region 40e and which difference with the defocus amount of the selected focus detection region 40e is within a predetermined value, and outputs a vicinity region signal indicating the detected focus detection region to the track control unit 33.
The tracking control unit 33 extracts the image data of the range including the pixels corresponding to the focus detection regions 40e, 40i as the defocus amount range 44, as shown in FIG. 9(b), based on the input selected region signal and the vicinity region signal. The tracking control unit 33 extracts a collection of pixels of high correlation with hue corresponding to the position of the focus detection region 40e as a same hue region 46 (shaded portion) on an initial image 43a acquired by the light measurement image sensor of the light measurement unit 17. The tracking control unit 33 sets a predetermined range including in which the defocus amount range 44 and the hue region 46 as a tracking subject region 47, and assumes the image in the tracking subject region 47 as a template image 48 that acts as a reference in tracking. The tracking control unit 33 sets a range enlarged by three pixels upward, downward, to the left, and the to the right with the tracking subject region 47 as the center as a tracking search region 49.
The tracking control unit 33 creates a cutout region of the same size as the template image 48 within the region of the tracking search region 49 in the image acquired in time series in the light measurement image sensor of the light measurement unit 17. The tracking control unit 33 calculates the difference between each color of R (red), G (green), and B (blue) of the cutout region, and each color of R (red), G (green), and B (blue) of the template image 48, and performs subject tracking by such difference.
The subject tracking method will be described in detail using FIGS. 9 and 10. FIG. 10 is a view describing a tracking method according to the present embodiment. In the following description, the photographer operates the selection operation unit 351 and selects the focus detection region 40e shown in FIG. 9(a). The focus detection calculation unit 35 then outputs the vicinity region signal to the tracking control unit 33. The vicinity region signal is a signal indicating the position of the focus detection region in the vicinity of the focus detection region 40e and which defocus amount is substantially the same as the focus detection region 40e. In the case of FIG. 9(a), the region indicated by the vicinity region signal is a focus detection region 40i. 
The tracking control unit 33 sets an image region corresponding to the focus detection regions 40e and 40u as the defocus amount range 44 based on the selected region signal and the vicinity region signal, as shown in FIG. 9(b). The tracking control unit 33 also sets the hue, that is, R/G and B/G of the image region corresponding to the focus detection region 40e as a subject hue value, and stores the same in the storage unit 38. The tracking control unit 33 then detects the same hue region having substantially the same hue as the subject hue value in the entire photographed image. The tracking control unit 33 sets a predetermined range including a portion where the defocus amount range 44 and the same hue region 46 overlap such as 3×3 pixels as the tracking subject region 47, as shown in FIG. 9(c). The image in the tracking subject region 47 is stored in the storage unit 38 as a template image 48a. Furthermore, the tracking control unit 33 newly sets a subject search region 49 in a range enlarged by three pixels upward, downward, to the left, and to the right to the outer side of the tracking subject region 47.
FIG. 10(a) is a view showing a next image 43b acquired in time series from the light measurement image sensor of the light measurement unit 17 following the initial image 43a. The tracking control unit 33 detects pixels (shaded portion of FIG. 10(a)) having the hue in which the difference with the subject hue value stored in the storage unit 38 is within a predetermined range within the range of the subject search region 49, and outputs a signal representing the focus detection region corresponding to the position of the detected pixels to the focus detection calculation unit 35. The focus detection calculation unit 35 performs calculation of defocus amount on the input focus detection region, that is, focus detection regions 40a, 40d, and 40e in FIG. 10(a). The focus detection calculation unit 35 determines whether or not the difference of the defocus amount of the focus detection regions 40a, 40d, 40e is smaller than or equal to a predetermined value, that is, whether or not the target to be captured by the three focus detection regions is the same based on the calculation result. In FIG. 10(a), the target to be captured by the focus detection regions 40a and 40e is the same target. The focus detection calculation unit 35 also determines whether the tracking target is moving closer or moving away in the optical axis direction with respect to the camera main body 10 based on change in the defocus amount of the focus detection region 40e in the initial image 43a and the next image 43b, and outputs the determination result to the tracking control unit 33.
The tracking control unit 33 determines whether or not there is change in the size on the image of the tracking image on the image based on the input determination result. For example, when determined that the tracking target is moving closer to the camera based on the defocus amount in the focus detection regions 40a and 40e, the tracking control unit 33 enlarges the size of the template image of the tracking target. When determined that the tracking target is moving away from the camera, the tracking control unit 33 reduces the size of the template image of the tracking target. When determined that the tracking target is neither moving closer nor moving away from the camera, the tracking control unit 33 does not change the size of the template image of the tracking image. If the tracking target is enlarged or reduced, the tracking control unit 33 linearly interpolates the template image 48a stored in the storage unit 38, for example, the RGB value of each pixel, creates a template image 48b including the focus detection regions 40a and 40e having the same defocus amount and being enlarged or reduced so as not to overlap the other focus detection region, and stores the same in the storage unit 38.
In the next image 43b shown in FIG. 10(a), if determined that the target is moving closer, the template image 48a of 3×3 pixels is enlarged to the template image 48b of 4×4 pixels as shown in FIG. 10(b). If there is not change in the tracking target, the tracking control unit 33 does not change the size of the template image 48a. 
After the template image is decided, the tracking control unit 33 sets the pixel (shaded part of FIG. 10(a)) having the hue substantially the same as the subject hue value as a tracking search pixel group 50. The tracking control unit 33 calculates the difference of R, G, and B of each pixel between each cutout region of 4×4 pixel of the same size as the template image 48b having the respective pixel shown in the shaded part of FIG. 10(a) as the center, and the template image 48b. As a result of the calculation, the cutout region having the smallest difference is set as the new tracking subject region 47b of 4×4 pixels, as shown in FIG. 10(c).
The tracking control unit 33 outputs the coordinate of the central position of the tracking subject region 47b to the focus detection calculation unit 35. The focus detection calculation unit 35 assumes the focus detection region 40e closest to the center of the tracking subject region 47b as the focus detection region that captures the tracking target as shown in FIG. 10(d) based on the coordinate of the input tracking subject region 47b, and calculates the focus detection information using the focus detection signal output from a pair of CCD line sensors of the focus detection unit 22 corresponding to the focus detection region 22. The focus detection calculation unit 35 outputs a selected region signal indicating the focus detection region 40e to the light on/off control unit 35 through the tracking control unit 33. The display unit 371 lights the AF area mark of the focus detection region 40e. 
If a plurality of focus detection regions 40 is positioned at equal distance from the center of the tracking subject region 47b, the focus detection calculation unit 35 selects the focus detection region position in the movement direction of the subject in a time-series images acquired before, that is, in the direction the movement of the subject is predicted based on the movement history.
After the new tracking subject 47b is set as above, the tracking control unit 33 updates the template image 48. If the template image 48 is enlarged or reduced according to change in size of the target image, the tracking control unit 33 combines the color information of each color of R, G, and B in the size changed template image 48b, and the color information of each color of R, G, and B in the tracking subject region 47b. The tracking control unit 33 stores the updated template image in the storage unit 38. If the size of the template image 48 is not changed, the tracking control unit 33 combines the color information of each color of R, G, and B in the template image 48a, and the color information of each color of R, G, and B in the new tracking subject region 47b. The tracking control unit 33 stores the updated template image 48 in the storage unit 38.
Each process of the subject tracking control operation will be described using the flowchart shown in FIG. 11. FIG. 11 is a flowchart describing the operation of the subject tracking process in the present embodiment. Each process shown in the flowchart is carried out by executing the program in the body side microcomputer 21. The operation of the subject tracking process of the flowchart is started by half-push operating the release switch (not shown).
In step S1, the lens side microcomputer 6 drives the focus adjustment optical system and performs focus adjustment based on the focus detection calculation result calculated in the focus detection calculation unit 35 with respect to the focus detection region set by the photographer, and proceeds to step S2. In step S2, the tracking control unit 33 acquires the image from the light measurement image sensor of the light measurement unit 17 and proceeds to step S3.
In step S3, the focus detection calculation unit 35 calculates the defocus amount on each focus detection region 40a to 40k and proceeds to step S4. In step S4, the focus detection calculation unit 35 determines the defocus amount range 44 based on the calculation result of the defocus amount in step S3, and proceeds the step S5. In step S5, the tracking control unit 33 sets the hue of the image corresponding to the selected focus detection region 40 as the subject hue value, stores the subject hue value in the storage unit 38, and proceeds to step S6.
In step S6, the tracking control unit 33 detects the same hue region 47 having substantially the same hue as the stored subject hue value in the initial image, and proceeds to step S7. In step S7, the track control unit 33 sets the tracking subject region 47 based on the defocus amount range 44 and the same hue region 46, and proceeds to step S8. In step S8, the track control unit 33 stores the image in the tracking subject region 47 set in step S7 in the storage unit 38 as the template image 48, and proceeds to step S9.
In step S9, the track control unit 33 sets the subject search region 49 as described above based on the tracking subject region 47 set in step S7, and proceeds to step S10. In step S10, the body side microcomputer 21 determines whether or not the release switch (not shown) is fully pushed by the photographer. If step S10 is positive, that is, if determined that the release switch is fully pushed in step S10, the process proceeds to step S16. If step S10 is negative, that is, if determined that the release switch is not fully pushed in step S10, the process proceeds to step S11.
In step S11, the tracking control unit 33 acquires the next image (new image) from the light measurement image sensor of the light measurement unit 17, and proceeds to step S12. In step S12, the tracking control unit 33 updates the template image 48 and determines the pixel for searching the tracking target in the update sub-routine to be hereinafter described. After each process in the sub-routine, the process proceeds to step S13. In step S13, the track control unit 33 calculates the difference with the template image 48 (48a or 48b in the example of FIG. 10) for each cutout region having each pixel of the subject search pixel group 50 as the center, and proceeds to step S14.
In step S14, the tracking control unit 33 determines the cutout region having the minimum difference value as the new tracking subject region 47b based on the calculation result in step S13, and proceeds to step S15. In step S15, the tracking control unit 33 updates the template image 48 to a new template image 48, stores the same in the storage unit 38, and proceeds to step S16. In step S16, the tracking control unit 33 outputs a selection region signal indicating the focus detection region closest to the middle of the tracking subject region 47b specified in step S14 to the focus detection calculation unit 35, the focus detection calculation unit 35 calculates the defocus amount on such focus detection region, and the light on/off control unit 37 lights the AF area mark corresponding to such focus detection region and returns to step S10. the body side microcomputer 21 proceeds to step S17 when determined that the release switch is fully pushed in step S10, and performs the photographing operation and terminates the series of processes.
The update sub-routine in step S12 of FIG. 11 will be described using the flowchart shown in FIG. 12. FIG. 12 is a flowchart describing the sub-routine for determining the position and the size of the tracking target in the subject tracking process of the present embodiment.
In step S101, the tracking control unit 33 detects the pixel having hue close to the hue value of the subject in the subject search region 49, and proceeds to step S102. In step S102, the tracking control unit 33 outputs a signal indicating the focus detection region corresponding to the pixel position detected in step S101 to the focus detection calculation unit 35, and the focus detection calculation unit 35 calculates the defocus amount on the relevant focus detection region and proceeds to step S103.
In step S103, the tracking control unit 33 determines whether, even if the focus detection region corresponding to the pixel having hue close to the hue value of the subject is in plurals, such focus detection regions capture the same subject based on the calculation result in step S102, and proceeds to step S104. In step S104, the tracking control unit 33 determines whether or not the tracking target is moving closer to or moving away with respect to the optical axis direction of the camera body 10 based on the calculation result in step S102, and proceeds to step S105.
In step S105, the tracking control unit 33 determines whether or not the change in size of the template image 48 is necessary based on the determination results in step S103 and step S104. If the size of the template image 48 needs to be changed, the determination in step S105 is positive, and the process proceeds to step S06. If the size of the template image 48 us not necessary, the determination in step S105 is negative, and the process skips step S106 and proceeds to step S107.
In step S106, the tracking control unit 33 enlarges or reduces the template image 48 through the method described above, and proceeds to step S107. In step S107, the tracking control unit 33 sets the pixel having hue close to the subject hue value detected in step S101 as the tracking search pixel group 50. After the setting in step S107 is terminated, the process returns to the main routine from the update sub-routine.
The single-lens reflex electronic camera according to the second embodiment described above has the following advantages.
(1) The single-lens reflex electronic camera of the present embodiment sets the reference information obtained from the range of pixels including the tracking target, that is, the template image 48 and tracks the tracking target based on the color information (light measurement information) acquired by the light measurement image sensor of the light measurement unit 17 and the focus detection information detected in the focus detection calculation unit 35. Therefore, the single-lens reflex electronic camera of the present embodiment can set the template image 48 excluding the influence by background information different from the tracking target, whereby the tracking accuracy enhances.
(2) The single-lens reflex electronic camera of the present embodiment updates the size of the template image 48 according to change in the focus detection information on the tracking target. That is, the single-lens reflex electronic camera of the present embodiment changes the template image 48 by enlarging the template image 48 when determined that the tracking target is moving closer to the camera body 10, and reducing the template image 48 when determined that it is moving away. Therefore, the single-lens reflex electronic camera of the present embodiment can change the size of the template image 48 according to the size of the tracking target that changes on the screen depending on whether the tracking target is moving closer to or moving away from the camera, and thus the influence of the background information can be eliminated, and the tracking accuracy can be enhanced.
(3) The single-lens reflex electronic camera of the present embodiment sets the tracking subject region 47 based on the same hue region 46 and the same defocus amount range 44 on the image acquired by the light measurement image sensor of the light measurement unit 17. The same hue region 46 is a region containing hue highly correlated with the hue in a predetermined range corresponding to the selected focus detection region, and the defocus amount range 44 is a region including the focus detection region having substantially the same defocus amount as the defocus amount of the selected focus detection region. That is, the single-lens reflex electronic camera of the present embodiment selects the subject that becomes the candidate of the tracking target based on the hue value, and determines the tracking target based on the focus detection information from the candidates of the selected tracking target. Therefore, the single-lens reflex electronic camera of the present embodiment can perform the tracking calculation without being influenced by the background information different from the tracking target, and thus the reliability of the tracking calculation can be maintained.
The second embodiment described above may be modified as below.
(1) The single-lens reflex electronic camera of the present embodiment determines the subject hue value, the same hue region 46, and the like that become the reference in setting the template image 48 based on the hue of the tracking target acquired by the light measurement image sensor of the light measurement unit 17, but luminance may be used in place of hue.
(2) The single-lens reflex electronic camera of the present embodiment can set the subject or the tracking target based on a recognition result of the subject and start the above-described tracking process as long as the camera has a function of recognizing the subject, in place of that which specifies the subject or the tracking subject by the operation of the photographer.
(3) The single-lens reflex electronic camera of the present embodiment combines the color information of each color of R, G, and B of the template image 48 and the color information of each color of R, G, and B of the tracking subject region 47b and updates the same as the new template image 48, but the tracking subject region 47b may be replaced as the new template image.
(4) The single-lens reflex electronic camera in which the photographing lens is interchangeable has been described by way of example, but the present invention is not limited thereto, and may be applied to a lens integrated camera or a video camera.
(5) The first embodiment and the second embodiment may be appropriately combined. In particular, the subject tracking process in step S13 selects the candidate of the tracking target based on the hue value, and determines the tracking region based on the focus detection information from the candidates of the selected tracking target, but in this case, Diff[HX, HY] may be calculated as in the first embodiment, and the region indicating the coordinate having the minimum value thereof may be determined as the tracking region.
The present invention is not limited to the above-described embodiments as long as it does not depart from the features of the present invention, and it should be recognized that other modes considered within the scope of the technical idea of the present invention are also encompassed within the scope of the present invention.
The disclosure of the following priority basic applications are incorporated herein as Cited Documents.

    Japanese Patent Application No. 2006-178175 (filed Jun. 28, 2006)
    Japanese Patent Application No. 2006-221811 (filed Aug. 16, 2006)

## Claims

1. A tracking device comprising:
a light measurement device that measures light from an object and obtains light measurement information of the object;
a focus detection device that performs focus detection of the object and obtains first focus detection information of the object and second focus detection information of the object, the second focus detection information being obtained after the first focus detection information has been obtained; and
a tracking control device that obtains tracking information of the object based on the light measurement information and the first focus detection information, corrects the tracking information based on the second focus detection information, and tracks the object in a field of view based on the corrected tracking information.

2. The tracking device according to claim 1, wherein
the tracking information includes at least one of luminance information of the object or color information of the object.

3. The tracking device according to claim 1, wherein
the light measurement device contiguously obtains the light measurement information at a plurality of regions in the field of view;
the focus detection device contiguously obtains the first focus detection information and the second focus information at a plurality of regions in the field of view; and
the tracking control device obtains tracking information at each of the plurality of regions in the field of view based on the light measurement information and the focus detection information, and tracks the object in the field of view by searching a region from the plurality of regions that has tracking information corresponding to the corrected tracking information.

4. The tracking device according to claim 3, wherein
a position of the region in the field of view where the light measuring information is obtained corresponds to a position of the region in the field of view where the focus detection position information is obtained.

5. The tracking device according to claim 1, wherein
the tracking control device obtains an area including at least a portion of the object in the field of view as the tracking information based on the light measurement information and the first focus detection information.

6. The tracking device according to claim 5, wherein
the light measurement device obtains the light measurement information at a plurality of regions in the field of view, and
the tracking control device determines the area including at least the portion of the object in the field of view based on the light measurement information obtained at the plurality of regions,
wherein the area including at least the portion of the object has one or more of the plurality of regions in the field of view.

7. The tracking device according to claim 5, wherein
the tracking control device corrects size of the area including at least the portion of the object based on the second focus detection information.

8. The tracking device according to claim 7, wherein
the tracking control device determines whether the object is moving closer to or moving away from the tracking device based on the first focus detection information and the second focus detection information, and corrects the size of the area including at least the portion of the object depending on the determination of whether the object is moving closer to or moving away from the tracking device.

9. The tracking device according to claim 5, wherein
the tracking information includes a hue value of the area including at least the portion of the object, and
the tracking control device tracks the object in the field of view based on the hue value of the area including at least the portion of the object.

10. The tracking device according to claim 9, wherein
the tracking control device selects candidate areas of the object in the field of view based on the hue value of the area including at least the portion of the object, and tracks the object by determining one of the candidate areas of the object based on the second focus detection information among the candidate areas of the object.

11. The tracking device according to claim 1,
wherein the light measurement device comprises an image sensor with a color filter, and
wherein the field of view corresponds to a light measuring range of the image sensor.

12. An automatic focusing device that controls a focus adjustment optical system comprising:
a tracking device comprising:
a light measurement device that measures light from an object and obtains light measurement information of the object;
a focus detection device that performs focus detection of the object and obtains first focus detection information of the object and second focus detection information of the object, the second focus detection information being obtained after the first focus detection information has been obtained; and
a tracking control device that obtains tracking information of the object based on the light measurement information and the first focus detection information, corrects the tracking information based on the second focus detection information, and tracks the object in a field of view based on the corrected tracking information; and

a focus control device that obtains a driving amount of the focus adjustment optical system based on the second focus detection information.

13. The automatic focusing device according to claim 12, wherein
the second focus detection information includes the driving amount of the focus adjustment optical system.

14. The automatic focusing device according to claim 12, wherein
the tracking control device predicts a movement of a focusing plane of the focus adjustment optical system from a movement of the object,
wherein the second focus detection information includes the predicted movement of the focusing plane of the focus adjustment optical system.

15. The automatic focusing device according to claim 12,
wherein the light measurement device comprises an image sensor with a color filter, and
wherein the field of view corresponds to a light measuring range of the image sensor.

16. A camera comprising:
a tracking device comprising:
a light measurement device that measures light from an object and obtains light measurement information of the object;
a focus detection device that performs focus detection of the object and obtains first focus detection information of the object and second focus detection information of the object, the second focus detection information being obtained after the first focus detection information has been obtained; and
a tracking control device that obtains tracking information of the object based on the light measurement information and the first focus detection information, corrects the tracking information based on the second focus detection information, and tracks the object in a field of view based on the corrected tracking information; and

a focus control device that obtains a driving amount of a focus adjustment optical system based on the second focus detection information.

17. The camera according to claim 16,
wherein the light measurement device comprises an image sensor with a color filter, and
wherein the field of view corresponds to a light measuring range of the image sensor.

18. The camera according to claim 16, wherein the focus detection device comprises an image sensor for measuring detects defocus amount by a phase-difference detection method.

19. A tracking method comprising:
measuring light from an object and obtaining light measurement information of the object;
performing focus detection of the object and obtaining first focus detection information of the object;
obtaining tracking information of the object based on the light measurement information and the first focus detection information;
performing focus detection of the object and obtaining second focus detection information, the second focus detection information being obtained after the first focus detection information has been obtained;
correcting the tracking information based on the second focus detection information; and
tracking the object in a field of view based on the corrected tracking information.

20. The tracking method according to claim 19, wherein
the step of obtaining the tracking information of the object obtains an area including at least part of the object in the field of view as the tracking information based on at least one of the light measurement information and the first focus detection information.

21. The tracking method according to claim 20, wherein
the step of correcting the tracking information corrects size of the area including at least the portion of the object based on the second focus detection information.

22. The tracking method according to claim 20, further comprising:
determining whether the object is moving closer or moving away based on the first detection information and the second focus detection information,
wherein the step of correcting the tracking information corrects the size of the area including at least the portion of the object depending on the determination of whether the object is moving closer or moving away.

23. The tracking method according to claim 20, wherein
in the step of obtaining tracking information of the object, the tracking information includes a hue value of the area including at least the portion of the object,
wherein the step of tracking the object in the field of view tracks the object based on the hue value of the area including at least the portion of the object.

24. The tracking method according to claim 23, wherein
the step of tracking the object in the field of view selects candidate areas of the object in the field of view based on the hue value of the area including at least the portion of the object, and tracks the object by determining one of the candidate areas of the object based on the first focus detection information and the second focus detection information.

25. The tracking method according to claim 19, wherein
the steps of 1) measuring light from an object and obtaining light measurement information of the object, 2) performing focus detection of the object and obtaining first focus detection information of the object, 3) obtaining tracking information of the object, and 4) performing focus detection of the object and obtaining second focus detection information are performed at each of a plurality of regions in the field of view,
wherein the step of tracking the object in the field of view is performed by searching a region from the plurality of regions that has tracking information corresponding to the corrected tracking information.

26. The tracking method according to claim 25, wherein
in the step of tracking the object in the field of view, a position of the region in the field of view where the light measuring information is obtained corresponds to a position of the region in the field of view where the focus detection position information is obtained.