JP2006157761A - Method and device for adjusting handwritten character - Google Patents

Method and device for adjusting handwritten character Download PDF

Info

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
Application number
JP2004348006A
Other languages
Japanese (ja)
Inventor
Kazutaka Tasaka
和孝 田坂
Yusaku Ota
有作 太田
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.)
Dainippon Screen Manufacturing Co Ltd
Original Assignee
Dainippon Screen Manufacturing 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 Dainippon Screen Manufacturing Co Ltd filed Critical Dainippon Screen Manufacturing Co Ltd
Priority to JP2004348006A priority Critical patent/JP2006157761A/en
Publication of JP2006157761A publication Critical patent/JP2006157761A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To acquire a character image indicating a desired line width character from a character image indicative of a handwritten character. <P>SOLUTION: In a line width adjusting part 81 achieved by a computer, a line width altered image acquiring part 84 acquires a line width altered image expanded in a character region in a character image indicative of a handwritten character, and a line width acquiring part 83 substantially acquires a character line width from a line width altered image. A line width alteration management part 82 gradually increases a degree of the expansion of the character image until the line width of the character becomes a desired one, while there are repeated the processing in the line width altered image acquiring part 84 and the processing in the line width acquiring part 83. It is hereby possible in the computer to acquire a character image indicative of a desired line width character from a character image indicative of a handwritten character. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、文字画像が示す手書きの文字の線幅を調整する技術に関する。   The present invention relates to a technique for adjusting a line width of a handwritten character indicated by a character image.

従来より、手書き文字のレイアウトを画像処理により整える手法が利用されている。例えば、特許文献1では、文字画像が示す手書きの文字を1文字ごとに分割するとともに当該文字を住所や氏名等の情報の種類別に分割し、この種類に応じて規定された位置および大きさに従って文字を配置してはがき等に印刷を行う技術が開示されている。
特開平8−123971号公報
Conventionally, a method of arranging the layout of handwritten characters by image processing has been used. For example, in Patent Document 1, a handwritten character indicated by a character image is divided for each character, and the character is divided according to the type of information such as an address and a name, according to the position and size defined according to this type. A technique is disclosed in which characters are placed and printed on a postcard or the like.
JP-A-8-123971

ところで、多くの寺院では仏をまつる建物(仏堂)を新築したり、修復する際に信者からお布施を募り、寄進者の名前をその建物に用いられる瓦に書き写す(すなわち、記名する)ことが行われており、瓦への記名は作業者により手書きにて行われている。このとき、寄進者の手書きの名前を示す複数の文字画像のデータを装置に入力し、これらの文字画像を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 claim 1 is a line width adjustment method for a handwritten character that adjusts a line width of a handwritten character indicated by the character image, wherein the line width of the character is determined from a binary character image indicating the handwritten character. A line width acquisition step that substantially acquires the line width, and a line width change step that expands or contracts a character area in the character image based on the line width to make the line width of the character desired.

請求項2に記載の発明は、請求項1に記載の手書き文字の線幅調整方法であって、前記線幅変更工程が、前記文字画像において前記文字領域を膨張または収縮させた線幅変更画像を取得する線幅変更画像取得工程と、前記線幅変更画像から前記文字の線幅を実質的に取得する線幅再取得工程と、前記文字の線幅が所望のものとなるまで、前記線幅変更画像における前記文字画像に対する膨張または収縮の程度を漸次増大させながら前記線幅変更画像取得工程と前記線幅再取得工程とを実質的に繰り返す繰返工程とを備える。   Invention of Claim 2 is the line width adjustment method of the handwritten character of Claim 1, Comprising: The said line width change process expands or contracts the said character area in the said character image, The line width change image A line width change image acquisition step of acquiring the line width, a line width reacquisition step of substantially acquiring the line width of the character from the line width change image, and the line width until the line width of the character becomes a desired one. A repetition step of substantially repeating the line width change image acquisition step and the line width reacquisition step while gradually increasing the degree of expansion or contraction of the character image in the width change image.

請求項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 Claim 1 thru | or 4, Comprising: The said character image shows the several character arranged in 1 row, The said line width acquisition process Before the process, a character string size changing step of enlarging or reducing the rectangular area surrounding the plurality of characters according to a predetermined size is further provided.

請求項6に記載の発明は、請求項5に記載の手書き文字の線幅調整方法であって、前記文字列サイズ変更工程の前に、前記複数の文字の間隔を所定の幅に調整する字間調整工程をさらに備える。   The invention according to claim 6 is the line width adjustment method for handwritten characters according to claim 5, wherein the character spacing is adjusted to a predetermined width before the character string size changing step. A further adjustment step is provided.

請求項7に記載の発明は、請求項1ないし6のいずれかに記載の手書き文字の線幅調整方法であって、前記文字画像が示す文字が、社寺に用いられる瓦に記名される寄進者の名前である。   The invention according to claim 7 is the line width adjustment method for handwritten characters according to any one of claims 1 to 6, wherein the character indicated by the character image is registered on a roof tile used for a shrine or temple. Is the name.

請求項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 claim 6, a character image in which each character is appropriately arranged can be acquired.

図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 communication network 90 such as the Internet, and a computer (hereinafter referred to as “client”) serving as a client disposed in a home or company. ) 91. Each of the server 11 and the client 91 is a general computer including a CPU that performs various arithmetic processes, a memory that stores various information, and the like. As shown in FIG. 1, the server 11 is connected to a printing apparatus 12 that performs printing on a roof tile, and the server 11 and the printing apparatus 12 constitute a roof name system 1 that performs labeling on the roof tile.

瓦記名システム1は、寺院において新たな建物を建築したり既存の建物を修復する際に(例えば、仏堂の建築や修復の際に)、金銭等を寄付する寄進者の氏名、名称あるいは戒名等(以下、「名前」と総称する。)を受け付け、その建物に用いられる瓦に名前を印刷する(すなわち、記名を行う)システムである。瓦記名システム1では、後述するように記名後の瓦の画像データが取得され、必要に応じてサーバ11からクライアント91へと画像データが配信されてクライアント91において瓦の画像が表示可能とされる。   The tile name system 1 is used to construct a new building or restore an existing building in a temple (for example, during the construction or restoration of a Buddhist temple). (Hereinafter collectively referred to as “name”), and the system prints the name on the roof tile used for the building (namely, the name is written). In the tile name system 1, the tile image data after the name registration is acquired as will be described later, and the image data is distributed from the server 11 to the client 91 as necessary, so that the tile image can be displayed on the client 91. .

