[go: up one dir, main page]

JP4781214B2 - Printing system and composite terminal device - Google Patents

Printing system and composite terminal device Download PDF

Info

Publication number
JP4781214B2
JP4781214B2 JP2006262516A JP2006262516A JP4781214B2 JP 4781214 B2 JP4781214 B2 JP 4781214B2 JP 2006262516 A JP2006262516 A JP 2006262516A JP 2006262516 A JP2006262516 A JP 2006262516A JP 4781214 B2 JP4781214 B2 JP 4781214B2
Authority
JP
Japan
Prior art keywords
area
character
unit
extracting
feature
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.)
Expired - Fee Related
Application number
JP2006262516A
Other languages
Japanese (ja)
Other versions
JP2008080621A (en
Inventor
小林  隆
Original Assignee
株式会社沖データ
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 株式会社沖データ filed Critical 株式会社沖データ
Priority to JP2006262516A priority Critical patent/JP4781214B2/en
Publication of JP2008080621A publication Critical patent/JP2008080621A/en
Application granted granted Critical
Publication of JP4781214B2 publication Critical patent/JP4781214B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Record Information Processing For Printing (AREA)
  • Facsimiles In General (AREA)
  • Editing Of Facsimile Originals (AREA)

Description

本発明は、予め決められたフォーマットや定型の書式を持つ用紙に名前や日付等の個別の文字を差し込んで印刷する印刷システム及び複合端末装置に関する。   The present invention relates to a printing system and a composite terminal device for printing by inserting individual characters such as names and dates on a sheet having a predetermined format or a fixed format.

予め決められたフォーマットや定型の書式を持つ用紙に名前や日付などの個別の文字を差し込んで印刷することを差し込み印刷というが、従来、差し込み印刷は、文字を配置する座標や領域、書体のフォーマットなどの共通データと、名前などの個別のデータとをそれぞれ持ち、共通データと個別データとを合成して印刷画像を得るようにしていた。   Inserting and printing individual characters such as names and dates on paper with a predetermined format or fixed format is called merge printing. Traditionally, merge printing uses coordinates, areas, and font formats for character placement. Common data such as name and individual data such as names, and the common data and individual data are combined to obtain a print image.

例えば、賞状を印刷する場合、名前や日付等の個別の印刷データはホスト装置から取得し、その他の共通する印刷情報はスキャナ装置で読取った情報を使用することにより印刷を行う。この場合オペレータの作業は次のとおりである。即ち、(1)オペレータはまず個別の印刷データを用意する。次に、(2)サンプルとなる賞状をスキャナ装置で読取ってパソコン上に取り込む。そして(3)画像合成用のソフトウェア上で読取った情報を表示し、そこでコピーの必要な部分は残し、要らない部分は印刷しないようにマスクし、さらに個別の印刷データを配置して座標を決定する。   For example, when printing a certificate, individual print data such as name and date is obtained from the host device, and other common print information is printed by using information read by the scanner device. In this case, the operator's work is as follows. (1) The operator first prepares individual print data. Next, (2) a certificate as a sample is read by a scanner device and taken into a personal computer. (3) Information read on the image composition software is displayed, where the necessary portions of the copy are left, the unnecessary portions are masked so as not to be printed, and the coordinates are determined by arranging individual print data. To do.

次に(4)実際の賞状の台紙に印刷を行い、印刷された文字の位置を目で確認する。もし文字の位置がずれている場合、(5)印刷装置の印刷開始位置の調整などを行う。また印刷結果が良好である場合は、(6)残りの賞状について印刷を行う。   Next, (4) printing on the actual certificate mount and visually confirming the position of the printed characters. If the character position is misaligned, (5) the printing start position of the printing apparatus is adjusted. If the printing result is good, (6) printing is performed for the remaining certificate.

このように個別の印刷データとスキャナ装置で読取った共通のデータとを合成し、合成したデータを試し印刷して結果が良好である場合に正式にフォーマット用紙に印刷を行うものとして、例えば従来、特開2003−63087号公報に開示されるものがある。
特開2003−63087号公報
As described above, the individual print data and the common data read by the scanner device are combined, and when the combined data is trial printed and the result is good, the print is officially printed on the format paper. There are some which are indicated by JP, 2003-63087, A.
JP 2003-63087 A

しかしながら上記のような作業を、専門的に行う業者は別として、たまにしか行わない者にとって、上記の作業、特に上記の(4)、(5)の作業を繰り返すことは煩雑を極めるものであった。即ち、従来においては、印刷書式を入力するなどの工程に加え、印刷位置の調整に試行錯誤を繰り返す工程があることによりオペレータの作業負担が大きいという問題があった。 However, it is extremely complicated to repeat the above operations, particularly the above operations (4) and (5), for those who occasionally perform the above operations, apart from professionals who perform them only occasionally. It was. That is, conventionally, there is a problem that the burden on the operator is heavy because there is a process of repeating trial and error in adjusting the printing position in addition to a process of inputting a printing format.

そこで本発明は、印刷位置を適正に設定することにより印刷位置の繰り返しの調整を不要とした印刷システムを提供することを目的とする。   SUMMARY An advantage of some aspects of the invention is that it provides a printing system that does not require repeated adjustment of the printing position by appropriately setting the printing position.

上記課題を解決するために本発明は、印刷すべき領域を示す所定の印しを付した原稿を読取る読取部を有する読取装置と、前記読取装置に接続され、台紙に印刷データを印刷する印刷装置とを有する印刷システムであって、前記読取部により前記原稿から読取られた前記所定の印しの読取データに基づいて前記印刷すべき領域を抽出する領域抽出手段と、前記原稿における前記領域抽出手段により抽出された領域内の画像から、文字に対応する画像である文字画像を抽出し、当該文字画像に基づいて前記文字の特徴を示す特徴情報を抽出する特徴抽出手段と、前記台紙上の、前記領域抽出手段により抽出された前記印刷すべき領域に、前記特徴抽出手段により抽出された特徴情報で示される文字の特徴で、印刷データに含まれる文字を印刷するように前記印刷装置を制御する制御手段と、を備えることを特徴とするものである。 In order to solve the above-described problems, the present invention provides a reading device having a reading unit that reads a document with a predetermined mark indicating an area to be printed, and printing that is connected to the reading device and prints print data on a mount. An area extracting unit that extracts the area to be printed based on the read data of the predetermined mark read from the original by the reading unit; and the area extraction in the original the image in the extracted area by means extracts a character image is an image corresponding to a character, a feature extracting means for extracting feature information indicating a feature of the character based on the character image, before SL on backing of the area to be the print extracted by the area extraction means, a feature of the character indicated by the feature information extracted by the feature extraction unit, to print the characters in the print data And control means for controlling the printing apparatus as and is characterized in that it comprises.

本発明によれば、領域抽出手段により印刷すべき領域を抽出し、台紙上の、抽出した印刷すべき領域に印刷データを印刷するようにしたので、オペレータが印刷結果を見て印刷位置を調整する必要のない印刷が可能になる。 According to the present invention, the area to be printed is extracted by the area extracting means, and the print data is printed on the extracted area to be printed on the mount, so the operator adjusts the print position by looking at the print result. Printing that does not need to be performed becomes possible.

以下、本発明の実施の形態を図面にしたがって説明する。各図面に共通する要素には同一の符号を付す。図1は第1の実施の形態の印刷システムを示すブロック図、図2は第1の実施の形態の印刷システムを示す構成図である。まず図2により第1の実施の形態の印刷システムの構成について説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings. Elements common to the drawings are denoted by the same reference numerals. FIG. 1 is a block diagram showing a printing system according to the first embodiment, and FIG. 2 is a block diagram showing the printing system according to the first embodiment. First, the configuration of the printing system according to the first embodiment will be described with reference to FIG.

図2において、第1の実施の形態の印刷システム1は、上位の外部入力装置としてのパーソナルコンピュータ2、印刷装置としてのノンインパクト方式のプリンタ3および原稿の読取装置としてのフラットベッドタイプのスキャナ装置4から構成される。パーソナルコンピュータ2とプリンタ3は双方向通信が可能なインタフェースケーブル5で接続され、プリンタ3とスキャナ装置4も双方向通信が可能なインタフェースケーブル6で接続されている。   In FIG. 2, a printing system 1 according to the first embodiment includes a personal computer 2 as a host external input device, a non-impact printer 3 as a printing device, and a flat bed type scanner device as a document reading device. It is composed of four. The personal computer 2 and the printer 3 are connected by an interface cable 5 capable of bidirectional communication, and the printer 3 and the scanner device 4 are also connected by an interface cable 6 capable of bidirectional communication.

図1において、パーソナルコンピュータ2はプリンタ3に対して外部から印刷データ等を入力する機能を有する。プリンタ3は制御部11、フォントメモリ12および画像形成部13を備えている。制御部11はプリンタ3およびスキャナ装置4の動作全体を制御する機能を有するとともに、パーソナルコンピュータ2から入力される印刷データを構文解析し、逐次実行を行う機能を有し、CPU、ROM、RAM等により構成される。   In FIG. 1, a personal computer 2 has a function of inputting print data and the like to the printer 3 from the outside. The printer 3 includes a control unit 11, a font memory 12, and an image forming unit 13. The control unit 11 has a function of controlling the entire operation of the printer 3 and the scanner device 4, and has a function of parsing print data input from the personal computer 2 and executing it sequentially, such as a CPU, ROM, RAM, etc. Consists of.

フォントメモリ12は不揮発性のROMから構成され、記号、数字、カタカナ、ひらがな、漢字などのフォントデータを記憶する。画像形成部13は、電子写真方式の画像形成部であり、図示していないが、表面に静電潜像およびトナー画像が形成される感光ドラム、印刷データに従って感光ドラムを露光する印刷ヘッド、トナー画像を感光ドラムから媒体に転写する転写器、転写されたトナー画像を媒体に定着させる定着器等から構成される。   The font memory 12 is composed of a non-volatile ROM and stores font data such as symbols, numbers, katakana, hiragana, and kanji. The image forming unit 13 is an electrophotographic image forming unit. Although not shown, a photosensitive drum on which an electrostatic latent image and a toner image are formed, a print head that exposes the photosensitive drum according to print data, and toner The image forming apparatus includes a transfer device that transfers an image from a photosensitive drum to a medium, a fixing device that fixes the transferred toner image on the medium, and the like.

スキャナ装置4は読取部14、操作部15、領域設定部16、特徴抽出部17および記憶部18を具備している。読取部14は、所定の読取台にセットされた原稿に蛍光ランプ等の光を当て、原稿からの反射光をCCDセンサ等の受光素子で電気信号に変換し、その電気信号からイメージデータを得るものである。出力するイメージデータは階調のビットマップの形式となっている。   The scanner device 4 includes a reading unit 14, an operation unit 15, a region setting unit 16, a feature extraction unit 17, and a storage unit 18. The reading unit 14 applies light such as a fluorescent lamp to a document set on a predetermined reading table, converts reflected light from the document into an electrical signal by a light receiving element such as a CCD sensor, and obtains image data from the electrical signal. Is. The output image data is in the form of a gradation bitmap.

操作部15は、スキャナ装置4を動作させる際にオペレータが操作する部分であり、スキャナ装置4にセットされた後述するテンプレートの文字の向きを選択するための選択ボタンを有する。即ち、図3に示すように、操作部15には縦書き選択ボタン21と横書き選択ボタン22が設けられ、それぞれのボタンに対向して表示ランプ23、24が設けられている。縦書き選択ボタン21と横書き選択ボタン22は背反関係にあり、どちらか一方のみが選択されるようになっており、選択された方の選択ボタンの表示ランプが点灯し、選択されていることを表示する。なお図3はスキャナ装置の操作部を示す説明図である。   The operation unit 15 is a portion that is operated by an operator when operating the scanner device 4, and includes a selection button for selecting a direction of a character of a template set on the scanner device 4 to be described later. That is, as shown in FIG. 3, the operation unit 15 is provided with a vertical writing selection button 21 and a horizontal writing selection button 22, and display lamps 23 and 24 are provided opposite to the buttons. The vertical writing selection button 21 and the horizontal writing selection button 22 are in a contradictory relationship, and only one of them is selected, and the display lamp of the selected selection button is lit and selected. indicate. FIG. 3 is an explanatory diagram showing an operation unit of the scanner device.

領域設定部16は、読取られたビットマップデータから連続したドットの集合を抽出し、切れ目のない連続した集合だけを閉領域として抽出する機能を有する。また閉領域を構成するドットから線分を抽出し、四隅の頂点を算出する機能を有し、算出した頂点の座標を矩形データとしてその領域内のイメージデータとともに記憶部18に格納する機能を有する。領域設定部16はCPU、ROM、RAM等により構成される。   The region setting unit 16 has a function of extracting a continuous set of dots from the read bitmap data and extracting only a continuous set without a cut as a closed region. Also, it has a function of extracting line segments from dots constituting the closed region and calculating the vertexes of the four corners, and a function of storing the calculated vertex coordinates in the storage unit 18 together with the image data in the region as rectangular data. . The area setting unit 16 includes a CPU, a ROM, a RAM, and the like.

特徴抽出部17は、後述するように、矩形によって指定された領域から文字を切り出し、文字の太さ、文字の濃度を抽出する機能を有し、CPU、ROM、RAM等により構成される。記憶部18は、一時的な記憶を行うアクセス速度の速いRAMから構成され、イメージデータの格納および後述する矩形データの記憶に用いる。   As will be described later, the feature extraction unit 17 has a function of cutting out a character from an area designated by a rectangle and extracting the thickness of the character and the density of the character. The storage unit 18 is composed of a RAM having a high access speed for temporary storage, and is used for storing image data and rectangular data described later.

次に動作を説明するが、本実施の形態では賞状を印刷する動作を説明する。プリンタ3による印刷動作の前に事前の準備としてテンプレートの作成を行う。テンプレートは過去に作成された賞状に対して行う。図4は過去に作成された賞状を示す。この賞状31の受賞者31aおよび日付31bに対して矩形の枠線32a、32bを書き込むことにより図5に示すテンプレート33を作成する。枠線32a、32bは受賞者31aおよび日付31bを取り囲む位置に作成される。枠線32a、32bはスキャナ装置4が読取る位置を示すとともに、賞状を印刷する際の文字の配置位置を示すものである。賞状に枠線を直接書き込むことができない場合は透過性のあるフィルム等を用いてフィルムに枠線を書き込むようにすればよい。   Next, an operation will be described. In the present embodiment, an operation for printing a certificate is described. A template is created as a preliminary preparation before the printing operation by the printer 3. A template is applied to a certificate created in the past. FIG. 4 shows award certificate created in the past. The template 33 shown in FIG. 5 is created by writing rectangular frame lines 32a and 32b for the winner 31a and date 31b of the certificate 31. The frame lines 32a and 32b are created at positions surrounding the winner 31a and the date 31b. Frame lines 32a and 32b indicate positions where the scanner device 4 reads, and also indicate the positions of characters when printing a certificate. If the frame line cannot be directly written on the award, the frame line may be written on the film using a transparent film or the like.

図6は台紙を示す説明図である。台紙34には名前と日付以外の文字および飾り枠が印刷されており、本実施の形態ではこの台紙34に名前および日付を印刷することにより賞状としての印刷を行う。図7は完成した賞状を示す説明図である。図7に示すように、完成した賞状35には過去の賞状31とは異なる受賞者35aおよび日付35bが、過去の賞状31の受賞者31aおよび日付31bと同じ位置に印刷されている。   FIG. 6 is an explanatory view showing a mount. Characters other than the name and date and a decorative frame are printed on the mount 34. In this embodiment, the name and date are printed on the mount 34 to print as a certificate. FIG. 7 is an explanatory view showing a completed certificate. As shown in FIG. 7, the winners 35 a and dates 35 b different from the past certificate 31 are printed on the completed certificate 35 at the same positions as the winners 31 a and dates 31 b of the past certificate 31.

オペレータは作成したテンプレート33をスキャナ装置4にセットし、操作部15の縦書き選択ボタン21を押下する。即ち、過去の賞状31から作成したテンプレート33の文字は縦書きになっているため縦書き選択ボタン21を押下する。   The operator sets the created template 33 on the scanner device 4 and presses the vertical writing selection button 21 of the operation unit 15. That is, since the character of the template 33 created from the past certificate 31 is in vertical writing, the vertical writing selection button 21 is pressed.

一方、パーソナルコンピュータ2では賞状に印刷する受賞者と受賞の日付のリストを入力する。このリストを図8に示す。図8において、リスト36には受賞者の名前37と受賞日38が記載されている。このリストデータに基づいてパーソナルコンピュータ2は、内部において動作するドライバプログラムにより、印刷データを作成する。作成した印刷データを図9に示す。図9において、印刷データ39には、原稿読取命令40、受賞者リストデータ41、日付データ42およびリスト印刷命令43が含まれている。   On the other hand, the personal computer 2 inputs a list of winners to be printed on the award certificate and award date. This list is shown in FIG. In FIG. 8, the list 36 includes the names 37 of the winners and the award date 38. Based on the list data, the personal computer 2 creates print data by a driver program that operates inside. The created print data is shown in FIG. In FIG. 9, the print data 39 includes a document reading command 40, award winner list data 41, date data 42, and a list print command 43.

次にプリンタ3の制御部11の動作を図10に示すフローチャートにしたがって説明する。図10は第1の実施の形態におけるプリンタの動作を示すフローチャートである。プリンタ3の制御部11はパーソナルコンピュータ2から印刷データ39を受信すると(ステップ1)、先頭から順に構文解析を行い、逐次実行する。次に制御部11は、印刷データ39の中に原稿読取命令40があるかどうか判断する(ステップ2)。   Next, the operation of the control unit 11 of the printer 3 will be described with reference to the flowchart shown in FIG. FIG. 10 is a flowchart showing the operation of the printer in the first embodiment. When the control unit 11 of the printer 3 receives the print data 39 from the personal computer 2 (step 1), the control unit 11 performs syntax analysis in order from the top and sequentially executes them. Next, the control unit 11 determines whether or not the document reading command 40 is included in the print data 39 (step 2).

原稿読取命令40がないと判断した場合は、通常印刷となり、印刷データには文字の種類、文字の向き、配置する座標、文字の濃さなどの文字情報が記載されており、制御部11はこれらの文字情報を印刷データから抽出する(ステップ3)。次に制御部11は、受賞者リストデータ41により指定された文字コードと、ステップ3で得られた文字情報により、最も適合するフォントデータをフォントメモリ12から選択する。フォントデータは印刷データもしくは後述する矩形データに指定される座標へ配置する(ステップ4)。   If it is determined that there is no document reading command 40, normal printing is performed, and the print data includes character information such as character type, character direction, coordinates to be arranged, and character darkness. These character information is extracted from the print data (step 3). Next, the control unit 11 selects the most suitable font data from the font memory 12 based on the character code specified by the winner list data 41 and the character information obtained in Step 3. The font data is arranged at the coordinates specified in the print data or rectangular data described later (step 4).

画像形成部13は制御部11により形成されたイメージデータを電子写真方式により印刷する(ステップ5)。以上により通常印刷を終了する。   The image forming unit 13 prints the image data formed by the control unit 11 by an electrophotographic method (step 5). The normal printing is thus completed.

ステップ2において印刷データ39の中に原稿読取命令40があると判断した場合、制御部11はスキャナ装置4に対して原稿の読取を指示し(ステップ6)、読み取りが完了するまで待つ。ここでスキャナ装置4における原稿読取動作を図11に示すフローチャートに従って説明する。図11は原稿読取動作を示すフローチャートである。   When it is determined in step 2 that the document reading command 40 is included in the print data 39, the control unit 11 instructs the scanner device 4 to read the document (step 6) and waits until the reading is completed. Here, the document reading operation in the scanner device 4 will be described with reference to the flowchart shown in FIG. FIG. 11 is a flowchart showing the document reading operation.

スキャナ装置4においてまず読取部14は、セットされているテンプレート33を読取り、階調を持ったビットマップデータとして記憶部18へ格納する(ステップ11)。次に領域設定部16が、記憶部18に格納されたビットマップデータから矩形の個数、矩形の座標を抽出し、矩形データとして記憶部18に格納する(ステップ12)。ここで矩形とは、テンプレート33に記載された矩形の枠線32a、32bの全体を意味し、これらの枠線32a、32bの個数および座標が抽出される。   In the scanner device 4, the reading unit 14 first reads the set template 33 and stores it in the storage unit 18 as bit map data having gradation (step 11). Next, the area setting unit 16 extracts the number of rectangles and the coordinates of the rectangles from the bitmap data stored in the storage unit 18 and stores them in the storage unit 18 as rectangular data (step 12). Here, the rectangle means the entire rectangular frame lines 32a and 32b described in the template 33, and the number and coordinates of the frame lines 32a and 32b are extracted.

次に矩形抽出について図12のフローチャートに従ってまた図13を参照して具体的に説明する。図12は矩形抽出動作を示すフローチャート、図13は矩形抽出動作を示す動作説明図である。まず領域設定部16は、記憶部18から得られたイメージデータを、図13(a)に示すように、外周から走査し、見つかったドットを起点にしてその左右、上下、斜めの隣り合うドットがあるか判定する。隣り合うドットがあればそのドットを起点としてまた隣り合うドットがあるか判定する。これを繰り返し行い、最初の起点に戻ることができれば閉領域が存在するとする。閉領域の面積が所定の大きさより小さい場合は読取り誤差として無視する(ステップ21)。   Next, rectangle extraction will be described in detail with reference to the flowchart of FIG. 12 and with reference to FIG. FIG. 12 is a flowchart showing the rectangle extraction operation, and FIG. 13 is an operation explanatory diagram showing the rectangle extraction operation. First, the area setting unit 16 scans the image data obtained from the storage unit 18 from the outer periphery as shown in FIG. 13A, and uses the found dot as a starting point, its left, right, top, bottom, and diagonal adjacent dots. Determine if there is any. If there is an adjacent dot, it is determined whether there is an adjacent dot from that dot. If this is repeated and it is possible to return to the first starting point, it is assumed that a closed region exists. If the area of the closed region is smaller than a predetermined size, it is ignored as a reading error (step 21).

例えば図13(a)に示すドット塊51の場合、図13(b)に示すように、最初に起点となるドット51aに隣り合うドットが連続して存在し、最終的に最初のドット51aに到達する場合は閉領域とする。また図13(a)に示すドット塊52のように、隣り合うドットがあっても最初のドットに戻ることがない場合は読取り誤差として無視する。   For example, in the case of the dot cluster 51 shown in FIG. 13 (a), as shown in FIG. 13 (b), there are consecutive dots adjacent to the starting dot 51a first, and finally the first dot 51a. When it reaches, it is a closed area. Further, as in the dot cluster 52 shown in FIG. 13A, even if there is an adjacent dot, if it does not return to the first dot, it is ignored as a reading error.

次に領域設定部16は、ステップ21で見つけた閉領域を構成する線の集合に着目し、あるY座標の範囲あるいはX座標の範囲に収まる集合を1つの線分とする(ステップ22)。例えば図13(c)に示すドット塊53は、あるY座標の範囲内に収まるドットの集合であり、このような場合は線分が存在するとする。   Next, the region setting unit 16 pays attention to the set of lines constituting the closed region found in step 21, and sets a set that falls within a certain Y coordinate range or X coordinate range as one line segment (step 22). For example, a dot cluster 53 shown in FIG. 13C is a set of dots that fall within a certain Y coordinate range, and in such a case, a line segment is present.

次に領域設定部16は、ステップ22で求めたそれぞれの線分の交点を求める。求められた交点は閉領域の四隅(頂点)の座標とする。得られた座標は矩形データとして記憶部18に格納される(ステップ23)。例えば図13(d)に示すドット塊53とドット塊54の交点としてドット55の座標が求められる。そして全ての線分の交点として、図13(e)に示すように、ドット55乃至58の座標が求められる。ドット55乃至58の座標をぞれぞれ(X1、Y1)、(X2、Y2)、(X3、Y3)、(X4、Y4)とすると、これらの座標が記憶部18に格納される。なお矩形データについては後述する。   Next, the region setting unit 16 obtains the intersection of each line segment obtained in step 22. The obtained intersection is the coordinates of the four corners (vertices) of the closed region. The obtained coordinates are stored in the storage unit 18 as rectangular data (step 23). For example, the coordinates of the dot 55 are obtained as the intersection of the dot block 53 and the dot block 54 shown in FIG. Then, as the intersections of all the line segments, the coordinates of the dots 55 to 58 are obtained as shown in FIG. If the coordinates of the dots 55 to 58 are (X1, Y1), (X2, Y2), (X3, Y3), and (X4, Y4), these coordinates are stored in the storage unit 18. The rectangular data will be described later.

次に領域設定部16は、閉領域の大きさを求める(ステップ24)。これは四隅の頂点の座標から求めることができる。求めた閉領域の大きさのデータは矩形データとして記憶部18に格納される。以上により矩形抽出動作(ステップ12)を終了する。   Next, the area setting unit 16 obtains the size of the closed area (step 24). This can be obtained from the coordinates of the vertices at the four corners. The obtained data of the size of the closed region is stored in the storage unit 18 as rectangular data. The rectangle extraction operation (step 12) is thus completed.

次にステップ13に移行し、抽出した矩形内の文字の特徴抽出を行う。文字の特徴抽出について図14のフローチャートに従ってまた図15を参照して具体的に説明する。図14は特徴抽出動作を示すフローチャート、図15は特徴抽出動作を示す動作説明図である。まず特徴抽出部17は、ステップ12で得られた矩形データ(データとして矩形の四隅の座標データがある)で示される閉領域のビットマップデータから、連結したドットの集合を1つの塊として切り出しを行う(ステップ31)。   Next, the process proceeds to step 13 where the feature extraction of the characters in the extracted rectangle is performed. Character feature extraction will be described in detail with reference to the flowchart of FIG. 14 and with reference to FIG. FIG. 14 is a flowchart showing the feature extraction operation, and FIG. 15 is an operation explanatory diagram showing the feature extraction operation. First, the feature extraction unit 17 cuts out a set of connected dots as one block from the bitmap data of the closed region indicated by the rectangular data obtained in step 12 (the coordinate data of the four corners of the rectangle is included as data). Perform (step 31).

次に特徴抽出部17は、ステップ31で切り出したドットの塊から水平に連続するドットの数をカウントし、連続するドットの数をそれぞれ累積する。その結果得られる累積値の最初のピークを文字の太さと推定する(ステップ32)。例えば図15(a)に示すように、「日」の文字の塊を切り出したとして、水平方向に連続するドットの数をカウントすると、図15(b)に示す累積値が得られる。このときY座標が同じドットの塊が複数個所ある場合は、それぞれ別にカウントする。図15(b)において例えば「2 13」、「2 2」は異なる箇所におけるそれぞれの累積値を示す。   Next, the feature extraction unit 17 counts the number of horizontally continuous dots from the cluster of dots cut out in step 31, and accumulates the number of consecutive dots. The first peak of the accumulated value obtained as a result is estimated as the thickness of the character (step 32). For example, as shown in FIG. 15 (a), assuming that the character cluster of “day” is cut out, the cumulative value shown in FIG. 15 (b) is obtained by counting the number of consecutive dots in the horizontal direction. At this time, when there are a plurality of dot clusters having the same Y coordinate, they are counted separately. In FIG. 15B, for example, “2 13” and “2 2” indicate respective accumulated values at different locations.

図16は連続するドットの累積値を示すグラフである。図16において、累積値の最初のピークは累積値が「2」においてである。したがって最初のピークの累積値である「2」が切り出した文字の太さであるとする。なお水平に連続するドットの数をカウントするのは文字が縦書きである場合であり、文字が横書きの場合は垂直方向に連続するドットの数をカウントする。   FIG. 16 is a graph showing the cumulative value of consecutive dots. In FIG. 16, the first peak of the accumulated value is when the accumulated value is “2”. Therefore, it is assumed that “2”, which is the cumulative value of the first peak, is the thickness of the extracted character. The number of dots that are horizontally continuous is counted when the character is vertically written. If the character is horizontally written, the number of dots that are consecutive in the vertical direction is counted.

次に特徴抽出部17は文字の大きさを判定する(ステップ33)。切り出した文字の大きさの判定について図15を用いて説明する。読取り解像度が150DPIの場合は、図15(a)に示す「日」の文字の垂直方向のドット数は22ドットとなる。1ドットが4×4の16ピクセルからなるものとすると、22(ドット)×4=88ピクセルからなる。読取り解像度が150DPIであれば、垂直方向の大きさは、(25.4/150)×88=14.9mmとなる。1ポイントは1/72(インチ)=0.353mmであるから、図15(a)に示す「日」の文字は、14.9/0.353=42.2(ポイント)となる。閉領域内に文字を収めるために小数点以下は切り捨てることとすると、「日」の文字は42ポイントであると判定される。   Next, the feature extraction unit 17 determines the size of the character (step 33). Determination of the size of the cut out character will be described with reference to FIG. When the reading resolution is 150 DPI, the number of dots in the vertical direction of the “day” character shown in FIG. 15A is 22 dots. If one dot is composed of 4 × 4 16 pixels, then 22 (dots) × 4 = 88 pixels. If the reading resolution is 150 DPI, the size in the vertical direction is (25.4 / 150) × 88 = 14.9 mm. Since 1 point is 1/72 (inch) = 0.353 mm, the character “day” shown in FIG. 15A is 14.9 / 0.353 = 42.2 (points). If the digits after the decimal point are discarded in order to fit the characters in the closed area, the character of “day” is determined to be 42 points.

次に特徴抽出部17は、ステップ31で切り出されたドットの塊から、それぞれのドットの階調値を集計し、最も濃い階調のピーク値から文字の濃度を推定する(ステップ34)。推定した濃度値は矩形データとして記憶部18に格納される。   Next, the feature extraction unit 17 adds up the tone values of the dots from the dot cluster cut out in step 31 and estimates the character density from the peak value of the darkest tone (step 34). The estimated density value is stored in the storage unit 18 as rectangular data.

次に特徴抽出部17は、文字種の選択を行う(ステップ35)。図15(b)および図16に示す累積値に基づいて文字種を選択する。図15に示す例では、連続するドットの累積値の最初のピークを文字の太さと判定しているが、文字の太さと判定されたドット幅に基づいて文字種を選択する。図16はドット幅と文字種を対応させて格納してある文字種テーブルを示す。文字種テーブル61は記憶部18に予め格納されている。文字種テーブル61にしたがって選択すると、ドット幅が2ドットの場合の文字種は明朝体である。選択された文字種データは矩形データとして記憶部18に格納される。以上によりステップ13の特徴抽出動作を終了する。また以上によりスキャナ装置4における読取り動作を終了する。   Next, the feature extraction unit 17 selects a character type (step 35). A character type is selected based on the accumulated values shown in FIGS. In the example shown in FIG. 15, the first peak of the cumulative value of consecutive dots is determined to be the character thickness, but the character type is selected based on the determined dot width. FIG. 16 shows a character type table in which dot widths and character types are stored in association with each other. The character type table 61 is stored in the storage unit 18 in advance. When selected according to the character type table 61, the character type when the dot width is 2 dots is Mincho. The selected character type data is stored in the storage unit 18 as rectangular data. Thus, the feature extraction operation in step 13 is completed. Further, the reading operation in the scanner device 4 is completed.

以上の動作により矩形データが全てそろった形で記憶部18に格納される。図18に矩形データを示す。図18において、矩形データ62には、閉領域(矩形領域)の四隅の座標データ63、閉領域内の文字の大きさを示すデータ64、文字の太さを示すデータ65、文字の濃さを示すデータ66、文字の方向を示すデータ67および文字の種別を示すデータ68が含まれている。   Through the above operation, all the rectangular data is stored in the storage unit 18. FIG. 18 shows rectangular data. In FIG. 18, rectangular data 62 includes coordinate data 63 at the four corners of the closed area (rectangular area), data 64 indicating the size of characters in the closed area, data 65 indicating the thickness of the characters, and the darkness of the characters. Data 66 indicating data, data 67 indicating the direction of characters, and data 68 indicating the type of characters are included.

プリンタ3の制御部11は、ステップ6における原稿読み取り指示による読取り動作が終了すると、スキャナ装置4の記憶部18に格納された矩形データ62を文字情報として取得する(ステップ7)。   When the reading operation according to the document reading instruction in step 6 is completed, the control unit 11 of the printer 3 acquires the rectangular data 62 stored in the storage unit 18 of the scanner device 4 as character information (step 7).

次に制御部11は、矩形データ62から矩形領域の長手方向の線分の座標を解析し、各々の線分の角度を算出する。スキャナ装置4で原稿を読取ると、原稿が斜めに読取られる場合がある。斜めに読取られた場合、求められた座標データに基づいて名前等を印刷した場合、名前の位置がずれてしまう。   Next, the control unit 11 analyzes the coordinates of the line segments in the longitudinal direction of the rectangular area from the rectangle data 62, and calculates the angle of each line segment. When a document is read by the scanner device 4, the document may be read obliquely. In the case of being read obliquely, when the name or the like is printed based on the obtained coordinate data, the name position is shifted.

図19を用いて具体的に説明する。図19は読取った矩形領域の座標の補正動作を示す説明図である。図19(a)、(b)は読取ったテンプレート33が傾いていない場合を示し、この場合には得られた矩形データで示される領域に名前を印刷してもずれは生じない。しかしながら、図19(c)に点線で示すように、テンプレート33が斜めに読み取られた場合、矩形領域の座標がずれるので、そのずれた座標に基づいて設定した領域に名前を印刷すると、図19(d)に示すように、名前の位置が原稿(テンプレート)とずれてしまう。そのために矩形領域の座標を補正する必要がある。   This will be specifically described with reference to FIG. FIG. 19 is an explanatory diagram showing the correction operation of the coordinates of the read rectangular area. FIGS. 19A and 19B show a case where the read template 33 is not tilted. In this case, no deviation occurs even if the name is printed in the area indicated by the obtained rectangular data. However, as shown by a dotted line in FIG. 19C, when the template 33 is read obliquely, the coordinates of the rectangular area are shifted. Therefore, when a name is printed in the area set based on the shifted coordinates, FIG. As shown in (d), the name position deviates from the original (template). Therefore, it is necessary to correct the coordinates of the rectangular area.

矩形領域の各々の線分の角度は、矩形領域の四隅の座標値から求めることができる。次に、得られた各線分の角度の平均を求める。このとき極端にずれている角度はサンプルから除く。求めた平均の角度θをテンプレート33のずれ角とする。このずれ角θに基づいて矩形データ62の座標データ63の補正を行う(ステップ8)。   The angle of each line segment of the rectangular area can be obtained from the coordinate values of the four corners of the rectangular area. Next, the average of the angles of the obtained line segments is obtained. At this time, the extremely shifted angle is excluded from the sample. The obtained average angle θ is set as the shift angle of the template 33. Based on the deviation angle θ, the coordinate data 63 of the rectangular data 62 is corrected (step 8).

図19において具体的に説明する。まず角度θの求め方を説明すると、図19(e)において、読取って得た矩形領域の左上の座標を(X1'、Y1')、左下の座標を(X2'、Y2')とすると、矩形領域の長手方向の線の傾きθは、θ=tan−1{(Y1'−Y2')/(X1'−X2')}で求めることができる。次に求めた角度θから、傾きがない場合の矩形領域の座標を求める。   This will be specifically described with reference to FIG. First, how to obtain the angle θ will be described. In FIG. 19E, when the upper left coordinates of the rectangular area obtained by reading are (X1 ′, Y1 ′) and the lower left coordinates are (X2 ′, Y2 ′), The inclination θ of the line in the longitudinal direction of the rectangular area can be obtained by θ = tan−1 {(Y1′−Y2 ′) / (X1′−X2 ′)}. Next, the coordinates of the rectangular area when there is no inclination are obtained from the obtained angle θ.

図19(f)において、傾きがないとした場合の矩形領域の左上の座標を(X1″、Y1″)とすると、X1″=cosθX1´+sinθY1´で、Y1″=sinθX1´+cosθY1´で求めることができる。他の隅の座標も同様に求めることができる。求めた座標データは矩形データ62に追記される。以上により矩形領域の座標の補正動作を終了する。   In FIG. 19F, when the upper left coordinates of the rectangular area when there is no inclination are (X1 ″, Y1 ″), X1 ″ = cos θX1 ′ + sin θY1 ′ and Y1 ″ = sin θX1 ′ + cos θY1 ′. Can do. The coordinates of the other corners can be obtained similarly. The obtained coordinate data is added to the rectangular data 62. Thus, the correction operation for the coordinates of the rectangular area is completed.

次に制御部11はステップ4へ進み、受賞者リストデータ41により指定された文字コードと、矩形データ62の文字情報により、最も適合するフォントデータをフォントメモリ12から選択する。フォントデータは矩形データ62に指定される座標へ配置される(ステップ4)。   Next, the control unit 11 proceeds to step 4, and selects the most suitable font data from the font memory 12 based on the character code specified by the winner list data 41 and the character information of the rectangular data 62. The font data is arranged at the coordinates specified in the rectangular data 62 (step 4).

なおここで矩形領域における文字の配置位置について説明する。矩形領域に対する文字の配置は、矩形領域の中心を求め、また文字列の中心を求めて、求めた両方の中心が一致するように文字列を配置する。図20を用いて説明する。図20(a)は矩形領域70を示し、図20(b)は文字列71を示す。矩形領域70の中心70aは四隅の座標から求めることができる。また文字列71の中心71aは、文字の大きさ及び文字数から演算で求める。文字列71の中心71aが矩形領域70の中心70aに一致するように配置する。   Here, the arrangement position of the characters in the rectangular area will be described. For the arrangement of characters with respect to the rectangular area, the center of the rectangular area is obtained, the center of the character string is obtained, and the character string is arranged so that both the obtained centers coincide. This will be described with reference to FIG. FIG. 20A shows a rectangular area 70, and FIG. 20B shows a character string 71. The center 70a of the rectangular area 70 can be obtained from the coordinates of the four corners. Further, the center 71a of the character string 71 is obtained by calculation from the character size and the number of characters. The character string 71 is arranged so that the center 71 a thereof coincides with the center 70 a of the rectangular region 70.

画像形成部13は制御部11により形成されたイメージデータを電子写真方式により印刷する(ステップ5)。これにより図7に示す賞状5が得られ、以上により読取り動作を伴う賞状の印刷を終了する。   The image forming unit 13 prints the image data formed by the control unit 11 by an electrophotographic method (step 5). As a result, the certificate 5 shown in FIG. 7 is obtained, and the printing of the certificate accompanied by the reading operation is completed as described above.

以上のように第1の実施の形態によれば、枠線32a、32bを記載したテンプレート33を読み取り、読取って得た矩形領域情報およびその内部の文字情報から印刷データの印刷位置および印刷に必要な文字情報を得るようにしたので、試し印刷をすることなく、また例えば一旦読取ったデータをパーソナルコンピュータへ送信してパーソナルコンピュータの画面で印刷位置を指定するなどの工程を経ることなく、簡単な方法で賞状の印刷が可能となる。またテンプレートの読取時にずれがある場合でも、ずれ量を求めて枠線32a、32bの読取り座標を補正するので、適正な位置に印刷が可能となる。   As described above, according to the first embodiment, the template 33 describing the frame lines 32a and 32b is read, and it is necessary for the print position and print of the print data from the read rectangular area information and the character information therein. Since simple character information is obtained, it is possible to perform simple printing without performing trial printing, and without passing through steps such as transmitting data once read to a personal computer and specifying a printing position on the screen of the personal computer. The certificate can be printed by this method. Even when there is a deviation when reading the template, the deviation coordinates are obtained and the reading coordinates of the frame lines 32a and 32b are corrected, so that printing can be performed at an appropriate position.

次に第2の実施の形態を説明する。第2の実施の形態はユーザの利便性を向上させるために、テンプレートに描かれた枠線と枠線内の記号とを判別し、判別結果により、差し込み印刷をするかコピー印刷をするかという印刷の制御を変えるようにしたものである。図21は第2の実施の形態の印刷システムを示すブロック図である。   Next, a second embodiment will be described. In the second embodiment, in order to improve the convenience for the user, a frame line drawn on the template and a symbol in the frame line are determined, and whether to perform merge printing or copy printing is determined according to the determination result. The printing control is changed. FIG. 21 is a block diagram illustrating a printing system according to the second embodiment.

図21において、第2の実施の形態の印刷システム80は、第1の実施の形態と同様に、外部入力装置としてのパーソナルコンピュータ2、プリンタ3およびスキャナ装置81とから構成される。またパーソナルコンピュータ2及びプリンタ3の構成は第1の実施の形態と同様である。第2の実施の形態のスキャナ装置81は、読取部14、操作部15、領域設定部16、特徴抽出部17、記憶部18、画像認識部82および特徴データ記憶部83を具備している。   In FIG. 21, a printing system 80 according to the second embodiment includes a personal computer 2 as an external input device, a printer 3, and a scanner device 81 as in the first embodiment. The configurations of the personal computer 2 and the printer 3 are the same as those in the first embodiment. A scanner device 81 according to the second embodiment includes a reading unit 14, an operation unit 15, a region setting unit 16, a feature extraction unit 17, a storage unit 18, an image recognition unit 82, and a feature data storage unit 83.

画像認識部82は、矩形によって指定された領域のビットマップデータからドットの集合を抽出し、それぞれ隣り合うドットのつながりからそれぞれ長さと角度を持った特徴データに変換する。1つの集合からは複数の特徴データが得られる。例えば、垂直に近い線分の数や、水平に近い線分の数、傾きを持った線分の数量などの文字や記号を固有に持つ特徴を得ることができる。こうして得た特徴と、特徴データ記憶部83に記憶された文字の特徴データをパターンマッチングにより評価し、最も似通ったものを文字や記号として認識する。   The image recognizing unit 82 extracts a set of dots from the bitmap data of the area designated by the rectangle, and converts the adjacent dot connections into feature data each having a length and an angle. A plurality of feature data is obtained from one set. For example, it is possible to obtain features that have unique characters and symbols such as the number of line segments close to vertical, the number of line segments close to horizontal, and the number of line segments with inclination. The feature obtained in this way and the character feature data stored in the feature data storage unit 83 are evaluated by pattern matching, and the most similar features are recognized as characters and symbols.

特徴データ記憶部83は不揮発性メモリからなり、各種の記号や数字、アルファベット、ひらがな、カタカナ、漢字の持つ特徴データを記憶する。   The feature data storage unit 83 includes a nonvolatile memory, and stores feature data of various symbols, numbers, alphabets, hiragana, katakana, and kanji.

第2の実施の形態においても、第1の実施の形態と同様に、過去に作成した賞状からテンプレートを作成する。図22は過去に作成した賞状に対して、印刷データを印刷する位置を示す枠線を書き込んだテンプレートを示す。図22において、テンプレート84には、飾り枠を除いた全ての文字の印刷箇所に枠線85乃至90が書き込まれている。これらの枠線はスキャナ装置81が読取る位置を示すとともに、印刷を行うときの文字の配置位置を示す。   Also in the second embodiment, as in the first embodiment, a template is created from a certificate created in the past. FIG. 22 shows a template in which a frame line indicating a position for printing print data is written on a certificate created in the past. In FIG. 22, in the template 84, frame lines 85 to 90 are written at print positions of all characters excluding the decorative frame. These frame lines indicate positions where the scanner device 81 reads, and also indicate the arrangement positions of characters when printing is performed.

枠線85乃至90には2種類あり、一つはパーソナルコンピュータ2から送られる印刷データの文字の書き込み位置を指定するもので、もう一つはテンプレート84の画像をそのまま取り込み印刷することを指定するものである。前者の場合は枠線の中にさらに矢印の記号91、92を書き込んであり、この記号91、92の有無により前者と後者が区別される。図22の例では、枠線86および枠線89の中に記号91、92が書き込まれている。なお枠線または記号がテンプレートに直接書き込みできない場合は、透過性のあるフィルム等を用いてそこに枠線を書き込むようにするとよい。   There are two types of frame lines 85 to 90, one for designating the character writing position of the print data sent from the personal computer 2, and the other designating that the image of the template 84 is directly taken and printed. Is. In the former case, arrow symbols 91 and 92 are further written in the frame line, and the former and the latter are distinguished by the presence or absence of these symbols 91 and 92. In the example of FIG. 22, symbols 91 and 92 are written in the frame line 86 and the frame line 89. If the frame line or symbol cannot be directly written on the template, the frame line may be written on a transparent film or the like.

図23は第2の実施の形態の台紙を示す説明図である。台紙93には飾り枠のみが印刷されており、本実施の形態ではこの台紙93にタイトル、受賞者名、敬称、本文、日付および授与者名を印刷することにより賞状としての印刷を行う。図24は印刷を完了した賞状を示す説明図である。図24に示すように、完成した賞状94には、図22に示すテンプレート84に使用した過去の賞状とは異なる受賞者名35aおよび日付35bが、テンプレート84に示す受賞者名および日付と同じ位置に印刷され、他の項目についてはテンプレート84に示す項目と同様に印刷されている。   FIG. 23 is an explanatory diagram showing a mount according to the second embodiment. Only the decorative frame is printed on the mount 93. In this embodiment, the title 93, the name of the winner, the title, the text, the date, and the name of the award are printed on the mount 93 to print as a certificate. FIG. 24 is an explanatory diagram showing a certificate of completion of printing. As shown in FIG. 24, in the completed certificate 94, the winner name 35a and date 35b different from the past certificate used in the template 84 shown in FIG. The other items are printed in the same manner as the items shown in the template 84.

印刷を始める前にオペレータは、図4に示す過去の賞状31に対して、図22に示す枠線85乃至90を記入し、さらに受賞者名の枠線86内および日付の枠線89内にそれぞれ印刷の向きと印刷開始位置を示す記号「↑」を書き込み、図22のようなテンプレート84を作成する。なお他の項目、即ち、タイトル、敬称、本文、授与者名については過去の賞状31と文言が同じなのでコピーするものとし、枠線85、87、88、90のみ書き込みを行う。オペレータは作成したテンプレート84をスキャナ装置81にセットする。   Before starting printing, the operator fills in the frame 85 to 90 shown in FIG. 22 for the past certificate 31 shown in FIG. Each of the symbols “↑” indicating the printing direction and the printing start position is written to create a template 84 as shown in FIG. The other items, that is, title, title, text, and award name are the same as those in the past certificate 31 and are copied, and only the frame lines 85, 87, 88, 90 are written. The operator sets the created template 84 on the scanner device 81.

一方、パーソナルコンピュータ2では賞状に印刷する受賞者と受賞の日付のリストを入力する。このリストは図8に示す第1の実施の形態のものと同様である。このリストデータに基づいてパーソナルコンピュータ2は、内部において動作するドライバプログラムにより、印刷データを作成する。作成される印刷データは、図9に示す第1の実施の形態のものと同様である。   On the other hand, the personal computer 2 inputs a list of winners to be printed on the award certificate and award date. This list is the same as that of the first embodiment shown in FIG. Based on the list data, the personal computer 2 creates print data by a driver program that operates inside. The print data to be created is the same as that of the first embodiment shown in FIG.

次に第2の実施の形態におけるプリンタ3の制御部11の動作を図25に示すフローチャートにしたがって説明する。図25は第2の実施の形態におけるプリンタの動作を示すフローチャートである。プリンタ3の制御部11はパーソナルコンピュータ2から印刷データ39(図9に示す)を受信すると(ステップ41)、先頭から順に構文解析を行い、逐次実行する。次に制御部11は、印刷データ39の中に原稿読取命令40があるかどうか判断する(ステップ42)。   Next, the operation of the control unit 11 of the printer 3 in the second embodiment will be described with reference to the flowchart shown in FIG. FIG. 25 is a flowchart showing the operation of the printer in the second embodiment. When the control unit 11 of the printer 3 receives the print data 39 (shown in FIG. 9) from the personal computer 2 (step 41), the control unit 11 performs syntax analysis in order from the top and sequentially executes them. Next, the control unit 11 determines whether or not the document reading command 40 is present in the print data 39 (step 42).

原稿読取命令40があると判断した場合、制御部11はスキャナ装置81に対して原稿の読取を指示し(ステップ43)、読み取りが完了するまで待つ。ここでスキャナ装置81における原稿読取動作を図26に示すフローチャートに従って説明する。図26は原稿読取動作を示すフローチャートである。   If it is determined that the document reading command 40 is present, the control unit 11 instructs the scanner device 81 to read the document (step 43) and waits until the reading is completed. Here, the document reading operation in the scanner device 81 will be described with reference to the flowchart shown in FIG. FIG. 26 is a flowchart showing the document reading operation.

スキャナ装置81においてまず読取部14は、セットされているテンプレート84を読取り、階調を持ったビットマップデータとして記憶部18へ格納する(ステップ51)。次に領域設定部16が、記憶部18に格納されたビットマップデータから矩形の個数、矩形の座標を抽出し、矩形データとして記憶部18に格納する(ステップ52)。矩形抽出動作は第1の実施の形態と同様に行われるので、ここでの詳しい説明は省略するが、この矩形抽出動作により、テンプレート84に記載された矩形の枠線85乃至90の個数および座標が抽出される。   In the scanner device 81, the reading unit 14 first reads the set template 84 and stores it in the storage unit 18 as bit map data having gradation (step 51). Next, the area setting unit 16 extracts the number of rectangles and the coordinates of the rectangles from the bitmap data stored in the storage unit 18 and stores them in the storage unit 18 as rectangular data (step 52). Since the rectangle extraction operation is performed in the same manner as in the first embodiment, a detailed description thereof will be omitted. However, by this rectangle extraction operation, the number and coordinates of the rectangular frame lines 85 to 90 described in the template 84 are described. Is extracted.

次にステップ53に移行し、矩形内の記号の抽出を行う。この記号の抽出について図27に示すフローチャートにより詳細に説明する。図27は記号抽出動作を示すフローチャートである。まず画像認識部82は、ステップ52で得られた矩形の座標により示される領域のビットマップデータから連結したドットの集合をひとつの塊として切り出しを行う(ステップ61)。   Next, the process proceeds to step 53, where symbols in the rectangle are extracted. This symbol extraction will be described in detail with reference to the flowchart shown in FIG. FIG. 27 is a flowchart showing the symbol extraction operation. First, the image recognition unit 82 cuts out a set of dots connected from the bitmap data of the area indicated by the rectangular coordinates obtained in step 52 as one lump (step 61).

次に画像認識部82は、切り出したドットの塊を線分のデータとして細分化し(ステップ62)、線分のベクトルから特徴抽出を行う(ステップ63)。ここで特徴とは、「垂直方向の線分があれば"1"」、「水平方向の線分があれば"2"」、「中心線の右側で中心線から下に向かう斜め線があれば"3"」、「中心線の左側で中心線から下に向かう斜めの線があれば"4"」、「中心線の右側で中心線から上に向かう斜め線があれば"5"」、「中心線の左側で中心線から上に向かう斜めの線があれば"6"」のように、文字の特徴を示す条件を用意し、これらに照らして合致する場合のみ得点化する。ここで中心線というのは、図28に示す中央の垂直線103を意味する。なお該当する線が存在しない場合は得点は"0"とする。図28は記号抽出の過程を示す説明図であり、図28にしたがって具体的に説明する。   Next, the image recognizing unit 82 subdivides the cut out dot cluster as line segment data (step 62), and performs feature extraction from the line segment vector (step 63). The features here are “1” if there is a vertical line segment, “2” if there is a horizontal line segment, and “a diagonal line that goes down from the center line to the right of the center line. "3" "," 4 "if there is a diagonal line down from the center line on the left side of the center line, and" 5 "if there is a diagonal line upward from the center line on the right side of the center line A condition indicating character characteristics is prepared, such as “6 if there is an oblique line on the left side of the center line and upward from the center line”, and a score is given only when they match in light of these conditions. Here, the center line means a central vertical line 103 shown in FIG. If the corresponding line does not exist, the score is “0”. FIG. 28 is an explanatory diagram showing the process of symbol extraction, which will be specifically described with reference to FIG.

図28はステップ61、61により得られた画像の例を示す。この画像から特徴抽出を行うと、図28の右側に示すように、垂直方向の線分があるので"1"が得点化され、水平線は存在しないので得点化されず、中心線の右側で中心線から下に向かう斜め線があるので"3"が得点化され、さらに中心線の左側で中心線から下に向かう斜め線があるので"4"が得点化される。そして得点化された結果が特徴データ記憶部83に格納されている特徴データとパターンマッチングされる(ステップ64)。   FIG. 28 shows an example of an image obtained in steps 61 and 61. When feature extraction is performed from this image, as shown on the right side of FIG. 28, since there is a vertical line segment, “1” is scored, and since there is no horizontal line, the score is not scored. Since there is a diagonal line going down from the line, "3" is scored, and since there is a diagonal line going down from the center line on the left side of the center line, "4" is scored. The scored result is pattern-matched with the feature data stored in the feature data storage unit 83 (step 64).

この場合、得点を加算した総得点を比較することによりマッチングを行う。得点付けした特徴項目を増加することにより、総得点が一致すれば特徴が一致する確立が高くなる。   In this case, matching is performed by comparing the total scores obtained by adding the scores. By increasing the scored feature items, if the total score matches, the probability that the features will match increases.

図29は特徴データ記憶部83に予め格納されている特徴データを示す説明図である。特徴データ記憶部83には、テンプレート84に書き込まれる枠線内に記入される記号(矢印記号)の4通りのパターンが予め格納されている。図29(a)は上向きの垂直方向の矢印のパターンを示し、右側に上記のルールに従って得点化された結果が示されている。図29(b)は右向きの水平方向の矢印のパターンを示し、右側に得点化された結果を示す。図29(c)は左向きの水平方向の矢印のパターンを示し、右側に得点化された結果を示す。同様に、図29(d)は下向きの垂直方向の矢印のパターンを示し、右側に得点化された結果を示す。   FIG. 29 is an explanatory diagram showing feature data stored in advance in the feature data storage unit 83. In the feature data storage unit 83, four patterns of symbols (arrow symbols) written in the frame line written in the template 84 are stored in advance. FIG. 29A shows an upward vertical arrow pattern, and the result of scoring according to the above rule is shown on the right side. FIG. 29B shows a pattern of horizontal arrows pointing to the right, and the scored result is shown on the right side. FIG. 29 (c) shows a pattern of horizontal arrows pointing to the left, and the scored result is shown on the right side. Similarly, FIG. 29 (d) shows a downward vertical arrow pattern, and the scored result is shown on the right side.

図28に示す画像の得点化の結果を図29のいずれかのパターンの得点化の結果を比較すると、図29(a)のパターンの総得点と一致している。したがって図28に示す画像は、上向きの垂直の矢印を表わしていると判定される。このように記号の種類と向きの情報および記号の位置の情報を得ることができる。なおパターンマッチングは、「垂直方向の線分があれば"1"」や「中心線の右側で中心線から下に向かう斜め線があれば"3"」等の各特徴項目ごとに行い、全ての特徴項目が一致した場合に一致するパターンが存在すると判定してもよい。この場合には一致の精度が向上する。   When the result of scoring of the image shown in FIG. 28 is compared with the result of scoring of any of the patterns in FIG. 29, it matches the total score of the pattern in FIG. Therefore, it is determined that the image shown in FIG. 28 represents an upward vertical arrow. Thus, information on the type and direction of the symbol and information on the position of the symbol can be obtained. Pattern matching is performed for each feature item such as “1” if there is a vertical line segment or “3” if there is a diagonal line on the right side of the center line that goes down from the center line. If the feature items match, it may be determined that there is a matching pattern. In this case, the accuracy of matching is improved.

次にステップ54において、記号を抽出した矩形領域があるかどうか判定する。ここで矩形領域から切り出したドットの塊の特徴が、図29に示すパターンのいずれとも一致しない場合は、矢印記号はその矩形領域内には存在しないものと判定される。枠線内から記号(矢印記号)を抽出した矩形領域がある場合には、その矩形領域内の文字の特徴抽出を行う(ステップ55)。   Next, in step 54, it is determined whether or not there is a rectangular area from which the symbol is extracted. Here, when the feature of the cluster of dots cut out from the rectangular area does not match any of the patterns shown in FIG. 29, it is determined that the arrow symbol does not exist in the rectangular area. If there is a rectangular area from which a symbol (arrow symbol) is extracted from within the frame line, character extraction of the character in the rectangular area is performed (step 55).

文字の特徴抽出については、第1の実施の形態と同様に行われるので、ここでの詳細な説明は省略する。この特徴抽出動作により、記号91、92を含む矩形領域86、89内の文字の太さ、文字の大きさ、文字の濃度および文字種が抽出される。また記号を抽出しない矩形領域については特徴抽出は行わない。   Since character feature extraction is performed in the same manner as in the first embodiment, a detailed description thereof is omitted here. By this feature extraction operation, the character thickness, character size, character density, and character type in the rectangular areas 86 and 89 including the symbols 91 and 92 are extracted. In addition, no feature extraction is performed on a rectangular area from which no symbol is extracted.

以上の動作により矩形データが全てそろった形で記憶部18に格納される。図30に矩形データを示す。図30において、矩形データ95には、全ての矩形領域に関するデータが含まれている。矩形領域データ96は、図22に示す枠線86の領域に関する情報であり、矩形領域データ97は枠線89の領域に関する情報である。これらの情報には、矩形領域の四隅の座標データ63、閉領域内の文字の大きさを示すデータ64、文字の太さを示すデータ65、文字の濃さを示すデータ66、文字の方向を示すデータ67および文字の種別を示すデータ68が含まれている。   Through the above operation, all the rectangular data is stored in the storage unit 18. FIG. 30 shows rectangular data. In FIG. 30, the rectangular data 95 includes data relating to all rectangular areas. The rectangular area data 96 is information regarding the area of the frame line 86 shown in FIG. 22, and the rectangular area data 97 is information regarding the area of the frame line 89. The information includes coordinate data 63 at the four corners of the rectangular area, data 64 indicating the size of the character in the closed area, data 65 indicating the thickness of the character, data 66 indicating the darkness of the character, and the direction of the character. Data 67 to indicate and data 68 to indicate the character type are included.

矩形領域データ98は、図22に示す枠線85の領域に関する情報であり、この情報として矩形領域の四隅の座標データ63と領域内のビットマップデータ99が含まれている。その他の矩形領域データ100、101、102はそれぞれ枠線87、88、90の領域に関する情報であり、同様に矩形領域の四隅の座標データ63と領域内のビットマップデータ99とから成っている。   The rectangular area data 98 is information relating to the area of the frame 85 shown in FIG. 22, and as this information, coordinate data 63 at the four corners of the rectangular area and bitmap data 99 in the area are included. The other rectangular area data 100, 101, 102 are information relating to the areas of the frame lines 87, 88, 90, respectively, and similarly consist of coordinate data 63 at the four corners of the rectangular area and bitmap data 99 in the area.

即ち、矩形データ95には、2種類のデータがあり、ひとつは文字の置き換えを行うためのデータ(符号96、97で示す)であり、もうひとつはコピーを行うためのデータ(符号98、100、101、102で示す)である。   That is, the rectangular data 95 includes two types of data, one is data for replacing characters (indicated by reference numerals 96 and 97), and the other is data for copying (reference numerals 98 and 100). , 101, 102).

