JPH10192790A - Image shaping device - Google Patents

Image shaping device

Info

Publication number
JPH10192790A
JPH10192790A JP9011916A JP1191697A JPH10192790A JP H10192790 A JPH10192790 A JP H10192790A JP 9011916 A JP9011916 A JP 9011916A JP 1191697 A JP1191697 A JP 1191697A JP H10192790 A JPH10192790 A JP H10192790A
Authority
JP
Japan
Prior art keywords
character
image
postal code
reading
aspect ratio
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.)
Granted
Application number
JP9011916A
Other languages
Japanese (ja)
Other versions
JP3724906B2 (en
Inventor
Yukihisa Uchiyama
幸央 内山
Toshihiro Suzuki
俊博 鈴木
Hideaki Yamagata
秀明 山形
Shinobu Yamamoto
忍 山本
Toshio Miyazawa
利夫 宮澤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP01191697A priority Critical patent/JP3724906B2/en
Publication of JPH10192790A publication Critical patent/JPH10192790A/en
Application granted granted Critical
Publication of JP3724906B2 publication Critical patent/JP3724906B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Sorting Of Articles (AREA)
  • Character Input (AREA)

Abstract

PROBLEM TO BE SOLVED: To make it possible to read vertically written postal code numbers and to improve the efficiency of sorting work by reading and storing the character images of the postal code number parts, then segmenting the postal code numbers by one character each, deciding whether vertical writing or horizontal writing from the aspect ratio of respective characteristic images and rotating the characters according to the results of the decision. SOLUTION: The postal code number parts are read as image patterns by an image reading section 101 constituted of optical sensors and are temporarily stored in an image memory section 102 when the postal code numbers are read prior to sorting of postal items. The individual characters are then segmented from the read images in a character segmenting section 103 and the results thereof are sent to a character direction deciding section 104. The character directions are decided in accordance with the ratios of the heights to widths of the characters from individual pieces of the segmented rectangular information in this character direction deciding section 104. Numeral patterns are generally smaller in the width than the height and, therefor, the characters are decided to be vertical writing if the aspect ratio is large and to be horizontal writing when the aspect ratio is small. The character images are rotated at need by an image rotating section 105 and are outputted to the ensuing stage.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明が属する技術分野】本発明は,郵便物に記載され
た郵便番号を読み取り,該郵便番号の記載方向を判定
し,必要に応じて郵便番号を回転するなどの画像整形処
理を実行する画像整形装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus for reading a postal code written on a postal matter, determining a writing direction of the postal code, and performing an image shaping process such as rotating the postal code if necessary. Related to a shaping device.

【0002】[0002]

【従来の技術】従来より,郵便物を区分する際に,その
郵便物に記載されている郵便番号を読み取り,該読取情
報から郵便番号を認識し,高速に区分する自動区分装置
が知られている。また,近い将来には,郵便番号を現行
の5桁の桁数からさらに増やす新しい郵便番号制度が予
定されている。
2. Description of the Related Art Conventionally, when sorting mail items, there is known an automatic sorting apparatus which reads a postal code written on the mail item, recognizes the postal code from the read information, and sorts the mail at high speed. I have. In the near future, a new postal code system is planned to increase the postal code from the current five-digit number.

【0003】また,上記の新しい郵便番号制度が実施さ
れた場合には,郵便番号を読み取った後,対応するバー
コードを郵便物上に印字する方式が検討されている。こ
のように,郵便番号による郵便物区分け処理の自動化が
さらに進み,その果たす役割は大いに期待されている。
Further, when the new postal code system is implemented, a method of reading a postal code and then printing a corresponding bar code on a postal matter has been studied. As described above, automation of postal code sorting processing by postal code is further advanced, and its role is greatly expected.

【0004】[0004]

【発明が解決しようとする課題】しかしながら,上記に
示されるような従来の技術にあっては,現行の区分装置
を用いて郵便番号による郵便物の区分処理を行うために
は,郵便番号を横書きで記載しなければならないという
制約があるため,郵便番号が縦書きで記載された場合に
は手作業による区分けを行わなければならず,区分作業
の効率を阻害するという問題点があった。
However, in the prior art as described above, in order to sort postal codes by postal code using a current sorting apparatus, the postal code must be written horizontally. Therefore, if the postal code is written in vertical writing, the postal code must be manually sorted, which hinders the efficiency of the sorting operation.

【0005】さらに,上記問題点を詳述する。特に日本
語ワードプロセッサを利用して宛名を印字する場合に
は,縦書き郵便番号で印字される場合が多い。たとえば
宛名印字機能がない(文書全体を横書き,あるいは縦書
きで印字で印字する)ワードプロセッサを使用している
が,住所を手書き風フォントで印字したいなどの理由
で,郵便番号ごと宛名全体を縦書きで印字するケースが
ある。
Further, the above problems will be described in detail. In particular, when printing an address using a Japanese word processor, the address is often printed using a vertical zip code. For example, a word processor that does not have an address printing function (prints the entire document horizontally or vertically) is used, but the entire postal code is vertically written for each postal code because you want to print the address in a handwritten font. There is a case to print with.

【0006】また,宛名印字機能がある(郵便番号を横
書き,住所を縦書きで印字できる)ワードプロセッサを
使用しているものの,郵便番号の入力桁数が5に固定さ
れており,桁数が増える新制度には対応することができ
ない。そこで,住所部分の先頭行に郵便番号を入力し,
住所の一部として縦書きで印字する他のケースもある。
Although a word processor having an address printing function (capable of printing a postal code horizontally and printing an address vertically) is used, the number of input digits of the postal code is fixed to 5 and the number of digits increases. The new system cannot be accommodated. Therefore, enter the postal code in the first line of the address part,
There are other cases where vertical printing is used as part of the address.

【0007】上記いずれのケースにおいても,その印字
結果は,たとえば図5に示すようなものとなるため,手
作業で区分しなければならず,作業効率を低下させてい
た。
In any of the above cases, the printing result is as shown in FIG. 5, for example, so that it is necessary to manually separate the printing results, thereby reducing the work efficiency.

【0008】本発明は,上記に鑑みてなされたものであ
って,現行の郵便番号による郵便物区分装置の前処理と
して利用可能で,縦書きの郵便番号の読み取りを実現
し,郵便番号の方向性が異なった場合であっても,郵便
番号による区分作業の効率向上を図ることを目的とす
る。
The present invention has been made in view of the above, and can be used as a pre-processing of a mail sorting apparatus based on a current postal code, realizes reading of a vertically written postal code, and realizes a postal code direction. It is an object of the present invention to improve the efficiency of sorting work by zip code even if the gender is different.

【0009】[0009]

【課題を解決するための手段】上記の目的を達成するた
めに,請求項1に係る画像整形装置は,郵便番号を読み
取り,該郵便番号の記載方向を判定し,必要に応じて前
記郵便番号を回転する画像整形装置であって,郵便物に
記載された郵便番号部分の文字画像を所定方向に読み取
る画像読取手段と,前記画像読取手段で読み取った画像
を格納する画像格納手段と,前記画像格納手段に格納さ
れている画像を読み出し,該文字画像から郵便番号を一
文字ずつ切り出す文字切り出し手段と,前記文字切り出
し手段で切り出された各文字画像の縦横比に基づいて,
文字方向を判定する文字方向判定手段と,前記文字方向
判定手段の判定結果に基づいて,前記文字切り出し手段
で切り出された各文字画像を回転する画像回転手段と,
を備えたものである。
In order to achieve the above object, an image shaping apparatus according to claim 1 reads a zip code, determines a writing direction of the zip code, and if necessary, the zip code. Image reading means for reading a character image of a zip code part written on a postal matter in a predetermined direction, image storage means for storing the image read by the image reading means, A character extracting means for reading out the image stored in the storing means and extracting a zip code from the character image one character at a time, and an aspect ratio of each character image extracted by the character extracting means.
Character direction determining means for determining a character direction, and image rotating means for rotating each character image cut out by the character cutting means based on the determination result of the character direction determining means;
It is provided with.

【0010】すなわち,郵便物に記載された郵便番号部
分の文字画像を所定方向に読み取って一時的に格納した
後に,その画像を読み出し,該画像から郵便番号を一文
字ずつ切り出し,切り出された各文字画像の縦横比から
文字方向が縦であるか横であるかを判定すると共に,文
字方向の判定結果に応じて判定された文字を回転する。
これにより,たとえば郵便番号が縦書きで記載された場
合,該縦書きと判定した後に,横書きに回転し,文字方
向を変えることにより,現行の郵便番号による郵便物区
分装置の前処理として利用可能な装置の提供が可能とな
る。
That is, a character image of a postal code portion described in a postal matter is read in a predetermined direction, temporarily stored, read out, and the postal code is cut out from the image one character at a time. Whether the character direction is vertical or horizontal is determined from the aspect ratio of the image, and the determined character is rotated according to the determination result of the character direction.
Thus, for example, when a postal code is written in vertical writing, it can be used as pre-processing of the postal mail sorting device based on the current postal code by turning to horizontal writing and changing the character direction after judging the vertical writing. It is possible to provide a simple device.

【0011】また,請求項2に係る画像整形装置は,郵
便番号を読み取り,該郵便番号の記載方向を判定し,必
要に応じて前記郵便番号を回転する画像整形装置であっ
て,郵便物に記載された郵便番号部分の文字画像を水平
方向に読み取る画像読取手段と,前記画像読取手段で読
み取った画像を格納する画像格納手段と,前記画像格納
手段に格納されている画像を読み出し,該文字画像から
郵便番号を一文字ずつ切り出す文字切り出し手段と,前
記文字切り出し手段で切り出された各文字画像の縦横比
が予め決められた基準値に対し,縦横比が大きければ縦
書き,小さければ横書きであるとして,文字方向を判定
する文字方向判定手段と,前記文字方向判定手段の判定
結果が,縦書きであると判定された各文字画像を90度
回転する画像回転手段と,を備えたものである。
According to a second aspect of the present invention, there is provided an image shaping apparatus for reading a postal code, determining a writing direction of the postal code, and rotating the postal code as necessary. Image reading means for reading a character image of the written zip code portion in the horizontal direction, image storage means for storing the image read by the image reading means, and an image stored in the image storage means for reading the character image. A character extracting means for extracting a zip code from an image one character at a time, and the character image extracted by the character extracting means is written vertically if the aspect ratio is large with respect to a predetermined reference value. A character direction determining means for determining a character direction, and an image rotation for rotating each character image determined to be vertical writing by 90 degrees as a result of the determination by the character direction determining means. Those with a stage, a.

【0012】すなわち,郵便物に記載された郵便番号部
分の文字画像を水平方向に読み取って一時的に格納した
後に,その画像を読み出し,該画像から郵便番号を一文
字ずつ切り出し,切り出された各文字画像の縦横比から
文字方向が縦であるか横であるかを判定し,文字方向の
判定結果が縦書きであると判定された文字を90度回転
回転することにより,郵便番号が縦書きで記載された郵
便番号を横書きに並び変えることができ,現行の郵便番
号による郵便物区分装置の前処理として利用可能な装置
の提供が可能となる。
That is, after a character image of a postal code portion described in a postal matter is read in the horizontal direction and temporarily stored, the image is read out, the postal code is cut out from the image one by one, and each cut out character is read out. By determining whether the character direction is vertical or horizontal based on the aspect ratio of the image, and by rotating the character determined to be vertical in the character direction determination result by 90 degrees, the postal code can be written vertically. The described zip codes can be rearranged horizontally, and a device can be provided which can be used as a pre-processing of the mail sorting device using the current zip code.

【0013】前記文字方向判定手段は,郵便番号の所定
の桁を文字方向の判定情報として使用しないことを特徴
とする請求項1または2に記載の画像整形装置。
3. An image shaping apparatus according to claim 1, wherein said character direction judging means does not use a predetermined digit of the postal code as character direction judging information.

【0014】すなわち,郵便番号の所定の桁を文字方向
の判定情報として使用しないことにより,たとえば郵便
番号部分に存在する区切り文字を判定用文字に含む場合
に生じる縦横比の逆転を回避し,その誤判定を排除する
ことができる。
That is, by not using a predetermined digit of the postal code as the character direction determination information, it is possible to avoid the inversion of the aspect ratio which occurs when the delimiter character existing in the postal code portion is included in the determination character. Erroneous determination can be eliminated.

【0015】[0015]

【発明の実施の形態】以下,本発明の画像整形装置につ
いて添付図面を参照し,〔実施の形態1〕,〔実施の形
態2〕の順に詳細に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, an image shaping apparatus according to the present invention will be described in detail in the order of [Embodiment 1] and [Embodiment 2] with reference to the accompanying drawings.

【0016】〔実施の形態1〕 (実施の形態1の構成)図1は,実施の形態1に係るシ
ステム構成を示すブロック図である。図において,10
1は光学センサ101で構成され,紙面上の郵便番号部
分を画像パターンとして読み取る画像読取手段としての
画像読取部,102は画像読取部101で読み取られた
画像を記憶する画像格納手段としての画像記憶部,10
3は上記画像に含まれる個々の文字を切り出す文字切り
出し手段としての文字切り出し部,104は文字切り出
し部103により切り出された個々の文字の矩形情報に
おける高さと幅の比(縦横比)に基づいて,文字方向を
判定する文字方向判定手段としての文字方向判定部,1
05は必要に応じ,上記切り出された文字画像を回転
し,次工程(自動区分装置)へ出力する画像回転手段と
しての画像回転部である。
[First Embodiment] (Configuration of First Embodiment) FIG. 1 is a block diagram showing a system configuration according to a first embodiment. In the figure, 10
Reference numeral 1 denotes an optical sensor 101, an image reading unit as an image reading unit that reads a postal code portion on a paper surface as an image pattern, and 102, an image storage unit as an image storage unit that stores an image read by the image reading unit 101. Part, 10
Reference numeral 3 denotes a character cutout unit serving as a character cutout unit for cutting out individual characters included in the image, and 104 denotes a character-to-character ratio extracted from the character cutout unit 103 based on the height-width ratio (aspect ratio) in the rectangular information. Character direction determining unit as character direction determining means for determining a character direction, 1
Reference numeral 05 denotes an image rotating unit as image rotating means for rotating the cut-out character image as required and outputting it to the next step (automatic sorting device).

【0017】(実施の形態1の動作)上記の構成におい
て,まず,画像読取部101により紙面上の郵便番号部
分を画像パターンとして読み取る。この読み取られた画
像は画像記憶部102に一時的に記憶される。さらに,
文字切り出し部103は上記画像から画像中に含まれる
個々の文字を切り出し,この結果を文字方向判定部10
4に送る。
(Operation of the First Embodiment) In the above configuration, first, the image reading section 101 reads the postal code portion on the paper as an image pattern. The read image is temporarily stored in the image storage unit 102. further,
The character cutout unit 103 cuts out individual characters included in the image from the image, and outputs the result to the character direction determination unit 10.
Send to 4.

【0018】文字方向判定部104では,上記切り出さ
れた個々の矩形情報(高さ,幅)から,文字の高さと幅
の比(縦横比)に基づいて,文字方向を判定する。画像
回転部105では,必要に応じて切り出された文字画像
を回転し,次工程(図示せず)へ出力する。たとえば文
字画像を区分装置内の画像記憶部に直接送ってもよい。
また,一旦,紙上に印字させるようにしてもよい。
The character direction determination unit 104 determines the character direction based on the ratio of the height and width of the character (aspect ratio) from the individual rectangular information (height and width) cut out. The image rotation unit 105 rotates the cut-out character image as necessary, and outputs the rotated character image to the next step (not shown). For example, the character image may be sent directly to the image storage unit in the sorting device.
Further, the information may be temporarily printed on paper.

【0019】ここで,上記構成・動作を踏まえ,実施の
形態1の特徴となる動作について説明する。まず,郵便
物上の郵便番号部分を,所定の方向に読み取る。この場
合,たとえば水平行となる向きに読み取る。このように
して読み取られる画像パターンは,横書きか縦書きかに
よって,図2の(a),(b)に示すようなパターンと
なる。
Here, an operation that is a feature of the first embodiment will be described based on the above configuration and operation. First, the postal code portion on the mail is read in a predetermined direction. In this case, for example, reading is performed in a direction parallel to the horizontal line. The image pattern read in this manner is a pattern as shown in FIGS. 2A and 2B depending on whether the image is written horizontally or vertically.

【0020】なお,上記の段階では文字方向を決定せ
ず,このまま個々の文字を切り出し,それぞれの文字に
ついて得られた高さと幅とから,縦横比(幅/高さ)を
算出する。一般に,数字パターンは高さに比べて幅が小
さいので,縦横比が大きければ縦書き,小さければ横書
きであるとする。
In the above stage, the character direction is not determined, and individual characters are cut out as they are, and the aspect ratio (width / height) is calculated from the height and width obtained for each character. Generally, since the width of a number pattern is smaller than the height, it is assumed that if the aspect ratio is large, vertical writing is performed, and if the aspect ratio is small, horizontal writing is performed.

【0021】したがって,この実施の形態では各文字の
縦横比の算術平均が,あるしきい値Tよりも大きい場合
に縦書きと判定する。たとえば図2(a)に示すよう
に,回転しないときの数字パターン「2」「0」の縦横
比をすべて2/3とすると,この場合の縦横比平均は2
/3となる。一方,図2(b)に示すように,90度回
転したときの数字パターン「2」「0」の縦横比をすべ
て3/2とすると,この場合の縦横比平均は3/2とな
る。ここで,しきい値T=1とすれば,前者は横書きの
並び,後者は縦書きの並びであると判定することができ
る。
Therefore, in this embodiment, when the arithmetic average of the aspect ratio of each character is larger than a certain threshold value T, it is determined that the character is written vertically. For example, as shown in FIG. 2A, assuming that the aspect ratios of the numeral patterns "2" and "0" when not rotating are all 2/3, the aspect ratio average in this case is 2/3.
/ 3. On the other hand, as shown in FIG. 2B, assuming that the aspect ratios of the numeral patterns "2" and "0" when rotated 90 degrees are all 3/2, the aspect ratio average in this case is 3/2. Here, if the threshold value T = 1, it can be determined that the former is a row of horizontal writing and the latter is a row of vertical writing.

【0022】また,上記において,文字方向の判定,つ
まり,縦書きか横書きかの判定に縦横比平均以外の基準
を用いてもよい。また,たとえば縦横比の最小値や最大
値,あるいはメジアンに対するしきい値を設け,該しき
い値に基づいて縦書きか横書きかの判定する処理に適用
することもできる。
In the above description, a criterion other than the average of the aspect ratio may be used for the determination of the character direction, that is, the determination of the vertical writing or the horizontal writing. Further, for example, a threshold value for the minimum value or the maximum value of the aspect ratio or the median is provided, and the present invention can be applied to a process of judging vertical writing or horizontal writing based on the threshold.

【0023】続いて,縦書きの並びであると判定された
場合に,切り出された各文字画像を90度回転させる。
つまり,この処理により,図3に示すように,縦書きを
横書きの並びへと変換することができる。これにより,
縦書きの郵便番号を横書きの並びに変換すれば,次工程
の区分装置で自動区分させることが可能となる。
Subsequently, when it is determined that the characters are arranged vertically, the extracted character images are rotated by 90 degrees.
That is, by this processing, as shown in FIG. 3, vertical writing can be converted into a horizontal writing arrangement. This gives
If the vertical postal code is converted into a horizontal postal code, it can be automatically sorted by the sorting device in the next process.

【0024】(実施の形態1の効果〕したがって,パタ
ーン認識手段を持たない比較的小さな構成で,郵便番号
を横並びに変換する前処理手段が提供されるので,区分
装置には大幅な変更を加えることなく,縦書きの郵便番
号を自動処理することができる。
(Effect of First Embodiment) Therefore, a preprocessing means for converting postal codes side by side is provided with a relatively small configuration having no pattern recognition means. Without the need, vertical postal codes can be automatically processed.

【0025】〔実施の形態2〕この実施の形態2では,
郵便番号の所定の桁を文字方向の判定には用いない例に
ついて説明する。
[Embodiment 2] In this embodiment 2,
An example will be described in which a predetermined digit of the postal code is not used for determining the character direction.

【0026】郵便番号の書き方によっては,4桁目に区
切り文字が入ることがある。たとえば図4に示すよう
に,マイナス記号で区切って,「222−0000」の
ように書く場合がある。
Depending on how to write the postal code, a delimiter may be inserted in the fourth digit. For example, as shown in FIG. 4, there is a case where the character is separated by a minus sign and written as “222-0000”.

【0027】マイナスの文字パターンは回転しないとき
に横に細長い。その縦横比を5とし,前述の実施の形態
1に従えば,郵便番号全体の縦横比平均は(7×2/3
+5)/8=29/24>1となるので,横書きである
にもかかわらず縦書きの並びであると誤判定されること
になる。
The negative character pattern is horizontally elongated when not rotating. Assuming that the aspect ratio is 5, and according to the first embodiment, the average aspect ratio of the entire postal code is (7 × 2/3)
+5) / 8 = 29/24> 1, so that it is erroneously determined that the lines are vertically written despite horizontal writing.

【0028】一方,縦書きの区切り文字は共通の書き方
があるとはいえず,回転せずに「−」をそのまま印字す
るワードプロセッサもあれば,縦書きを考慮して回転パ
ターン「|」を印字するワードプロセッサもある。ま
た,手書きの場合も上記の同様の書き方が混在する。す
なわち,区切り文字の縦横比は,文字方向の判定には寄
与せず,ノイズ情報であるといえる。
On the other hand, the vertical writing delimiter cannot be said to have a common writing style, and some word processors print "-" as it is without rotation, and print a rotation pattern "|" in consideration of vertical writing. Some word processors do this. In the case of handwriting, the same writing method as described above is mixed. That is, the aspect ratio of the delimiter does not contribute to the determination of the character direction, and can be regarded as noise information.

【0029】そこで,区切り文字が書かれ得る4桁目の
文字の縦横比を文字方向判定から除外すれば,他の桁に
は数字しかないので,より精度良く文字方向を判定する
ことができる。
Therefore, if the aspect ratio of the fourth digit character in which a delimiter character can be written is excluded from the character direction determination, the character direction can be determined with higher precision because there are only digits in the other digits.

【0030】(実施の形態2の効果〕したがって,郵便
番号の所定の桁(この場合,マイナス記号などの区切り
文字)を文字方向の判定情報として使用しないため,郵
便番号部分に存在する区切り文字を判定用文字に含む場
合に生じる縦横比の逆転に起因する誤判定を排除するこ
とができる。
(Effect of Second Embodiment) Since a predetermined digit of the postal code (in this case, a delimiter such as a minus sign) is not used as the character direction determination information, the delimiter existing in the postal code part is not used. It is possible to eliminate erroneous determinations caused by the inversion of the aspect ratio that occurs when the characters are included in the determination characters.

【0031】[0031]

【発明の効果】以上説明したように,本発明に係る画像
整形装置(請求項1)によれば,郵便物に記載された郵
便番号部分の文字画像を所定方向に読み取って一時的に
格納した後に,その画像を読み出し,該画像から郵便番
号を一文字ずつ切り出し,切り出された各文字画像の縦
横比から文字方向が縦であるか横であるかを判定すると
共に,文字方向の判定結果に応じて判定された文字を回
転する。これにより,たとえば郵便番号が縦書きで記載
された場合,該縦書きと判定した後に,横書きに回転
し,文字方向を変えることにより,現行の郵便番号によ
る郵便物区分装置の前処理として利用可能な装置の提供
が可能となるため,郵便番号の方向性が異なっても郵便
番号による区分作業の効率向上を図ることができる。
As described above, according to the image shaping apparatus according to the present invention (claim 1), the character image of the postal code portion described in the mail is read in a predetermined direction and temporarily stored. Later, the image is read, the postal code is cut out from the image one character at a time, and it is determined from the aspect ratio of each cut out character image whether the character direction is vertical or horizontal, and according to the determination result of the character direction. Rotate the character determined. Thus, for example, when a postal code is written in vertical writing, it can be used as pre-processing of the postal code sorting device based on the current postal code by turning to horizontal writing and changing the character direction after judging the vertical writing. Therefore, even if the direction of the postal code is different, the efficiency of the sorting operation by the postal code can be improved.

【0032】また,本発明に係る画像整形装置(請求項
2)によれば,郵便物に記載された郵便番号部分の文字
画像を水平方向に読み取って一時的に格納した後に,そ
の画像を読み出し,該画像から郵便番号を一文字ずつ切
り出し,切り出された各文字画像の縦横比から文字方向
が縦であるか横であるかを判定し,文字方向の判定結果
が縦書きであると判定された文字を90度回転回転する
ことにより,郵便番号が縦書きで記載された郵便番号を
横書きに並び変えることができ,現行の郵便番号による
郵便物区分装置の前処理として利用可能な装置の提供が
可能となるため,郵便番号の方向性が異なっても郵便番
号による区分作業の効率向上を図ることができる。
Further, according to the image shaping apparatus according to the present invention (claim 2), after the character image of the postal code portion described in the mail is read in the horizontal direction and temporarily stored, the image is read out. From the image, the postal code is cut out one character at a time, and it is determined from the aspect ratio of each cut out character image whether the character direction is vertical or horizontal, and the result of the character direction determination is determined to be vertical writing. By rotating characters 90 degrees, it is possible to rearrange postal codes in which the postal code is written in vertical writing in horizontal writing, and to provide a device that can be used as preprocessing of the mail sorting device using the current postal code. This makes it possible to improve the efficiency of sorting work by postal code even if the postal code has different directions.

【0033】また,本発明に係る画像整形装置(請求項
3)によれば,郵便番号の所定の桁を文字方向の判定情
報として使用しないため,たとえば郵便番号部分に存在
する区切り文字を判定用文字に含む場合に生じる縦横比
の逆転を回避し,その誤判定を排除することができる。
Further, according to the image shaping apparatus of the present invention (claim 3), a predetermined digit of the postal code is not used as the character direction determination information. It is possible to avoid the inversion of the aspect ratio that occurs when the character is included, and eliminate the erroneous determination.

【図面の簡単な説明】[Brief description of the drawings]

【図1】実施の形態1に係るシステム構成を示すブロッ
ク図である。
FIG. 1 is a block diagram showing a system configuration according to a first embodiment.

【図2】実施の形態1に係り,郵便番号を水平向きとし
た場合の処理例を示す説明図である。
FIG. 2 is an explanatory diagram showing an example of processing when a postal code is horizontally oriented according to the first embodiment;

【図3】実施の形態1に係り,縦書き並びの文字の回転
例を示す説明図である。
FIG. 3 is an explanatory diagram showing an example of rotation of vertically written characters according to the first embodiment;

【図4】実施の形態2に係り,区切り文字が入る場合を
示す説明図である。
FIG. 4 is an explanatory diagram showing a case where a delimiter is entered according to the second embodiment.

【図5】縦書きで印字された宛名例を示す説明図であ
る。
FIG. 5 is an explanatory diagram showing an example of an address printed in vertical writing.

【符号の説明】[Explanation of symbols]

101 画像読取部 102 画像記憶部 103 文字切り出し部 104 文字方向判定部 105 画像回転部 Reference Signs List 101 Image reading unit 102 Image storage unit 103 Character cutout unit 104 Character direction determination unit 105 Image rotation unit

───────────────────────────────────────────────────── フロントページの続き (72)発明者 山本 忍 東京都大田区中馬込1丁目3番6号 株式 会社リコー内 (72)発明者 宮澤 利夫 東京都大田区中馬込1丁目3番6号 株式 会社リコー内 ──────────────────────────────────────────────────続 き Continuing on the front page (72) Inventor Shinobu Yamamoto 1-3-6 Nakamagome, Ota-ku, Tokyo Inside Ricoh Company (72) Inventor Toshio Miyazawa 1-3-6 Nakamagome, Ota-ku, Tokyo Stock Inside the company Ricoh

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 郵便番号を読み取り,該郵便番号の記載
方向を判定し,必要に応じて前記郵便番号を回転する画
像整形装置であって,郵便物に記載された郵便番号部分
の文字画像を所定方向に読み取る画像読取手段と,前記
画像読取手段で読み取った画像を格納する画像格納手段
と,前記画像格納手段に格納されている画像を読み出
し,該文字画像から郵便番号を一文字ずつ切り出す文字
切り出し手段と,前記文字切り出し手段で切り出された
各文字画像の縦横比に基づいて,文字方向を判定する文
字方向判定手段と,前記文字方向判定手段の判定結果に
基づいて,前記文字切り出し手段で切り出された各文字
画像を回転する画像回転手段と,を備えたことを特徴と
する画像整形装置。
1. An image shaping device for reading a postal code, determining a writing direction of the postal code, and rotating the postal code as necessary, wherein the character image of a postal code portion described in a postal matter is read. Image reading means for reading in a predetermined direction, image storage means for storing the image read by the image reading means, and character extraction for reading out the image stored in the image storage means and cutting out the postal code one by one from the character image Means, a character direction determining means for determining a character direction based on an aspect ratio of each character image cut out by the character cutting means, and a character direction determining means for determining a character direction based on a determination result of the character direction determining means. And an image rotating means for rotating each of the character images.
【請求項2】 郵便番号を読み取り,該郵便番号の記載
方向を判定し,必要に応じて前記郵便番号を回転する画
像整形装置であって,郵便物に記載された郵便番号部分
の文字画像を水平方向に読み取る画像読取手段と,前記
画像読取手段で読み取った画像を格納する画像格納手段
と,前記画像格納手段に格納されている画像を読み出
し,該文字画像から郵便番号を一文字ずつ切り出す文字
切り出し手段と,前記文字切り出し手段で切り出された
各文字画像の縦横比が予め決められた基準値に対し,縦
横比が大きければ縦書き,小さければ横書きであるとし
て,文字方向を判定する文字方向判定手段と,前記文字
方向判定手段の判定結果が,縦書きであると判定された
各文字画像を90度回転する画像回転手段と,を備えた
ことを特徴とする画像整形装置。
2. An image shaping device for reading a postal code, determining a writing direction of the postal code, and rotating the postal code as needed, wherein a character image of a postal code portion described in a postal matter is formed. Image reading means for reading in the horizontal direction, image storage means for storing the image read by the image reading means, and character extraction for reading out the image stored in the image storage means and cutting out the postal code one by one from the character image Means for judging the character direction by judging the character direction by assuming vertical writing if the aspect ratio is large and horizontal writing if the aspect ratio is small with respect to a predetermined reference value for the aspect ratio of each character image extracted by the character extraction means. And an image rotating means for rotating each character image determined by the character direction determining means as vertical writing by 90 degrees. Shaping equipment.
【請求項3】 前記文字方向判定手段は,郵便番号の所
定の桁を文字方向の判定情報として使用しないことを特
徴とする請求項1または2に記載の画像整形装置。
3. The image shaping apparatus according to claim 1, wherein the character direction determining unit does not use a predetermined digit of a postal code as character direction determination information.
JP01191697A 1997-01-07 1997-01-07 Character direction determination device Expired - Fee Related JP3724906B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP01191697A JP3724906B2 (en) 1997-01-07 1997-01-07 Character direction determination device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP01191697A JP3724906B2 (en) 1997-01-07 1997-01-07 Character direction determination device

Publications (2)

Publication Number Publication Date
JPH10192790A true JPH10192790A (en) 1998-07-28
JP3724906B2 JP3724906B2 (en) 2005-12-07

Family

ID=11791035

Family Applications (1)

Application Number Title Priority Date Filing Date
JP01191697A Expired - Fee Related JP3724906B2 (en) 1997-01-07 1997-01-07 Character direction determination device

Country Status (1)

Country Link
JP (1) JP3724906B2 (en)

Also Published As

Publication number Publication date
JP3724906B2 (en) 2005-12-07

Similar Documents

Publication Publication Date Title
JP2575539B2 (en) How to locate and identify money fields on documents
EP0621553A2 (en) Methods and apparatus for inferring orientation of lines of text
EP0063454A2 (en) Method for recognizing machine encoded characters
JP3485020B2 (en) Character recognition method and apparatus, and storage medium
JPH05225378A (en) Area dividing system for document image
JP3388867B2 (en) Address area detecting device and address area detecting method
CN111814673A (en) Method, device and equipment for correcting text detection bounding box and storage medium
JPH0731714B2 (en) Character component cutting method
IL98293A (en) Method of discriminating between text and graphics
JPH0430070B2 (en)
JPH10192790A (en) Image shaping device
JP3162552B2 (en) Mail address recognition device and address recognition method
Gayashan et al. Old Sinhala newspaper article segmentation for content recognition using image processing
JP3160347B2 (en) Mail address reading device
JPH09167206A (en) Space detecting method for japanese/english-mixed document, pitch format judging method, space detecting method for constant pitch alphanumeric character string and space detecting method for proportional pitch alphanumeric character string
JPH02230484A (en) Character recognizing device
JPS6394384A (en) System for deciding direction of character row
JPH10171924A (en) Character recognizing device
JP2616995B2 (en) Character recognition device
JPH04211884A (en) Method for segmenting character
JPH10187885A (en) Character recognizer and storage medium storing character recognition processing
JP2972443B2 (en) Character recognition device
JP2851102B2 (en) Character extraction method
JPS63263588A (en) Character reader
JPH0737034A (en) Optical character reader

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20041224

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050118

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050318

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050426

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050622

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20050913

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20050920

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080930

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090930

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090930

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100930

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110930

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120930

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130930

Year of fee payment: 8

LAPS Cancellation because of no payment of annual fees