図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 tile name system 1. As described above, the tile name system 1 is on the curved surface of the server 11 connected to the communication network 90 and the tile 9 (for example, a tile having a size of 400 mm × 500 mm when viewed from the main surface side). The printing device 12 performs printing on the roof, and the printing device 12 transports the roof tile 9 by various mechanisms. The roof transport mechanism 2 has a first half of the roof tile transport mechanism 2 and a photocurable ink (for example, toward the roof tile 9). , An ultraviolet curable ink containing carbon black), a head moving mechanism 4 for moving the head 3 in the X and Y directions in FIG. An ink curing unit 51 that irradiates light, and an imaging unit 52 that images the roof tile 9. In FIG. 2, for convenience of explanation, the head unit 3 and the head moving mechanism 4 are shown larger than other configurations.

瓦搬送機構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 first conveyor 21 that moves while holding the roof tile 9 below the head unit 3, a second conveyor 22 that moves the roof tile 9 below the ink curing unit 51 and the imaging unit 52, and A transfer robot 23 for transferring the roof tile 9 from the first conveyor 21 to the second conveyor is provided. The head unit 3 has an ink jet type nozzle unit 31, and a plurality of ejection openings for ejecting micro droplets of ink toward the roof tile 9 are arranged in the nozzle unit 31 at a predetermined pitch in the X direction. Yes. In addition, an ink supply unit (not shown) is connected to the nozzle unit 31, and ink is appropriately supplied from the ink supply unit to the nozzle unit 31. An auxiliary curing unit 32 connected to a light source unit 321 that emits ultraviolet rays is attached to each side surface of the nozzle unit 31 on the (+ Y) side and the (−Y) side. 9 is formed.

ノズル部31は、瓦9とは反対側において支持部33に固定されており、支持部33によりノズル部31が瓦9に対して進退可能(すなわち、図2中のZ方向に移動可能)に支持される。また、ノズル部31の(−X)側の側面には、ローラ34がX軸に平行な中心軸を中心として回転可能に取り付けられる。ヘッド部3では、ノズル部31が瓦9上に位置する際にはローラ34およびノズル部31の自重によりローラ34が瓦9の表面に当接する。   The nozzle portion 31 is fixed to the support portion 33 on the side opposite to the roof tile 9 so that the nozzle portion 31 can move forward and backward with respect to the roof tile 9 by the support portion 33 (that is, movable in the Z direction in FIG. 2). Supported. A roller 34 is attached to the side surface of the nozzle portion 31 on the (−X) side so as to be rotatable about a central axis parallel to the X axis. In the head unit 3, when the nozzle unit 31 is positioned on the roof tile 9, the roller 34 comes into contact with the surface of the roof tile 9 due to the weight of the roller 34 and the nozzle unit 31.

ヘッド移動機構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 direction moving mechanism 41 that moves the head unit 3 in the Y direction, and an X direction moving mechanism 42 that moves minutely in the X direction. Further, on the (−Y) side of the roof tile 9 positioned below the head section 3, a roller retracting section 43 that forms a surface that is approximately continuous from the surface of the roof tile 9 is provided. In the printing apparatus 12, when the head unit 3 is moved in the main scanning direction (Y direction) with respect to the roof tile 9 by the Y-direction moving mechanism 41, the roller 34 rolls and moves on the surface of the roof tile 9. When moving in the sub-scanning direction (X direction) by the first conveyor 21, the roller 34 stops on the roller retracting portion 43 and retracts from the roof tile 9.

印刷装置12は、さらに、寄進者の名前を示す文字画像データ61を受け付ける名前受付部6、および、名前受付部6から入力される文字画像データ61から版下データを生成する版下データ生成用のコンピュータ7を有し、コンピュータ7は印刷装置12の各構成の制御を行う制御部としての役割も担う。   The printing device 12 further includes a name receiving unit 6 that receives character image data 61 indicating the name of the donor, and a composition data generation unit that generates composition data from the character image data 61 input from the name receiving unit 6. The computer 7 also serves as a control unit that controls each component of the printing apparatus 12.

名前受付部6は、具体的には、各種演算処理を行うCPUや各種情報を記憶するメモリ、固定ディスク等により構成されたコンピュータに、用紙上に描かれた画像を読み取って画像データを取得するスキャナが接続された構成となっている。名前受付部6では、実際に寄進者の名前が手書きにて記入された(例えば、自己の筆跡にて書かれた)所定のラベル(以下、「瓦記名ラベル」という。)の一部がスキャナにて読み取られ、寄進者が記入した名前(文字のみならず、梵字やロゴが含まれてもよい。)の文字画像データ61が取得される。そして、各文字画像データ61に寄進者の名前や他の情報が関連付けられ、文字画像データ61の集合である文字画像データベース610が生成されて固定ディスク等に記憶される。   Specifically, the name receiving unit 6 acquires image data by reading an image drawn on a sheet on a computer configured by a CPU that performs various arithmetic processes, a memory that stores various types of information, a fixed disk, and the like. The scanner is connected. In the name reception unit 6, a part of a predetermined label (hereinafter referred to as “tile name label”) in which the name of the donor is actually entered by handwriting (for example, written in his handwriting) is a scanner. The character image data 61 of the name (not only characters but may include a letter or a logo) that is read by the donor and entered by the donor is acquired. Each character image data 61 is associated with the name of the donor and other information, and a character image database 610 that is a set of the character image data 61 is generated and stored in a fixed disk or the like.