次にプリンタ3の制御部11は、ステップ43における原稿読み取り指示による読取り動作が終了すると、スキャナ装置81の記憶部18に格納された矩形データ95を文字情報として取得する(ステップ44)。   Next, when the reading operation according to the document reading instruction in step 43 is completed, the control unit 11 of the printer 3 acquires the rectangular data 95 stored in the storage unit 18 of the scanner device 81 as character information (step 44).

次に制御部11は、矩形データ95から矩形領域の長手方向の線分の座標を解析し、各々の線分の角度を算出し、矩形データ95の座標データ63の補正を行う(ステップ45)。これは第1の実施の形態と同様に行われるので、ここでの詳細な説明は省略する。なお座標データ63の補正は、文字の置き換えを行うための矩形領域データ96、97に対しても、またコピーを行うための矩形領域データ98、100、101、102に対しても行われる。   Next, the control unit 11 analyzes the coordinates of the line segments in the longitudinal direction of the rectangular area from the rectangle data 95, calculates the angle of each line segment, and corrects the coordinate data 63 of the rectangle data 95 (step 45). . Since this is performed in the same manner as in the first embodiment, a detailed description thereof is omitted here. The correction of the coordinate data 63 is performed on the rectangular area data 96 and 97 for replacing characters and also on the rectangular area data 98, 100, 101, and 102 for copying.

