CN102157000A - Method and system for adjusting gradation of layout - Google Patents
Method and system for adjusting gradation of layout Download PDFInfo
- Publication number
- CN102157000A CN102157000A CN2010105683853A CN201010568385A CN102157000A CN 102157000 A CN102157000 A CN 102157000A CN 2010105683853 A CN2010105683853 A CN 2010105683853A CN 201010568385 A CN201010568385 A CN 201010568385A CN 102157000 A CN102157000 A CN 102157000A
- Authority
- CN
- China
- Prior art keywords
- deep
- character
- whole page
- space
- light
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 18
- 238000012015 optical character recognition Methods 0.000 claims description 5
- 230000000694 effects Effects 0.000 abstract description 6
- 230000009286 beneficial effect Effects 0.000 abstract 1
- 238000004364 calculation method Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 230000000007 visual effect Effects 0.000 description 2
- 239000012141 concentrate Substances 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000005055 memory storage Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012797 qualification Methods 0.000 description 1
Images
Abstract
The invention discloses a method and a system for adjusting the gradation of layout, which solve the problem that the adjustment effect of the gradation of layout in the prior art is not good. The method comprises the following steps of: defining the positions of characters on the layout; computing the gradation degree of each character on the layout; defining the integral gradation degree of the characters of the layout according to the gradation degree of each character; and adjusting the gradation of layout on the basis of the integral gradation degree of the characters of the layout. The application of the technical scheme can be beneficial to improving the gradation adjustment effect of the layout.
Description
Technical field
The present invention relates to a kind of deep or light method and system of the space of a whole page of adjusting.
Background technology
The space of a whole page is in printing or carry out optical character identification (OCR) before, tends to carry out the deep or light adjusting of the space of a whole page as required, to obtain visual effect or preferable OCR result preferably.Usually comprise writings and image in the space of a whole page.Existing way generally is that the space of a whole page is integrally carried out deep or light adjusting, this regulative mode is comparatively simple and easy to do, but this regulative mode can cause certain part overrich of the space of a whole page or light excessively when for example the deep or light degree of the space of a whole page itself was very inhomogeneous in some cases, can influence regulate the visual effect of the space of a whole page afterwards, perhaps influence the identification accuracy of OCR.
There is the problem of adjusting poor effect in the deep or light adjustment of the existing space of a whole page, for this problem, does not propose effective solution at present as yet.
Summary of the invention
Fundamental purpose of the present invention provides a kind of deep or light method and system of the space of a whole page of adjusting, in order to solve the problem of the deep or light adjustment poor effect of the space of a whole page in the prior art.
For addressing the above problem, according to an aspect of the present invention, provide a kind of deep or light method of the space of a whole page of adjusting.
The deep or light method of the adjustment space of a whole page of the present invention comprises: the position of determining the character in the space of a whole page; Calculate the deep or light degree of each character in the described space of a whole page; Determine the whole deep or light degree of character of the described space of a whole page according to the deep or light degree of described each character; Based on the whole deep or light degree of the character of the described space of a whole page the described space of a whole page is carried out deep or light adjusting.
Further, each character that calculates in the described space of a whole page calculates respectively also to comprise before the deep or light degree of determining described each character: with the adjusted size of the character in the described space of a whole page is unified value.
Further, the deep or light degree of calculating each character in the described space of a whole page comprises the black-white point ratio that calculates the pixel in the described character.
Further, the deep or light degree of calculating each character in the described space of a whole page comprises the black-white point ratio of the pixel in the unit length lines that calculate described character.
Further, determine that according to the deep or light degree of described each character the whole deep or light degree of character of the described space of a whole page comprises: the deep or light degree mean value that calculates the character in the described space of a whole page according to the deep or light degree of described each character.
Further, the described space of a whole page is carried out also comprising before the deep or light adjusting: select the deep or light regulative mode of the space of a whole page according to default optical character recognition algorithms and the corresponding relation between the deep or light degree of the space of a whole page.
For addressing the above problem, according to a further aspect in the invention, provide a kind of deep or light system of the space of a whole page that adjusts.
The deep or light system of the adjustment space of a whole page of the present invention comprises: locating module is used for determining the position of the character of the space of a whole page; First computing module is used for calculating the deep or light degree of each character of the described space of a whole page; Second computing module is used for determining according to the deep or light degree of described each character the whole deep or light degree of character of the described space of a whole page; Adjustment module is used for based on the whole deep or light degree of the character of the described space of a whole page the described space of a whole page being carried out deep or light adjusting.
Further, described system also comprises the standardization module, and the adjusted size that is used for the character of the described space of a whole page is unified value.
Further, described first computing module also is used for calculating the black-white point ratio of the pixel of described character.
Further, described first computing module also is used for calculating the black-white point ratio of pixel of the unit length lines of described character.
Further, described second computing module also is used for calculating according to the deep or light degree of described each character the deep or light degree mean value of the character of the described space of a whole page.
Further, described system also comprises the selection module, is used for the deep or light regulative mode of the space of a whole page that default optical character recognition algorithms of basis and the corresponding relation between the deep or light degree of the space of a whole page select described adjustment module to use.
According to technical scheme of the present invention, carry out deep or light adjustment at the character on the space of a whole page, determine character position and deep or light degree thereof, adjust the deep or light of the space of a whole page then on the whole, this mode has been avoided the influence of the local deep or light value in the space of a whole page for character, only regulate, make the deep or light of character meet default requirement, thereby help to improve the effect of the deep or light adjustment of the space of a whole page at character.
Description of drawings
Accompanying drawing described herein is used to provide further understanding of the present invention, constitutes the application's a part, and illustrative examples of the present invention and explanation thereof are used to explain the present invention, do not constitute improper qualification of the present invention.In the accompanying drawings:
Fig. 1 is the synoptic diagram according to the key step of the deep or light method of the adjustment space of a whole page of the embodiment of the invention;
Fig. 2 is the synoptic diagram according to the main modular of the deep or light system of the adjustment space of a whole page of the embodiment of the invention.
Embodiment
Below with reference to the accompanying drawings and in conjunction with the embodiments, describe the present invention in detail.
Fig. 1 is the synoptic diagram according to the key step of the deep or light method of the adjustment space of a whole page of the embodiment of the invention, and as shown in Figure 1, this method mainly comprises the steps:
Step S11: the position of determining the character in the space of a whole page;
Step S13: the deep or light degree of calculating each character in the space of a whole page;
Step S15: the whole deep or light degree of character of determining the space of a whole page according to the deep or light degree of each character;
Step S17: the space of a whole page is carried out deep or light adjusting based on the whole deep or light degree of the character of the space of a whole page.
From above-mentioned steps as can be seen, carry out deep or light adjustment at the character on the space of a whole page in the present embodiment, determine character position and deep or light degree thereof, adjust the deep or light of the space of a whole page then on the whole, this mode has been avoided the influence of the local deep or light value in the space of a whole page for character, make the deep or light of character meet default requirement, thereby help to improve the effect of the deep or light adjustment of the space of a whole page.
Before step S13, can with the adjusted size of the character in the space of a whole page unified value.Helping like this has unified standard to the deep or light degree of character.Can adopt algorithm in advance during calculating in carrying out step S13, the algorithm of preliminary election can be the black-white point ratio of the pixel in the calculating character; In the adjusted size with the character in the space of a whole page is under the situation of unified value, and the algorithm of preliminary election also can be the black-white point ratio of the pixel in the unit length lines of calculating character.
In step S15, specifically can be the deep or light degree mean value that calculates the character in the space of a whole page according to the deep or light degree of each character in the space of a whole page, with the deep or light degree of character integral body of this mean value as the space of a whole page.
Carry out OCR if desired after the deep or light adjusting among the step S17, Ci Shi deep or light adjusting can be selected concrete control method at the OCR algorithm that will use so, helps to obtain preferable OCR result like this.
Fig. 2 is the synoptic diagram according to the main modular of the deep or light system of the adjustment space of a whole page of the embodiment of the invention.As shown in Figure 2, the deep or light system 20 of the adjustment space of a whole page in the present embodiment mainly comprises as lower module: locating module is used for determining the position of the character of the space of a whole page; First computing module is used for calculating the deep or light degree of each character of the described space of a whole page; Second computing module is used for determining according to the deep or light degree of described each character the whole deep or light degree of character of the described space of a whole page; Adjustment module is used for based on the whole deep or light degree of the character of the described space of a whole page the described space of a whole page being carried out deep or light adjusting.
The deep or light system 20 of the adjustment space of a whole page shown in Figure 2 can also comprise standardization module (not shown), and the adjusted size that is used for the character of the described space of a whole page is unified value.
First computing module can also be used for calculating the black-white point ratio of the pixel of described character, perhaps can be used for calculating the black-white point ratio of pixel of the unit length lines of described character.Second computing module can also be used for calculating according to the deep or light degree of described each character the deep or light degree mean value of the character of the described space of a whole page.
The deep or light system 20 of the adjustment space of a whole page shown in Figure 2 can also comprise selects the module (not shown), is used for the deep or light regulative mode of the space of a whole page that default optical character recognition algorithms of basis and the corresponding relation between the deep or light degree of the space of a whole page select described adjustment module to use.
Obviously, those skilled in the art should be understood that, above-mentioned each module of the present invention or each step can realize with the general calculation device, they can concentrate on the single calculation element, perhaps be distributed on the network that a plurality of calculation element forms, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in the memory storage and carry out by calculation element, perhaps they are made into each integrated circuit modules respectively, perhaps a plurality of modules in them or step are made into the single integrated circuit module and realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (12)
1. adjust the deep or light method of the space of a whole page for one kind, it is characterized in that, comprising:
Determine the position of the character in the space of a whole page;
Calculate the deep or light degree of each character in the described space of a whole page;
Determine the whole deep or light degree of character of the described space of a whole page according to the deep or light degree of described each character;
Based on the whole deep or light degree of the character of the described space of a whole page the described space of a whole page is carried out deep or light adjusting.
2. method according to claim 1 is characterized in that, the deep or light degree of calculating described each character comprises that also the adjusted size with the character in the described space of a whole page is unified value before.
3. method according to claim 1 and 2 is characterized in that, the deep or light degree of calculating each character in the described space of a whole page comprises the black-white point ratio that calculates the pixel in the described character.
4. method according to claim 2 is characterized in that, the deep or light degree of calculating each character in the described space of a whole page comprises the black-white point ratio of the pixel in the unit length lines that calculate described character.
5. method according to claim 1, it is characterized in that, determine that according to the deep or light degree of described each character the whole deep or light degree of character of the described space of a whole page comprises: the deep or light degree mean value that calculates the character in the described space of a whole page according to the deep or light degree of described each character.
6. method according to claim 1 is characterized in that, the described space of a whole page is carried out also comprising before the deep or light adjusting: select the deep or light regulative mode of the space of a whole page according to default optical character recognition algorithms and the corresponding relation between the deep or light degree of the space of a whole page.
7. adjust the deep or light system of the space of a whole page for one kind, it is characterized in that, comprising:
Locating module is used for determining the position of the character of the space of a whole page;
First computing module is used for calculating the deep or light degree of each character of the described space of a whole page;
Second computing module is used for determining according to the deep or light degree of described each character the whole deep or light degree of character of the described space of a whole page;
Adjustment module is used for based on the whole deep or light degree of the character of the described space of a whole page the described space of a whole page being carried out deep or light adjusting.
8. system according to claim 7 is characterized in that, also comprises: the standardization module, the adjusted size that is used for the character of the described space of a whole page is unified value.
9. according to claim 7 or 8 described systems, it is characterized in that described first computing module also is used for calculating the black-white point ratio of the pixel of described character.
10. system according to claim 8 is characterized in that, described first computing module also is used for calculating the black-white point ratio of pixel of the unit length lines of described character.
11. system according to claim 7 is characterized in that, described second computing module also is used for calculating according to the deep or light degree of described each character the deep or light degree mean value of the character of the described space of a whole page.
12. system according to claim 7 is characterized in that, also comprises the selection module, is used for the deep or light regulative mode of the space of a whole page that default optical character recognition algorithms of basis and the corresponding relation between the deep or light degree of the space of a whole page select described adjustment module to use.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010105683853A CN102157000A (en) | 2010-11-30 | 2010-11-30 | Method and system for adjusting gradation of layout |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010105683853A CN102157000A (en) | 2010-11-30 | 2010-11-30 | Method and system for adjusting gradation of layout |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102157000A true CN102157000A (en) | 2011-08-17 |
Family
ID=44438479
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2010105683853A Pending CN102157000A (en) | 2010-11-30 | 2010-11-30 | Method and system for adjusting gradation of layout |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102157000A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103106673A (en) * | 2011-11-15 | 2013-05-15 | 北京大学 | Method for shade adjustment of character and image |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1102926A (en) * | 1993-07-08 | 1995-05-24 | 松下电器产业株式会社 | Expanding processing of objects in picture |
CN1223419A (en) * | 1997-10-17 | 1999-07-21 | 株式会社Tec | Image processing method and printer |
JP2004012751A (en) * | 2002-06-06 | 2004-01-15 | Nec Corp | Device and method for generating character data and program |
CN1633159A (en) * | 2005-01-26 | 2005-06-29 | 北京中星微电子有限公司 | A method for removing image noise |
CN1750107A (en) * | 2004-09-17 | 2006-03-22 | 日本电气株式会社 | Flame Image Process and transmission equipment, display, Flame Image Process and transmission method |
CN101312486A (en) * | 2007-03-07 | 2008-11-26 | 三星电子株式会社 | Image processing apparatus and control method the same |
-
2010
- 2010-11-30 CN CN2010105683853A patent/CN102157000A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1102926A (en) * | 1993-07-08 | 1995-05-24 | 松下电器产业株式会社 | Expanding processing of objects in picture |
CN1223419A (en) * | 1997-10-17 | 1999-07-21 | 株式会社Tec | Image processing method and printer |
JP2004012751A (en) * | 2002-06-06 | 2004-01-15 | Nec Corp | Device and method for generating character data and program |
CN1750107A (en) * | 2004-09-17 | 2006-03-22 | 日本电气株式会社 | Flame Image Process and transmission equipment, display, Flame Image Process and transmission method |
CN1633159A (en) * | 2005-01-26 | 2005-06-29 | 北京中星微电子有限公司 | A method for removing image noise |
CN101312486A (en) * | 2007-03-07 | 2008-11-26 | 三星电子株式会社 | Image processing apparatus and control method the same |
Non-Patent Citations (1)
Title |
---|
《现代显示》 20091031 Edward F. Kelly 字符对比度测量技术 第22~25页 1-12 , 第105期 2 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103106673A (en) * | 2011-11-15 | 2013-05-15 | 北京大学 | Method for shade adjustment of character and image |
CN103106673B (en) * | 2011-11-15 | 2016-01-27 | 北京大学 | The method of the deep or light adjustment of a kind of character image |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9760820B2 (en) | Method for generating color QR code | |
US7800625B2 (en) | Automatic parameters adjusting system and method for a display device | |
US20160232134A1 (en) | Template-based page layout for hosted social magazines | |
CN104007991B (en) | Application Program Interface layout adjustment method and device | |
CN110443140B (en) | Text positioning method, device, computer equipment and storage medium | |
GB2368953B (en) | Image forming systems and methods of forming an image | |
US20180314310A1 (en) | Self-service equipment energy saving control method and device | |
WO2017190438A1 (en) | Display control method and apparatus | |
US20170092176A1 (en) | Driving Method for Display Panel, Driving Circuit and Display Device | |
CN106874356B (en) | Geographical location information management method and device | |
CN106339086A (en) | Screen font adjustment method and device, and electronic equipment | |
CN104272375A (en) | Image display apparatus, image display method, and program | |
US9256782B2 (en) | Apparatus and method for processing document image to estimate luminance image from luminance component image adjusted according to estimated or largest luminance values and predetermined criterion | |
RU2014136554A (en) | METHODS AND SYSTEMS FOR DISPLAYING THEME MICROBlogs | |
CN109029918A (en) | A kind of gamma adjusts the method and device tied up a little | |
CN105632407A (en) | Display regulation method of AMPLED display screen and mobile terminal | |
EP2755176A3 (en) | Method of managing transportation fare, server perporming the same and system perporming the same | |
CN104999813A (en) | Printing equipment, and control method and device for same | |
CN109712567B (en) | Display data correction method, display driving method and display device | |
CN110705234B (en) | Method and device for adaptive typesetting and paging of standard form | |
CN102157000A (en) | Method and system for adjusting gradation of layout | |
CN108762485B (en) | Key font adjusting method and device, mobile terminal and storage medium | |
CN101980133A (en) | Method and system for detecting text selection region deviation of double-layer electronic file | |
CN105205036B (en) | A kind of method and electronic device of Auto-writing information | |
US20130278496A1 (en) | Electronic display device and method for adjusting user interface |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20110817 |