Patent ID: 8035687

Claim:
An image processing apparatus comprising: a read unit configured to read, from first objects, information items for determining program procedures used to detect the first objects by image processing; a selection unit configured to select program procedures corresponding to the information items, and to determine an order of execution of selected program procedures; an acquisition unit configured to acquire an initial image including images corresponding to the first objects, the initial image being used for executing a first program procedure of a first order of execution, which is included in the selected program procedures; a detection unit configured to detect, using the initial image, at least one of the first objects by executing the first program procedure corresponding to the at least one of the first objects; and a generation unit configured to generate a post-removal image obtained by removing, from the initial image, an image data item corresponding to one of the images, which is on a first area corresponding to at least one detected object, wherein: the detection unit executes a second program procedure of a second order of execution, which is included in the selected program procedures, to detect at least one of the first objects that corresponds to the second program procedure; and the generation unit removes, from the post-removal image, the image data item corresponding to another of the images, which is on a second area corresponding to at least one detected object that corresponds to the second program procedure, to update the post-removal image.