A substrate defect inspection apparatus for inspecting a substrate for a defect, configured to compare, for each pixel value of image data obtained by picking up an image of an entire front surface of a substrate being an inspection object, using reference pixel data made by associating each position and an allowable range of the pixel value, a deviation amount from the allowable range and a sensitivity parameter value being an allowable deviation amount when each pixel value is deviated from the allowable range corresponding to the position thereof, and determine the substrate to be a defective substrate when the deviation amount exceeds the sensitivity parameter value, the substrate defect inspection apparatus comprising:
- a reference pixel data creation unit that creates, at adjustment time of the sensitivity parameter value, reference pixel data to be used after the adjustment;
- an adjustment unit for the sensitivity parameter value for adjusting the sensitivity parameter value;
- and
- a virtual inspection substrate selection unit that selects a plurality of virtual inspection substrates which are used for adjusting the sensitivity parameter value and on which virtual inspection being inspection for adjusting the sensitivity parameter is to be performed by comparison with the reference pixel data, from among a plurality of substrates inspected earlier than the adjustment time of the sensitivity parameter value,
- wherein the adjustment unit for the sensitivity parameter value is configured to execute:
- a first step of comparing, for each pixel value of the selected virtual inspection substrate, using the reference pixel data to be used after the adjustment, the deviation amount from the allowable range and the sensitivity parameter value before the adjustment when each pixel value is deviated from the allowable range corresponding to the position thereof;
- a second step of updating the deviation amount as a new sensitivity parameter value when the deviation amount exceeds the sensitivity parameter value and a difference between the deviation amount and the sensitivity parameter value is equal to or less than a threshold value;
- and
- a third step of performing the first step and the second step in sequence on image data on the plurality of substrates inspected earlier, and, when the sensitivity parameter value being an object to be compared with the deviation amount has been updated, storing in a storage unit a finally updated sensitivity parameter value as the sensitivity parameter after the adjustment.