版下データ生成用のコンピュータ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 character image data 61, composition data that is a raster image for each roof tile 9 is generated from the adjusted character image. In the printing process to be performed, it is used for ink ejection control of the head unit 3 and movement control of the head unit 3 and the roof tile 9. The configuration of the computer 7 and the functional configuration relating to the line width adjustment of handwritten characters realized by the computer 7 will be described in detail after the entire description of the tile name system 1.

サーバ11は各種情報を記憶する固定ディスク111、CPUやメモリ等により実現される機能である画像送出部112、および、図1のクライアント91との間で通信網90を介して情報の受け渡しを行う通信部113を有する。サーバ11では、撮像部52から入力される瓦画像データ110が固定ディスク111に記憶される。画像送出部112は、クライアント91からの要求信号に応じて瓦画像データ110を固定ディスク111から読み出し、通信部113を介してクライアント91へと送出する。   The server 11 exchanges information with the fixed disk 111 that stores various information, the image transmission unit 112 that is a function realized by a CPU, a memory, and the like, and the client 91 of FIG. A communication unit 113 is included. In the server 11, the roof tile image data 110 input from the imaging unit 52 is stored in the fixed disk 111. The image sending unit 112 reads the roof tile image data 110 from the fixed disk 111 in response to a request signal from the client 91, and sends it to the client 91 via the communication unit 113.

次に、瓦記名システム1による瓦9に記名を行う処理について説明を行う。瓦記名システム1では、まず、名前受付部6において全国の寄進者から郵送された瓦記名ラベルがスキャナにより読み取られ、寄進者の名前が記入された所定の部分の2値の画像データが文字画像データ61として受け付けられる。   Next, a description will be given of a process for registering the tile 9 by the tile name system 1. In the tile name system 1, first, a name reading unit 6 reads a tile name label mailed from donors nationwide by a scanner, and binary image data of a predetermined portion in which the name of the donor is written is a character image. Data 61 is accepted.

また、瓦記名ラベルには寄進者が属する末寺である寺院・教会を示す番号が記載されており、この番号はスキャナにより取得された画像データから専用のソフトウェア(いわゆる、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 name reception unit 6, and the name of the donor is assigned to each character image data 61. In addition to being associated, a classification code indicating the classification of the donor (that is, the end temple to which he belongs) is given.

名前受付部6では既に生成されている文字画像データベース610が、新たな文字画像データ61が受け付けられる毎に順次更新される。文字画像データベース610の更新が完了すると、コンピュータ7が分類コードを参照して文字画像データベース610内の文字画像データ61を末寺ごとに分類し、原則として同一の末寺に属す複数の寄進者(例えば、12〜18人の寄進者)の名前をそれぞれ示す複数の文字画像データ61が各瓦9に対して選択される。そして、選択された複数の文字画像データ61のそれぞれが示す文字の線幅が調整され、線幅調整後の複数の文字画像から各瓦9に対する版下データが生成される。   The name reception unit 6 sequentially updates the character image database 610 that has already been generated each time new character image data 61 is received. When the update of the character image database 610 is completed, the computer 7 refers to the classification code to classify the character image data 61 in the character image database 610 for each end temple, and in principle, a plurality of donors belonging to the same end temple (for example, A plurality of character image data 61 respectively indicating names of 12 to 18 donors) is selected for each roof tile 9. Then, the line width of the character indicated by each of the plurality of selected character image data 61 is adjusted, and the composition data for each roof tile 9 is generated from the plurality of character images after the line width adjustment.

印刷装置12では、版下データに基づいてヘッド移動機構4によりヘッド部3の吐出口と瓦9との間の距離を一定に保ちつつヘッド部3が瓦9に対して主走査方向に移動し、インクの微小液滴が瓦9上に吐出される。瓦9上に付着した直後のインクには、補助硬化部32から光が照射されてインクが仮硬化される。主走査の終了後、ヘッド部3に対して瓦9が副走査方向に相対的に移動して、ヘッド部3の主走査が繰り返される。このようにして、ヘッド部3の主走査および副走査が繰り返される。その後、瓦9が第2コンベヤ22上へと移載され、インク硬化部51から光が瓦9にさらに照射されてインクが本硬化し、寄進者の名前が瓦9に定着される。   In the printing apparatus 12, the head unit 3 moves in the main scanning direction with respect to the roof tile 9 while keeping the distance between the discharge port of the head section 3 and the roof tile 9 constant by the head moving mechanism 4 based on the block data. Ink droplets are ejected onto the roof tile 9. The ink immediately after adhering to the roof tile 9 is irradiated with light from the auxiliary curing unit 32 to temporarily cure the ink. After the main scanning is finished, the roof tile 9 moves relative to the head unit 3 in the sub-scanning direction, and the main scanning of the head unit 3 is repeated. In this way, the main scanning and the sub scanning of the head unit 3 are repeated. Thereafter, the roof tile 9 is transferred onto the second conveyor 22, and light is further irradiated onto the roof tile 9 from the ink curing unit 51, the ink is fully cured, and the name of the donor is fixed on the roof tile 9.

印刷後の瓦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 imaging unit 52 by the second conveyor 22, and the roof tile 9 whose name is recorded by the imaging unit 52 is imaged to obtain image data of the roof tile. The tile image data is output to the server 11 and stored in the fixed disk 111 as the tile image data 110 in association with the names of a plurality of donors named on the tile 9. The roof tile 9 is further moved in the (+ X) direction by the second conveyor 22, taken out at the end of the second conveyor 22 and placed on a predetermined pallet, and is used for the construction and restoration of the building belonging to the temple. .

瓦画像データ110が固定ディスク111に記憶されると、例えば、寄進者が端末であるクライアント91をブラウザを介して操作することにより、自己の名前が記名された瓦9の画像データの配信の要求信号が生成され、クライアント91から通信網90を介してサーバ11へと送信されて要求信号が受け付けられる。   When the tile image data 110 is stored in the fixed disk 111, for example, the donor operates the client 91, which is a terminal, via a browser, thereby requesting distribution of the image data of the tile 9 on which his name is recorded. A signal is generated, transmitted from the client 91 to the server 11 via the communication network 90, and a request signal is accepted.

サーバ11では、画像送出部112によりクライアント91からの要求信号に従って、その寄進者の名前に関連付けられた記名後の瓦9の画像データ(すなわち、瓦画像データ110)が固定ディスク111から読み出され、通信部113を介してクライアント91へと送出される。そして、クライアント91において通信網90を介して瓦画像データ110が受信され、寄進者が、自己の名前が自己の筆跡にて記名された瓦9の画像を閲覧することができ、これにより、寄進者は満足感を得ることができる。なお、瓦記名システム1は、寺院以外に神社に用いられる瓦9に記名を行うものであってもよい。すなわち、瓦記名システム1は、社寺に用いられる瓦に記名を行う用途に利用される。   In the server 11, the image data of the roof tile 9 after the name associated with the name of the donor is read from the fixed disk 111 according to the request signal from the client 91 by the image sending unit 112. And sent to the client 91 via the communication unit 113. Then, the tile image data 110 is received by the client 91 via the communication network 90, and the donor can view the image of the tile 9 whose name is written in his handwriting. Can get satisfaction. Note that the tile name system 1 may be a name for the tile 9 used in a shrine other than a temple. That is, the tile name system 1 is used for the purpose of registering names on tiles used in shrines and temples.

また、印刷装置がステージに固定された瓦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 ink curing unit 51 is omitted, and the ink is temporarily cured by irradiating light while discharging the ink onto the roof tile 9 in the main scanning forward path of the head unit, and the head unit is slowly moved in the backward path. The main curing of the ink may be performed using the same light source.

次に、文字画像が示す手書きの文字の線幅を調整する処理について説明を行う。図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 CPU 71 that performs various arithmetic processes, a ROM 72 that stores basic programs, and a RAM 73 that stores various information are connected to a bus line. The bus line further includes a fixed disk 74 for storing information, a display 75 for displaying various information such as images, a keyboard 76a and a mouse 76b (hereinafter referred to as “input unit 76”) for receiving input from the operator. ) Between the reading device 77 for reading information from the computer-readable recording medium 8 such as an optical disk, a magnetic disk, a magneto-optical disk, and other devices (other configurations of the printing device 12, the server 11, etc.) A communication unit 78 for transmitting and receiving signals is connected as appropriate via an interface (I / F).

