1. A method for creating inspection data for inspecting a substrate, said method comprising: a first step of registering, in a tangible medium readable by a computer, standard inspection data including size data of components of various types, components with only small differences in external appearances being collected in a group referred as a variation having an assigned variation name as identification data; a second step of taking and thereby obtaining a first image of said substrate before components are mounted to said substrate; a third step of taking and thereby obtaining a second image of said substrate after components are mounted to said substrate; a fourth step of generating a differential image between said first image and said second image obtained in said second step and said third step, extracting black pixel areas by binarization of said generated differential image, extracting a number of constituent pixels of said black pixel areas per each component as an extracted size data for each component, comparing said size data in said standard inspection data and thereby identifying a corresponding component by using the variation name; a fifth step of setting said component identified in said fourth step as component identifying data; a sixth step of determining setting conditions for a window based on position and size of area where the corresponding component was identified in said fourth step and registering as said inspection data by combining said component identifying data and said determined setting conditions; and a seventh step of saving in a work memory a corresponding variation name which corresponds to said identified corresponding component; wherein said second step, said third step, said fourth step, said fifth step and said sixth step are carried out by said computer using a program that is incorporated in said tangible medium.