次に制御部11は、文字の置き換えを行うための矩形領域データ96、97に対して、図9に示す受賞者リストデータ41により指定される文字コードと、矩形領域データ96、97の文字情報により、最も適合するフォントデータをフォントメモリ12から選択する。フォントデータは矩形領域データ96、97に指定される座標へ配置する。   Next, the control unit 11 sets the character code specified by the winner list data 41 shown in FIG. 9 and the character information of the rectangular area data 96 and 97 for the rectangular area data 96 and 97 for replacing characters. Thus, the most suitable font data is selected from the font memory 12. The font data is arranged at the coordinates specified by the rectangular area data 96 and 97.

またコピーを行うための矩形領域データ98、100、101、102については、これらの矩形領域データ98、100、101、102により指定される座標に、これらの矩形領域データ98、100、101、102に含まれるそれぞれのビットマップデータを配置する。   In addition, the rectangular area data 98, 100, 101, 102 for copying is set at the coordinates specified by the rectangular area data 98, 100, 101, 102. Each bit map data included in is arranged.

画像形成部13は制御部11により形成されたイメージデータを電子写真方式により印刷する(ステップ47)。これにより図24に示す賞状94が得られ、以上により読取り動作を伴う賞状の印刷を終了する。   The image forming unit 13 prints the image data formed by the control unit 11 by electrophotography (step 47). As a result, a certificate 94 shown in FIG. 24 is obtained, and the printing of the certificate accompanied by the reading operation is completed as described above.

