Patent ID: 8774458

Claim:
An image processing apparatus comprising: a calculating unit that calculates an evaluation value, which is expressed as a sum of a first sum of products of a first weight coefficient and a first confidence degrees associated with each of a set of positive regions containing a part of a target image of a first frame containing an object to be tracked, and a second sum of products of a second weight coefficient and a second confidence degrees associated with each of a set of negative regions not containing the target image of the first frame, wherein the first confidence degrees and the second confidence degrees are confidence degrees obtained by mixing, at a predetermined mixing ratio, a matching degree of a first feature quantity and a matching degree of a second feature quantity between the target image of the first frame and a comparison image which is an image of a comparison region from a set of comparison regions, wherein the mixing ratio is varied until the evaluation value is maximum, wherein the set of comparison regions is the set of positive regions when calculating the first confidence degrees and the set of comparison regions is the set of negative regions when calculating the second confidence degrees, wherein the first weight coefficient is a value obtained by dividing a constant by a number of positive regions in the set of positive regions and the second weight coefficient is a value obtained by dividing the constant by a number of negative regions in the set of negative regions; and a detecting unit that detects a target image of a second frame using a third confidence degrees having a mixing ratio corresponding to the mixing ratio set when the evaluation value is the maximum.