コンピュータ7には、事前に読取装置77を介して記録媒体8からプログラム80が読み出され、固定ディスク74に記憶される。そして、プログラム80がRAM73にコピーされるとともにCPU71がRAM73内のプログラムに従って演算処理を実行することにより(すなわち、コンピュータがプログラムを実行することにより)、コンピュータ7が文字画像の文字の線幅を調整する線幅調整部としての役割を果たす。   The computer 7 reads the program 80 from the recording medium 8 via the reader 77 in advance and stores it in the fixed disk 74. Then, when the program 80 is copied to the RAM 73 and the CPU 71 executes arithmetic processing according to the program in the RAM 73 (that is, when the computer executes the program), the computer 7 adjusts the line width of the character image. It plays a role as a line width adjustment unit.

図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 CPU 71, the ROM 72, the RAM 73, the fixed disk 74, and the like when the CPU 71 operates according to the program 80. In FIG. 4, each configuration (line width) of the line width adjustment unit 81 is illustrated. The change management unit 82, the line width acquisition unit 83, and the line width change image acquisition unit 84), the character spacing adjustment unit 851, and the character string size change unit 852 are functions realized by the CPU 71 and the like. The character spacing adjustment unit 851 is a function in another example that will be described in detail after the description of this processing example. The functions of the line width adjusting unit 81, the character spacing adjusting unit 851, and the character string size changing unit 852 may be realized by a dedicated electrical circuit, or a partially dedicated electrical circuit may be used.

図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 character image data 61 is selected for each roof tile 9 in the computer 7, and as shown in FIG. 6, each character image N10, N20, N30 and N40 indicate a plurality of characters arranged in a line (hereinafter also referred to as “character string”). In the plurality of character images N10, N20, N30, and N40, the line widths of the characters are different from each other, and the sizes of the character strings are different from each other. Hereinafter, the description will be made while paying attention to the character image N40 on the right side in FIG. 6, but the same processing is performed for the other character images N10, N20, and N30.

図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 section 6.

図4の文字列サイズ変更部852では、文字画像N40が示す複数の文字を外接するようにして囲む矩形領域(図7中にて符号A1を付す領域)が切り出される。続いて、矩形領域A1が、図8に示すように瓦記名ラベルの記入枠より僅かに小さい大きさとされた基準領域A2内に配置される。このとき、矩形領域A1の矩形の境界線における(文字の配列方向の)上側の辺の中央の位置(図7中において符号P1を付す位置であり、基準位置と呼ぶ。)が、基準領域A2の矩形の境界線における上側の辺の中央の位置に重なるように、矩形領域A1が基準領域A2内に配置される。なお、基準位置が矩形領域A1の中心とされ、基準位置が基準領域A2の中心に重なるように、矩形領域A1が基準領域A2内に配置されてもよい。   In the character string size changing unit 852 in FIG. 4, a rectangular region (region denoted by reference numeral A <b> 1 in FIG. 7) surrounding a plurality of characters indicated by the character image N <b> 40 is cut out. Subsequently, the rectangular area A1 is arranged in a reference area A2 having a size slightly smaller than the entry frame for the tile name label as shown in FIG. At this time, the central position of the upper side (in the character arrangement direction) of the rectangular boundary line of the rectangular area A1 (the position denoted by reference numeral P1 in FIG. 7 is referred to as the reference position) is referred to as the reference area A2. The rectangular area A1 is arranged in the reference area A2 so as to overlap the center position of the upper side of the rectangular boundary line. The rectangular area A1 may be arranged in the reference area A2 so that the reference position is the center of the rectangular area A1 and the reference position overlaps the center of the reference area A2.

そして、矩形領域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 size changing unit 852 enlarges the rectangular area A1 surrounding a plurality of characters according to the size of the predetermined reference area A2, and the character string size is desired as shown in FIG. The character image N41 changed to the size of is acquired (step S11). If the rectangular area A1 is larger than the reference area A2, the rectangular area A1 is reduced in accordance with the size of the reference area A2.

