JP2006157761A - Method and device for adjusting handwritten character - Google Patents
Method and device for adjusting handwritten character Download PDFInfo
- Publication number
- JP2006157761A JP2006157761A JP2004348006A JP2004348006A JP2006157761A JP 2006157761 A JP2006157761 A JP 2006157761A JP 2004348006 A JP2004348006 A JP 2004348006A JP 2004348006 A JP2004348006 A JP 2004348006A JP 2006157761 A JP2006157761 A JP 2006157761A
- Authority
- JP
- Japan
- Prior art keywords
- character
- line width
- image
- handwritten
- character image
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Abstract
Description
本発明は、文字画像が示す手書きの文字の線幅を調整する技術に関する。 The present invention relates to a technique for adjusting a line width of a handwritten character indicated by a character image.
従来より、手書き文字のレイアウトを画像処理により整える手法が利用されている。例えば、特許文献1では、文字画像が示す手書きの文字を1文字ごとに分割するとともに当該文字を住所や氏名等の情報の種類別に分割し、この種類に応じて規定された位置および大きさに従って文字を配置してはがき等に印刷を行う技術が開示されている。
ところで、多くの寺院では仏をまつる建物(仏堂)を新築したり、修復する際に信者からお布施を募り、寄進者の名前をその建物に用いられる瓦に書き写す(すなわち、記名する)ことが行われており、瓦への記名は作業者により手書きにて行われている。このとき、寄進者の手書きの名前を示す複数の文字画像のデータを装置に入力し、これらの文字画像を1つの瓦に印刷することにより瓦への記名を容易に行うことも考えられるが、通常、手書きの名前では文字の太さが筆記具の種類(鉛筆やボールペン、あるいは、ふで等)によって異なってしまい、瓦上に印刷された複数の名前において整然性が損なわれてしまう。 By the way, in many temples, building a Buddha (Buddhist Hall) is newly constructed, or when seeking restoration from a believer, the name of the donator is copied onto the tile used for the building (ie, the name is written). The name on the roof tile is handwritten by the operator. At this time, it is conceivable that data of a plurality of character images indicating the handwritten names of the donors are input to the device, and the name on the roof tile can be easily written by printing these character images on one roof tile. In general, handwritten names have different thicknesses depending on the type of writing instrument (such as a pencil, ballpoint pen, or puffer), and the orderliness of a plurality of names printed on roof tiles is impaired.
本発明は上記課題に鑑みなされたものであり、手書きの文字を示す文字画像から所望の線幅の文字を示す文字画像を取得することを目的としている。 The present invention has been made in view of the above problems, and an object of the present invention is to obtain a character image showing a character having a desired line width from a character image showing a handwritten character.
請求項1に記載の発明は、文字画像が示す手書きの文字の線幅を調整する手書き文字の線幅調整方法であって、手書きの文字を示す2値の文字画像から前記文字の線幅を実質的に取得する線幅取得工程と、前記線幅に基づいて前記文字画像における文字領域を膨張または収縮して前記文字の線幅を所望のものとする線幅変更工程とを備える。
The invention according to
請求項2に記載の発明は、請求項1に記載の手書き文字の線幅調整方法であって、前記線幅変更工程が、前記文字画像において前記文字領域を膨張または収縮させた線幅変更画像を取得する線幅変更画像取得工程と、前記線幅変更画像から前記文字の線幅を実質的に取得する線幅再取得工程と、前記文字の線幅が所望のものとなるまで、前記線幅変更画像における前記文字画像に対する膨張または収縮の程度を漸次増大させながら前記線幅変更画像取得工程と前記線幅再取得工程とを実質的に繰り返す繰返工程とを備える。
Invention of Claim 2 is the line width adjustment method of the handwritten character of
請求項3に記載の発明は、請求項2に記載の手書き文字の線幅調整方法であって、前記線幅再取得工程において、前記線幅変更画像の文字領域内にて所定の形状の線幅検出用の画素配列が配置可能な位置の数と前記文字領域の面積との比に基づいて前記文字の前記線幅が取得される。 The invention according to claim 3 is the line width adjustment method of the handwritten character according to claim 2, wherein in the line width reacquisition step, a line having a predetermined shape in the character region of the line width change image. The line width of the character is acquired based on a ratio between the number of positions where a pixel array for width detection can be arranged and the area of the character region.
請求項4に記載の発明は、請求項2または3に記載の手書き文字の線幅調整方法であって、前記線幅変更画像が、前記文字画像における前記文字領域を膨張させた画像であり、前記線幅変更画像の文字領域内において所定の形状の文字潰れ検出用の画素配列が配置可能な位置の数が、直前に取得された線幅変更画像に対して増加する割合に基づいて前記繰返工程の停止を判断する工程をさらに備える。 Invention of Claim 4 is the line width adjustment method of the handwritten character of Claim 2 or 3, Comprising: The said line width change image is an image which expanded the said character area in the said character image, The repetition is performed based on a rate at which the number of positions where a pixel arrangement for detecting a character collapse of a predetermined shape can be arranged in the character area of the line width changed image is increased with respect to the line width changed image acquired immediately before. The method further includes a step of determining stoppage of the return step.
請求項5に記載の発明は、請求項1ないし4のいずれかに記載の手書き文字の線幅調整方法であって、前記文字画像が1列に並ぶ複数の文字を示し、前記線幅取得工程の前に、前記複数の文字を囲む矩形領域を所定の大きさに合わせて拡大または縮小する文字列サイズ変更工程をさらに備える。
Invention of Claim 5 is the line width adjustment method of the handwritten character in any one of
請求項6に記載の発明は、請求項5に記載の手書き文字の線幅調整方法であって、前記文字列サイズ変更工程の前に、前記複数の文字の間隔を所定の幅に調整する字間調整工程をさらに備える。
The invention according to
請求項7に記載の発明は、請求項1ないし6のいずれかに記載の手書き文字の線幅調整方法であって、前記文字画像が示す文字が、社寺に用いられる瓦に記名される寄進者の名前である。
The invention according to claim 7 is the line width adjustment method for handwritten characters according to any one of
請求項8に記載の発明は、文字画像が示す手書きの文字の線幅を調整する手書き文字の線幅調整装置であって、手書きの文字を示す2値の文字画像において文字領域を膨張または収縮させた線幅変更画像を取得する線幅変更画像取得部と、前記文字画像から前記文字の線幅を実質的に取得する線幅取得部と、前記文字画像における前記文字の線幅に基づいて、前記線幅変更画像取得部に前記文字画像における前記文字領域を膨張または収縮させて前記文字の線幅を所望のものとする線幅変更管理部とを備える。 The invention according to claim 8 is a line width adjustment device for a handwritten character that adjusts a line width of a handwritten character indicated by the character image, wherein the character region is expanded or contracted in the binary character image indicating the handwritten character. Based on the line width change image acquisition unit that acquires the line width change image that has been made, the line width acquisition unit that substantially acquires the line width of the character from the character image, and the line width of the character in the character image The line width change image acquisition unit includes a line width change management unit that expands or contracts the character area in the character image to obtain a desired line width of the character.
請求項1ないし8の発明では、手書きの文字を示す文字画像から所望の線幅の文字を示す文字画像を取得することができる。 According to the first to eighth aspects of the present invention, a character image indicating a character having a desired line width can be acquired from a character image indicating a handwritten character.
また、請求項3の発明では、文字の線幅を容易に取得することができ、請求項4の発明では、文字の潰れを容易に検出して、適切な文字画像を取得することができる。 In the invention of claim 3, the line width of the character can be easily acquired, and in the invention of claim 4, it is possible to easily detect the collapse of the character and acquire an appropriate character image.
また、請求項5の発明では、所望の大きさの文字画像を取得することができ、請求項6の発明では、各文字が適切に配置された文字画像を取得することができる。
In the invention of claim 5, a character image having a desired size can be acquired. In the invention of
図1はインターネット等の通信網90に接続されたサーバ側のコンピュータ(以下、「サーバ」という。)11、および、家庭や会社等に配置されたクライアントとなるコンピュータ(以下、「クライアント」という。)91を示す図である。サーバ11およびクライアント91のそれぞれは、各種演算処理を行うCPUや各種情報を記憶するメモリ等により構成された一般的なコンピュータである。図1に示すように、サーバ11は瓦に印刷を行う印刷装置12に接続されており、サーバ11および印刷装置12により瓦に記名を行う瓦記名システム1が構成される。
FIG. 1 shows a server-side computer (hereinafter referred to as “server”) 11 connected to a
瓦記名システム1は、寺院において新たな建物を建築したり既存の建物を修復する際に(例えば、仏堂の建築や修復の際に)、金銭等を寄付する寄進者の氏名、名称あるいは戒名等(以下、「名前」と総称する。)を受け付け、その建物に用いられる瓦に名前を印刷する(すなわち、記名を行う)システムである。瓦記名システム1では、後述するように記名後の瓦の画像データが取得され、必要に応じてサーバ11からクライアント91へと画像データが配信されてクライアント91において瓦の画像が表示可能とされる。
The
図2は瓦記名システム1の構成を示す図である。前述のように、瓦記名システム1は通信網90に接続されたサーバ11、および、瓦9(例えば、主面側を向いて見た場合の大きさが400mm×500mmである瓦)の曲面上に印刷を行う印刷装置12を備え、印刷装置12は、瓦9を様々な機構にて搬送する瓦搬送機構2、瓦搬送機構2の前半部において瓦9に向けて光硬化性のインク(例えば、カーボンブラックを含む紫外線硬化性のインク)を吐出するヘッド部3、ヘッド部3を図2中のX方向およびY方向に移動するヘッド移動機構4、瓦搬送機構2の後半部において瓦9上に光を照射するインク硬化部51、並びに、瓦9を撮像する撮像部52を有する。なお、図2では、説明の便宜上、他の構成と比較してヘッド部3およびヘッド移動機構4を大きく図示している。
FIG. 2 is a diagram showing the configuration of the
瓦搬送機構2は、ヘッド部3の下方にて瓦9を保持しつつ移動する第1コンベヤ21、インク硬化部51および撮像部52の下方にて瓦9を移動する第2コンベヤ22、並びに、第1コンベヤ21から第2コンベヤへと瓦9を移載する移載ロボット23を有する。ヘッド部3は、インクジェット方式のノズル部31を有し、ノズル部31にはインクの微小液滴を瓦9に向けて吐出する複数の吐出口がX方向に所定のピッチにて配列形成されている。また、ノズル部31には図示省略のインク供給部が接続されており、インク供給部からノズル部31にインクが適宜供給される。ノズル部31の(+Y)側および(−Y)側の各側面には、紫外線を出射する光源ユニット321に接続された補助硬化部32が取り付けられ、各吐出口に対応する光のスポットを瓦9上に形成する。
The roof tile transport mechanism 2 includes a
ノズル部31は、瓦9とは反対側において支持部33に固定されており、支持部33によりノズル部31が瓦9に対して進退可能(すなわち、図2中のZ方向に移動可能)に支持される。また、ノズル部31の(−X)側の側面には、ローラ34がX軸に平行な中心軸を中心として回転可能に取り付けられる。ヘッド部3では、ノズル部31が瓦9上に位置する際にはローラ34およびノズル部31の自重によりローラ34が瓦9の表面に当接する。
The
ヘッド移動機構4は、ヘッド部3をY方向に移動するY方向移動機構41、および、X方向に微小に移動するX方向移動機構42を有する。また、ヘッド部3の下方に位置する瓦9の(−Y)側には、瓦9の表面からおよそ連続する面を形成するローラ待避部43が設けられる。印刷装置12では、ヘッド部3がY方向移動機構41により瓦9に対して主走査方向(Y方向)に移動する際にはローラ34は瓦9の表面上を転がって移動し、瓦9が第1コンベヤ21により副走査方向(X方向)に移動する際にはローラ34はローラ待避部43上に停止して瓦9上から待避する。
The head moving mechanism 4 includes a Y
印刷装置12は、さらに、寄進者の名前を示す文字画像データ61を受け付ける名前受付部6、および、名前受付部6から入力される文字画像データ61から版下データを生成する版下データ生成用のコンピュータ7を有し、コンピュータ7は印刷装置12の各構成の制御を行う制御部としての役割も担う。
The
名前受付部6は、具体的には、各種演算処理を行うCPUや各種情報を記憶するメモリ、固定ディスク等により構成されたコンピュータに、用紙上に描かれた画像を読み取って画像データを取得するスキャナが接続された構成となっている。名前受付部6では、実際に寄進者の名前が手書きにて記入された(例えば、自己の筆跡にて書かれた)所定のラベル(以下、「瓦記名ラベル」という。)の一部がスキャナにて読み取られ、寄進者が記入した名前(文字のみならず、梵字やロゴが含まれてもよい。)の文字画像データ61が取得される。そして、各文字画像データ61に寄進者の名前や他の情報が関連付けられ、文字画像データ61の集合である文字画像データベース610が生成されて固定ディスク等に記憶される。
Specifically, the
版下データ生成用のコンピュータ7では、文字画像データ61が示す手書きの文字の線幅が調整された後に、調整後の文字画像から各瓦9に対するラスタイメージである版下データが生成され、後述する印刷処理においてヘッド部3のインク吐出制御、並びに、ヘッド部3および瓦9の移動制御に利用される。コンピュータ7の構成およびコンピュータ7が実現する手書き文字の線幅調整に係る機能構成については、瓦記名システム1の全体説明の後に詳述する。
In the composition data generation computer 7, after adjusting the line width of the handwritten character indicated by the
サーバ11は各種情報を記憶する固定ディスク111、CPUやメモリ等により実現される機能である画像送出部112、および、図1のクライアント91との間で通信網90を介して情報の受け渡しを行う通信部113を有する。サーバ11では、撮像部52から入力される瓦画像データ110が固定ディスク111に記憶される。画像送出部112は、クライアント91からの要求信号に応じて瓦画像データ110を固定ディスク111から読み出し、通信部113を介してクライアント91へと送出する。
The
次に、瓦記名システム1による瓦9に記名を行う処理について説明を行う。瓦記名システム1では、まず、名前受付部6において全国の寄進者から郵送された瓦記名ラベルがスキャナにより読み取られ、寄進者の名前が記入された所定の部分の2値の画像データが文字画像データ61として受け付けられる。
Next, a description will be given of a process for registering the tile 9 by the
また、瓦記名ラベルには寄進者が属する末寺である寺院・教会を示す番号が記載されており、この番号はスキャナにより取得された画像データから専用のソフトウェア(いわゆる、OCR(Optical Character Reader))を利用してテキストデータとして読み取られ、分類コードとして取得される。さらに、操作者により寄進者の名前(ここでは主に、氏名または名称)が名前受付部6のコンピュータのキーボードやマウスを介して入力され、全ての文字画像データ61のそれぞれに寄進者の名前が関連付けられるとともに、寄進者の分類(すなわち、所属する末寺)を示す分類コードが付与される。
In addition, the tile name label contains a number indicating the temple or church to which the donator belongs, and this number is dedicated software (so-called OCR (Optical Character Reader)) from the image data acquired by the scanner. Is read as text data and is obtained as a classification code. Furthermore, the name of the donor (mainly the name or name in this case) is input by the operator via the computer keyboard or mouse of the
名前受付部6では既に生成されている文字画像データベース610が、新たな文字画像データ61が受け付けられる毎に順次更新される。文字画像データベース610の更新が完了すると、コンピュータ7が分類コードを参照して文字画像データベース610内の文字画像データ61を末寺ごとに分類し、原則として同一の末寺に属す複数の寄進者(例えば、12〜18人の寄進者)の名前をそれぞれ示す複数の文字画像データ61が各瓦9に対して選択される。そして、選択された複数の文字画像データ61のそれぞれが示す文字の線幅が調整され、線幅調整後の複数の文字画像から各瓦9に対する版下データが生成される。
The
印刷装置12では、版下データに基づいてヘッド移動機構4によりヘッド部3の吐出口と瓦9との間の距離を一定に保ちつつヘッド部3が瓦9に対して主走査方向に移動し、インクの微小液滴が瓦9上に吐出される。瓦9上に付着した直後のインクには、補助硬化部32から光が照射されてインクが仮硬化される。主走査の終了後、ヘッド部3に対して瓦9が副走査方向に相対的に移動して、ヘッド部3の主走査が繰り返される。このようにして、ヘッド部3の主走査および副走査が繰り返される。その後、瓦9が第2コンベヤ22上へと移載され、インク硬化部51から光が瓦9にさらに照射されてインクが本硬化し、寄進者の名前が瓦9に定着される。
In the
印刷後の瓦9は、第2コンベヤ22により撮像部52の下方へとさらに移動し、撮像部52により名前が記名された瓦9が撮像されて瓦の画像データが取得される。瓦の画像データはサーバ11に出力され、その瓦9に記名された複数の寄進者のそれぞれの名前に関連付けて瓦画像データ110として固定ディスク111に記憶される。瓦9は第2コンベヤ22により(+X)方向へとさらに移動し、第2コンベヤ22の端部において取り出されて所定のパレット上に載置され、寺院に属する建物の建築や修復に利用される。
The printed roof tile 9 is further moved below the
瓦画像データ110が固定ディスク111に記憶されると、例えば、寄進者が端末であるクライアント91をブラウザを介して操作することにより、自己の名前が記名された瓦9の画像データの配信の要求信号が生成され、クライアント91から通信網90を介してサーバ11へと送信されて要求信号が受け付けられる。
When the
サーバ11では、画像送出部112によりクライアント91からの要求信号に従って、その寄進者の名前に関連付けられた記名後の瓦9の画像データ(すなわち、瓦画像データ110)が固定ディスク111から読み出され、通信部113を介してクライアント91へと送出される。そして、クライアント91において通信網90を介して瓦画像データ110が受信され、寄進者が、自己の名前が自己の筆跡にて記名された瓦9の画像を閲覧することができ、これにより、寄進者は満足感を得ることができる。なお、瓦記名システム1は、寺院以外に神社に用いられる瓦9に記名を行うものであってもよい。すなわち、瓦記名システム1は、社寺に用いられる瓦に記名を行う用途に利用される。
In the
また、印刷装置がステージに固定された瓦9に対してヘッド部が主走査方向および副走査方向に移動するものとされ、ヘッド部のノズル部が瓦9の表面に沿うように昇降可能とされるとともに主走査方向を向く軸を中心に回動も可能とされて、インクの吐出口と瓦9の表面との間の距離を一定に保ちつつインクの吐出が行われてもよい。さらに、インク硬化部51が省略され、ヘッド部の主走査の往路においてインクを瓦9上に吐出しつつ光を照射してインクの仮硬化を行い、復路にてヘッド部をゆっくりと移動して同じ光源を用いてインクの本硬化が行われてもよい。
In addition, the head unit is moved in the main scanning direction and the sub-scanning direction with respect to the roof tile 9 fixed to the stage, and the nozzle portion of the head section can be moved up and down along the surface of the roof tile 9. At the same time, rotation about an axis facing the main scanning direction is also possible, and ink may be ejected while the distance between the ink ejection port and the surface of the roof tile 9 is kept constant. Further, the
次に、文字画像が示す手書きの文字の線幅を調整する処理について説明を行う。図3はコンピュータ7の構成を示す図である。コンピュータ7は、図3に示すように、各種演算処理を行うCPU71、基本プログラムを記憶するROM72および各種情報を記憶するRAM73をバスラインに接続した一般的なコンピュータシステムの構成となっている。バスラインにはさらに、情報記憶を行う固定ディスク74、画像等の各種情報の表示を行うディスプレイ75、操作者からの入力を受け付けるキーボード76aおよびマウス76b(以下、「入力部76」と総称する。)、光ディスク、磁気ディスク、光磁気ディスク等のコンピュータ読み取り可能な記録媒体8から情報の読み取りを行う読取装置77、並びに、他の装置(印刷装置12の他の構成やサーバ11等)との間で信号を送受信する通信部78が、適宜、インターフェイス(I/F)を介する等して接続される。
Next, processing for adjusting the line width of a handwritten character indicated by a character image will be described. FIG. 3 is a diagram showing the configuration of the computer 7. As shown in FIG. 3, the computer 7 has a general computer system configuration in which a
コンピュータ7には、事前に読取装置77を介して記録媒体8からプログラム80が読み出され、固定ディスク74に記憶される。そして、プログラム80がRAM73にコピーされるとともにCPU71がRAM73内のプログラムに従って演算処理を実行することにより(すなわち、コンピュータがプログラムを実行することにより)、コンピュータ7が文字画像の文字の線幅を調整する線幅調整部としての役割を果たす。
The computer 7 reads the
図4は、CPU71がプログラム80に従って動作することにより、CPU71、ROM72、RAM73、固定ディスク74等が実現する機能構成を示す図であり、図4において、線幅調整部81の各構成(線幅変更管理部82、線幅取得部83および線幅変更画像取得部84)並びに字間調整部851および文字列サイズ変更部852がCPU71等により実現される機能を示す。なお、字間調整部851は、本処理例の説明後に詳述する他の例における機能である。線幅調整部81、字間調整部851および文字列サイズ変更部852の機能は専用の電気的回路により実現されてもよく、部分的に専用の電気的回路が用いられてもよい。
FIG. 4 is a diagram illustrating a functional configuration realized by the
図5はコンピュータ7が、文字画像が示す手書きの文字の線幅を調整する処理の流れを示す図であり、図6は1つの瓦9に対して選択された複数の2値の文字画像N10,N20,N30,N40を示す図である。上述のように、線幅調整処理を行う際には、コンピュータ7では各瓦9に対して複数の文字画像データ61が選択されており、図6に示すように、各文字画像N10,N20,N30,N40は1列に並ぶ複数の文字(以下、「文字列」とも呼ぶ。)を示している。複数の文字画像N10,N20,N30,N40では、互いに文字の線幅が異なっていたり、文字列のサイズが異なっている。以下、図6中の右側の文字画像N40に注目して説明を行うが、他の文字画像N10,N20,N30についても同様の処理が行われる。
FIG. 5 is a diagram showing a flow of processing in which the computer 7 adjusts the line width of a handwritten character indicated by the character image. FIG. 6 shows a plurality of binary character images N10 selected for one roof tile 9. , N20, N30, and N40. As described above, when the line width adjustment process is performed, a plurality of
図7は文字画像N40を瓦記名ラベルに設けられた記入枠と共に示す図である。実際には、瓦記名ラベルの記入枠(図7並びに後述の図8および図9中に二点鎖線にて示しているが、文字画像中では削除されている。)よりも大きい領域が名前受付部6により文字画像データとして取得されている。
FIG. 7 is a view showing the character image N40 together with an entry frame provided on the tile name label. Actually, the area larger than the entry frame for the tile name label (shown by a two-dot chain line in FIG. 7 and FIG. 8 and FIG. 9 described later is deleted in the character image) is the name reception. It is acquired as character image data by the
図4の文字列サイズ変更部852では、文字画像N40が示す複数の文字を外接するようにして囲む矩形領域(図7中にて符号A1を付す領域)が切り出される。続いて、矩形領域A1が、図8に示すように瓦記名ラベルの記入枠より僅かに小さい大きさとされた基準領域A2内に配置される。このとき、矩形領域A1の矩形の境界線における(文字の配列方向の)上側の辺の中央の位置(図7中において符号P1を付す位置であり、基準位置と呼ぶ。)が、基準領域A2の矩形の境界線における上側の辺の中央の位置に重なるように、矩形領域A1が基準領域A2内に配置される。なお、基準位置が矩形領域A1の中心とされ、基準位置が基準領域A2の中心に重なるように、矩形領域A1が基準領域A2内に配置されてもよい。
In the character string
そして、矩形領域A1が、基準位置P1を固定しつつ、配列方向および配列方向に垂直な方向(以下、それぞれ「縦方向」および「横方向」という。)に同じ倍率にて拡大される。このとき、矩形領域A1を拡大する倍率は、拡大後の矩形領域A1が基準領域A2の外側にはみ出さない最大のものとされ、矩形領域A1が基準領域A2に配置された状態において、縦方向の下側および横方向の左側(または右側)における矩形領域A1と基準領域A2との間の間隙の幅(画素数)に基づいて決定される。このようにして、文字列サイズ変更部852では、複数の文字を囲む矩形領域A1が、所定の基準領域A2の大きさに合わせて拡大され、図9に示すように、文字列のサイズが所望の大きさに変更された文字画像N41が取得される(ステップS11)。なお、矩形領域A1が基準領域A2よりも大きい場合には、矩形領域A1は、基準領域A2の大きさに合わせて縮小される。
The rectangular area A1 is enlarged at the same magnification in the arrangement direction and the direction perpendicular to the arrangement direction (hereinafter, referred to as “vertical direction” and “lateral direction”, respectively) while fixing the reference position P1. At this time, the magnification for enlarging the rectangular area A1 is the maximum that the enlarged rectangular area A1 does not protrude outside the reference area A2, and in the state where the rectangular area A1 is arranged in the reference area A2, the vertical direction Is determined based on the width (number of pixels) of the gap between the rectangular area A1 and the reference area A2 on the lower side and the left side (or right side) in the horizontal direction. In this way, the character string
サイズ変更後の文字画像N41が取得されると、線幅取得部83では、文字画像N41の文字領域の面積(すなわち、文字を示す画素の個数)が求められる。図10.Aおよび図10.Bはそれぞれ文字画像の一部を例示する図であり、図10.Aおよび図10.B中では平行斜線を付すことにより文字領域に含まれる画素を示している。図10.Aに示す文字画像では文字領域の面積は40となり、図10.Bに示す文字画像では文字領域の面積は11となる。
When the character image N41 after the size change is acquired, the line
続いて、文字画像の文字領域内にて3行3列の画素配列が配置可能な位置の数(以下、単に「配置数」ともいう。)が求められる。図10.Aに示す文字画像では太線にて囲む領域内に3行3列の画素配列が11通りの位置に配置可能であるため、配置数は11となり、図10.Bに示す文字画像では3行3列の画素配列が配置不能であるため、配置数は0となる。このようにして、線幅取得部83では文字画像N41において、文字領域の面積と、文字領域内にて3行3列の画素配列が配置可能な位置の数とが表1に示すように求められる。
Subsequently, the number of positions (hereinafter also simply referred to as “number of arrangements”) at which the pixel arrangement of 3 rows and 3 columns can be arranged in the character area of the character image is obtained. FIG. In the character image shown in A, since the pixel arrangement of 3 rows and 3 columns can be arranged in 11 positions in the area surrounded by the bold line, the number of arrangement is 11, and FIG. In the character image shown in B, since the pixel arrangement of 3 rows and 3 columns cannot be arranged, the number of arrangement is 0. In this way, the line
表1では、3行3列の画素配列の配置可能な位置の数を表す項目名を「3×3配置数」として示しており、3行3列の画素配列以外に、5行5列、7行7列および9行9列の画素配列が配置可能な位置の数も示している。また、文字画像に付す符号により文字画像を特定しており、現段階では、文字画像N41のみの文字領域の面積および配置数が取得されている。 In Table 1, the item name indicating the number of positions where the pixel arrangement of 3 rows and 3 columns can be arranged is shown as “3 × 3 arrangement number”, in addition to the pixel arrangement of 3 rows and 3 columns, 5 rows and 5 columns, The number of positions at which the pixel array of 7 rows and 7 columns and 9 rows and 9 columns can be arranged is also shown. Further, the character image is specified by the code attached to the character image, and the area and the number of arrangement of the character region of only the character image N41 are acquired at this stage.
線幅取得部83では、さらに、文字領域内にて3行3列の画素配列が配置可能な位置の数と文字領域の面積との比(以下、「配置数比」という。)が表2に示すように求められる。なお、表2では、3行3列の画素配列における配置数比を表す項目名を「3×3配置数比」として示しており、3行3列の画素配列以外に、5行5列、7行7列および9行9列の画素配列における配置数比も示している。また、表1と同様に、文字画像に付す符号により文字画像を特定しており、現段階では、文字画像N41のみの配置数比が取得されている。
Further, in the line
ここで、図10.Aに示すように線幅が太い文字を示す文字画像と、図10.Bに示すように線幅が細い文字を示す文字画像とを比較すると、仮に文字領域が同じ面積であっても、文字領域内において3行3列の画素配列が配置可能な位置の数は線幅が細い文字を示す文字画像よりも線幅が太い文字を示す文字画像において多くなる。したがって、文字領域が一定の面積である場合には、配置数が文字の線幅を実質的に示す値として取得することが可能であるといえる。実際には、文字画像によって文字領域の面積が異なるが、配置数と文字領域の面積との比である配置数比を求めることにより、文字領域の面積の影響を抑制することが可能となり、これにより、線幅取得部83では、配置数比に基づいてサイズ変更後の文字画像N41から文字の線幅が実質的に取得されることとなる(ステップS12)。
Here, FIG. 10. A character image showing a thick line width as shown in FIG. Comparing with a character image showing a character with a narrow line width as shown in B, even if the character area has the same area, the number of positions where a pixel array of 3 rows and 3 columns can be arranged in the character area is a line. This is larger in a character image showing a character having a thicker line width than a character image showing a character having a narrow width. Therefore, when the character region has a certain area, it can be said that the arrangement number can be acquired as a value that substantially indicates the line width of the character. Actually, the area of the character area differs depending on the character image, but by obtaining the arrangement number ratio, which is the ratio between the number of arrangement and the area of the character area, it is possible to suppress the influence of the area of the character area. Accordingly, the line
続いて、線幅変更管理部82では取得された配置数比が所定の上限値および下限値にて設定される範囲(以下、「線幅許容範囲」という。)内に含まれない場合には、サイズ変更後の文字画像N41の文字の線幅が所望の線幅でないと判定され、以下の処理が行われる(ステップS13)。なお、配置数比が線幅許容範囲内に含まれる場合には、文字画像N41の示す文字が所望の線幅となっていると判定されて線幅調整処理が終了する(ステップS13)。
Subsequently, in the line width
線幅変更画像取得部84では文字画像N41において文字領域に含まれる各画素を中心とする3行3列の画素群を当該画素と同じ値にするようにして文字領域が膨張され(いわゆる、太らせ処理が施され)、線幅が太く変更された画像(以下、「線幅変更画像」という。)が取得される(ステップS14)。図11.Aは、線幅変更画像取得部84にて取得された線幅変更画像N42を示す図であり、図11.Aの画像(並びに、後述の図11.Bおよび図11.Cの画像)では膨張処理後に所定のフィルタ処理が施されている。なお、膨張処理は文字画像N41の文字領域に含まれる各画素を8方向に同じように膨張させる手法以外であってもよい。
The line width changed
線幅取得部83では、ステップS12と同様に、線幅変更画像N42の文字領域内において3行3列の画素配列が配置可能な位置の数と文字領域の面積とが表1に示すように求められ、これらの値の比である配置数比(表2参照)に基づいて線幅変更画像N42から文字の線幅が実質的にかつ容易に取得される(ステップS15)。
In the line
続いて、線幅変更管理部82では、線幅変更画像N42の配置数が文字画像N41の配置数に対して増加する割合が取得された後(ステップS16の一部に相当する。)、配置数比と線幅許容範囲とを比較することにより、線幅変更画像N42の文字の線幅が所望の線幅であるか否かが判定される。図11.Aの線幅変更画像N42では所望の線幅でないと判定されて、ステップS14に戻って次の線幅変更画像が取得される(ステップS18)。なお、ステップS16における1回目の処理は、この処理が繰り返される際の事前準備に相当し、この場合、ステップS17はスキップされる。
Subsequently, the line width
線幅変更画像取得部84の2回目の処理では文字領域の各画素を中心とする5行5列の画素群を当該画素と同じ値にするようにして膨張処理が行われる(ステップS14)。なお、処理後の線幅のみに着目すると、文字画像N41に対して文字領域の各画素を中心とする5行5列の画素配列を当該画素と同じ値にする処理と、直前の線幅変更画像N42に対して文字領域の各画素を中心とする3行3列の画素配列を当該画素と同じ値にする処理とは等価な処理であるといえる。
In the second process of the line width change
したがって、線幅変更画像取得部84では、文字領域の各画素を中心とする5行5列の画素群を当該画素と同じ値にすることにより、文字画像N41に対する膨張の程度を1回目の処理から同程度だけさらに増大させて、図11.Bに示すように次の線幅変更画像N43が取得されることとなる。そして、線幅取得部83にて表2に示すように線幅変更画像N43の配置数比が取得されて、文字の線幅が取得される(ステップS15)。なお、本実施の形態では、膨張処理の設定パラーメータ(膨張処理用の画素配列の大きさ)を変更することにより文字画像N41に対する膨張の程度が増大されているが、膨張の程度が増大された線幅変更画像N43は、文字画像N41に対して一定パラメータの膨張処理を繰り返し行うことにより取得されてもよい。
Therefore, in the line width changed
ここで、線幅変更画像取得部84では文字画像N41に対する膨張の程度を漸次増大させて線幅変更画像N42,N43が取得されるため、線幅変更画像N42における3行3列の画素配列の配置数が文字画像N41の配置数に対して増加する割合と、線幅変更画像N43の配置数が線幅変更画像N42の配置数に対して増加する割合とは、通常、およそ等しくなる。しかしながら、図11.Bに示す線幅変更画像N43中の符号A3を付す白い領域(値が文字領域とは異なる画素の集合)が、仮に、無くなってしまうと、線幅変更画像N43が示す「冬」という文字の一部が潰れることとなり、配置数が急増することとなる。
Here, since the line width change
したがって、線幅変更管理部82では、線幅変更画像N43の配置数が線幅変更画像N42の配置数に対して増加する割合が求められ、この割合が、1回目のステップS16にて既に取得された線幅変更画像N42の配置数が文字画像N41の配置数に対して増加する割合と比較されることにより、文字の潰れの有無が実質的に検出される(ステップS16)。そして、文字の潰れがない場合には(ステップS17)、線幅変更画像N43に対して取得された配置数比と線幅許容範囲とを比較することにより、線幅変更画像N43の文字の線幅が所望の線幅であるか否かが判定され、判定結果に応じてステップS14〜S17が繰り返される(ステップS18)。また、文字の潰れがある場合には(ステップS17)、線幅変更画像N43の直前に取得された線幅変更画像N42が線幅調整後の文字画像とされる(ステップS19)。このように、線幅変更管理部82では、線幅変更画像N43の文字領域内において3行3列の画素配列が配置可能な位置の数(配置数)が、直前に取得された線幅変更画像N42の配置数に対して増加する割合に基づいて文字の潰れの有無が判定され、文字の潰れがある場合にはステップS18における繰り返し処理の停止が判断されて線幅調整処理が終了する。
Therefore, the line width
図11.Bに示す線幅変更画像N43では、文字の潰れがなく、かつ、所望の線幅でないと判定され(ステップS17,S18)、文字画像N41に対する膨張の程度を、2回目の処理からさらに増大させて、図11.Cに示すように次の線幅変更画像N44が取得される(ステップS14)。続いて、線幅変更画像N44に対して、表2に示すように配置数比が取得されて文字の潰れの有無が検出され(ステップS15,S16)、線幅変更画像N44には文字の潰れがないと判定される(ステップS17)。そして、線幅変更管理部82にて取得された配置数比が線幅許容範囲内に含まれると判定されて(ステップS18)、線幅変更画像N44が線幅調整後の文字画像として出力され(ステップS20)、線幅調整処理が終了する。
FIG. In the line width changed image N43 shown in B, it is determined that the character is not crushed and is not the desired line width (steps S17 and S18), and the degree of expansion of the character image N41 is further increased from the second process. FIG. As shown in C, the next line width change image N44 is acquired (step S14). Subsequently, with respect to the line width changed image N44, the arrangement number ratio is acquired as shown in Table 2 to detect whether or not the characters are crushed (steps S15 and S16). It is determined that there is no (step S17). Then, it is determined that the arrangement number ratio acquired by the line width
図12は、図6中の複数の文字画像N10,N20,N30,N40にそれぞれ対応する線幅調整処理後の複数の文字画像N19,N29,N39,N49を示す図である。ただし、図12の文字画像N19,N29,N39,N49では、膨張処理後に整形用の所定のフィルタ処理が行われている。図12に示すように、線幅調整処理後の文字画像N19,N29,N39,N49では、文字の線幅がおよそ一定とされる(ただし、図12ではフィルタ処理の影響により文字の線が伸びる方向によって線幅が僅かに異なる。)とともに文字列の大きさも一定とされ、全体として整然性が確保されている。その結果、線幅調整処理後の文字画像N19,N29,N39,N49から生成される版下データに基づいて、瓦9に複数の寄進者の名前を示す見た目が美しい画像を印刷することができる。 FIG. 12 is a diagram illustrating a plurality of character images N19, N29, N39, and N49 after line width adjustment processing corresponding to the plurality of character images N10, N20, N30, and N40 in FIG. However, in the character images N19, N29, N39, and N49 in FIG. 12, a predetermined filtering process for shaping is performed after the expansion process. As shown in FIG. 12, in the character images N19, N29, N39, and N49 after the line width adjustment processing, the character line width is approximately constant (however, in FIG. 12, the character line is extended due to the influence of the filter processing. The line width is slightly different depending on the direction.) The size of the character string is also constant, and the orderliness is ensured as a whole. As a result, based on the composition data generated from the character images N19, N29, N39, and N49 after the line width adjustment process, it is possible to print an image with a beautiful appearance indicating the names of a plurality of donors on the roof tile 9. .
図13.Aは、上記処理により線幅が調整された文字画像とは別に、予め太線にて瓦記名ラベルに記入された文字の文字画像N51〜N54を示す図であり、図13.Bは、予め細線にて瓦記名ラベルに記入された文字の文字画像N61〜N64を示す図である。また、表3は太線の文字画像N51〜N54、および、細線の文字画像N61〜N64(並びに、後述の文字画像N71)のそれぞれの文字領域内にて3行3列の画素配列が配置可能な位置の数(配置数)を示し、表4は太線の文字画像N51〜N54、および、細線の文字画像N61〜N64(並びに、後述の文字画像N71)のそれぞれの配置数比を示している。なお、表3では、3行3列の画素配列の配置可能な位置の数を表す項目名を「3×3配置数」として示しており、3行3列の画素配列以外に、5行5列、7行7列および9行9列の画素配列における配置数も示している。また、表4では、3行3列の画素配列における配置数比を「3×3配置数比」として示しており、3行3列の画素配列以外に、5行5列、7行7列および9行9列の画素配列における配置数比も示している。さらに、表3および表4では、文字画像に付す符号によっても文字画像を特定している。 FIG. FIG. 13A is a diagram showing character images N51 to N54 of characters previously written in the tile label with bold lines separately from the character image whose line width has been adjusted by the above processing. B is a figure which shows the character images N61-N64 of the character previously written in the tile name label with the thin line. In Table 3, a pixel arrangement of 3 rows and 3 columns can be arranged in each character area of the thick line character images N51 to N54 and the thin line character images N61 to N64 (and the character image N71 described later). The number of positions (the number of arrangement) is shown, and Table 4 shows the arrangement number ratio of the thick line character images N51 to N54 and the thin line character images N61 to N64 (and the character image N71 described later). In Table 3, the item name representing the number of positions where the pixel arrangement of 3 rows and 3 columns can be arranged is shown as “3 × 3 arrangement number”. The arrangement numbers in the pixel array of columns, 7 rows and 7 columns, and 9 rows and 9 columns are also shown. Further, in Table 4, the arrangement number ratio in the pixel arrangement of 3 rows and 3 columns is shown as “3 × 3 arrangement number ratio”, and in addition to the pixel arrangement of 3 rows and 3 columns, 5 rows, 5 columns, and 7 rows and 7 columns. The arrangement number ratio in the 9 × 9 pixel array is also shown. Furthermore, in Table 3 and Table 4, the character image is specified also by the code | symbol attached | subjected to a character image.
表4に示すように、3行3列の画素配列における配置数比が、太線の文字画像N51〜N54ではおよそ90%で一定となるのに対して、細線の文字画像N61〜N64ではおよそ50%で一定となるため、上記処理のように文字領域内にて3行3列の画素配列が配置可能な位置の数と文字領域の面積との比を求めることにより、文字画像および線幅変更画像において文字の線幅が一定の精度にて取得可能であることが判る。また、上記処理における線幅許容範囲は、所望の線幅の標準的な文字(例えば、文字領域の面積が標準的な文字)を示す文字画像に対して配置数比を予め取得することにより準備される。 As shown in Table 4, the arrangement number ratio in the 3 × 3 pixel array is constant at about 90% in the thick line character images N51 to N54, whereas it is about 50 in the thin line character images N61 to N64. Therefore, the character image and the line width can be changed by obtaining the ratio of the number of positions where the 3 × 3 pixel arrangement can be arranged in the character area and the area of the character area as in the above processing. It can be seen that the line width of the character in the image can be acquired with a certain accuracy. In addition, the allowable line width range in the above process is prepared by acquiring the arrangement number ratio in advance for a character image indicating a standard character having a desired line width (for example, a character having a standard character area area). Is done.
なお、表4に示すように、5行5列、7行7列および9行9列の画素配列のそれぞれにおける配置数比でも、3行3列の画素配列と同様のことがいえ、これらの画素配列を用いる場合でも文字画像の文字の線幅を取得することが可能である。また、行数および列数が偶数となる他の正方行列や、正方行列以外の、例えば十字形状等、所定の形状の線幅検出用の画素配列を利用して同様に文字の線幅を取得することができる。 As shown in Table 4, the arrangement number ratio in each of the 5 × 5, 7 × 7, and 9 × 9 pixel arrangements is the same as the 3 × 3 pixel arrangement. Even when the pixel array is used, it is possible to obtain the line width of the character of the character image. Also, obtain the line width of the character in the same way by using a pixel array for detecting the line width of a predetermined shape other than a square matrix having an even number of rows and columns, or a cross shape other than the square matrix, for example. can do.
以上のように、コンピュータ7が実現する線幅調整部81では、線幅変更画像取得部84により文字画像における文字領域を膨張させた線幅変更画像が取得され、線幅取得部83により線幅変更画像から文字の線幅が実質的に取得される。そして、線幅変更管理部82により、文字の線幅が所望のものとなるまで文字画像に対する膨張の程度を漸次増大させながら、線幅変更画像取得部84における線幅変更画像を取得する処理と線幅取得部83における文字の線幅を再取得する処理とが繰り返される。これにより、コンピュータ7では自動処理により手書きの文字を示す文字画像から所望の線幅の文字を示す文字画像を取得することができる。
As described above, in the line
また、線幅変更管理部82では、線幅変更画像の文字領域内において3行3列の画素配列が配置可能な位置の数(配置数)が、直前に取得された線幅変更画像の配置数に対して増加する割合に基づいて文字の潰れの有無が簡単な演算処理により容易に検出されて繰り返し処理が停止されることにより、適切な文字画像を取得することができる。なお、文字の潰れを検出する際に配置数が取得される画素配列も3行3列に限定されず、正方行列以外の、例えば十字形状等、処理対象の文字画像に応じた所定の形状のものを利用することができ、線幅検出用の画素配列と異なる形状とされてもよい。
Further, the line width
次に、線幅調整部81による線幅調整処理のに付加されることが好ましい追加処理について説明を行う。図14は追加処理の流れを示す図であり、図5のステップS11の前に行われる処理を示している。また、図15は、処理対象の文字画像N71を示す図である。なお、本処理例の機能は図4において字間調整部851として示される。
Next, an additional process that is preferably added to the line width adjustment process by the line
字間調整部851では、まず、図15の文字画像N71が示す文字列に含まれる各文字の範囲が所定の手法により認識されて各文字に対して図15中に破線にて示す外接矩形A4が設定され、文字の配列方向(すなわち、縦方向)に関して互いに隣接する2つの外接矩形A4間に存在する間隙の幅が求められる。そして、これらの間隙の幅が文字の平均的な大きさに比例して予め定められた幅となるように、各間隙において横方向に並ぶ画素の空白列が削除される。これにより、字間調整部851にて複数の文字の間隔が所定の幅に調整される(ステップS31)。
In the inter-character
線幅調整部81では、幅が調整された後の文字画像において、文字列のサイズが変更された後(図5:ステップS11)、必要に応じて上記処理例と同様にして文字の線幅が調整され、所望の線幅の文字を示す文字画像が取得される。このように、コンピュータ7では、文字画像の文字列のサイズを変更する前に複数の文字の間隔を調整し、その後、文字の線幅が調整されることが好ましく、これにより、各文字が適切に配置されるとともに、所望の線幅の文字を示す文字画像を取得することができる。ただし、文字画像が示す文字によっては、各文字の範囲について誤認識が生じる場合を考慮して、操作者に対して上記処理が行われた旨の通知や、処理後の文字画像のディスプレイ75への表示を行って操作者により線幅調整後の文字画像が確認されることが好ましい。
The line
以上、本発明の実施の形態について説明してきたが、本発明は上記実施の形態に限定されるものではなく、様々な変形が可能である。 Although the embodiments of the present invention have been described above, the present invention is not limited to the above-described embodiments, and various modifications can be made.
線幅調整部81において、文字の潰れの影響を考慮する必要がない場合等には、処理対象の文字画像から文字の線幅が取得され、線幅変更管理部82によりこの線幅に基づいて線幅変更画像取得部84における膨張処理の程度が所定の演算により(あるいは、所定のルックアップテーブルを参照する等して)特定され、この膨張処理の程度に合わせて文字画像における文字領域が膨張されることにより、繰り返し処理を行うことなく文字画像の文字の線幅が所望のものとされてもよい。これにより、手書きの文字を示す文字画像から所望の線幅の文字を速やかに取得することができる。
When the line
上記実施の形態では、線幅変更画像取得部84における処理と線幅取得部83における処理とが繰り返されて所望の線幅の文字画像が取得されるが、膨張の程度を複数通りに漸次増大させた複数の線幅変更画像が一度に生成され(例えば、文字画像の文字領域の各画素を中心とするn行n列(ただし、nは奇数)の画素群を当該画素と同じ値とする膨張処理において、nの値をi通りに変更してi個の線幅変更画像を生成する。)、複数の線幅変更画像のそれぞれから文字の線幅が取得されて、所望の線幅の文字画像が選択されてもよい。この場合でも、実質的には線幅変更画像取得部84における処理と線幅取得部83における処理とが繰り返されて所望の線幅の文字画像が取得されているものと捉えることができる。
In the above embodiment, the process in the line width change
上記実施の形態では、線幅変更画像取得部84により文字画像の文字領域を膨張させた線幅変更画像が取得されるが、文字の線幅が所望の線幅よりも太い場合には、文字領域の収縮処理が行われてもよい。また、文字画像において、文字領域以外の領域を収縮または膨張させる処理は、文字領域を膨張または収縮させる処理と等価である。
In the above embodiment, the line width change image obtained by expanding the character area of the character image is acquired by the line width change
上記実施の形態では、線幅取得部83において文字画像または線幅変更画像に対して所定の形状の線幅検出用の画素配列における配置数比を求めることにより文字の線幅が容易に取得されるが、文字の線幅を取得する他の手法として、例えば、文字画像または線幅変更画像に対して一定の程度の収縮処理を繰り返し、文字の代表的な部位が消滅して文字領域が急激に減少するまでの繰返回数や細線化処理の繰返回数により、文字の線幅が実質的に取得されてもよい。
In the above embodiment, the line width of the character is easily acquired by obtaining the arrangement number ratio in the pixel array for detecting the line width of a predetermined shape with respect to the character image or the line width changed image in the line
字間調整部851および文字列サイズ変更部852の処理に代えて、処理前の文字画像の文字列に含まれる各文字の範囲が所定の手法により認識されて各文字に対して外接矩形が設定され、各外接矩形が拡大または縮小されつつ基準領域A2内に配置されてもよい。この場合においても、文字画像が示す文字によっては、各文字の範囲について誤認識が生じる場合を考慮して、操作者に対して上記処理が行われた旨の通知や、処理後の文字画像のディスプレイ75への表示を行って操作者により線幅調整後の文字画像が確認されることが好ましい。
Instead of the processing of the character
文字画像が示す文字は人の名前を示すものに限定されず、また、線幅調整後の文字画像は、瓦9への印刷に利用される版下データの生成以外の用途に利用されてもよい。コンピュータ7が実現する線幅調整装置としての機能は、文字画像が示す手書きの文字の線幅を調整する様々な用途に利用可能である。 The character indicated by the character image is not limited to the one indicating the name of the person, and the character image after the line width adjustment may be used for purposes other than the generation of the composition data used for printing on the roof tile 9. Good. The function as a line width adjusting device realized by the computer 7 can be used for various purposes of adjusting the line width of handwritten characters indicated by a character image.
81 線幅調整部
82 線幅変更管理部
83 線幅取得部
84 線幅変更画像取得部
A1 矩形領域
N10,N19,N20,N29,N30,N39,N40,N41,N49,N51〜N54,N61〜N64,N71 文字画像
N42〜N44 線幅変更画像
S11,S12,S14,S15,S17,S18,S31 ステップ
81 Line
Claims (8)
手書きの文字を示す2値の文字画像から前記文字の線幅を実質的に取得する線幅取得工程と、
前記線幅に基づいて前記文字画像における文字領域を膨張または収縮して前記文字の線幅を所望のものとする線幅変更工程と、
を備えることを特徴とする手書き文字の線幅調整方法。 A line width adjustment method for a handwritten character that adjusts a line width of a handwritten character indicated by a character image,
A line width acquisition step of substantially acquiring the line width of the character from a binary character image indicating a handwritten character;
A line width changing step of expanding or contracting a character area in the character image based on the line width to make the line width of the character desired.
A line width adjustment method for handwritten characters, comprising:
前記線幅変更工程が、
前記文字画像において前記文字領域を膨張または収縮させた線幅変更画像を取得する線幅変更画像取得工程と、
前記線幅変更画像から前記文字の線幅を実質的に取得する線幅再取得工程と、
前記文字の線幅が所望のものとなるまで、前記線幅変更画像における前記文字画像に対する膨張または収縮の程度を漸次増大させながら前記線幅変更画像取得工程と前記線幅再取得工程とを実質的に繰り返す繰返工程と、
を備えることを特徴とする手書き文字の線幅調整方法。 The line width adjusting method for handwritten characters according to claim 1,
The line width changing step
A line width change image acquisition step of acquiring a line width change image obtained by expanding or contracting the character region in the character image;
A line width reacquisition step for substantially acquiring the line width of the character from the line width change image;
The line width change image acquisition step and the line width reacquisition step are substantially performed while gradually increasing the degree of expansion or contraction of the character image in the line width change image until the line width of the character becomes a desired one. Repeating process repeatedly,
A line width adjustment method for handwritten characters, comprising:
前記線幅再取得工程において、前記線幅変更画像の文字領域内にて所定の形状の線幅検出用の画素配列が配置可能な位置の数と前記文字領域の面積との比に基づいて前記文字の前記線幅が取得されることを特徴とする手書き文字の線幅調整方法。 It is a line width adjustment method of the handwritten character according to claim 2,
In the line width reacquisition step, based on a ratio between the number of positions where a pixel array for detecting line width of a predetermined shape can be arranged in the character area of the line width changed image and the area of the character area A method for adjusting a line width of a handwritten character, wherein the line width of the character is acquired.
前記線幅変更画像が、前記文字画像における前記文字領域を膨張させた画像であり、
前記線幅変更画像の文字領域内において所定の形状の文字潰れ検出用の画素配列が配置可能な位置の数が、直前に取得された線幅変更画像に対して増加する割合に基づいて前記繰返工程の停止を判断する工程をさらに備えることを特徴とする手書き文字の線幅調整方法。 It is a line width adjustment method of the handwritten character according to claim 2 or 3,
The line width change image is an image obtained by expanding the character region in the character image,
The repetition is performed based on a rate at which the number of positions where a pixel arrangement for detecting a character collapse of a predetermined shape can be arranged in the character area of the line width changed image is increased with respect to the line width changed image acquired immediately before. A method for adjusting a line width of a handwritten character, further comprising a step of determining stoppage of the return step.
前記文字画像が1列に並ぶ複数の文字を示し、
前記線幅取得工程の前に、前記複数の文字を囲む矩形領域を所定の大きさに合わせて拡大または縮小する文字列サイズ変更工程をさらに備えることを特徴とする手書き文字の線幅調整方法。 A line width adjustment method for handwritten characters according to any one of claims 1 to 4,
The character image shows a plurality of characters arranged in a line,
A line width adjusting method for handwritten characters, further comprising a character string size changing step of enlarging or reducing a rectangular region surrounding the plurality of characters according to a predetermined size before the line width acquiring step.
前記文字列サイズ変更工程の前に、前記複数の文字の間隔を所定の幅に調整する字間調整工程をさらに備えることを特徴とする手書き文字の線幅調整方法。 It is a line width adjustment method of the handwritten character according to claim 5,
A method for adjusting the line width of a handwritten character, further comprising: a character spacing adjustment step of adjusting an interval between the plurality of characters to a predetermined width before the character string size changing step.
前記文字画像が示す文字が、社寺に用いられる瓦に記名される寄進者の名前であることを特徴とする手書き文字の線幅調整方法。 A line width adjustment method for handwritten characters according to any one of claims 1 to 6,
The method for adjusting a line width of a handwritten character, wherein the character indicated by the character image is a name of a donor named on a roof tile used for a shrine or temple.
手書きの文字を示す2値の文字画像において文字領域を膨張または収縮させた線幅変更画像を取得する線幅変更画像取得部と、
前記文字画像から前記文字の線幅を実質的に取得する線幅取得部と、
前記文字画像における前記文字の線幅に基づいて、前記線幅変更画像取得部に前記文字画像における前記文字領域を膨張または収縮させて前記文字の線幅を所望のものとする線幅変更管理部と、
を備えることを特徴とする手書き文字の線幅調整装置。 A line width adjustment device for a handwritten character that adjusts a line width of a handwritten character indicated by a character image,
A line width change image acquisition unit that acquires a line width change image obtained by expanding or contracting a character region in a binary character image indicating a handwritten character;
A line width acquisition unit that substantially acquires the line width of the character from the character image;
Based on the line width of the character in the character image, the line width change management unit that causes the line width change image acquisition unit to expand or contract the character region in the character image to obtain the desired line width of the character When,
A line width adjusting device for handwritten characters, comprising:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004348006A JP2006157761A (en) | 2004-12-01 | 2004-12-01 | Method and device for adjusting handwritten character |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004348006A JP2006157761A (en) | 2004-12-01 | 2004-12-01 | Method and device for adjusting handwritten character |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2006157761A true JP2006157761A (en) | 2006-06-15 |
Family
ID=36635453
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2004348006A Pending JP2006157761A (en) | 2004-12-01 | 2004-12-01 | Method and device for adjusting handwritten character |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2006157761A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008252680A (en) * | 2007-03-30 | 2008-10-16 | Omron Corp | Program for portable terminal device, and the portable terminal device |
JP2012249172A (en) * | 2011-05-30 | 2012-12-13 | Ricoh Co Ltd | Image processing apparatus, image processing program and memory medium |
JP2014056321A (en) * | 2012-09-11 | 2014-03-27 | Konica Minolta Inc | Image processor and image forming apparatus |
-
2004
- 2004-12-01 JP JP2004348006A patent/JP2006157761A/en active Pending
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008252680A (en) * | 2007-03-30 | 2008-10-16 | Omron Corp | Program for portable terminal device, and the portable terminal device |
JP2012249172A (en) * | 2011-05-30 | 2012-12-13 | Ricoh Co Ltd | Image processing apparatus, image processing program and memory medium |
US9721325B2 (en) | 2011-05-30 | 2017-08-01 | Ricoh Company, Ltd. | Image processing apparatus, image processing method, and computer-readable recording medium |
US10192285B2 (en) | 2011-05-30 | 2019-01-29 | Ricoh Company, Ltd. | Image processing apparatus, image processing method, and computer-readable recording medium |
JP2014056321A (en) * | 2012-09-11 | 2014-03-27 | Konica Minolta Inc | Image processor and image forming apparatus |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20060269137A1 (en) | System and method for generating a custom font | |
JP2004334861A (en) | Optical terminal device, image processing method, and system | |
US8259363B2 (en) | Image processing apparatus and printing apparatus | |
JP2021515951A (en) | Label data processing system | |
JP2022066321A (en) | Information processing device and program | |
JP2006157761A (en) | Method and device for adjusting handwritten character | |
JP2007094126A (en) | Method and device for acquiring drawing point data and method and device for drawing | |
JP2005170039A (en) | Printer and printing method | |
JP4156497B2 (en) | Tile name system | |
TW202008423A (en) | Drawing apparatus and drawing method | |
JP4159948B2 (en) | Two-dimensional code reading device, two-dimensional code reading method, two-dimensional code reading program, and storage medium | |
JP2007249580A (en) | Image processor, image processing program and image processing method | |
JP2000048219A (en) | Seal print block copy preparation system and seal print block copy | |
JP2021180456A (en) | Image processing apparatus | |
JP4044294B2 (en) | Newspaper production system and article importance determination method | |
JP5408607B2 (en) | Method for verifying print data using postscript data | |
JP3656832B2 (en) | How to input handwritten characters and how to use handwritten fonts | |
CN113836865A (en) | Character recognition method based on file scanning, terminal and storage device | |
JP2007102265A (en) | Identification card recognition device and method | |
JP4817769B2 (en) | Card issuing system and card issuing method | |
US20190362176A1 (en) | Image processing device and image processing method | |
TW202338653A (en) | Drawing data generator, drawing system and drawing data generation method | |
JP3847509B2 (en) | Address printing apparatus, address printing method, and recording medium recording address printing program | |
CN117873616A (en) | Text self-adaptive display method and device, electronic equipment and storage medium | |
JP2022139176A (en) | handy printer |