An image processing apparatus comprising extraction means of obtaining a characteristic value of in an input image block, storage means of storing said characteristic value, accumulation means of accumulating a plurality of previously-obtained reference characteristic values corresponding to a plurality of target blocks, comparison means of comparing said characteristic value of said input image block with said reference characteristic values to obtain a similarity between them, storage means of storing said similarity, and judgment means of judging the presence or absence of a target image in an input image in accordance with said similarity over a plurality of adjacent blocks,
- wherein each characteristic value is a vector, each dimension of the vector corresponding to a number of pixels of a predetermined color in a block, and
- said comparison means compares the vector of the characteristic value of the input image block with the vector of each characteristic value of the target blocks.