サイズ変更後の文字画像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 width acquisition unit 83 obtains the area of the character region of the character image N41 (that is, the number of pixels indicating the character). FIG. A and FIG. FIG. 10B is a diagram illustrating a part of the character image. A and FIG. In B, the pixels included in the character area are indicated by parallel diagonal lines. FIG. In the character image shown in A, the area of the character region is 40. FIG. In the character image shown in B, the area of the character region is 11.

続いて、文字画像の文字領域内にて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 width acquisition unit 83 obtains the area of the character region and the number of positions where the pixel array of 3 rows and 3 columns can be arranged in the character region as shown in Table 1 in the character image N41. It is done.

Figure 2006157761
Figure 2006157761

表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 width acquisition unit 83, the ratio of the number of positions where the pixel arrangement of 3 rows and 3 columns can be arranged in the character area and the area of the character area (hereinafter referred to as “arrangement number ratio”) is shown in Table 2. It is required as shown in In Table 2, the item name representing 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 and 5 columns, The arrangement number ratio in the pixel array of 7 rows 7 columns and 9 rows 9 columns is also shown. Similarly to Table 1, the character image is specified by the code attached to the character image, and the arrangement number ratio of only the character image N41 is acquired at this stage.

Figure 2006157761
Figure 2006157761

ここで、図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 width acquisition unit 83 substantially acquires the line width of the character from the character image N41 after the size change based on the arrangement number ratio (step S12).

続いて、線幅変更管理部82では取得された配置数比が所定の上限値および下限値にて設定される範囲(以下、「線幅許容範囲」という。)内に含まれない場合には、サイズ変更後の文字画像N41の文字の線幅が所望の線幅でないと判定され、以下の処理が行われる(ステップS13)。なお、配置数比が線幅許容範囲内に含まれる場合には、文字画像N41の示す文字が所望の線幅となっていると判定されて線幅調整処理が終了する(ステップS13)。   Subsequently, in the line width change management unit 82, when the obtained arrangement number ratio is not included in a range set by a predetermined upper limit value and lower limit value (hereinafter referred to as “line width allowable range”). Then, it is determined that the character line width of the character image N41 after the size change is not a desired line width, and the following processing is performed (step S13). When the arrangement number ratio is included in the line width allowable range, it is determined that the character indicated by the character image N41 has a desired line width, and the line width adjustment process ends (step S13).

線幅変更画像取得部84では文字画像N41において文字領域に含まれる各画素を中心とする3行3列の画素群を当該画素と同じ値にするようにして文字領域が膨張され(いわゆる、太らせ処理が施され)、線幅が太く変更された画像(以下、「線幅変更画像」という。)が取得される(ステップS14)。図11.Aは、線幅変更画像取得部84にて取得された線幅変更画像N42を示す図であり、図11.Aの画像(並びに、後述の図11.Bおよび図11.Cの画像)では膨張処理後に所定のフィルタ処理が施されている。なお、膨張処理は文字画像N41の文字領域に含まれる各画素を8方向に同じように膨張させる手法以外であってもよい。   The line width changed image acquisition unit 84 expands the character area so that a pixel group of 3 rows and 3 columns centering on each pixel included in the character area in the character image N41 has the same value as the pixel (so-called thickening). And an image in which the line width is changed to be thick (hereinafter referred to as “line width changed image”) is acquired (step S14). FIG. FIG. 11A is a diagram showing a line width change image N42 acquired by the line width change image acquisition unit 84. FIG. The image of A (and the images of FIGS. 11.B and 11.C described later) is subjected to a predetermined filter process after the expansion process. The dilation process may be other than the technique of dilating each pixel included in the character area of the character image N41 in the same way in eight directions.

線幅取得部83では、ステップS12と同様に、線幅変更画像N42の文字領域内において3行3列の画素配列が配置可能な位置の数と文字領域の面積とが表1に示すように求められ、これらの値の比である配置数比(表2参照)に基づいて線幅変更画像N42から文字の線幅が実質的にかつ容易に取得される(ステップS15)。   In the line width acquisition unit 83, as in step S12, as shown in Table 1, the number of positions where the pixel array of 3 rows and 3 columns can be arranged in the character area of the line width changed image N42 and the area of the character area are shown in Table 1. The line width of the character is obtained substantially and easily from the line width changed image N42 based on the arrangement number ratio (see Table 2), which is the ratio of these values (step S15).

続いて、線幅変更管理部82では、線幅変更画像N42の配置数が文字画像N41の配置数に対して増加する割合が取得された後(ステップS16の一部に相当する。)、配置数比と線幅許容範囲とを比較することにより、線幅変更画像N42の文字の線幅が所望の線幅であるか否かが判定される。図11.Aの線幅変更画像N42では所望の線幅でないと判定されて、ステップS14に戻って次の線幅変更画像が取得される(ステップS18)。なお、ステップS16における1回目の処理は、この処理が繰り返される際の事前準備に相当し、この場合、ステップS17はスキップされる。   Subsequently, the line width change management unit 82 obtains a rate at which the number of arrangements of the line width change images N42 increases with respect to the number of arrangements of the character images N41 (corresponding to a part of step S16). By comparing the number ratio and the line width allowable range, it is determined whether or not the line width of the character in the line width change image N42 is a desired line width. FIG. It is determined that the line width change image N42 of A does not have the desired line width, and the process returns to step S14 to acquire the next line width change image (step S18). Note that the first processing in step S16 corresponds to advance preparation when this processing is repeated, and in this case, step S17 is skipped.

