An image processing program for performing predetermined image processing on an image of an inspection target object to detect that the inspection target object is a non-defective product or a defective product, the image processing program causing a computer to realize:
- a function of acquiring, with an imaging unit, a non-defective product image that includes the inspection target object that represents the non-defective product or an image serving as a reference of pass/fail determination generated on the basis of the non-defective product image, causing a display unit to display the non-defective product image or the image as a live image on a first registration screen, and registering of the non-defective product image or the image as a first image;
- and
- a function of, after receiving an instruction for registering the first image from an operation unit, causing the display unit to display the registered first image as a still image, and, imaging a second image, with the imaging unit, as a second image registration screen, for registering the second image that represents an image other than the non-defective product, causing the display unit to display the second image registration screen as the live image side by side with the still image, and urging registration of the second image.