1. An image processing apparatus comprising: a difficulty calculation unit that calculates a degree of detection difficulty indicating a degree of difficulty in detection of a target cell contained in a specimen, based on a test object condition of the specimen; and a setting unit that sets a detection parameter on a process of the detection of the target cell from a captured image of the specimen, based on the degree of detection difficulty.