Patent ID: 7477761

Claim:
An image processing apparatus for performing image-processing on image data which is formed of a predetermined number of pixel data obtained by an image-capturing device having a time integrating function, said image processing apparatus comprising: an area specifying unit configured to store three consecutively input frames and specify areas in a designated frame, wherein the area specifying unit specifies, in a first period of time, a first area in the designated frame as an uncovered background area when a first determination result of a first frame that is two frames before the designated frame and a second frame that is one frame before the designated frame is and when a second determination result of the second frame and the designated frame is stationary, wherein said area specifying unit specifies, in a second period of time, a second area in the designated frame as the foreground area when the second determination result is moving and when a third determination result of the designated frame and a third frame that is one frame after the designated frame is moving, wherein said area specifying unit further specifies, in the second period of time, a third area in the designated frame as the background area when the second determination result and the third determination result are both stationary, and wherein said area specifying unit specifies, in a third period of time, a fourth area in the designated frame as the covered background area when the third determination result is stationary and when a fourth determination result of the third frame and a fourth frame that is two frames after the designated frame is moving; a mixture-ratio detection unit configured to detect a mixture ratio indicating a ratio of foreground object components and background object components in the uncovered background area and in the covered background area; and a foreground/background separation unit configured to separate pixel data of pixels belonging to the uncovered background area and to the covered background area into the foreground object components and the background object components based on the mixture ratio, and to generate a foreground component image consisting of only the foreground object components and a background component image consisting of only the background component image in the designated frame.