An image processing apparatus, comprising an imaging device including a camera module for imaging an inspection object configured to acquire image data; a display device in communication with the imaging device, the display device being configured to display an image of the imaged inspection object and to accept a user input; wherein the imaging device further includes: a compression processing portion configured to execute compression processing on the captured image data to generate compressed image data; and a partial image generating portion configured to extract a part of the captured image data to generate partial image data, the partial image data being obtained by cutting out a part of the image data; wherein the image processing apparatus further comprises: an inspection condition data setting portion configured to set, in setting mode, based on the user input on the display device, inspection condition data concerning a condition for inspecting the inspection object, the inspection condition data including a parameter representing which of the compressed image data and the partial image data is to be used as image data for use in image processing, an image processing tool representing a type of image processing including an edge search, and a trigger condition representing a timing for the camera module to acquire image data in inspection mode; an image processing portion configured to process, in the inspection mode, the compressed image data generated from image data acquired at the trigger condition with the image processing tool when the parameter represents the compressed image data, and to process, in the inspection mode, the partial image data generated from image data acquired at the trigger condition with the image processing tool when the parameter represents the partial image data. a compression processing portion configured to execute compression processing on the captured image data to generate compressed image data; and a partial image generating portion configured to extract a part of the captured image data to generate partial image data, the partial image data being obtained by cutting out a part of the image data; wherein the image processing apparatus further comprises: an inspection condition data setting portion configured to set, in setting mode, based on the user input on the display device, inspection condition data concerning a condition for inspecting the inspection object, the inspection condition data including a parameter representing which of the compressed image data and the partial image data is to be used as image data for use in image processing, an image processing tool representing a type of image processing including an edge search, and a trigger condition representing a timing for the camera module to acquire image data in inspection mode; an image processing portion configured to process, in the inspection mode, the compressed image data generated from image data acquired at the trigger condition with the image processing tool when the parameter represents the compressed image data, and to process, in the inspection mode, the partial image data generated from image data acquired at the trigger condition with the image processing tool when the parameter represents the partial image data. an inspection condition data setting portion configured to set, in setting mode, based on the user input on the display device, inspection condition data concerning a condition for inspecting the inspection object, the inspection condition data including a parameter representing which of the compressed image data and the partial image data is to be used as image data for use in image processing, an image processing tool representing a type of image processing including an edge search, and a trigger condition representing a timing for the camera module to acquire image data in inspection mode; an image processing portion configured to process, in the inspection mode, the compressed image data generated from image data acquired at the trigger condition with the image processing tool when the parameter represents the compressed image data, and to process, in the inspection mode, the partial image data generated from image data acquired at the trigger condition with the image processing tool when the parameter represents the partial image data.