線幅変更画像取得部84の2回目の処理では文字領域の各画素を中心とする5行5列の画素群を当該画素と同じ値にするようにして膨張処理が行われる(ステップS14)。なお、処理後の線幅のみに着目すると、文字画像N41に対して文字領域の各画素を中心とする5行5列の画素配列を当該画素と同じ値にする処理と、直前の線幅変更画像N42に対して文字領域の各画素を中心とする3行3列の画素配列を当該画素と同じ値にする処理とは等価な処理であるといえる。   In the second process of the line width change image acquisition unit 84, the dilation process is performed so that a pixel group of 5 rows and 5 columns centering on each pixel of the character region has the same value as the pixel (step S14). Focusing only on the line width after processing, processing for changing the pixel array of 5 rows and 5 columns centering on each pixel of the character area to the character image N41 to the same value as that pixel, and the line width change immediately before It can be said that the process of making the pixel array of 3 rows and 3 columns centering on each pixel of the character area with respect to the image N42 the same value as the pixel is equivalent.

したがって、線幅変更画像取得部84では、文字領域の各画素を中心とする5行5列の画素群を当該画素と同じ値にすることにより、文字画像N41に対する膨張の程度を1回目の処理から同程度だけさらに増大させて、図11.Bに示すように次の線幅変更画像N43が取得されることとなる。そして、線幅取得部83にて表2に示すように線幅変更画像N43の配置数比が取得されて、文字の線幅が取得される(ステップS15)。なお、本実施の形態では、膨張処理の設定パラーメータ(膨張処理用の画素配列の大きさ)を変更することにより文字画像N41に対する膨張の程度が増大されているが、膨張の程度が増大された線幅変更画像N43は、文字画像N41に対して一定パラメータの膨張処理を繰り返し行うことにより取得されてもよい。   Therefore, in the line width changed image acquisition unit 84, the degree of expansion with respect to the character image N41 is processed for the first time by setting the pixel group of 5 rows and 5 columns centering on each pixel of the character area to the same value as the pixel. From FIG. As shown in B, the next line width change image N43 is acquired. Then, the line width acquisition unit 83 acquires the arrangement number ratio of the line width changed image N43 as shown in Table 2, and acquires the line width of the character (step S15). In the present embodiment, the degree of expansion of the character image N41 is increased by changing the setting parameter for expansion processing (the size of the pixel array for expansion processing), but the degree of expansion is increased. The line width change image N43 may be obtained by repeatedly performing a constant parameter expansion process on the character image N41.

ここで、線幅変更画像取得部84では文字画像N41に対する膨張の程度を漸次増大させて線幅変更画像N42,N43が取得されるため、線幅変更画像N42における3行3列の画素配列の配置数が文字画像N41の配置数に対して増加する割合と、線幅変更画像N43の配置数が線幅変更画像N42の配置数に対して増加する割合とは、通常、およそ等しくなる。しかしながら、図11.Bに示す線幅変更画像N43中の符号A3を付す白い領域(値が文字領域とは異なる画素の集合)が、仮に、無くなってしまうと、線幅変更画像N43が示す「冬」という文字の一部が潰れることとなり、配置数が急増することとなる。   Here, since the line width change image acquisition unit 84 gradually increases the degree of expansion with respect to the character image N41 to acquire the line width change images N42 and N43, the pixel array of 3 rows and 3 columns in the line width change image N42 is acquired. The rate at which the number of arrangements increases with respect to the number of arrangements of the character image N41 and the rate at which the number of arrangements of the line width change image N43 increases with respect to the number of arrangements of the line width change image N42 are usually approximately equal. However, FIG. If the white region (a set of pixels whose values are different from the character region) in the line width changed image N43 shown in B disappears, the character “winter” indicated by the line width changed image N43 will disappear. A part will be crushed and the number of arrangements will increase rapidly.

したがって、線幅変更管理部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 change management unit 82 obtains a ratio at which the number of arrangements of the line width change image N43 increases with respect to the number of arrangements of the line width change image N42, and this ratio is already acquired in the first step S16. By comparing the number of arranged line width change images N42 with the rate of increase with respect to the number of arranged character images N41, the presence or absence of character collapse is substantially detected (step S16). If the character is not crushed (step S17), the line width change image N43 is compared with the arrangement number ratio acquired for the line width change image N43, and the line width allowable range is compared. It is determined whether or not the width is a desired line width, and steps S14 to S17 are repeated according to the determination result (step S18). When there is a collapsed character (step S17), the line width change image N42 acquired immediately before the line width change image N43 is set as the character image after the line width adjustment (step S19). Thus, in the line width change management unit 82, the number of positions (arrangement number) at which the 3 × 3 pixel array can be arranged in the character area of the line width change image N43 is the line width change acquired immediately before. Whether or not the character is crushed is determined based on the rate of increase with respect to the number of arrangement of the image N42. If the character is crushed, it is determined that the repetitive processing is stopped in step S18, and the line width adjustment processing is terminated.

図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 change management unit 82 is included in the line width allowable range (step S18), and the line width change image N44 is output as a character image after the line width adjustment. (Step S20), the line width adjustment process ends.

図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.

Figure 2006157761
Figure 2006157761

Figure 2006157761
Figure 2006157761

表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 width adjustment unit 81 realized by the computer 7, the line width change image obtained by expanding the character region in the character image is acquired by the line width change image acquisition unit 84, and the line width acquisition unit 83 acquires the line width. The line width of the character is substantially obtained from the changed image. Then, the line width change management unit 82 acquires the line width change image in the line width change image acquisition unit 84 while gradually increasing the degree of expansion of the character image until the line width of the character becomes a desired one. The process of reacquiring the line width of the character in the line width acquisition unit 83 is repeated. Thereby, the computer 7 can acquire a character image indicating a character with a desired line width from a character image indicating a handwritten character by automatic processing.

また、線幅変更管理部82では、線幅変更画像の文字領域内において3行3列の画素配列が配置可能な位置の数(配置数)が、直前に取得された線幅変更画像の配置数に対して増加する割合に基づいて文字の潰れの有無が簡単な演算処理により容易に検出されて繰り返し処理が停止されることにより、適切な文字画像を取得することができる。なお、文字の潰れを検出する際に配置数が取得される画素配列も3行3列に限定されず、正方行列以外の、例えば十字形状等、処理対象の文字画像に応じた所定の形状のものを利用することができ、線幅検出用の画素配列と異なる形状とされてもよい。   Further, the line width change management unit 82 sets the number of positions (arrangement number) at which the 3 × 3 pixel arrangement can be arranged in the character area of the line width changed image as the arrangement of the line width changed image acquired immediately before. An appropriate character image can be acquired by easily detecting whether or not the character is crushed based on the rate of increase with respect to the number and stopping the repeated processing. In addition, the pixel arrangement from which the number of arrangements is acquired when detecting crushing of a character is not limited to 3 rows and 3 columns, and other than a square matrix, for example, a cross shape or a predetermined shape corresponding to a character image to be processed. It is possible to use a different one, and the shape may be different from the pixel array for line width detection.

次に、線幅調整部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 width adjustment unit 81 will be described. FIG. 14 is a diagram showing the flow of additional processing, and shows processing performed before step S11 in FIG. FIG. 15 is a diagram showing a character image N71 to be processed. Note that the function of this processing example is shown as a character spacing adjustment unit 851 in FIG.

字間調整部851では、まず、図15の文字画像N71が示す文字列に含まれる各文字の範囲が所定の手法により認識されて各文字に対して図15中に破線にて示す外接矩形A4が設定され、文字の配列方向(すなわち、縦方向)に関して互いに隣接する2つの外接矩形A4間に存在する間隙の幅が求められる。そして、これらの間隙の幅が文字の平均的な大きさに比例して予め定められた幅となるように、各間隙において横方向に並ぶ画素の空白列が削除される。これにより、字間調整部851にて複数の文字の間隔が所定の幅に調整される(ステップS31)。   In the inter-character space adjustment unit 851, first, the range of each character included in the character string indicated by the character image N71 in FIG. 15 is recognized by a predetermined method, and the circumscribed rectangle A4 indicated by the broken line in FIG. Is set, and the width of the gap existing between two circumscribed rectangles A4 adjacent to each other in the character arrangement direction (ie, the vertical direction) is obtained. The blank columns of pixels arranged in the horizontal direction in each gap are deleted so that the width of these gaps becomes a predetermined width in proportion to the average size of characters. Thereby, the space | interval of a some character is adjusted to the predetermined | prescribed width | variety in the character space adjustment part 851 (step S31).

線幅調整部81では、幅が調整された後の文字画像において、文字列のサイズが変更された後(図5:ステップS11)、必要に応じて上記処理例と同様にして文字の線幅が調整され、所望の線幅の文字を示す文字画像が取得される。このように、コンピュータ7では、文字画像の文字列のサイズを変更する前に複数の文字の間隔を調整し、その後、文字の線幅が調整されることが好ましく、これにより、各文字が適切に配置されるとともに、所望の線幅の文字を示す文字画像を取得することができる。ただし、文字画像が示す文字によっては、各文字の範囲について誤認識が生じる場合を考慮して、操作者に対して上記処理が行われた旨の通知や、処理後の文字画像のディスプレイ75への表示を行って操作者により線幅調整後の文字画像が確認されることが好ましい。   The line width adjustment unit 81 changes the size of the character string in the character image after the width is adjusted (FIG. 5: step S11), and if necessary, the line width of the character in the same manner as in the above processing example. Is adjusted, and a character image showing a character having a desired line width is obtained. As described above, it is preferable that the computer 7 adjusts the interval between a plurality of characters before changing the size of the character string of the character image, and then adjusts the line width of the characters. And a character image showing a character having a desired line width can be acquired. However, depending on the character indicated by the character image, in consideration of the case where erroneous recognition occurs for each character range, the operator is notified that the above processing has been performed, or the character image display 75 after the processing is performed. It is preferable that the character image after the line width adjustment is confirmed by the operator by displaying the above.

以上、本発明の実施の形態について説明してきたが、本発明は上記実施の形態に限定されるものではなく、様々な変形が可能である。   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 width adjustment unit 81 does not need to consider the influence of character collapse, the line width of the character is acquired from the character image to be processed, and the line width change management unit 82 uses the line width based on this line width. The degree of expansion processing in the line width change image acquisition unit 84 is specified by a predetermined calculation (or by referring to a predetermined look-up table), and the character region in the character image is expanded in accordance with the degree of expansion processing. By doing so, the line width of the character of the character image may be set to a desired value without repeating processing. Thereby, a character with a desired line width can be quickly acquired from a character image showing a handwritten character.

上記実施の形態では、線幅変更画像取得部84における処理と線幅取得部83における処理とが繰り返されて所望の線幅の文字画像が取得されるが、膨張の程度を複数通りに漸次増大させた複数の線幅変更画像が一度に生成され(例えば、文字画像の文字領域の各画素を中心とするn行n列(ただし、nは奇数)の画素群を当該画素と同じ値とする膨張処理において、nの値をi通りに変更してi個の線幅変更画像を生成する。)、複数の線幅変更画像のそれぞれから文字の線幅が取得されて、所望の線幅の文字画像が選択されてもよい。この場合でも、実質的には線幅変更画像取得部84における処理と線幅取得部83における処理とが繰り返されて所望の線幅の文字画像が取得されているものと捉えることができる。   In the above embodiment, the process in the line width change image acquisition unit 84 and the process in the line width acquisition unit 83 are repeated to acquire a character image having a desired line width, but the degree of expansion gradually increases in multiple ways. A plurality of line-width-changed images are generated at one time (for example, a pixel group of n rows and n columns (where n is an odd number) centering on each pixel of the character region of the character image has the same value as the pixel) In the dilation processing, the value of n is changed to i ways to generate i line width changed images.) The line width of the character is obtained from each of the plurality of line width changed images, and the desired line width is obtained. A character image may be selected. Even in this case, it can be considered that the character image having a desired line width is acquired by substantially repeating the process in the line width change image acquisition unit 84 and the process in the line width acquisition unit 83.

上記実施の形態では、線幅変更画像取得部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 image acquisition unit 84. If the line width of the character is larger than the desired line width, the character An area contraction process may be performed. In the character image, the process of contracting or expanding the area other than the character area is equivalent to the process of expanding or contracting the character area.

上記実施の形態では、線幅取得部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 width acquisition unit 83. However, as another method for acquiring the line width of the character, for example, a certain degree of contraction processing is repeatedly performed on the character image or the line width change image, and the representative region of the character disappears, and the character region sharply changes. The line width of the character may be substantially acquired based on the number of repetitions until the number of lines is reduced or the number of repetitions of the thinning process.

字間調整部851および文字列サイズ変更部852の処理に代えて、処理前の文字画像の文字列に含まれる各文字の範囲が所定の手法により認識されて各文字に対して外接矩形が設定され、各外接矩形が拡大または縮小されつつ基準領域A2内に配置されてもよい。この場合においても、文字画像が示す文字によっては、各文字の範囲について誤認識が生じる場合を考慮して、操作者に対して上記処理が行われた旨の通知や、処理後の文字画像のディスプレイ75への表示を行って操作者により線幅調整後の文字画像が確認されることが好ましい。   Instead of the processing of the character spacing adjustment unit 851 and the character string size changing unit 852, the range of each character included in the character string of the character image before processing is recognized by a predetermined method, and a circumscribed rectangle is set for each character. Each circumscribed rectangle may be arranged in the reference area A2 while being enlarged or reduced. Even in this case, depending on the character indicated by the character image, in consideration of the case where erroneous recognition occurs for each character range, the operator is notified that the above processing has been performed, or the character image after processing is processed. It is preferable that the character image after the line width adjustment is confirmed by the operator by performing display on the display 75.

文字画像が示す文字は人の名前を示すものに限定されず、また、線幅調整後の文字画像は、瓦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.

通信網に接続されたサーバおよびクライアントを示す図である。It is a figure which shows the server and client connected to the communication network. 瓦記名システムの構成を示す図である。It is a figure which shows the structure of a tile name system. コンピュータの構成を示す図である。It is a figure which shows the structure of a computer. コンピュータが実現する機能構成を示すブロック図である。It is a block diagram which shows the function structure which a computer implement | achieves. 文字画像が示す手書きの文字の線幅を調整する処理の流れを示す図である。It is a figure which shows the flow of the process which adjusts the line width of the handwritten character which a character image shows. 複数の文字画像を示す図である。It is a figure which shows a some character image. 文字画像を瓦記名ラベルに設けられた記入枠と共に示す図である。It is a figure which shows a character image with the entry frame provided in the tile name label. 矩形領域を基準領域内に配置する様子を説明するための図である。It is a figure for demonstrating a mode that a rectangular area | region is arrange | positioned in a reference | standard area | region. 文字列のサイズが変更された文字画像を示す図である。It is a figure which shows the character image by which the size of the character string was changed. 文字画像の一部を例示する図である。It is a figure which illustrates a part of character image. 文字画像の一部を例示する図である。It is a figure which illustrates a part of character image. 線幅変更画像を示す図である。It is a figure which shows a line | wire width change image. 線幅変更画像を示す図である。It is a figure which shows a line | wire width change image. 線幅変更画像を示す図である。It is a figure which shows a line | wire width change image. 線幅調整処理後の複数の文字画像を示す図である。It is a figure which shows the several character image after a line | wire width adjustment process. 太線の複数の文字画像を示す図である。It is a figure which shows the several character image of a thick line. 細線の複数の文字画像を示す図である。It is a figure which shows the several character image of a thin line. 線幅を調整する処理の流れを示す図である。It is a figure which shows the flow of the process which adjusts line | wire width. 文字画像を示す図である。It is a figure which shows a character image.

符号の説明Explanation of symbols

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 Width Adjustment Unit 82 Line Width Change Management Unit 83 Line Width Acquisition Unit 84 Line Width Change Image Acquisition Unit A1 Rectangular Area N10, N19, N20, N29, N30, N39, N40, N41, N49, N51 to N54, N61 N64, N71 Character image N42-N44 Line width change image S11, S12, S14, S15, S17, S18, S31 Step

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:
請求項1に記載の手書き文字の線幅調整方法であって、
前記線幅変更工程が、
前記文字画像において前記文字領域を膨張または収縮させた線幅変更画像を取得する線幅変更画像取得工程と、
前記線幅変更画像から前記文字の線幅を実質的に取得する線幅再取得工程と、
前記文字の線幅が所望のものとなるまで、前記線幅変更画像における前記文字画像に対する膨張または収縮の程度を漸次増大させながら前記線幅変更画像取得工程と前記線幅再取得工程とを実質的に繰り返す繰返工程と、
を備えることを特徴とする手書き文字の線幅調整方法。
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:
請求項2に記載の手書き文字の線幅調整方法であって、
前記線幅再取得工程において、前記線幅変更画像の文字領域内にて所定の形状の線幅検出用の画素配列が配置可能な位置の数と前記文字領域の面積との比に基づいて前記文字の前記線幅が取得されることを特徴とする手書き文字の線幅調整方法。
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.
請求項2または3に記載の手書き文字の線幅調整方法であって、
前記線幅変更画像が、前記文字画像における前記文字領域を膨張させた画像であり、
前記線幅変更画像の文字領域内において所定の形状の文字潰れ検出用の画素配列が配置可能な位置の数が、直前に取得された線幅変更画像に対して増加する割合に基づいて前記繰返工程の停止を判断する工程をさらに備えることを特徴とする手書き文字の線幅調整方法。
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ないし4のいずれかに記載の手書き文字の線幅調整方法であって、
前記文字画像が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.
請求項5に記載の手書き文字の線幅調整方法であって、
前記文字列サイズ変更工程の前に、前記複数の文字の間隔を所定の幅に調整する字間調整工程をさらに備えることを特徴とする手書き文字の線幅調整方法。
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.
請求項1ないし6のいずれかに記載の手書き文字の線幅調整方法であって、
前記文字画像が示す文字が、社寺に用いられる瓦に記名される寄進者の名前であることを特徴とする手書き文字の線幅調整方法。
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:
JP2004348006A 2004-12-01 2004-12-01 Method and device for adjusting handwritten character Pending JP2006157761A (en)

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)

* Cited by examiner, † Cited by third party
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

Cited By (5)

* Cited by examiner, † Cited by third party
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