Method and system for processing images
First Claim
Patent Images
1. An image processing method, comprising:
- capturing two images;
detecting a difference between the two images;
reserving one of the two images when the difference is less than a preset threshold;
detecting feature information of one of the two images;
performing definition-related treatment for the image having detected feature information; and
reserving a clear image according to the definition-related treatment;
wherein, before performing the definition-related treatment, the method further comprises cropping the image having the detected feature information so as to increase a percentage of the detected feature information to the whole image;
wherein performing the definition-related treatment, and reserving the clear image according to the definition-related treatment comprises at least one of;
graying the cropped image;
calculating a gradient value of the grayed image;
outputting a grayscale image which comprises edge information;
setting a grayscale image threshold as a definition criterion according to the grayscale image;
binarizing the cropped image;
obtaining a binarized threshold corresponding to the binarized image;
determining that the image is clear and reserving the image if the binarized threshold corresponding to the binarized image is less than the grayscale image threshold; and
graying the cropped image;
calculating a gradient value of the grayed image;
outputting a grayscale image which comprises edge information;
using a total sum of white pixel points of the edge information of the grayscale image or a percentage of the edge information to the whole image as a definition criterion;
binarizing the cropped image;
obtaining a total sum of white pixel points of the edge information in the binarized image or the percentage of the edge information to the whole image;
determining that the image is clear and reserving the image if the total sum of the white pixel points of the edge information in the binarized image or the percentage of the edge information to the whole image is less than the definition criterion.
3 Assignments
0 Petitions
Accused Products
Abstract
A method for processing images includes: obtaining video images or capturing a series of images in real time; detecting difference between two adjacent images, and reserving one of the images when the difference is less than a preset threshold; detecting feature information of the obtained images; and performing definition-related treatment for the images detected as having the feature information, comparing definition of each image with a preset definition criterion, and reserving clear images.
-
Citations
13 Claims
-
1. An image processing method, comprising:
-
capturing two images; detecting a difference between the two images; reserving one of the two images when the difference is less than a preset threshold; detecting feature information of one of the two images; performing definition-related treatment for the image having detected feature information; and reserving a clear image according to the definition-related treatment; wherein, before performing the definition-related treatment, the method further comprises cropping the image having the detected feature information so as to increase a percentage of the detected feature information to the whole image; wherein performing the definition-related treatment, and reserving the clear image according to the definition-related treatment comprises at least one of; graying the cropped image; calculating a gradient value of the grayed image; outputting a grayscale image which comprises edge information; setting a grayscale image threshold as a definition criterion according to the grayscale image; binarizing the cropped image; obtaining a binarized threshold corresponding to the binarized image; determining that the image is clear and reserving the image if the binarized threshold corresponding to the binarized image is less than the grayscale image threshold; and graying the cropped image; calculating a gradient value of the grayed image; outputting a grayscale image which comprises edge information; using a total sum of white pixel points of the edge information of the grayscale image or a percentage of the edge information to the whole image as a definition criterion; binarizing the cropped image; obtaining a total sum of white pixel points of the edge information in the binarized image or the percentage of the edge information to the whole image; determining that the image is clear and reserving the image if the total sum of the white pixel points of the edge information in the binarized image or the percentage of the edge information to the whole image is less than the definition criterion. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. An image processing system, comprising:
-
an image obtaining module adapted to obtain video images or capture a series of images; an image difference detecting module adapted to detect a difference between two images and to reserve one of the images when the difference is less than a preset threshold; a feature information detecting module adapted to detect feature information of the obtained video images or the series of images and to obtain images that have distinct feature information; and an image definition judging module, adapted to perform definition-related treatment for the images that have the feature information; and
when an image is unclear, to discard the image so that the image obtaining module continues to select a next image;the system further comprising an image cropping module, adapted to crop the images that have the feature information; wherein the image definition judging module adapted to perform definition-related treatment comprises at least one of; gray the cropped image; calculate a gradient value of the grayed image; output a grayscale image which comprises edge information; set a grayscale image threshold as a definition criterion according to the grayscale image; binarize the cropped image; obtain a binarized threshold corresponding to the binarized image; determine that the image is clear and reserving the image if the binarized threshold corresponding to the binarized image is less than the grayscale image threshold; and gray the cropped image; calculate a gradient value of the grayed image; output grayscale image which comprises edge information; use a total sum of white pixel points of the edge information of the grayscale image or a percentage of the edge information to the whole image as a definition criterion; binarize the cropped image; obtain a total sum of white pixel points of the edge information in the binarized image or the percentage of the edge information to the whole image; determine that the image is clear and reserving the image if the total sum of the white pixel points of the edge information in the binarized image or the percentage of the edge information to the whole image is less than the definition criterion. - View Dependent Claims (12, 13)
-
Specification