以上のように第2の実施の形態によれば、文字の置き換えを行うための矩形領域とコピーを行うための矩形領域とを区別し、文字の置き換えを行う矩形領域にはパーソナルコンピュータ2から送られる印刷データを印刷し、コピーを行う矩形領域にはスキャナ装置81により読取ったビットマップデータを印刷するようにしたので、文字の置き換えを行う必要のある項目がいくつあっても柔軟に対応することができ、また文字の置き換えを行う必要のない項目についてはコピーをするので、台紙として何も記載されていないもの或いは飾り枠のみ印刷されているものを使用することができ、台紙の選択の幅を広げることができる。そのため利用者には使い勝ってのよいものになる。   As described above, according to the second embodiment, the rectangular area for character replacement is distinguished from the rectangular area for copying, and the rectangular area for character replacement is sent from the personal computer 2 to the rectangular area for character replacement. Since the bitmap data read by the scanner device 81 is printed in the rectangular area to be printed and copied, it is possible to flexibly cope with any number of items that need to be replaced. Since items that do not need to be replaced are copied, items that are not described as a mount or printed only with a decorative frame can be used. Can be spread. Therefore, it is easy for the user to use.

次に第3の実施の形態を説明する。第3の実施の形態は第1の実施の形態で説明した矩形抽出に対して改良を加えたものである。前記2つの実施の形態では、矩形の枠線を書き込むことにより、完全に囲まれた矩形形状を形成し、その矩形の座標に基づいて印刷する文字の配置位置等を求めるようにした。この方法は文字の印刷位置を正確に指定することができるが、場合によっては左程印刷位置の正確さが要求されない場合もある。その場合にはより簡易な方法で領域を指定することが好ましい。第3の実施の形態はこの点に鑑みてなされたものである。   Next, a third embodiment will be described. The third embodiment is obtained by improving the rectangular extraction described in the first embodiment. In the two embodiments, by writing a rectangular frame line, a completely enclosed rectangular shape is formed, and an arrangement position or the like of characters to be printed is obtained based on the coordinates of the rectangle. This method can specify the print position of the character accurately, but in some cases, the print position is not required to be as accurate as the left. In that case, it is preferable to specify the region by a simpler method. The third embodiment has been made in view of this point.

