To increase flaw detection rate and decrease false alarm rate, this paper proposed an edge-based image comparison method to detect flaws on PCB films. The detection procedures can be best described as follows: First, histogram equalization is applied to t To increase flaw detection rate and decrease false alarm rate, this paper proposed an edge-based image comparison method to detect flaws on PCB films. The detection procedures can be best described as follows: First, histogram equalization is applied to t