An image processing apparatus, comprising: an imaging unit configured to image a region including an inspection object and to acquire image data of the inspection object; a focus adjustment mechanism (143, 144) configured to adjust a focus position of the imaging unit on the inspection object; an image processing unit (131, 132) configured to execute image processing on the image data acquired by the imaging unit; and a control unit configured to control an operation of the focus adjustment mechanism (143, 144), wherein the apparatus includes: an inspection condition data setting portion configured to set a plurality of pieces of inspection condition data, each of the plurality of pieces of inspection condition data made up of a plurality of setting items including parameters used for imaging and image processing of the inspection object and focus position data indicating a focalized position of the imaging unit, a memory configured to store the plurality of pieces of inspection condition data set by the inspection condition data setting portion; and an inspection condition switching instruction accepting portion configured to accept a switching instruction from a first inspection condition data, comprising first parameters for imaging and image processing of the inspection object and first focus position data indicating a first focalized position of the focus mechanism, to a second inspection condition data, comprising second parameters for imaging and image processing of the inspection object and second focus position data indicating a second focalized position of the focus mechanism, of the plurality of pieces of inspection condition data, and when the switching instruction for the inspection condition data is accepted, the control unit controls the operation of the focus adjustment mechanism (143, 144) based on the second focus position data included in the second inspection condition data, obtained from the memory, after switching, to adjust the focus position from the first focalized position to the second focalized position, and the image processing unit executes image processing on the acquired image data in the second focalized position based on parameters included in the second inspection condition data. an imaging unit configured to image a region including an inspection object and to acquire image data of the inspection object; a focus adjustment mechanism (143, 144) configured to adjust a focus position of the imaging unit on the inspection object; an image processing unit (131, 132) configured to execute image processing on the image data acquired by the imaging unit; and a control unit configured to control an operation of the focus adjustment mechanism (143, 144), wherein the apparatus includes: an inspection condition data setting portion configured to set a plurality of pieces of inspection condition data, each of the plurality of pieces of inspection condition data made up of a plurality of setting items including parameters used for imaging and image processing of the inspection object and focus position data indicating a focalized position of the imaging unit, a memory configured to store the plurality of pieces of inspection condition data set by the inspection condition data setting portion; and an inspection condition switching instruction accepting portion configured to accept a switching instruction from a first inspection condition data, comprising first parameters for imaging and image processing of the inspection object and first focus position data indicating a first focalized position of the focus mechanism, to a second inspection condition data, comprising second parameters for imaging and image processing of the inspection object and second focus position data indicating a second focalized position of the focus mechanism, of the plurality of pieces of inspection condition data, and an inspection condition data setting portion configured to set a plurality of pieces of inspection condition data, each of the plurality of pieces of inspection condition data made up of a plurality of setting items including parameters used for imaging and image processing of the inspection object and focus position data indicating a focalized position of the imaging unit, a memory configured to store the plurality of pieces of inspection condition data set by the inspection condition data setting portion; and an inspection condition switching instruction accepting portion configured to accept a switching instruction from a first inspection condition data, comprising first parameters for imaging and image processing of the inspection object and first focus position data indicating a first focalized position of the focus mechanism, to a second inspection condition data, comprising second parameters for imaging and image processing of the inspection object and second focus position data indicating a second focalized position of the focus mechanism, of the plurality of pieces of inspection condition data, and when the switching instruction for the inspection condition data is accepted, the control unit controls the operation of the focus adjustment mechanism (143, 144) based on the second focus position data included in the second inspection condition data, obtained from the memory, after switching, to adjust the focus position from the first focalized position to the second focalized position, and the image processing unit executes image processing on the acquired image data in the second focalized position based on parameters included in the second inspection condition data.