第3の実施の形態は、テンプレートに書き込む枠線をフリーハンドで書き込み可能としたものである。また記号(矢印記号)を書き込む必要のある場合には、枠線を書き込まずに記号のみを書き込み可能にしたものである。図31は受賞者の箇所にフリーハンドで枠線を書き込んだテンプレートを示す。   In the third embodiment, a frame line to be written on a template can be written freehand. When it is necessary to write a symbol (arrow symbol), only the symbol can be written without writing a frame line. FIG. 31 shows a template in which a frame line is written freehand at the location of the winner.

図13で説明した第1の実施の形態での矩形抽出方法に従って図31(a)に示すテンプレート110上の枠線111を走査すると、図31(b)に示すように、複数の直線112が抽出される。このように複数の線分112が抽出された場合は、図31(c)に示すように、枠線111を内包する最大の矩形113を仮の領域として設定する。   When the frame line 111 on the template 110 shown in FIG. 31 (a) is scanned according to the rectangle extraction method in the first embodiment described in FIG. 13, a plurality of straight lines 112 are obtained as shown in FIG. 31 (b). Extracted. When a plurality of line segments 112 are extracted in this way, as shown in FIG. 31C, the largest rectangle 113 that encloses the frame line 111 is set as a temporary area.

次にこの矩形113の4本の線分を矩形113の中心に向かって文字や記号に干渉しない位置までそれぞれ移動する。その結果、図31(d)に示すように、文字に隣接した矩形領域114が得られる。得られた矩形領域114は内部の文字に隣接しているが、矩形領域114に対する印刷文字の配置は、矩形領域114の中心を求め、また印刷文字列の中心を求めて、求めた両方の中心が一致するように文字列を配置するので、特に問題なく適正に印刷位置を設定することができる。   Next, the four line segments of the rectangle 113 are moved toward the center of the rectangle 113 to positions where they do not interfere with characters or symbols. As a result, as shown in FIG. 31D, a rectangular area 114 adjacent to the character is obtained. The obtained rectangular area 114 is adjacent to the internal character, but the arrangement of the print characters with respect to the rectangular area 114 is obtained by calculating the center of the rectangular area 114 and the center of the print character string. Since the character strings are arranged so as to coincide with each other, it is possible to set the printing position appropriately without any problem.

