US 12,469,149 B2
Image processing apparatus and method of processing image
Yu Inagaki, Tokyo (JP); and Keisuke Midorikawa, Tokyo (JP)
Assigned to CANON KABUSHIKI KAISHA, Tokyo (JP)
Filed by CANON KABUSHIKI KAISHA, Tokyo (JP)
Filed on Mar. 8, 2022, as Appl. No. 17/689,057.
Claims priority of application No. 2021-040696 (JP), filed on Mar. 12, 2021.
Prior Publication US 2022/0292692 A1, Sep. 15, 2022
Int. Cl. G06T 7/215 (2017.01); H04N 23/61 (2023.01); H04N 23/67 (2023.01); H04N 23/68 (2023.01)
CPC G06T 7/215 (2017.01) [H04N 23/61 (2023.01); H04N 23/67 (2023.01); H04N 23/681 (2023.01)] 15 Claims
OG exemplary drawing
 
1. An image processing apparatus comprising:
one or more processors that execute a program and thereby function as:
a setting unit that sets a tracking target region;
a generating unit that generates a template to be used in template matching based on a set tracking target region;
a detecting unit that detects, in a current image, a first region that is similar to a template generated by the generating unit, by applying template matching using the template to the image; and
a subject detecting unit that detects a subject region, in which a predetermined subject is captured, in an image, wherein, if the subject detecting unit has detected the subject region, the setting unit sets the tracking target region based on the subject region,
wherein the setting unit sets, as a new tracking target region, the first region detected in the current image by the detecting unit or a second region of the current image whose position corresponds to a previously set tracking target region,
wherein the subject detecting unit detects a subject region through first subject detection processing and second subject detection processing having a lower detection accuracy than that of the first subject detection processing, the setting unit uses a detection result of the first subject detection processing with a higher priority than a detection result of the second subject detection processing, and the setting unit does not use a processing result of the second subject detection processing until an elapse of a first predetermined time, and
wherein the image processing apparatus is an image capture apparatus, and the first predetermined time is set longer in a case when a focal length of a lens unit of the image capture apparatus at an initial setting of the tracking target region is equal to or greater than a threshold value than in a case when the focal length is less than the threshold value.