Claims
- 1. A method for recognizing characters in pixel image data comprising the steps of:
- selecting blocks of pixels from the pixel image data, said selecting step including, in order, the steps of outlining contours of connected components in the pixel image data, determining whether the outlined connected components include text units or non-text units, forming a hierarchical tree based on the outlined connected components, a first connecting step of selectively connecting text units widthwisely to form text lines, a second connecting step of vertically connecting a plurality of text lines formed in the first connecting step to form text blocks, at least one formed text block including a plurality of formed horizontal text lines, modifying the hierarchical tree based on the first and second connecting steps and designating as a descendent a connected component which is within a rectangle formed around another connected component;
- segmenting text blocks into lines of pixel image data;
- cutting characters from the line segmented in said segmenting step;
- recognizing characters cut in said cutting step; and
- storing characters recognized in said recognizing step in accordance with an order established in said block selecting step.
- 2. A method according to claim 1, further comprising the step of recognizing character images in blocks of text units.
- 3. A method according to claim 1, further comprising a pre-processing step in which the pixel image data is pre-processed.
- 4. A method according to claim 3, wherein said pre-processing step includes the step of image compression.
- 5. A method according to claim 3, wherein said pre-processing step includes the step of filtering so as to enhance pixel image data.
- 6. A method according to claim 1, further comprising the step of post-processing the characters recognized in said recognizing step.
- 7. A method according to claim 6, wherein said post-processing includes context checking so as to check one recognized character within a context of other recognized characters.
- 8. A method according to claim 1, further comprising the step of inputting pixel image data, wherein said input step includes the step of converting the pixel image data into binary pixel image data in the event that the pixel image data is not binary pixel image data.
- 9. A method according to claim 1, wherein said block selecting step includes the step of forming a hierarchical tree based on the connected components outlined in said outlining step, said hierarchical tree defining the order with which characters are stored in said storing step.
- 10. A method according to claim 9, further comprising the step of forming a rectangle around the connected components outlined in said outlining step.
- 11. A method according to claim 10, wherein the hierarchical tree is formed based on the position of the rectangles formed in said forming step.
- 12. A method according to claim 9, further comprising the step of modifying the hierarchial tree based on the first and second connecting steps.
- 13. A method according to claim 9, further comprising the step of classifying the connected contours as text units or non-text units.
- 14. A method according to claim 13, wherein said first and second connecting steps connect text units but do not connect non-text units.
- 15. A method according to claim 13, further comprising the step of white-contour tracing the interior of non-text units.
- 16. A method according to claim 15, further comprising the step of designating non-text units as tables based on the number of white contours contained therein.
- 17. A method according to claim 15, further comprising the step of recombining white contours that are not arranged in a grid.
- 18. A method according to claim 17, wherein non-text units are designated as tables based on recombination in said recombining step.
- 19. A method according to claim 13, further comprising calculating the fill rate of white contours in non-text units.
- 20. A method according to claim 19, wherein the non-text unit is designated as a table in the event that the fill rate is high.
- 21. A method according to claim 1, further comprising the step of printing by a printer an image processed by said method.
- 22. A method according to claim 1, further comprising the step of inputting the pixel image data by a scanner.
- 23. A method according to claim 1, further comprising the step of classifying as text and non-text: (i) hierarchical tree components; and (ii) their descendents.
- 24. A method for forming a text file of characters in pixel image data comprising the steps of:
- inputting pixel image data, wherein said inputting step includes the step of converting the pixel image data into binary pixel image data in the event that the pixel image data is not binary pixel image data;
- selecting blocks of pixel image data, said selecting step including, in order, the steps of outlining contours of connected components in the pixel image data, determining whether the outlined connected components include text units or non-text units based on the size of the outlined connected components, selectively connecting text units widthwisely to form text lines based on proximity of adjacent text units, and vertically connecting a plurality of the formed text lines to form text blocks based on proximity of adjacent text lines and on the position of non-text units between text lines, at least one formed text block having a plurality of the formed text lines;
- forming a hierarchical tree based on the connected components outlined in said outlining step and designating as a descendent a connected component which is within a rectangle formed around another connected component;
- modifying the hierarchical tree based on the connecting steps;
- segmenting text blocks into lines of pixel image data;
- cutting characters from the line segmented in said segmenting step;
- recognizing characters cut in said cutting step and deriving character codes based on said recognition; and
- storing the character codes in a computer text file in accordance with an order established by the modified hierarchical tree.
- 25. A method according to claim 24, further comprising a pre-processing step in which the pixel image data is pre-processed.
- 26. A method according to claim 25, wherein said pre-processing step includes the step of image compression.
- 27. A method according to claim 26, wherein said pre-processing step includes the step of enhancing pixel image data.
- 28. A method according to claim 24, further comprising the step of post-processing the characters recognized in said recognizing step, said post-processing including context checking so as to check on recognized character within a context of other recognized characters.
- 29. A method according to claim 24, further comprising the step of white-contour tracing the interior of non-text units.
- 30. A method according to claim 29, further comprising the step of appending a non-text designator to each non-text unit.
- 31. A method according to claim 30, further comprising the step of appending a table designator to a non-text unit, based on the number of white contours contained therein, so as to designate that the non-text unit is a table.
- 32. A method according to claim 30, further comprising the step of recombining white contours that are not arranged in a grid, wherein a table designator is appended to a non-text unit, based on the recombination rate in said recombining step, so as to designate that the non-text unit is a table.
- 33. A method according to claim 30, further comprising calculating the fill rate of white contours in non-text units, wherein a table designator is appended to a non-text unit, in the event that the fill rate is high, so as to designate that the non-text unit is a table.
- 34. A method according to claim 24, further comprising the step of printing by a printer an image processed by said method.
- 35. A method according to claim 24, further comprising the step of inputting the pixel image data by a scanner.
- 36. A method according to claim 24, further comprising the step of classifying as text and non-text: (i) hierarchical tree components; and (ii) their descendents.
- 37. An apparatus for recognizing characters in pixel image data, comprising:
- selecting means for selecting blocks of pixels from the pixel image data, said selecting means including outlining means for outlining contours of connected components in the pixel image data, determining means for determining whether the outlined connected components include text units or non-text units, tree forming means for forming a hierarchical tree based on the outlined connected components, first connecting means for selectively connecting text units widthwisely to form text lines, second connecting means for vertically connecting the formed text lines to form text blocks, at least one formed text block having a plurality of the formed text lines, and modifying means for modifying the hierarchical tree based on the connections performed by said first and second connecting means, wherein said tree forming means includes means for designating as a descendent a connected component which is within a rectangle formed around another connected component;
- segmenting means for segmenting text blocks into lines of pixel image data;
- cutting means for cutting characters from the line segmented by said segmenting means;
- recognizing means for recognizing characters cut by said cutting means; and
- storing means for storing characters recognized by said recognizing means in accordance with an order established by said block selecting means.
- 38. An apparatus according to claim 37, further comprising second recognizing means for recognizing character images in blocks of text units.
- 39. An apparatus according to claim 37, further comprising pre-processing means for pre-processing the pixel image data.
- 40. An apparatus according to claim 39, wherein said pre-processing means compresses the pixel image data.
- 41. An apparatus according to claim 39, wherein said pre-processing means includes filtering means which enhances pixel image data.
- 42. An apparatus according to claim 37, further comprising post-processing means for post-processing the characters recognized by said recognizing means.
- 43. An apparatus according to claim 42, wherein said post-processing means includes context checking means for checking one recognized character within a context of other recognized characters.
- 44. An apparatus according to claim 37, further comprising input means for inputting pixel image data, said input means including converting means for converting the pixel image data into binary pixel image data in the event that the pixel image data is not binary pixel image data.
- 45. An apparatus according to claim 37, wherein said block selecting means includes means for forming a hierarchical tree based on the connected components outlined by said outlining means, said hierarchical tree defining the order with which said storing means stores characters.
- 46. An apparatus according to claim 45, further comprising forming means for forming a rectangle around the connected components outlined by said outlining means.
- 47. An apparatus according to claim 46, wherein the hierarchical tree is formed based on the position of the rectangles formed by said forming means.
- 48. An apparatus according to claim 45, further comprising means for modifying the hierarchial tree based on said first connecting means and said second connecting means.
- 49. An apparatus according to claim 45, further comprising classifying means for classifying the connected contours as text units or non-text units.
- 50. An apparatus according to claim 49, wherein said first connecting means and said second connecting means connect text units but do not connect non-text units.
- 51. An apparatus according to claim 49, further comprising means for white-contour tracing the interior of non-text units.
- 52. An apparatus according to claim 51, further comprising designating means for designating non-text units as tables based on the number of white contours contained therein.
- 53. An apparatus according to claim 51, further comprising recombining means for recombining white contours that are not arranged in a grid.
- 54. An apparatus according to claim 53, wherein non-text units are designated as tables based on recombination by said recombining means.
- 55. An apparatus according to claim 49, further comprising calculating means for calculating the fill rate of white contours in non-text units.
- 56. An apparatus according to claim 55, wherein the non-text unit is designated as a table in the event that the fill rate is high.
- 57. An apparatus according to claim 37, further comprising a printer engine for printing an image processed by said apparatus.
- 58. An apparatus according to claim 37, further comprising a scanner for inputting the pixel image data.
- 59. Apparatus according to claim 37, further comprising means for classifying as text and non-text: (i) hierarchical tree components; and (ii) their descendents.
- 60. An apparatus for forming a text file of characters in pixel image data comprising:
- input means for inputting pixel image data, said input means including converting means for converting the pixel image data into binary pixel image data in the event that the pixel image data is not binary pixel data;
- selecting means for selecting blocks of pixel image data, said selecting means including outlining means for outlining contours of connected components in the pixel image data, determining means for determining whether the outlined connected components include text units or non-text units based on the size of the outlined connected components, first connecting means for selectively text units widthwisely to form text lines based on proximity of adjacent text units, and second connecting means for vertically connecting the formed text lines to form text blocks based on proximity of adjacent text lines and on the position of non-text units between text lines, at least one formed text block including a plurality of the formed text lines;
- forming means for forming a hierarchical tree based on the connected components outlined by said outlining means, and for designating as a descendent a connected component which is within a rectangle formed around another connected component;
- modifying means for modifying the hierarchical tree based on the connections performed by said first and second connecting means;
- segmenting means for segmenting text blocks into lines of pixel image data;
- cutting means for cutting characters from the line segmented by said segmenting means;
- recognizing means for recognizing characters cut by said cutting means and for deriving character codes based on said recognition; and
- storing means for storing the character codes in a computer text file in accordance with an order established by the modified hierarchical tree.
- 61. An apparatus according to claim 60, further comprising means for pre-processing the pixel image data.
- 62. An apparatus according to claim 61, wherein said pre-processing means compresses the pixel image data.
- 63. An apparatus according to claim 62, wherein said pre-processing means enhances the pixel image data.
- 64. An apparatus according to claim 60, further comprising post-processing means for post-processing the characters recognized by said recognizing means, said post-processing means including context checking means for checking one recognized character within a context of other recognized characters.
- 65. An apparatus according to claim 60, further comprising means for white-contour tracing the interior of non-text units.
- 66. An apparatus according to claim 65, further comprising appending means for appending a non-text designator to each non-text unit.
- 67. An apparatus according to claim 66, wherein a table designator is appended to a non-text unit, based on the number of white contours contained therein, so as to designate that the non-text unit is a table.
- 68. An apparatus according to claim 66, further comprising recombining means for recombining white contours that are not arranged in a grid, wherein a table designator is appended to a non-text unit, based on the recombination rate of said recombining means, so as to designate that the non-text unit is a table.
- 69. An apparatus according to claim 66, further comprising calculating means for calculating the fill rate of white contours in non-text units, wherein a table designator is appended to a non-text unit in the event that the fill rate is high, so as to designate that the non-text unit is a table.
- 70. An apparatus according to claim 60, further comprising a printer engine for printing an image processed by said apparatus.
- 71. An apparatus according to claim 60, further comprising a scanner for inputting the pixel image data.
- 72. Apparatus according to claim 60, further comprising means for classifying as text and non-text: (i) hierarchical tree components; and (ii) their descendents.
- 73. A method for recognizing characters in pixel image data comprising the steps of:
- selecting blocks of pixels from the pixel image data, said selecting step including the steps of outlining connected components in the pixel image data, forming a hierarchical tree based on the outlined connected components, connecting the outlined connected components to form text lines and text blocks, and modifying the hierarchical tree based on the connected and outlined connected components, wherein said forming step comprises the step of designating as a descendent a connected component which is within a rectangle formed around another connected component;
- segmenting text blocks into lines of pixel data by adaptively dividing the text blocks into at least one column based on a horizontal projection of pixel density across said at least one column;
- cutting characters from the line segmented in said segmenting step, said cutting step including a first cutting layer step in which non-touching and non-overlapping characters are cut from the line segment and at least one additional cutting layer step in which touching characters are cut, said additional cutting layer step being carried out in accordance with whether or not the line characters are monospaced;
- recognizing the characters cut in said cutting step; and
- storing characters recognized in said recognizing step in accordance with an order established in said block selecting step.
- 74. A method according to claim 73, further comprising the step of inputting pixel image data, wherein said input step includes the step of converting the pixel image data into binary pixel image data in the event that the pixel image data is not binary pixel image data.
- 75. A method according to claim 73, further comprising a pre-processing step in which said pixel image data is pre-processed.
- 76. A method according to claim 75, wherein said pre-processing step includes the step of image compression.
- 77. A method according to claim 75, wherein said pre-processing step includes the step of filtering so as to enhance the pixel image data.
- 78. A method according to claim 73, further comprising the step of post-processing the characters recognized in said recognizing step.
- 79. A method according to claim 78, wherein said post-processing includes context checking so as to check one recognized character within a context of other recognized characters.
- 80. A method according to claim 73, wherein said first cutting layer step includes the step of sparsely stepping through the line segment.
- 81. A method according to claim 73, wherein said additional cutting layer step is selectable in accordance with whether characteristics are known about the characters in the pixel image data.
- 82. A method according to claim 81, wherein said additional cutting layer step cuts based on statistics of a known character set.
- 83. A method according to claim 81, wherein said additional cutting layer step cuts in accordance with a rotated projection of pixel density.
- 84. A method according to claim 83, wherein the rotated projection of pixel density is obtained at an angle determined based on a vertical projection of pixel density.
- 85. A method according to claim 83, further comprising an intermediate cutting layer step between said first cutting layer and said at least one additional cutting layer step.
- 86. A method according to claim 85, wherein said intermediate cutting layer step includes the step of outlining overlapping pixel images in the line segment.
- 87. A method according to claim 86, further comprising the step of recombining characters cut in said intermediate cutting layer step in the event that the characters were cut inadvertently.
- 88. A method according to claim 87, wherein said recognizing step recognizes characters cut in said first cutting layer step before said additional cutting layer step, and wherein said additional cutting layer step is applied to characters that are not recognized in said recognizing step.
- 89. A method according to claim 88, further comprising the step of recombining the characters cut in said at least one additional cutting layer step in the event that characters are not recognized in said recognizing step.
- 90. A method according to claim 73, further comprising the step of printing by a printer an image processed by said method.
- 91. A method according to claim 73, further comprising the step of inputting the pixel image data by a scanner.
- 92. A method according to claim 73, further comprising the step of classifying as text and non-text: (i) hierarchical tree components; and (ii) their descendents.
- 93. A method for forming a text file of characters in pixel image data comprising the steps of:
- inputting pixel image data, wherein said inputting step includes the step of converting the pixel image data into binary pixel image data in the event that the pixel image data is not binary pixel image data;
- selecting blocks of pixel image data in accordance with whether the blocks of pixel image data are text blocks or non-text blocks;
- forming a hierarchical tree of the text and non-text blocks, wherein said forming step comprises the step of designating as a descendent a connected component in the pixel image data which is within a rectangle formed around another connected component;
- grouping together connected components in the pixel image data to form text lines and text blocks;
- modifying the hierarchical tree based on the grouped-together connected components;
- segmenting text blocks into lines of pixel image data by adaptively dividing the text blocks into a least one column based on a horizontal projection of pixel density across said at least one column;
- cutting characters from the line segmented in said segmenting step, said cutting step including a first cutting layer step in which non-touching and non-overlapping characters are cut from the line segment and at least one additional cutting layer step in which touching characters are cut, said additional cutting layer step being carried out in accordance with whether or not the line characters are monospaced;
- recognizing characters cut in said cutting step and deriving character codes based on said recognition; and
- storing the character codes in a computer text file in accordance with an order established by the modified hierarchical tree.
- 94. A method according to 93, further comprising a pre-processing step in which the pixel image data is pre-processed.
- 95. A method according to claim 94, wherein said pre-processing step includes the step of image compression.
- 96. A method according to claim 94, wherein said pre-processing step includes the step of enhancing pixel image data.
- 97. A method according to claim 93, further comprising the step of post-processing the characters recognized in said recognizing step, said post-processing including context checking so as to check one recognized character within a context of other recognized characters.
- 98. A method according to claim 93, wherein said first cutting layer step includes the step of sparsely stepping through the line segment.
- 99. A method according to claim 93, wherein said additional cutting layer step is selectable in accordance with whether characteristics are known about the characters in the pixel image data.
- 100. A method according to claim 99, wherein said additional cutting layer step cuts based on spacing statistics of a known character set.
- 101. A method according to claim 99, wherein said additional cutting layer step cuts in accordance with a rotated projection of pixel density.
- 102. A method according to claim 101, wherein the rotated projection of pixel density is obtained at an angle determined based on a vertical projection of pixel density.
- 103. A method according to claim 93, further comprising an intermediate cutting layer step between said first cutting layer and said at least one additional cutting layer step.
- 104. A method according to claim 103, wherein said intermediate cutting layer step includes the step of outlining overlapping pixel images in the line segment.
- 105. A method according to claim 104, further comprising the step of recombining characters cut in said intermediate cutting layer step in the event that the characters were cut inadvertently.
- 106. A method according to claim 105, wherein said recognizing step recognizes characters cut in said first cutting layer step before said additional cutting layer step, and wherein said additional cutting layer step is applied to characters that are not recognized in said recognizing step.
- 107. A method according to claim 106, further comprising the step of recombining the characters cut in said at least one additional cutting layer step in the event that characters are not recognized in said recognizing step.
- 108. A method according to claim 93, further comprising the step of printing by a printer an image processed by said method.
- 109. A method according to claim 93, further comprising the step of inputting the pixel image data by a scanner.
- 110. A method according to claim 93, further comprising the step of classifying as text and non-text: (i) the hierarchical tree components; and (ii) their descendents.
- 111. A method for forming a text file of characters in pixel image data, comprising the steps of:
- inputting pixel image data, wherein said inputting step includes the step of converting the pixel image data into binary pixel image data in the event that the pixel image data is not binary image data;
- selecting blocks of pixel image data, said selecting step including the steps of outlining contours of connected components in the pixel image data, determining whether the outlined connected components include text units or non-text units based on the size of the outlined connected components, selectively connecting text units widthwisely to form text lines based on proximity of adjacent text units, and vertically connecting the formed text lines to form text blocks based on proximity of adjacent text lines and on the position of non-text units between text lines, at least one formed text block including a plurality of the formed text lines;
- forming a hierarchical tree based on the connected components outlined in said outlining step, and designating as a descendent a connected component which is within a rectangle formed around another connected component;
- modifying the hierarchical tree based on the connected text units and text lines;
- segmenting text blocks into lines of pixel data by adaptively dividing text blocks into at least one column based on a horizontal projection of pixel density across said at least one column;
- cutting characters from the lines segmented in said segmenting step, said cutting step including a first cutting layer step in which non-touching and non-overlapping characters are cut from the line segment and at least one additional cutting layer step in which touching characters are cut;
- recognizing the characters cut in said cutting step and deriving character codes based on said recognition; and
- storing the character codes in a computer text file in accordance with an order established by the modified hierarchical tree.
- 112. A method according to 111, further comprising a pre-processing step in which the pixel image data is pre-processed.
- 113. A method according to claim 112, wherein said pre-processing step includes the step of image compression.
- 114. A method according to claim 113, wherein said pre-processing step includes the step of enhancing pixel image data.
- 115. A method according to claim 111, further comprising the step of post-processing the characters recognized in said recognizing step, said post-processing including context checking so as to check one recognized character within a context of other recognized characters.
- 116. A method according to claim 111, wherein said first cutting layer step includes the step of sparsely stepping through the line segment.
- 117. A method according to claim 111, wherein said additional cutting layer step is selectable in accordance with whether characteristics are known about the characters in the pixel image data.
- 118. A method according to claim 117, wherein said additional cutting layer step cuts based on spacing statistics of a known character set.
- 119. A method according to claim 117, wherein said additional cutting layer step cuts in accordance with a rotated projection of pixel density.
- 120. A method according to claim 119, wherein the rotated projection of pixel density is obtained at an angle determined based on a vertical projection of pixel density.
- 121. A method according to claim 111, further comprising an intermediate cutting layer step between said first cutting layer and said at least one additional cutting layer step.
- 122. A method according to claim 121, wherein said intermediate cutting layer step includes the step of outlining overlapping pixel images in the line segment.
- 123. A method according to claim 122, further comprising the step of recombining characters cut in said intermediate cutting layer step in the event that the characters were cut inadvertently.
- 124. A method according to claim 123, wherein said recognizing step recognizes characters cut in said first cutting layer step before said additional cutting layer step, and wherein said additional cutting layer step is applied to characters that are not recognized in said recognizing step.
- 125. A method according to claim 124, further comprising the step of recombining the characters cut in said at least one additional cutting layer step in the event that characters are not recognized in said recognizing step.
- 126. A method according to claim 111, further comprising the step of white-contour tracing the interior of non-text units.
- 127. A method according to claim 126, further comprising the step of appending a non-text designator to each non-text unit.
- 128. A method according to claim 127, wherein a table designator is appended to a non-text unit, based on the number of white contours contained therein, so as to designate that the non-text unit is a table.
- 129. A method according to claim 127, further comprising the step of recombining white contours that are not arranged in a grid, wherein a table designator is appended to a non-text unit, based on the recombination rate in said recombining step, so as to designate that the non-text unit is a table.
- 130. A method according to claim 127, further comprising the step of calculating the fill rate of white contours in non-text units, wherein a table designator is appended to a non-text unit, in the event that the fill rate is high, so as to designate that the non-text unit is a table.
- 131. A method according to claim 111, further comprising the step of printing by a printer an image processed by said method.
- 132. A method according to claim 111, further comprising the step of inputting the pixel image data by a scanner.
- 133. A method according to claim 111, further comprising the step of classifying as text and non-text: (i) hierarchical tree components; and (ii) their descendents.
- 134. An apparatus for recognizing characters in pixel image data comprising:
- selecting means for selecting blocks of pixels from the pixel image data, said selecting means including means for outlining connected components in the pixel image data, means for forming a hierarchical tree based on the outlined connected components, means for connecting the outlined connected components to form text lines and text blocks, and means for modifying the hierarchical tree based on the connected outlined connected components, wherein said forming means comprises means for designating as a descendent a connected component which is within a rectangle formed around another connected component;
- segmenting means for segmenting text blocks into lines of pixel data by adaptively dividing the text blocks into at least one column based on a horizontal projection of pixel density across said at least one column;
- cutting means for cutting characters from the line segmented by said segmenting means, said cutting means including a first cutting means for cutting a first layer of non-touching and non-overlapping characters from the line segment and at least one additional cutting means for cutting touching characters, said additional cutting layer step being carried out in accordance with whether or not the line characters are monospaced;
- recognizing means for recognizing the characters cut by said cutting means; and
- storing means for storing characters recognized by said recognizing means in accordance with an order established by said block selecting means.
- 135. An apparatus according to claim 134, further comprising input means for inputting pixel image data, said input means including converting means for converting the pixel image data into binary pixel image data in the event that the pixel image data is not binary pixel image data.
- 136. An apparatus according to claim 134, further comprising pre-processing means for pre-processing pixel image data.
- 137. An apparatus according to claim 136, wherein said pre-processing compresses said pixel image data.
- 138. An apparatus according to claim 136, wherein said pre-processing means includes filtering means which enhances the pixel image data.
- 139. An apparatus according to claim 134, further comprising post-processing means for post-processing the characters recognized by said recognizing means.
- 140. An apparatus according to claim 139, wherein said post-processing means includes context checking means for checking one recognized character within a context of other recognized characters.
- 141. An apparatus according to claim 134, wherein said first cutting means includes sparsely stepping means for sparsely stepping through the line segment.
- 142. An apparatus according to claim 134, wherein said additional cutting means is selectable in accordance with whether characteristics are known about the characters in the pixel image data.
- 143. An apparatus according to claim 142, wherein said additional cutting means makes cuts based on statistics of a known character set.
- 144. An apparatus according to claim 142, wherein said additional cutting means makes cuts in accordance with a rotated projection of pixel density.
- 145. An apparatus according to claim 144, wherein the rotated projection of pixel density is obtained at an angle determined based on a vertical projection of pixel density.
- 146. An apparatus according to claim 144, further comprising intermediate cutting means for cutting an intermediate layer after said first cutting means and before said at least one additional cutting means is employed.
- 147. An apparatus according to claim 146, wherein said intermediate cutting means includes outlining means for outlining overlapping pixel images in the line segment.
- 148. An apparatus according to claim 147, further comprising recombining means for recombining characters cut by said intermediate cutting means in the event that the characters were cut inadvertently.
- 149. An apparatus according to claim 148, wherein said recognizing means recognizes characters cut by said first cutting means before characters cut by said additional cutting means, and wherein said additional cutting means cuts characters that are not recognized by said recognizing means.
- 150. An apparatus according to claim 149, further comprising second recombining means for recombining the characters cut by said at least one additional cutting means in the event that characters are not recognized by said recognizing means.
- 151. An apparatus according to claim 134, further comprising a printer engine for printing an image processed by said apparatus.
- 152. An apparatus according to claim 134, further comprising a scanner for inputting the pixel image data.
- 153. Apparatus according to claim 134, further comprising means for classifying as text and non-text: (i) hierarchical tree components; and (ii) their descendents.
- 154. An apparatus for forming a text file of characters in pixel image data, comprising:
- input means for inputting pixel image data, said input means including converting means for converting the pixel image data into binary pixel image data in the event that the pixel image data is not binary pixel image data;
- selecting means for selecting blocks of pixel image data in accordance with whether the blocks of pixel image data are text blocks or non-text blocks;
- forming means for obtaining a hierarchical tree of the text and non-text blocks, wherein said forming means comprises means for designating as a descendent a connected component which is within a rectangle formed around another connected component;
- grouping means for grouping together connected components in the pixel image data to form text lines and text blocks;
- modifying means for modifying the hierarchical tree based on the grouped-together connected components;
- segmenting means for segmenting text blocks into lines of pixel image data by adaptively dividing the text blocks into at least one column based on a horizontal projection of pixel density across said at least one column;
- cutting means for cutting characters from the line segmented by said segmenting means, said cutting means including first cutting means for cutting a first layer of non-touching and non-overlapping characters from the line segment and at least one additional cutting means for cutting touching characters, said additional cutting layer step being carried out in accordance with whether or not the line characters are monospaced;
- recognizing means for recognizing characters cut by said cutting means and deriving character codes based on said recognition;
- and a computer text file in which the character codes are stored in accordance with an order established by the modified hierarchical tree.
- 155. An apparatus according to 154, further comprising pre-processing means for pre-processing the pixel image data.
- 156. An apparatus according to claim 155, wherein said pre-processing means compresses the pixel image data.
- 157. An apparatus according to claim 155, wherein said pre-processing means enhances the pixel image data.
- 158. An apparatus according to claim 154, further comprising post-processing means for post-processing the characters recognized by said recognizing means, said post-processing means including context checking means for checking one recognized character within a context of other recognized characters.
- 159. An apparatus according to claim 154, wherein said first cutting means includes sparsely stepping means for sparsely stepping through the line segment.
- 160. An apparatus according to claim 154, wherein said additional cutting means is employed based on whether characteristics are known about the characters in the pixel image data.
- 161. An apparatus according to claim 160, wherein said additional cutting means cuts based on spacing statistics of a known character set.
- 162. An apparatus according to claim 160, wherein said additional cutting means cuts in accordance with a rotated projection of pixel density.
- 163. An apparatus according to claim 162, wherein the rotated projection of pixel density is obtained at an angle determined based on a vertical projection of pixel density.
- 164. An apparatus according to claim 154, further comprising intermediate cutting means for cutting an intermediate layer between said first layer and said at least one additional layer.
- 165. An apparatus according to claim 164, wherein said intermediate cutting means includes outlining means for outlining overlapping pixel images in the line segment.
- 166. An apparatus according to claim 165, further comprising recombining means for recombining characters cut by said intermediate cutting means in the event that the characters were cut inadvertently.
- 167. An apparatus according to claim 166, wherein said recognizing means recognizes characters cut by said first cutting means before recognizing characters cut by said additional cutting means, and wherein said additional cutting means is applied to characters that are not recognized by said recognizing means.
- 168. An apparatus according to claim 167, further comprising second recombining means for recombining the characters cut by said at least one additional cutting means in the event that characters are not recognized by said recognizing means.
- 169. An apparatus according to claim 154, further comprising a printer engine for printing an image processed by said apparatus.
- 170. An apparatus according to claim 154, further comprising a scanner for inputting the pixel image data.
- 171. Apparatus according to claim 154, further comprising means for classifying as text and non-text: (i) hierarchical tree components; and (ii) their descendents.
- 172. An apparatus for forming a text file of characters in pixel image data, comprising:
- input means for inputting pixel image data, said input means including converting means for converting the pixel image data into binary pixel image data in the event that the pixel image data is not binary image data;
- selecting means for selecting blocks of pixel image data, said selecting means including outlining means for outlining contours of connected components in the pixel image data, determining means for determining whether the outlined connected components include text units or non-text units based on the size of the outlined connected components, first connecting means for selectively connecting text units widthwisely to form text lines based on proximity of adjacent text units, and second connecting means for vertically connecting formed text lines to form text blocks based on proximity of adjacent text lines and on the position of non-text units between text lines, at least one formed text block including a plurality of the formed text lines;
- forming means for forming a hierarchical tree based on the connected components outlined by said outlining means, wherein said forming means comprises means for designating as a descendent a connected component which is within a rectangle formed around another connected component;
- modifying means for modifying the hierarchical tree based on the connected text units and text lines;
- segmenting means for segmenting text blocks into lines of pixel data by adaptively dividing text blocks into at least one column based on a horizontal projection of pixel density across said at least one column;
- cutting means for cutting characters from the lines segmented by said segmenting means, said cutting means including first cutting means for cutting a first layer of non-touching and non-overlapping characters from the line segment and at least one additional cutting means for cutting an additional layer of touching characters;
- recognizing means for recognizing the characters cut by said cutting means and deriving character codes based on said recognition; and
- a computer text file for storing the character codes in accordance with an order established by the modified hierarchical tree.
- 173. An apparatus according to 172, further comprising pre-processing means for pre-processing the pixel image data.
- 174. An apparatus according to claim 173, wherein said pre-processing means compresses the pixel image data.
- 175. An apparatus according to claim 174, wherein said pre-processing means enhances the pixel image data.
- 176. An apparatus according to claim 172, further comprising post-processing means for post-processing the characters recognized by said recognizing means, said post-processing means including context checking means for checking one recognized character within a context of other recognized characters.
- 177. An apparatus according to claim 172, wherein said first cutting means includes sparsely stepping means for sparsely stepping through the line segment.
- 178. An apparatus according to claim 172, wherein said additional cutting means is employed based on whether characteristics are known about the characters in the pixel image data.
- 179. An apparatus according to claim 178, wherein said additional cutting means cuts based on spacing statistics of a known character set.
- 180. An apparatus according to claim 178, wherein said additional cutting means cuts in accordance with a rotated projection of pixel density.
- 181. An apparatus according to claim 180, wherein the rotated projection of pixel density is obtained at an angle determined based on a vertical projection of pixel density.
- 182. An apparatus according to claim 172, further comprising intermediate cutting means for cutting an intermediate layer after said first cutting means and before said at least one additional cutting means.
- 183. An apparatus according to claim 182, wherein said intermediate cutting means includes outlining means for outlining overlapping pixel images in the line segment.
- 184. An apparatus according to claim 183, further comprising first recombining means for recombining characters cut by said intermediate cutting means in the event that the characters were cut inadvertently.
- 185. An apparatus according to claim 184, wherein said recognizing means recognizes characters cut by said first cutting means before recognizing characters cut by said additional cutting means, and wherein said additional cutting means is applied to characters that are not recognized by said recognizing means.
- 186. An apparatus according to claim 185, further comprising second recombining means for recombining the characters cut by said at least one additional cutting means in the event that characters are not recognized by said recognizing means.
- 187. An apparatus according to claim 172, further comprising means for white-contour tracing the interior of non-text units.
- 188. An apparatus according to claim 187, further comprising appending means for appending a non-text designator to each non-text unit.
- 189. An apparatus according to claim 188, wherein a table designator is appended to a non-text unit, based on the number of white contours contained therein, so as to designate that the non-text unit is a table.
- 190. An apparatus according to claim 188, further comprising means for recombining white contours that are not arranged in a grid, wherein a table designator is appended to a non-text unit, based on the recombination rate of said recombining means, so as to designate that the non-text unit is a table.
- 191. An apparatus according to claim 188, further comprising calculating means for calculating the fill rate of white contours in non-text units, wherein a table designator is appended to a non-text unit, in the event that the fill rate is high, so as to designate that the non-text unit is a table.
- 192. An apparatus according to claim 172, further comprising a printer engine for printing an image processed by said apparatus.
- 193. An apparatus according to claim 172, further comprising a scanner for inputting the pixel image data.
- 194. Apparatus according to claim 172, further comprising means for classifying as text and non-text: (i) hierarchical tree components; and (ii) their descendents.
- 195. Computer executable process steps stored on a computer readable medium, said process steps for recognizing characters in pixel image data, said process steps comprising:
- a selecting step to select blocks of pixels from the pixel image data, the selecting step including, in order, (i) an outlining step to outline contours of connected components in the pixel image data, (ii) a determining step to determine whether the outlined connected components include text units or non-text units, (iii) a forming step to form a hierarchical tree based on the outlined connected components, (iv) a first connecting step to selectively connect text units widthwisely to form text lines, (v) a second connecting step to vertically connect a plurality of text lines formed in the first connecting step to form text blocks, at least one formed text block including a plurality of formed horizontal text lines, and (vi) a modifying step to modify the hierarchical tree based on the first and second connecting steps, wherein said forming step comprises a designating step to designate as a descendent a connected component which is within a rectangle formed around another connected component;
- a segmenting step to segment text blocks into lines of pixel image data;
- a cutting step to cut characters from the line segmented in said segmenting step;
- a recognizing step to recognize characters cut in said cutting step; and
- a storing step to store characters recognized in said recognizing step in accordance with an order established in said block selecting step.
- 196. A computer executable process according to claim 195, further comprising a classifying step to classify as text and non-text: (i) hierarchical tree components; and (ii) their descendents.
Parent Case Info
This application is a division of application Ser. No. 07/873,012 filed Apr. 24, 1992.
US Referenced Citations (13)
Foreign Referenced Citations (1)
Number |
Date |
Country |
8635091 |
Apr 1992 |
AUX |
Divisions (1)
|
Number |
Date |
Country |
Parent |
873012 |
Apr 1992 |
|