Image anomaly detection method and device, terminal equipment and readable storage medium
A technology of image abnormality and detection method, which is applied in the field of image processing, can solve problems affecting imaging effects, abnormal black spots or white spots, lens dust adhesion, etc., and achieve the effect of improving user experience
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0059] Please refer to figure 1 This embodiment proposes an image anomaly detection method, which can be used for factory inspection of the imaging quality of a shooting lens of a terminal device such as a mobile phone, tablet, etc., especially for the image obtained due to dust adhesion on the lens. like figure 2 the white area shown, etc. This method can well detect whether there is a problem of dust adhesion, as well as the specific location of abnormal areas after dust imaging, so as to facilitate subsequent image restoration to solve imaging quality problems, etc.
[0060] It should be understood that the black / white area described in this embodiment is not limited to an image with a grayscale of 255 or 0, and may also refer to a situation where the texture and color of the pixels in the abnormal area are inconsistent with surrounding pixels. The image abnormality detection method will be described below.
[0061] Step S110 , performing color space conversion on the t...
Embodiment 2
[0099] Please refer to Image 6 , this embodiment proposes an image abnormality processing method. For example, when there are some black / white abnormal areas in the image, such as texture, color, etc., are processed by the image abnormality processing method. Improve the efficiency of image exception processing, etc.
[0100] Step S210, when it is detected that the input image includes an abnormal area, calculate the texture matching degree and the color matching degree between the abnormal area and the local area surrounding the abnormal area.
[0101] Exemplarily, a partial image including an abnormal area may be intercepted from the input target image, and the partial image is composed of the abnormal area and a partial area surrounding the abnormal area. Wherein, the local area refers to a pixel area with normal imaging and located around the abnormal point.
[0102] In this embodiment, by judging whether the texture and color between the abnormal area and the surroundi...
Embodiment 3
[0133] Please refer to Figure 12 , this embodiment proposes an image repair method for repairing an abnormal area in an image. Exemplarily, the image inpainting method includes:
[0134]Step S410, on the boundary of the abnormal area in the target image, take the pixel on the boundary as the center, select a pixel block, calculate the filling priority of the pixel based on the relevant information of the pixel block, and traverse all the pixels on the boundary. point to get the filling priority of each pixel on the border.
[0135] In this embodiment, for the input target image including the abnormal area, the position information and area size of the abnormal area can be obtained, including the position of the boundary, etc., and the area in the image except the abnormal area that displays normal (that is, normal area). It is worth noting that the abnormal area can be black / white spots, reflected light spots, etc. appearing in the image that will affect the display effect...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


