Scratch detection method, device and electronic equipment based on image processing
An image processing and scratch technology, applied in the field of image recognition, can solve the problems of identifying weak scratches, it is difficult to segment the scratch area, and the filter template is difficult to satisfy information correlation and information accumulation, so as to improve reliability and effectiveness sexual effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0063] Since it is difficult to accurately identify minor scratches on rough surfaces by simply using image pixel information, the embodiments of the present invention begin to use information other than pixels, and the most intuitive one is to use the spatial distribution characteristics of scratches to increase the possibility of scratch extraction. Specifically, such as figure 2 As shown, the embodiment of the present invention provides a scratch detection method based on image processing, including:
[0064] S1. Obtain a background image, and use the background image to cancel the original image to obtain a difference image;
[0065] S2. Using a directional filter bank to process the pixels to be analyzed in the difference image to determine suspected points and corresponding suspected directions;
[0066] S3. Using the suspected points and the suspected directions, perform spatial accumulation processing in the mapping area of the directional filter bank to obtain an ...
Embodiment 2
[0069] Objects with rough surfaces are usually affected by factors such as uneven surfaces and / or uneven illumination, and the image grayscale itself may have large fluctuations. Therefore, it is difficult to implement image segmentation in the prior art only by image grayscale. In one embodiment of the present invention, a difference image with relatively consistent gray distribution is obtained by canceling the background image and the original image, thereby eliminating image inhomogeneity and enhancing the reliability and effectiveness of image segmentation.
[0070] Specifically, such as image 3 As shown, in an implementation of the present invention, step S1 of the above method (that is, obtaining a background image, and using the background image to cancel the original image to obtain a differential image) includes:
[0071] performing longitudinal mean filtering and transverse mean filtering on the original image to obtain the background image;
[0072] performing di...
Embodiment 3
[0077] For the image with weak scratches on the rough surface, on the one hand, the gray level difference between the pixels in the scratched area and the pixels in the non-scratched area is very small; on the other hand, due to the influence of the rough surface, the gray level of the pixels in the scratched area fluctuates greatly Therefore, relying solely on the gray value of a single pixel for scratch region segmentation not only cannot effectively segment the pixels in the scratch, but also may cause serious fractures, and the accuracy of scratch detection is extremely low.
[0078] In one embodiment of the present invention, the image is filtered through a directional filter bank by using the linear characteristics of the scratches, and the linear directional filtering process can effectively enhance the grayscale of the pixels in the direction of the scratches. In order to improve the distinguishability of the gray level of pixels inside and outside the scratch area, it ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


