IP Library › Granted Patent US 11,430,103
Granted Patent B2
US 11,430,103 · App. 17/026,220 · Granted Aug 30, 2022

Method for image processing, non-transitory computer readable storage medium, and electronic device

Inventor: Yan Chen (Guangdong, CN)
Assignee: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., LTD.
G06T7/0002G06K9/6218G06K9/6268G06T7/13G06T2207/10024G06T2207/30168
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,430,103
App. No.
17/026,220
Granted
Aug 30, 2022
Kind
B2
Abstract

A method for image processing includes the following. Edge pixel points in the image to be processed are determined by performing edge detection on the image to be processed. The number of the edge pixel points in the image to be processed is determined as a first pixel number. Determine that a moire pattern exists in the image to be processed when the first pixel number is larger than a first number threshold.

Claims (68)

1. A method for image processing, comprising:

obtaining an image to be processed;

determining edge pixel points in the image to be processed by performing edge detection on the image to be processed;

determining the number of the edge pixel points in the image to be processed as a first pixel number;

determining the number of edge pixel points of a specified color as a second pixel number when the first pixel number is larger than a first number threshold; and

determining that a moire pattern exists in the image to be processed when the second pixel number is larger than a second number threshold, wherein the second number threshold is smaller than or equal to the first number threshold.

2. The method of claim 1 , wherein determining the number of the edge pixel points in the image to be processed as the first pixel number comprises:

performing binary processing on the image to be processed to obtain a binary image, wherein the binary image comprises pixel points of a first color and pixel points of a second color;

determining the pixel points of the first color as the edge pixel points in the image to be processed; and

determining the number of the pixel points of the first color in the binary image as the first pixel number.

3. The method of claim 1 , wherein determining the number of the edge pixel points of the specified color as the second pixel number comprises:

performing cluster processing on the edge pixel points of the specified color to obtain a plurality of categories of edge pixel points, wherein each category of edge pixel points forms a continuous edge line;

determining an edge line with a length exceeding a length threshold as a target edge line; and

determining the total number of edge pixel points in the target edge line as the second pixel number.

4. The method of claim 1 , further comprising:

determining a minimum rectangular region containing all the edge pixel points in the image to be processed;

determining the number of pixel points in the minimum rectangular region as a region pixel number; and

obtaining the first number threshold according to the region pixel number.

5. The method of claim 4 , wherein determining the minimum rectangular region containing all the edge pixel points in the image to be processed comprises:

establishing a coordinate system according to the image to be processed and obtaining a coordinate of each of the edge pixel points in the coordinate system; and

determining vertex coordinates according to the obtained coordinate of each of the edge pixel points and determining the minimum rectangular region according to the vertex coordinates.

6. The method of claim 1 , further comprising:

determining that no moire pattern exists in the image to be processed when the first pixel number is smaller than or equal to the first number threshold; and

recognizing the image to be processed to obtain an image classification tag for the image to be processed, wherein the image classification tag is indicative of a classification of the image to be processed.

7. The method of claim 1 , further comprising:

eliminating the moire pattern in the image to be processed based on a determination that the moire pattern exists in the image to be processed; and

recognizing the image to be processed to obtain an image classification tag for the image to be processed after the moire pattern is eliminated, wherein the image classification tag is indicative of a classification of the image to be processed.

8. A non-transitory computer readable storage medium configured to store computer programs, the computer programs which, when executed by a processor, are operable with the processor to:

obtain an image to be processed;

determine edge pixel points in the image to be processed by performing edge detection on the image to be processed;

determine the number of the edge pixel points in the image to be processed as a first pixel number;

determine that a moire pattern exists in the image to be processed when the first pixel number is larger than a first number threshold,

establish a coordinate system according to the image to be processed and obtain a coordinate of each of the edge pixel points in the coordinate system;

determine vertex coordinates according to the obtained coordinate of each of the edge pixel points and determine a minimum rectangular region according to the vertex coordinates;

determine the number of pixel points in the minimum rectangular region as a region pixel number; and

obtain the first number threshold according to the region pixel number.

9. The non-transitory computer readable storage medium of claim 8 , wherein the computer programs operable with the processor to determine the number of the edge pixel points in the image to be processed as the first pixel number are operable with the processor to:

perform binary processing on the image to be processed to obtain a binary image, wherein the binary image comprises pixel points of a first color and pixel points of a second color;

determine the pixel points of the first color as the edge pixel points in the image to be processed; and

determine the number of the pixel points of the first color in the binary image as the first pixel number.

10. The non-transitory computer readable storage medium of claim 8 , wherein the computer programs operable with the processor to determine that the moire pattern exists in the image to be processed when the first pixel number is larger than the first number threshold are operable with the processor to:

determine the number of edge pixel points of a specified color as a second pixel number when the first pixel number is larger than the first number threshold; and

determine that the moire pattern exists in the image to be processed when the second pixel number is larger than a second number threshold, wherein the second number threshold is smaller than or equal to the first number threshold.

11. The non-transitory computer readable storage medium of claim 10 , wherein the computer programs operable with the processor to determine the number of the edge pixel points of the specified color as the second pixel number are operable with the processor to:

perform cluster processing on the edge pixel points of the specified color to obtain a plurality of categories of edge pixel points, wherein each category of edge pixel points forms a continuous edge line;

determine an edge line with a length exceeding a length threshold as a target edge line; and

determine the total number of edge pixel points in the target edge line as the second pixel number.

12. The non-transitory computer readable storage medium of claim 8 , wherein the computer programs are further operable with the processor to:

determine that no moire pattern exists in the image to be processed when the first pixel number is smaller than or equal to the first number threshold; and

recognize the image to be processed to obtain an image classification tag for the image to be processed, wherein the image classification tag is indicative of a classification of the image to be processed.

13. An electronic device, comprising:

a processor; and

a memory configured to store computer readable instructions which, when executed by the processor, are operable with the processor to:

obtain an image to be processed;

determine edge pixel points in the image to be processed by performing edge detection on the image to be processed;

determine the number of the edge pixel points in the image to be processed as a first pixel number;

perform cluster processing on the edge pixel points of a specified color to obtain a plurality of categories of edge pixel points, wherein each category of edge pixel points forms a continuous edge line;

determine an edge line with a length exceeding a length threshold as a target edge line;

determine the total number of edge pixel points in the target edge line as a second pixel number; and

determine that a moire pattern exists in the image to be processed when the second pixel number is larger than a second number threshold, wherein the second number threshold is smaller than or equal to a first number threshold.

14. The electronic device of claim 13 , wherein the computer readable instructions operable with the processor to determine the number of the edge pixel points in the image to be processed as the first pixel number are operable with the processor to:

perform binary processing on the image to be processed to obtain a binary image, wherein the binary image comprises pixel points of a first color and pixel points of a second color;

determine the pixel points of the first color as the edge pixel points in the image to be processed; and

determine the number of the pixel points of the first color in the binary image as the first pixel number.

15. The electronic device of claim 13 , wherein the computer readable instructions are further operable with the processor to:

determine a minimum rectangular region containing all the edge pixel points in the image to be processed;

determine the number of pixel points in the minimum rectangular region as a region pixel number; and

obtain the first number threshold according to the region pixel number.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 23, 2020
From: CHEN, YAN
To: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., LTD.
Reel/Frame 053856/0328 →
Priority Claims (1)
CN 201810590031.5 · Jun 8, 2018 · national
Continuity (2)
Continuation PCTCN2019087585 · May 20, 2019
Related Publication 20210004952A1 · Jan 7, 2021
Cited By (1)
US 12,323,459