{'fraction_non_alphanumeric': 0.017142857142857144, 'fraction_numerical': 0.0, 'mean_word_length': 5.287179487179487, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Surface defect detection method for glass substrate using improved Otsu segmentation.

The image quality degradation caused by noise makes the automatic optical inspection of surface defects difficult. This paper develops a method based on thresholding segmentation to detect the surface defects in a glass substrate. Traditional Otsu segmentation has poor anti-noise ability. In order to improve the traditional Otsu method, a straight-line intercept histogram is established directly from the two-dimensional information of an image, and then Otsu criteria can be used to find the best intercept threshold from the one-dimensional histogram established. The improved Otsu algorithm not only is simpler than the two-dimensional Otsu methods, but also has a robust anti-noise ability. In the surface defect detection, the contrast feature between object and background is simply extracted after the segmentation based on the improved Otsu method, and surface defects can be decided by the threshold of the contrast feature. The data used in the experiments include the surface images acquired by a line-scan CCD camera. The experimental results demonstrate that the proposed method is effective and computationally efficient.