Claims
- 1. A method for smoothing a jagged outline of a text image, the method comprising:
locating horizontal and vertical edges of the text image; smoothing the horizontal and vertical edges; locating slanted edges of the text image; and smoothing the slanted edges.
- 2. The method of claim 1, wherein smoothing horizontal and vertical edges further comprises providing gray scale reconstruction of each edge pixel ink level of the horizontal and vertical edges using a multiple-bit edge pattern.
- 3. The method of claim 1, wherein smoothing horizontal and vertical edges further comprises providing gray scale reconstruction of each edge pixel ink level of the horizontal and vertical edges using a one-bit edge pattern.
- 4. The method of claim 1, wherein for each pixel of the slanted edge, locating slanted edges further comprises identifying a local text outline pattern of the pixel, and wherein smoothing slanted edges further comprises identifying an ink level adjustment value for the pixel.
- 5. The method of claim 4, wherein smoothing slanted edges further comprises mending holes and removing isolated pixels of ink.
- 6. The method of claim 1, wherein the jagged outline of the text image is generated by a text enhancement system, such that each pixel around the jagged outline is identified by a tag given by the text enhancement system output.
- 7. The method of claim 1, wherein locating slanted edges further comprises, for each pixel of the jagged outline:
centering a 3×3 window on the outline pixel; determining for each pixel of the 3×3 window if the window pixel is an ink pixel or part of a background, wherein the ink pixel is part of the text image; identifying a pattern for the 3×3 window; assigning a smoothing level associated with the pattern; and replacing the ink value of the centered outline pixel by a processed ink value, the processed ink value associated with the smoothing level.
- 8. The method of claim 7, wherein determining if the window pixel is an ink pixel further comprises choosing a threshold ink level value, such that if an ink value of the window pixel is greater than or equal to the threshold ink value, then the window pixel is an ink pixel, and if the ink value of the window pixel is less than the threshold ink value, then the window pixel is a background pixel.
- 9. The method of claim 7, wherein patterns that are related to one another through a rotation or a reflection or a complement are assigned the same smoothing level, thereby reducing the number of distinct patterns.
- 10. Apparatus for smoothing a jagged outline of a text image, the apparatus comprising:
means for locating horizontal and vertical edges of the text image; means for smoothing the horizontal and vertical edges; means for locating slanted edges of the text image; and means for smoothing the slanted edges.
- 11. The apparatus of claim 10, wherein the means for smoothing horizontal and vertical edges further comprises means for providing gray scale reconstruction of each edge pixel ink level of the horizontal and vertical edges using a multiple-bit edge pattern.
- 12. The apparatus of claim 11, wherein the means for smoothing horizontal and vertical edges further comprises means for providing gray scale reconstruction of each edge pixel ink level of the horizontal and vertical edges using a one-bit edge pattern.
- 13. The apparatus of claim 10, wherein for each pixel of the slanted edge, the means for locating slanted edges further comprises means for identifying a local text outline pattern of the pixel, and wherein the means for smoothing slanted edges further comprises means for identifying an ink level adjustment value for the pixel.
- 14. The apparatus of claim 13, wherein the means for smoothing slanted edges also mends holes and removes isolated pixels of ink.
- 15. The apparatus of claim 10, wherein the jagged outline of the text image is generated by a text enhancement system, such that each pixel around the jagged outline is identified by a tag given by the text enhancement system output.
- 16. The apparatus of claim 10, wherein the means for locating slanted edges further comprises, for each pixel of the jagged outline:
means for centering a 3×3 window on the outline pixel; means for determining for each pixel of the 3×3 window if the window pixel is an ink pixel or part of a background, wherein the ink pixel is part of the text image; means for identifying a pattern for the 3×3 window; means for assigning a smoothing level associated with the pattern; and means for replacing the ink value of the centered outline pixel by a processed ink value, the processed ink value associated with the smoothing level.
- 17. The apparatus of claim 16, wherein means for determining if the window pixel is an ink pixel further comprises means for choosing a threshold ink level value, such that if an ink value of the window pixel is greater than or equal to the threshold ink value, then the window pixel is an ink pixel, and if the ink value of the window pixel is less than the threshold ink value, then the window pixel is a background pixel.
- 18. The apparatus of claim 16, wherein patterns that are related to one another through a rotation or a reflection or a complement are assigned a same smoothing level, thereby reducing a number of distinct patterns.
- 19. A method for determining and smoothing a slanted edge of a jagged outline of a text image, for each pixel of the jagged outline, the method comprising:
centering a 3×3 window on the outline pixel; determining for each pixel of the 3×3 window if the window pixel is an ink pixel or part of a background, wherein the ink pixel is part of the text image; identifying a pattern for the 3×3 window; assigning a smoothing level associated with the pattern; and replacing the ink value of the centered outline pixel by a processed ink value, the processed ink value associated with the smoothing level.
- 20. The method of claim 19, wherein determining if the window pixel is an ink pixel further comprises choosing a threshold ink level value, such that if an ink value of the window pixel is greater than or equal to the threshold ink value, then the window pixel is an ink pixel, and if the ink value of the window pixel is less than the threshold ink value, then the window pixel is a background pixel.
- 21. The method of claim 19, wherein patterns that are related to one another through a rotation or a reflection or a complement are assigned a same smoothing level, thereby reducing a number of distinct patterns.
- 22. The method of claim 19, further comprising mending holes and removing isolated pixels of ink.
REFERENCE TO RELATED APPLICATIONS
[0001] This application is a continuation of U.S. application Ser. No. 09/721,404, filed Nov. 21, 2000, now U.S. Pat. No. ______, which is a continuation-in-part of U.S. application Ser. No. 09/111,633, filed Jul. 7, 1998, now U.S. Pat. No. 6,310,697.
Continuations (1)
|
Number |
Date |
Country |
| Parent |
09721404 |
Nov 2000 |
US |
| Child |
10317470 |
Dec 2002 |
US |
Continuation in Parts (1)
|
Number |
Date |
Country |
| Parent |
09111633 |
Jul 1998 |
US |
| Child |
09721404 |
Nov 2000 |
US |