CPC H04N 23/71 (2023.01) [G06T 7/68 (2017.01); G06T 7/73 (2017.01); G06T 7/90 (2017.01); G06V 10/56 (2022.01); G06V 10/60 (2022.01); H04N 5/77 (2013.01); H04N 23/53 (2023.01); H04N 23/57 (2023.01); G06T 2207/10024 (2013.01)] | 20 Claims |
1. A method for detecting interference patterns for an under-screen camera, comprising:
acquiring an image, wherein multiple reference points are set in the image, a first area with respect to each of the reference points is defined, and a brightness average value of the first area with respect to each of the reference points is calculated; wherein a second area with respect to each of the reference points is defined, and a brightness target value of the second area with respect to each of the reference points is calculated;
calculating an area brightness ratio according to the brightness average value of the first area and the brightness target value of the second area of each of the reference points;
obtaining a binarized image according to the area brightness ratios of all of the reference points of the image; and
determining whether or not an interference pattern is present according to symmetrical characteristics of the binarized image.
|