図32は枠線を書き込まないで記号(矢印記号)のみを書き込んだテンプレートを示す。ここでは枠線を書き込まれない場合に文字を含む領域を矩形領域として抽出する方法を説明する。図32(a)に示すテンプレート115には受賞者の名前の近傍に矢印の記号116が書き込まれている。この場合、閉領域を構成する線分はテンプレート115上にないので、図32(b)に示すように、テンプレート115全体を仮の矩形領域とする。   FIG. 32 shows a template in which only a symbol (arrow symbol) is written without writing a frame line. Here, a method of extracting a region including characters as a rectangular region when a frame line is not written will be described. In the template 115 shown in FIG. 32A, an arrow symbol 116 is written in the vicinity of the name of the winner. In this case, since the line segment constituting the closed region is not on the template 115, the entire template 115 is set as a temporary rectangular region as shown in FIG.

そしてテンプレート115全体の矩形領域において記号116の切り出しを行う。記号116の切り出しは、第2の実施の形態において図27乃至図29で説明したのと同様な方法で行う。記号116が抽出されると、図32(c)に示すように、記号116を中心に渦巻状にドットを検索し、文字の塊を探す。その結果、図32(d)に示すように、最初に検出した1文字の領域117を矩形領域とする。そしてこの矩形領域117における文字の座標や特徴を抽出する。   Then, the symbol 116 is cut out in the rectangular area of the entire template 115. The extraction of the symbol 116 is performed by the same method as described in FIGS. 27 to 29 in the second embodiment. When the symbol 116 is extracted, as shown in FIG. 32C, the dots are searched in a spiral shape around the symbol 116 to search for a lump of characters. As a result, as shown in FIG. 32 (d), the first detected character region 117 is set as a rectangular region. Then, the coordinates and features of the characters in the rectangular area 117 are extracted.

