Inquiry about detecting black contaminants with minimal gray-value difference in a machine vision environment

Solution was provided by Vision team, refer to Improving image quality of Copper plates in vision camera and Dynamic ROI Adjustment and Pixel Counter for Copper Plate Inspection - #3 by kovarj