System and method for differentiating pictures and texts
First Claim
1. A system for differentiating pictures and texts to differentiate picture data and text image data in an image file, a image generated from the image file containing a plurality of pixels with each pixel corresponding to a gray-level, the system comprising:
- a threshold setting module for performing statistics all the pixels of the images to generate a relationship between the gray-level and quantity, and setting a threshold according to the relationship between the gray-level and quantity; and
a picture text differentiating module to divide the images to a plurality of unit areas of a same size, each of the unit areas containing a plurality of pixels, the picture text differentiating module comparing sequentially the gray-level of the pixels in the unit areas with the threshold, and totaling the times that the gray-level equals to the threshold, and comparing the times of equality with a preset comparison value;
wherein data corresponding to the unit area is treated as the picture data when the times of equality is greater than the comparison value, and the data corresponding to the unit area is treated as the text image data when the times of equality is less than the comparison value.
2 Assignments
0 Petitions
Accused Products
Abstract
A system and method for differentiating pictures and texts includes, first, dividing an image corresponding to an image file to a plurality of unit areas of the same size each containing a plurality of pixels of the same number; generating a threshold by a threshold setting module based on the relationship between a gray-level and quantity; a picture text differentiating module sequentially performing statistics of the gray-levels of the pixels of the unit areas; sequentially comparing the gray-levels with the threshold; totaling the times that the gray-level equals to the threshold; and the picture text differentiating module comparing the times of equality with a preset comparison value to differentiate whether the data corresponding to the unit area is picture data or text image data.
-
Citations
8 Claims
-
1. A system for differentiating pictures and texts to differentiate picture data and text image data in an image file, a image generated from the image file containing a plurality of pixels with each pixel corresponding to a gray-level, the system comprising:
-
a threshold setting module for performing statistics all the pixels of the images to generate a relationship between the gray-level and quantity, and setting a threshold according to the relationship between the gray-level and quantity; and
a picture text differentiating module to divide the images to a plurality of unit areas of a same size, each of the unit areas containing a plurality of pixels, the picture text differentiating module comparing sequentially the gray-level of the pixels in the unit areas with the threshold, and totaling the times that the gray-level equals to the threshold, and comparing the times of equality with a preset comparison value;
wherein data corresponding to the unit area is treated as the picture data when the times of equality is greater than the comparison value, and the data corresponding to the unit area is treated as the text image data when the times of equality is less than the comparison value. - View Dependent Claims (2, 3, 4)
-
-
5. A method for differentiating pictures and texts to differentiate picture data and text image data in an image file, a image generated from the image file containing a plurality of pixels with each pixel corresponding to a gray-level, the method comprising the steps of:
-
performing statistics of all the pixels to generate a relationship between the gray-level and quantity;
setting a threshold according to the relationship between the gray-level and quantity;
dividing the images into a plurality of unit areas of a same size, each of the unit areas containing a plurality of pixels of a same number;
comparing sequentially the gray-level of the pixels in the unit areas with the threshold, and totaling the times that the gray-level equals to the threshold; and
comparing the times of equality with a preset comparison value, treating data corresponding to the unit area as the picture data when the times of equality is greater than the comparison value, and treating the data corresponding to the unit area as the text image data when the times of equality is less than the comparison value. - View Dependent Claims (6, 7, 8)
-
Specification