この場合、印刷文字の配置位置は矩形領域117の座標から算出される。矩形領域117の座標を基準にして所定の大きさを印刷領域に設定することにより、印刷位置が指定される。なおこの場合、コピーを行う矩形領域は抽出されないので、第1の実施の形態のように文字の置き換えを行う矩形領域を抽出するのに適用される。   In this case, the arrangement position of the print character is calculated from the coordinates of the rectangular area 117. The print position is designated by setting a predetermined size in the print area with reference to the coordinates of the rectangular area 117. In this case, since the rectangular area to be copied is not extracted, the present invention is applied to extracting the rectangular area for character replacement as in the first embodiment.

以上のように第3の実施の形態によれば、フリーハンドで書き込んだ枠線を抽出するようにしたので、テンプレートの作成時における枠線の書き込みを非常に簡易にすることが可能になる。またテンプレート上に書き込まれた記号(矢印記号)を抽出することにより、矩形領域を設定するようにしたので、やはりテンプレートへの書き込みを簡易にすることができる。   As described above, according to the third embodiment, since the frame lines written freehand are extracted, it becomes possible to greatly simplify the writing of the frame lines when creating a template. Further, since the rectangular area is set by extracting the symbol (arrow symbol) written on the template, writing to the template can be simplified.

本発明は以上の実施の形態に限定されるものではなく、種々の変形が可能である。例えば、上記各実施の形態ではパーソナルコンピュータ2から印刷データを送るようにしているが、プリンタ3で印刷データを入力し、入力したデータを矩形領域で示される位置に印刷することにより、印刷データの作成を不要とすることができる。図面を用いて説明する。   The present invention is not limited to the above embodiment, and various modifications can be made. For example, in each of the above embodiments, print data is sent from the personal computer 2, but the print data is input by the printer 3, and the input data is printed at the position indicated by the rectangular area. Creation can be made unnecessary. This will be described with reference to the drawings.

図33は本発明の変形例を示すブロック図である。図33において、変形例の印刷システム120は、プリンタ121とスキャナ装置122とから構成され、パーソナルコンピュータは接続されていない。プリンタ121は、制御部11、フォントメモリ12、画像形成部13のほかに単語辞書123および操作部124が設けられている。単語辞書123は、文字入力に用いる文節変換用の単語を格納している。スキャナ装置122は、読取部14、操作部15、領域設定部16、特徴抽出部17、記憶部18、画像認識部82を具備している。   FIG. 33 is a block diagram showing a modification of the present invention. In FIG. 33, a printing system 120 according to a modified example includes a printer 121 and a scanner device 122, and no personal computer is connected thereto. The printer 121 is provided with a word dictionary 123 and an operation unit 124 in addition to the control unit 11, font memory 12, and image forming unit 13. The word dictionary 123 stores a phrase conversion word used for character input. The scanner device 122 includes a reading unit 14, an operation unit 15, an area setting unit 16, a feature extraction unit 17, a storage unit 18, and an image recognition unit 82.

図34はプリンタ121の操作部124を示す。図34において、操作部124には、10インチ程度の大型表示画面125と8個のキーが具備されている。画面125の表示にしたがって表示項目を左右に移動させ、選択させることにより機能を指示する戻るキー126aおよび進むキー126b、同様に表示項目を上下に移動させるキー126c、126d、入力キー126e、中止キー126f、スキャナ装置122の動作を直接指示するコピーキー126gおよび読み取りを指示するスキャンキー126hが設けられている。   FIG. 34 shows the operation unit 124 of the printer 121. In FIG. 34, the operation unit 124 includes a large display screen 125 of about 10 inches and eight keys. In accordance with the display on the screen 125, the display item is moved to the left and right, and a selection key is used to indicate a function, and a return key 126a and a forward key 126b. A copy key 126g for directly instructing the operation of the scanner device 122 and a scan key 126h for instructing reading are provided.

以上のように構成される印刷システム120において、まずオペレータはスキャナ装置122にテンプレートをセットし、操作部124のスキャンキー126hを押下する。この場合テンプレートは図5に示す第1の実施の形態と同様のテンプレート33とする。スキャンキー126hが押下されると、読取部14でテンプレート33の読み取りが開始され、第1の実施の形態と同様に図18に示す矩形データ62が作成され、記憶部18に格納される。   In the printing system 120 configured as described above, the operator first sets a template on the scanner device 122 and presses the scan key 126h of the operation unit 124. In this case, the template is the same template 33 as in the first embodiment shown in FIG. When the scan key 126h is pressed, reading of the template 33 is started by the reading unit 14, and rectangular data 62 shown in FIG. 18 is created and stored in the storage unit 18 as in the first embodiment.

制御部11は、得られた矩形データ62の内容を操作部124の表示部125に表示する。ここでは図に示すように矩形データ62で指定される文字が表示される。また制御部11は、スキャナ装置122が画像認識した結果に基づいて、単語辞書123から相応しいと思われる単語を候補として操作部124の表示部125に表示する。   The control unit 11 displays the contents of the obtained rectangular data 62 on the display unit 125 of the operation unit 124. Here, as shown in the figure, the character designated by the rectangular data 62 is displayed. Further, based on the result of the image recognition performed by the scanner device 122, the control unit 11 displays words that are considered appropriate from the word dictionary 123 as candidates on the display unit 125 of the operation unit 124.

オペレータは、指示キー126a乃至126dを操作して表示項目を上下左右に移動させ、表示された候補の中から適切なものを選択する。このようにして表示された候補の中からの選択を繰り返し、すべての選択が完了すると、制御部11は画像形成部13での印刷を開始する。   The operator operates the instruction keys 126a to 126d to move the display items up, down, left, and right, and selects an appropriate one from the displayed candidates. The selection from the candidates displayed in this way is repeated, and when all selections are completed, the control unit 11 starts printing in the image forming unit 13.

以上のような変形例に拠れば、プリンタ121に単語辞書123を備えたことにより、印刷データを作成することなく、プリンタ121とスキャナ装置122だけで賞状の印刷を行うことができる。   According to the above modification, the printer 121 includes the word dictionary 123, so that a certificate can be printed only by the printer 121 and the scanner device 122 without creating print data.

また本発明はさらに他の変形が可能である。例えば、上記各実施の形態ではパーソナルコンピュータ2とプリンタ3とスキャナ装置4とを接続したシステム構成としているが、これに限らず、プリンタ機能とスキャナ機能を有する複合端末装置および複写装置においても実現可能である。   Further, the present invention can be further modified. For example, in each of the above-described embodiments, the system configuration is such that the personal computer 2, the printer 3, and the scanner device 4 are connected. It is.

また上記各実施の形態ではパーソナルコンピュータ2から印刷データを送るようにしているが、例えば、USB(ユニバーサルシリアルバス)インタフェース付きのメモリスティックを用いることもできる。予めメモリスティックに受賞者リストを記憶しておき、印刷時にプリンタのシリアルコネクタに接続する。プリンタの操作パネルにより受賞者リストを選択して印刷を行うようにする。このような携帯性に優れたメモリスティックを用いることにより、利便性を高めることができる。   In each of the above embodiments, print data is sent from the personal computer 2. However, for example, a memory stick with a USB (Universal Serial Bus) interface can be used. A list of winners is stored in advance on a memory stick and connected to a serial connector of a printer at the time of printing. The award winner list is selected from the operation panel of the printer for printing. Use of such a portable memory stick can improve convenience.

第1の実施の形態の印刷システムを示すブロック図である。1 is a block diagram illustrating a printing system according to a first embodiment. 第1の実施の形態の印刷システムを示す構成図である。1 is a configuration diagram illustrating a printing system according to a first embodiment. FIG. スキャナ装置の操作部を示す説明図である。It is explanatory drawing which shows the operation part of a scanner apparatus. 過去に作成された賞状を示す説明図である。It is explanatory drawing which shows the certificate created in the past. 作成したテンプレートを示す説明図である。It is explanatory drawing which shows the produced template. 台紙を示す説明図である。It is explanatory drawing which shows a mount. 印刷を行った賞状を示す説明図である。It is explanatory drawing which shows the certificate which performed printing. 受賞者と受賞の日付のリストを示す説明図である。It is explanatory drawing which shows the list | wrist of a winner and an award date. 印刷データを示す説明図である。It is explanatory drawing which shows print data. 第1の実施の形態におけるプリンタの動作を示すフローチャートである。3 is a flowchart illustrating an operation of the printer according to the first embodiment. 原稿読取動作を示すフローチャートである。6 is a flowchart illustrating a document reading operation. 矩形抽出動作を示すフローチャートである。It is a flowchart which shows a rectangle extraction operation | movement. 矩形抽出動作を示す動作説明図である。It is operation | movement explanatory drawing which shows a rectangle extraction operation | movement. 特徴抽出動作を示すフローチャートである。It is a flowchart which shows a feature extraction operation | movement. 特徴抽出動作を示す動作説明図である。It is operation | movement explanatory drawing which shows the feature extraction operation | movement. 連続するドットの累積を示すグラフである。It is a graph which shows accumulation of continuous dots. 文字種テーブルを示す説明図である。It is explanatory drawing which shows a character type table. 矩形データを示す説明図である。It is explanatory drawing which shows rectangular data. 矩形領域の座標の補正動作を示す説明図である。It is explanatory drawing which shows the correction | amendment operation | movement of the coordinate of a rectangular area. 矩形領域における文字の配置位置を説明するための説明図である。It is explanatory drawing for demonstrating the arrangement position of the character in a rectangular area. 第2の実施の形態の印刷システムを示すブロック図である。It is a block diagram which shows the printing system of 2nd Embodiment. 第2の実施の形態のテンプレートを示す説明図である。It is explanatory drawing which shows the template of 2nd Embodiment. 第2の実施の形態における台紙を示す説明図である。It is explanatory drawing which shows the mount in 2nd Embodiment. 第2の実施の形態における印刷が完了した賞状を示す説明図である。It is explanatory drawing which shows the certificate which the printing in 2nd Embodiment completed. 第2の実施の形態におけるプリンタの動作を示すフローチャートである。10 is a flowchart illustrating an operation of a printer according to a second embodiment. 第2の実施の形態における原稿読取動作を示すフローチャートである。10 is a flowchart illustrating a document reading operation in the second embodiment. 記号抽出動作を示すフローチャートである。It is a flowchart which shows symbol extraction operation | movement. 記号抽出の過程を示す説明図である。It is explanatory drawing which shows the process of symbol extraction. 特徴データ記憶部に格納されている特徴データを示す説明図である。It is explanatory drawing which shows the feature data stored in the feature data storage part. 第2の実施の形態の矩形データを示す説明図である。It is explanatory drawing which shows the rectangular data of 2nd Embodiment. フリーハンドで枠線を書き込んだテンプレートを示す説明図である。It is explanatory drawing which shows the template which wrote the frame line freehand. 記号のみを書き込んだテンプレートを示す説明図である。It is explanatory drawing which shows the template which only wrote the symbol. 本発明の変形例を示すブロック図である。It is a block diagram which shows the modification of this invention. 変形例におけるプリンタの操作部を示す説明図である。It is explanatory drawing which shows the operation part of the printer in a modification.

符号の説明Explanation of symbols

1、80、120 印刷システム
2 パーソナルコンピュータ
3 プリンタ
4、81 スキャナ装置
10 外部入力部
11 制御部
13 画像形成部
14 読取部
16 領域設定部
17 特徴抽出部
18 記憶部
82 画像認識部
83 特徴データ記憶部
1, 80, 120 Printing system 2 Personal computer 3 Printer 4, 81 Scanner device 10 External input unit 11 Control unit 13 Image forming unit 14 Reading unit 16 Area setting unit 17 Feature extraction unit 18 Storage unit 82 Image recognition unit 83 Feature data storage Part

Claims (9)

印刷すべき領域を示す所定の印しを付した原稿を読取る読取部を有する読取装置と、
前記読取装置に接続され、台紙に印刷データを印刷する印刷装置とを有する印刷システムであって、
前記読取部により前記原稿から読取られた前記所定の印しの読取データに基づいて前記印刷すべき領域を抽出する領域抽出手段と、
前記原稿における前記領域抽出手段により抽出された領域内の画像から、文字に対応する画像である文字画像を抽出し、当該文字画像に基づいて前記文字の特徴を示す特徴情報を抽出する特徴抽出手段と
記台紙上の、前記領域抽出手段により抽出された前記印刷すべき領域に、前記特徴抽出手段により抽出された特徴情報で示される文字の特徴で、印刷データに含まれる文字を印刷するように前記印刷装置を制御する制御手段と、
を備えることを特徴とする印刷システム。
A reading device having a reading unit for reading a document with a predetermined mark indicating an area to be printed;
A printing system connected to the reading device and having a printing device for printing print data on a mount,
An area extracting means for extracting the area to be printed based on the read data of the predetermined mark read from the original by the reading unit;
Feature extraction means for extracting a character image, which is an image corresponding to a character, from an image in the region extracted by the region extraction means in the document, and extracting feature information indicating the character feature based on the character image and,
On pre Symbol mount, the area to be the print extracted by the area extraction means, a feature of the character indicated by the feature information extracted by the feature extraction unit, to print the characters in the print data Control means for controlling the printing apparatus;
Printing system comprising: a.
前記所定の印しは前記印刷すべき領域を囲む矩形の枠線である請求項1記載の印刷システム。   The printing system according to claim 1, wherein the predetermined mark is a rectangular frame surrounding the area to be printed. 前記領域抽出手段により抽出された前記印刷すべき領域の傾きを修正する傾き修正手段を有し、前記傾き修正手段により傾きが修正された領域が前記台紙上に設定される請求項1または2記載の印刷システム。   3. The apparatus according to claim 1, further comprising an inclination correction unit that corrects an inclination of the area to be printed extracted by the area extraction unit, wherein the area whose inclination is corrected by the inclination correction unit is set on the mount. Printing system. 前記特徴抽出手段により抽出された特徴情報で示される文字の特徴とは、当該文字のサイズおよび太さである請求項1、2または3記載の印刷システム。 The printing system according to claim 1, 2, or 3 , wherein the character feature indicated by the feature information extracted by the feature extraction means is a size and a thickness of the character . 前記特徴抽出手段により抽出された特徴情報に基づいて前記印刷データのフォントを選択する選択手段を有する請求項4記載の印刷システム。 The printing system according to claim 4, further comprising a selection unit that selects a font of the print data based on the feature information extracted by the feature extraction unit. 印刷すべき領域を示す所定の印しを付した原稿を読取る読取部を有する読取装置と、
前記読取装置に接続され、台紙に印刷データを印刷する印刷装置とを有する印刷システムであって、
前記読取部により前記原稿から読取られた前記所定の印しの読取データに基づいて前記印刷すべき領域を抽出する領域抽出手段と、
前記原稿における前記領域抽出手段により抽出された領域内の画像から、文字に対応する画像である文字画像を抽出し、当該文字画像に基づいて前記文字の特徴を示す特徴情報を抽出する特徴抽出手段と、
前記原稿における前記領域抽出手段により抽出された領域内において所定の記号を抽出する記号抽出手段と、
前記台紙上の、前記領域抽出手段により抽出された前記印刷すべき領域であって前記記号抽出手段により前記所定の記号が抽出された領域に、前記特徴抽出手段により抽出された特徴情報で示される文字の特徴で、印刷データに含まれる文字を印刷するように前記印刷装置を制御し、
前記台紙上の、前記領域抽出手段により抽出された前記印刷すべき領域であって前記記号抽出手段により前記所定の記号が抽出されなかった領域に、前記原稿における当該領域内の画像を印刷するように前記印刷装置を制御する制御手段と、
を備えることを特徴とする印刷システム。
A reading device having a reading unit for reading a document with a predetermined mark indicating an area to be printed;
A printing system connected to the reading device and having a printing device for printing print data on a mount,
An area extracting means for extracting the area to be printed based on the read data of the predetermined mark read from the original by the reading unit;
Feature extraction means for extracting a character image, which is an image corresponding to a character, from an image in the region extracted by the region extraction means in the document, and extracting feature information indicating the character feature based on the character image When,
Symbol extraction means for extracting a predetermined symbol in the area extracted by the area extraction means in the manuscript;
On the mount, the area to be printed, which is extracted by the area extracting unit and where the predetermined symbol is extracted by the symbol extracting unit, is indicated by the feature information extracted by the feature extracting unit. Controlling the printing device to print the characters included in the print data with character features;
An image in the area of the original is printed on the area to be printed extracted by the area extracting unit on the mount and the predetermined symbol is not extracted by the symbol extracting unit. Control means for controlling the printing apparatus;
A printing system comprising:
前記所定の印しは自由曲線であり、前記領域抽出手段は前記自由曲線を内包する領域を抽出し、
前記特徴抽出手段は前記自由曲線を内包する領域内の画像から、文字に対応する画像である文字画像を抽出し、
前記領域抽出手段は、前記特徴抽出手段が抽出した文字画像に近接する位置に前記領域を狭める請求項1記載の印刷システム。
The predetermined mark is a free curve, and the region extracting means extracts a region including the free curve,
The feature extraction unit extracts a character image that is an image corresponding to a character from an image in a region including the free curve,
The printing system according to claim 1, wherein the area extracting unit narrows the area to a position close to the character image extracted by the feature extracting unit.
前記領域抽出手段は、前記所定の印しの抽出位置を起点にして文字画像を検索し、検索した文字画像を含む領域を印刷すべき領域として抽出する請求項1記載の印刷システム。 Area extraction means, said a starting point the extraction position of the predetermined mark to search a character image, the printing system of claim 1 wherein the extract as an area to be printed area that includes a character image retrieved. 印刷すべき領域を示す所定の印しを付した原稿を読取る読取部と、台紙に印刷データを印刷する印刷部とを有する複合端末装置であって、
前記読取部により前記原稿から読取られた前記所定の印しの読取データに基づいて前記印刷すべき領域を抽出する領域抽出手段と、
前記原稿における前記領域抽出手段により抽出された領域内の画像から、文字に対応する画像である文字画像を抽出し、当該文字画像に基づいて前記文字の特徴を示す特徴情報を抽出する特徴抽出手段と
記台紙上の、前記領域抽出手段により抽出された前記印刷すべき領域に、前記特徴抽出手段により抽出された特徴情報で示される文字の特徴で、印刷データに含まれる文字を印刷するように前記印刷装置を制御する制御手段と、
を備えることを特徴とする複合端末装置。
A composite terminal device having a reading unit for reading a document with a predetermined mark indicating an area to be printed, and a printing unit for printing print data on a mount,
An area extracting means for extracting the area to be printed based on the read data of the predetermined mark read from the original by the reading unit;
Feature extraction means for extracting a character image, which is an image corresponding to a character, from an image in the region extracted by the region extraction means in the document, and extracting feature information indicating the character feature based on the character image and,
On pre Symbol mount, the area to be the print extracted by the area extraction means, a feature of the character indicated by the feature information extracted by the feature extraction unit, to print the characters in the print data Control means for controlling the printing apparatus;
Compound terminal apparatus comprising: a.
JP2006262516A 2006-09-27 2006-09-27 Printing system and composite terminal device Expired - Fee Related JP4781214B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006262516A JP4781214B2 (en) 2006-09-27 2006-09-27 Printing system and composite terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006262516A JP4781214B2 (en) 2006-09-27 2006-09-27 Printing system and composite terminal device

Publications (2)

Publication Number Publication Date
JP2008080621A JP2008080621A (en) 2008-04-10
JP4781214B2 true JP4781214B2 (en) 2011-09-28

Family

ID=39351962

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006262516A Expired - Fee Related JP4781214B2 (en) 2006-09-27 2006-09-27 Printing system and composite terminal device

Country Status (1)

Country Link
JP (1) JP4781214B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7135754B2 (en) * 2018-11-14 2022-09-13 コニカミノルタ株式会社 Image forming apparatus, correction image forming method, and image forming system

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS642184A (en) * 1987-06-24 1989-01-06 Fujitsu Ltd Hand written information input device
JPH0612540B2 (en) * 1990-06-28 1994-02-16 富士ゼロックス株式会社 Document creation support device
JPH0785215A (en) * 1993-09-14 1995-03-31 Nippon Digital Kenkyusho:Kk Character recognizing device
JPH1185905A (en) * 1997-07-15 1999-03-30 Ricoh Co Ltd Typeface identification device, typeface identification method, and information storage medium
JP3376931B2 (en) * 1997-12-25 2003-02-17 松下電器産業株式会社 Character line extraction method and apparatus
JPH11245563A (en) * 1998-03-02 1999-09-14 Nakabayashi Co Ltd Preparation of document on which image is printed
JP2004072527A (en) * 2002-08-07 2004-03-04 Seiko Epson Corp MFPs, electronic filing systems and scanners
JP2005136729A (en) * 2003-10-30 2005-05-26 Canon Inc Image processing apparatus, image processing method, computer program, and computer-readable recording medium
JP4700940B2 (en) * 2004-08-27 2011-06-15 キヤノン株式会社 Information processing apparatus, control method therefor, and program
JP2006168131A (en) * 2004-12-15 2006-06-29 Seiko Epson Corp Recording device and recording system

Also Published As

Publication number Publication date
JP2008080621A (en) 2008-04-10

Similar Documents

Publication Publication Date Title
JP4854491B2 (en) Image processing apparatus and control method thereof
US6208744B1 (en) Document image processor and method for setting a document format conforming to a document image
JP2007174270A (en) Image processing apparatus, image processing method, storage medium, and program
US5257074A (en) Image forming apparatus
JP4781214B2 (en) Printing system and composite terminal device
US6958755B1 (en) Personalized computer fonts
JP4900371B2 (en) Image processing device
JP4924990B2 (en) Document processing apparatus and document processing program
JP2012039236A (en) Image processing apparatus, image processing method and image processing program
JP2001052110A (en) Document processing method, recording medium recording document processing program, and document processing apparatus
JP2022151533A (en) Reading system, reading program, and reading method
JP7517462B2 (en) Image processing device and image forming device
JP2662404B2 (en) Dictionary creation method for optical character reader
JP6561876B2 (en) Information processing apparatus and program
JP2006196976A (en) Copy system with automatic clearing function by OCR
US20240265716A1 (en) Image processing apparatus and label printing system
JP2005326940A (en) Graphing device, program, and recording medium
JP5935376B2 (en) Copy machine
JP2013041540A (en) Information extraction device
JPH07262317A (en) Document processor
JP2009005218A (en) Character string printing device such as alphanumeric characters
JP4081074B2 (en) Form processing apparatus, form processing method, and form processing program
JP6489041B2 (en) Information processing apparatus and program
JP2003132042A (en) Table of contents creation device
JP2025117023A (en) Information processing device, image processing device, generation method, and program

Legal Events

Date Code Title Description
RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20090304

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090305

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110329

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110513

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20110705

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110705

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

Free format text: PAYMENT UNTIL: 20140715

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4781214

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees