JP2014011699A - Image processor, and computer program - Google Patents
Image processor, and computer program Download PDFInfo
- Publication number
- JP2014011699A JP2014011699A JP2012148088A JP2012148088A JP2014011699A JP 2014011699 A JP2014011699 A JP 2014011699A JP 2012148088 A JP2012148088 A JP 2012148088A JP 2012148088 A JP2012148088 A JP 2012148088A JP 2014011699 A JP2014011699 A JP 2014011699A
- Authority
- JP
- Japan
- Prior art keywords
- image
- unit
- size
- template
- ruled line
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Editing Of Facsimile Originals (AREA)
Abstract
Description
本発明は、複数の単位画像を含むテンプレート画像を表すテンプレート画像データを準備する画像処理する技術に関する。 The present invention relates to an image processing technique for preparing template image data representing a template image including a plurality of unit images.
画像を用紙に印刷する際には、用紙のサイズ等の印刷条件に応じて、適切な印刷が行われるように、様々な工夫がなされている。ここで、原稿用紙の升目状に配置された罫線や、レポート用紙の平行に並んだ罫線など様々な種類の罫線が、用紙に印刷されている。罫線を含む画像(罫線画像)の印刷条件には、用紙のサイズ、罫線の種類など各種の条件が考えられる。 When an image is printed on paper, various ideas are made so that appropriate printing is performed according to printing conditions such as paper size. Here, various types of ruled lines such as ruled lines arranged in a checkered pattern on the manuscript paper and parallel ruled lines on the report paper are printed on the paper. Various conditions such as the size of the paper and the type of ruled line are conceivable as printing conditions for the image including the ruled line (ruled line image).
しかしながら、これらの印刷条件に応じて適切に罫線を印刷することについて十分な工夫がなされているとは言えず、用紙に印刷された場合に十分に使いやすい罫線画像が提供されているとは言えなかった。 However, it cannot be said that sufficient contrivance has been made for printing ruled lines appropriately according to these printing conditions, and it can be said that a ruled line image that is sufficiently easy to use when printed on paper is provided. There wasn't.
本発明の主な利点は、用紙に印刷された場合に十分に使いやすい罫線画像を提供することである。 The main advantage of the present invention is to provide a ruled line image that is sufficiently easy to use when printed on paper.
本発明は、上述の課題の少なくとも一部を解決するためになされたものであり、以下の適用例として実現することが可能である。 SUMMARY An advantage of some aspects of the invention is to solve at least a part of the problems described above, and the invention can be implemented as the following application examples.
[適用例1]印刷のための画像処理装置であって、1枚の用紙内に印刷されるべき単位画像の数を示す割付数を取得する割付数取得部と、前記割付数に対応する複数個の単位画像を含むテンプレート画像を表すテンプレート画像データを準備するテンプレート準備部であって、前記複数個の単位画像のそれぞれは、複数の罫線を含む罫線領域を含み、前記複数の罫線のうち、隣接する2つの罫線の間隔は、前記テンプレート画像が前記用紙に印刷された場合に、前記割付数に拘わらず、略一定である、前記テンプレート準備部と、前記テンプレート画像データを印刷実行部に供給するテンプレート供給部と、を備える画像処理装置。 Application Example 1 An image processing apparatus for printing, an allocation number acquisition unit that acquires an allocation number indicating the number of unit images to be printed on one sheet, and a plurality of allocation units corresponding to the allocation number A template preparation unit for preparing template image data representing a template image including a plurality of unit images, wherein each of the plurality of unit images includes a ruled line region including a plurality of ruled lines, and among the plurality of ruled lines, When the template image is printed on the paper, the interval between two adjacent ruled lines is substantially constant regardless of the number of assignments. The template preparation unit and the template image data are supplied to the print execution unit. An image processing apparatus.
上記構成によれば、用紙に印刷されたテンプレート画像において、罫線間の間隔が、割付数によって変動することを抑制することができる。例えば、割付数が大きい場合に、罫線間の間隔が過度に小さくなることを抑制することができる。この結果、用紙に印刷されたテンプレート画像の使いやすさを向上することができる。 According to the above configuration, in the template image printed on the paper, it is possible to suppress the interval between ruled lines from fluctuating depending on the number of assignments. For example, when the number of assignments is large, it is possible to suppress the interval between ruled lines from becoming excessively small. As a result, the usability of the template image printed on the paper can be improved.
[適用例2] 印刷のための画像処理装置であって、前記用紙のサイズを取得する用紙サイズ取得部と、テンプレート画像を表すテンプレート画像データを準備するテンプレート準備部であって、前記テンプレート画像は、複数の罫線を含む罫線領域を含み、前記複数の罫線のうち、隣接する2つの罫線の間隔は、前記テンプレート画像が前記用紙に印刷された場合に、前記用紙のサイズに拘わらず、略一定である、前記テンプレート準備部と、前記テンプレート画像データを印刷実行部に供給するテンプレート供給部と、を備える画像処理装置。 Application Example 2 An image processing apparatus for printing, a paper size acquisition unit that acquires the size of the paper, and a template preparation unit that prepares template image data representing a template image, wherein the template image is A ruled line region including a plurality of ruled lines, and an interval between two ruled lines adjacent to each other among the plurality of ruled lines is substantially constant regardless of the size of the sheet when the template image is printed on the sheet. An image processing apparatus comprising: the template preparation unit; and a template supply unit that supplies the template image data to a print execution unit.
上記構成によれば、用紙に印刷されたテンプレート画像において、複数の罫線の間隔が、用紙のサイズによって変動することを抑制することができる。例えば、用紙のサイズが小さい場合に、罫線間の間隔が過度に小さくなることを抑制することができる。この結果、用紙に印刷されたテンプレート画像の使いやすさを向上することができる。 According to the above configuration, in the template image printed on the paper, it is possible to suppress the interval between the plurality of ruled lines from fluctuating depending on the size of the paper. For example, when the paper size is small, it is possible to suppress the interval between ruled lines from becoming excessively small. As a result, the usability of the template image printed on the paper can be improved.
本発明は、種々の形態で実現することが可能であり、例えば、上記装置の機能を実現する方法、上記装置の機能を実現するコンピュータプログラム、当該コンピュータプログラムを記録した記録媒体、等の形態で実現することができる。 The present invention can be realized in various forms, for example, in the form of a method for realizing the function of the device, a computer program for realizing the function of the device, a recording medium on which the computer program is recorded, and the like. Can be realized.
A.実施例:
A−1.原稿保存システム1000の構成:
図1は、原稿保存システム1000の構成を示すブロック図である。原稿保存システム1000は、画像処理サーバ200と、複合機300と、パーソナルコンピュータ400と、格納サーバ500とを備えている。複合機300とパーソナルコンピュータ400は、同じユーザによって利用され、LAN600を介して、通信可能に接続されている。複合機300とパーソナルコンピュータ400とは、LAN600を介して、インターネット700に接続されている。画像処理サーバ200と、格納サーバ500とは、それぞれ、インターネット700に接続されている。
A. Example:
A-1. Configuration of the document storage system 1000:
FIG. 1 is a block diagram showing the configuration of the
複合機300は、複合機300全体を制御するCPU310と、RAMなどの揮発性記憶装置330と、フラッシュメモリなどの不揮発性記憶装置340と、外部機器(ネットワークを介して接続される機器、USBメモリなどの外部記憶装置など)と接続するための通信部320と、各種のボタンを含む操作部350と、液晶パネルなどの表示部360と、インクジェット式またはレーザ式のプリンタエンジンである印刷実行部370と、画像読取部380と、を備えている。
The
画像読取部380は、CCDやCMOSなどの複数の光電変換素子が一列に並んで配置された構造を備える一次元イメージセンサを用いて、原稿を光学的に読み取ることによって、原稿画像データ(スキャンデータ)を生成するスキャナである。画像読取部380は、例えば、自動搬送機構を備え、複数枚の原稿を順次に読み取って、複数個の原稿画像データを自動的に生成することができる。
The
不揮発性記憶装置340には、コンピュータプログラム341が格納されている。コンピュータプログラム341は、CD−ROMなどに記録された形態で提供され得る。CPU310は、プログラム341を実行することにより、複合機300の全体を制御する装置制御部312として機能する。装置制御部312は、テンプレート画像取得部314と、原稿画像送信部316と、を備える。これらの各機能部が実行する処理については後述する。
A computer program 341 is stored in the
画像処理サーバ200は、CPU210と、RAMなどの揮発性記憶装置230と、ハードディスクなどの不揮発性記憶装置240と、インターネット700に接続するためのインタフェースを含む通信部220と、を備えている。不揮発性記憶装置240には、コンピュータプログラム241と、基本罫線画像データ群245(後述)が格納されている。コンピュータプログラム241は、CD−ROMなどに記録された形態で提供され得る。
The
CPU210は、コンピュータプログラム241を実行することにより、テンプレート画像生成部50と原稿画像処理部100として機能する。テンプレート画像生成部50は、罫線種取得部51と、割付数取得部52と、用紙サイズ取得部54と、テンプレート準備部56と、テンプレート供給部58と、を備えている。原稿画像処理部100は、原稿画像取得部110と、画像情報取得部120と、ページ番号取得部130と、生成順特定部140と、不要条件判断部150と、領域画像生成部160と、ファイル生成部170と、を備えている。これらの各機能部が実行する処理については後述する。
The CPU 210 functions as the template
格納サーバ500は、一般的な計算機であり、格納サーバ500のCPU510は、サーバプログラム(図示せず)を実行することによって、ユーザが所有するデータを格納・保存するサービスを提供する。具体的には、後述するように、ユーザは、複合機300と画像処理サーバ200とを介して、原稿を表す原稿画像データを格納サーバ500に格納することができる。
The
パーソナルコンピュータ400のCPU410は、対応するプログラムを実行することによって、複合機300を制御するためのドライバ(図示省略)や、画像処理サーバ200にアクセスするクライアントとして機能する。ユーザは、パーソナルコンピュータ400を用いて、格納サーバ500に格納された原稿画像データにアクセスすることが可能である。
The
A−2.原稿保存システム1000の動作:
画像処理サーバ200が実行する処理を中心に、原稿保存システム1000の動作について説明する。
A-2. Operation of the document storage system 1000:
The operation of the
A−2−1:テンプレート画像データ生成処理:
テンプレート画像データ生成処理は、メモシートMSを作成するためのテンプレート画像データを生成する処理である。テンプレート画像データは、メモシートMSに印刷されるテンプレート画像TIを表す。
A-2-1: Template image data generation processing:
The template image data generation process is a process for generating template image data for creating the memo sheet MS. The template image data represents a template image TI printed on the memo sheet MS.
ここで、テンプレート画像TIの概要を説明する。図2は、テンプレート画像データによって表されるテンプレート画像TIの一例を示す図である。図3は、メモシートMSの使用態様を説明する図である。図2(A)は、単位画像10の一例を示している。図2(B)は、割付数ANが2である第1種のテンプレート画像TIAを示し、図2(C)は、割付数ANが4である第2種のテンプレート画像TIBを示している。図3(A)は、第1種のテンプレート画像TIAが印刷された第1種のメモシートMSAの使用態様を示し、図3(B)は、第2種のテンプレート画像TIBが印刷された第2種のメモシートMSBの使用態様を示している。このように、特定種類のテンプレート画像TIやメモシートMSを区別する場合には、符号の末尾にさらにアルファベット(例えば、A、B)を付加する。
Here, an outline of the template image TI will be described. FIG. 2 is a diagram illustrating an example of a template image TI represented by template image data. FIG. 3 is a diagram for explaining how the memo sheet MS is used. FIG. 2A shows an example of the
図2(B)(C)に示すように、テンプレート画像TIは、割付数ANに対応する個数(AN個)の単位画像10を含む。換言すれば、割付数ANは、テンプレート画像TIを用紙に印刷してメモシートMSを作成した場合に、1枚の用紙(の片面)に印刷される単位画像10の数である。第1種のテンプレート画像TIAは、2個の単位画像10A、10Bを含み、第2種のテンプレート画像TIBは、4個の単位画像10C、10D、10E、10Fを含む。このように、特定の単位画像10を区別する場合には、符号の末尾にさらにアルファベット(例えば、A、B)を付加する。後述するメモシートMSの領域SAについても同様である。
As shown in FIGS. 2B and 2C, the template image TI includes the number (AN) of
なお、テンプレート画像TIが印刷されたメモシートMSは、図3に示すように、折り畳まれた状態で使用される。具体的には、第1種のメモシートMSA(図3(A))は、矩形の用紙の2つの長辺をそれぞれ均等に切断する2つの中点CP1、CP2を結ぶ線を第1の折り線として1回折り畳まれた状態で使用される。第2種のメモシートMSB(図3(B))は、1回折り畳まれた状態の用紙の2つの長辺(折り畳まれる前は短辺であった辺)のそれぞれの中点CP3、CP4を結ぶ線を第2の折り線として、さらに、1回折り畳まれた状態で使用される。メモシートMSが上述したように折り畳まれたときの折り線によって、メモシートMSの一方の面は、複数の領域SAに区分される。具体的には、第1種のメモシートMSAの一方の面は、2個の領域SAA、SABに区分され(図3(A))、第2種のメモシートMSBの一方の面は、4個の領域SAC、SAD、SAE、SAFに区分される(図3(B))。 Note that the memo sheet MS on which the template image TI is printed is used in a folded state as shown in FIG. Specifically, in the first type memo sheet MSA (FIG. 3A), a line connecting two middle points CP1 and CP2 that equally cut two long sides of a rectangular sheet is first folded. Used as a line folded once. The second type memo sheet MSB (FIG. 3 (B)) shows the midpoints CP3 and CP4 of the two long sides (sides that were short before folding) of the sheet folded once. The connecting line is used as a second fold line, and is used in a state of being folded once more. One surface of the memo sheet MS is divided into a plurality of areas SA by the fold line when the memo sheet MS is folded as described above. Specifically, one side of the first type memo sheet MSA is divided into two areas SAA and SAB (FIG. 3A), and one side of the second type memo sheet MSB is 4 The area is divided into SAC, SAD, SAE, and SAF (FIG. 3B).
メモシートMSの1個の領域SAは、1ページ分のメモ領域として用いられることが想定されている。例えば、第1種のメモシートMSAでは、領域SAAが1ページ目、領域SABが2ページ目のメモ領域として用いられる。第2種のメモシートMSBでは、4個の領域SAC、SAD、SAE、SAFが、それぞれ、1〜4ページ目のメモ領域として用いられる。 One area SA of the memo sheet MS is assumed to be used as a memo area for one page. For example, in the first type memo sheet MSA, the area SAA is used as the first page and the area SAB is used as the second page memo area. In the second type memo sheet MSB, the four areas SAC, SAD, SAE, and SAF are used as memo areas for the first to fourth pages, respectively.
単位画像10は、メモシートMSの各領域SAに1個ずつ印刷される。このために、1個の単位画像10は、1ページ分のメモ領域として用いられた場合に、便利なように、構成されている。具体的には、1個の単位画像10は、図2(A)に示すように、罫線画像特定情報LT(後述)によって指定された種類の罫線RLを含む罫線画像が配置される罫線領域MAと、罫線領域MAの周囲を囲む周辺領域IAとを含む。周辺領域IAは、罫線領域MAの上方に隣接するヘッダ領域HAと、罫線領域MAの下方に隣接するフッタ領域FAと、を含む。罫線領域MAを本文領域とも呼ぶ。罫線領域MAは、罫線RLを含むものの、文字、図形、描画などの有意なオブジェクトを有さない、実質的に白紙の領域である。
One
ヘッダ領域HAは、上マーカ11と、ページ情報領域12と、タイトル領域13と、不要チェックボックス14と、を含んでいる。上マーカ11は、例えば、ヘッダ領域HAの左隅(単位画像10の左上の隅)に配置され、左右方向に平行な部分と上下方向に平行な部分とを含む形状(L字を時計回りに90度回転させた形状)を有している。ページ情報領域12には、テンプレート画像TI内の単位画像10のページ番号が記載されている。タイトル領域13は、ユーザが単位画像10ごとにタイトルを記入するための領域である。不要チェックボックス14は、ユーザが単位画像10を保存する必要がない場合に、チェックを記入するための領域である。
The header area HA includes an
フッタ領域FAは、複数のキーワード15と、複数のキーワード15にそれぞれ対応するマーク領域16と、下マーカ17と、を含んでいる。キーワード15は、ユーザが、単位画像10に関連付けることが可能なキーワードである。キーワード15の具体的な内容(メモ、議事録、セミナ、アイデアなど)は、例えば、予め定められていても良いし、ユーザによって指定された設定情報に含められ得るキーワード情報によって特定されても良い。マーク領域16は、複数のキーワード15のうちの全部または一部を特定するために、ユーザによって塗りつぶされる領域である。下マーカ17は、例えば、上マーカ11を時計回りに180度回転させた形状を有している。以上から解るように、このテンプレート画像TIが印刷されたメモシートMSには、罫線領域MAが実質的に白紙にも拘わらず、換言すれば、罫線領域MAの内容が定まっていないにも拘わらず、関連付けるべきキーワード15の候補が印刷される、ことになる。
The footer area FA includes a plurality of
単位画像10は、図3を参照して説明したように折り畳まれた状態で、テンプレート画像TIが印刷されたメモシートMSを使用した場合に便利なように、テンプレート画像TI内に配置されている。
The
具体的には、図2(B)に示すように、第1種のテンプレート画像TIAの2個の単位画像10A、10Bは、図3(A)に示す2個の領域SAA、SABに対応する領域にそれぞれ配置される。そして、折り畳まれた状態で使用されるときに想定される上方向(図3(A)の矢印)と、2個の単位画像10A、10Bの上方向(図2(B)の矢印)と、が一致するように、2個の単位画像10A、10Bは、第1種のテンプレート画像TIA内に同じ向きに配置されている。
Specifically, as shown in FIG. 2B, the two
また、図2(C)に示すように、第2種のテンプレート画像TIBの4個の単位画像10C〜10Fは、図3(B)に示す4個の領域SAC〜SAFに対応する領域にそれぞれ配置される。そして、折り畳まれた状態で使用されるときに想定される上方向(図3(B)の矢印)と、4個の単位画像10C〜10Fの上方向(図2(C)の矢印)と、が一致するように、2個の単位画像10C、10Fと、2個の単位画像10D、10Eとは、第2種のテンプレート画像TIB内に互いに逆向きに配置されている。すなわち、2個の単位画像10C、10Fと、2個の単位画像10D、10Eは、上述した第1の折り線に対応する第2種のテンプレート画像TIB内の線を挟んで互いに逆向きである。
Further, as shown in FIG. 2C, the four unit images 10C to 10F of the second type template image TIB are respectively in areas corresponding to the four areas SAC to SAF shown in FIG. Be placed. And the upward direction (arrow of FIG. 3 (B)) assumed when used in the folded state, the upward direction of four unit images 10C to 10F (arrow of FIG. 2 (C)), The two
図2(B)(C)において、各単位画像10内に示された数字(「P−」が頭に付けられている)は、テンプレート画像TI内の各単位画像10に割り当てられたページ番号を示している。この数字から解るように、単位画像10のページ番号は、上述した折り畳まれた状態において想定される使用順番に従って割り当てられている。このページ番号は、上述したように、ページ情報領域12(図2(A))に示されている。
2B and 2C, the numbers shown in each unit image 10 (with “P-” prefixed) are the page numbers assigned to the
図4は、テンプレート画像データ生成処理のフローチャートである。テンプレート画像データ生成処理は、テンプレート画像データの生成を要求する生成要求を、画像処理サーバ200が受信した場合に、画像処理サーバ200のテンプレート画像生成部50によって実行される。生成要求は、複合機300のユーザによる指示に従って、複合機300のテンプレート画像取得部314によって、画像処理サーバ200に対して送信される。ユーザの指示は、例えば、複合機300の印刷実行部370にメモシートMSのテンプレート画像TIを印刷させる印刷指示である。
FIG. 4 is a flowchart of the template image data generation process. The template image data generation process is executed by the template
ステップS110にて、複合機300から生成要求を受信すると、テンプレート画像生成部50は、受信された生成要求に含まれる設定情報を取得する(ステップS120)。図4に示すように、設定情報は、ユーザによって指定されたレイアウト情報を含んでいる。レイアウト情報は、割付数ANと、用紙サイズPSと、罫線画像の種類を特定するための罫線画像特定情報LTとを含んでいる。より具体的には、罫線種取得部51は、レイアウト情報に含まれる罫線画像特定情報LTを取得して、罫線画像の種類を特定する。の割付数取得部52は、レイアウト情報に含まれる割付数ANを取得する。用紙サイズ取得部54は、レイアウト情報の用紙サイズPSを取得する。ここで、用紙サイズPSは、テンプレート画像TIが印刷されるべき用紙のサイズであり、ハガキ、A4、A3、B5、B4、リーガルなどの一般的に印刷に用いられる用紙サイズのいずれかである。これらのレイアウト情報は、ユーザが複合機300の操作部350を介して複合機300に入力した情報である。設定情報は、レイアウト情報に加えて、他の情報、例えば、後述するキーワード情報などの他の情報を含んでいても良い。
In step S110, when a generation request is received from the
図5は、罫線画像の種類について説明する図である。図5(A)は、罫線画像の種類の一覧を示す罫線画像テーブルRLTの一例を示す図である。罫線画像テーブルRLTに示す内容は、画像処理サーバ200のコンピュータプログラム241に組み込まれている。本実施例において、罫線画像特定情報LTによって特定される罫線画像は、例えば、後述する横方向に延びる互いに平行な横罫線を有するレポート用紙の画像、マス目状の罫線、すなわち、複数の横罫線と、複数の縦方向に延びる互いに平行な縦罫線とを組み合わせた罫線を有する方眼紙の画像および原稿用紙の画像と、を含んでいる。さらには、罫線画像特定情報LTによって特定される罫線画像は、さらに、用途が特化された罫線画像として、五線譜の画像と、家計簿の画像と、ゴルフスコアカードの画像と、を含んでいる。本明細書の罫線画像は、複数の横罫線、および、複数の縦罫線のうちの少なくとも一方を含む画像である。
FIG. 5 is a diagram illustrating the types of ruled line images. FIG. 5A is a diagram illustrating an example of a ruled line image table RLT showing a list of types of ruled line images. The contents shown in the ruled line image table RLT are incorporated in the
図5(A)に示すように、これらの罫線画像の種類のそれぞれには、属性情報として、タイプAであるかタイプBであるかが関連付けられている。タイプAの罫線画像は、該罫線画像に含まれる複数の罫線のうち、互いに隣り合う2つの罫線間の間隔(罫線間隔と呼ぶ)が、適正な間隔に近いことが好ましく、基本罫線画像(図5(B)後述)の全体が印刷されることの意義が比較的小さい。本実施例において、タイプAの罫線画像は、レポート用紙と、方眼紙と、五線譜の3種類である。特に、方眼紙は、罫線間隔が、所定の値(1mmなど)であることに意味があるので、罫線間隔が正確に印刷されることが望まれる。タイプBの罫線画像は、罫線間隔の変動に対する許容度が比較的高く、罫線間隔が、適正間隔からある程度乖離したとしても、基本罫線画像の全体が印刷されることに意義がある罫線画像である。本実施例において、タイプBの罫線画像は、原稿用紙と、家計簿と、ゴルフスコアカードの3種類である。例えば、原稿用紙は、1ページあたり縦20×横20升の400字詰めの原稿用紙のように、1ページ辺りの升の数に意味がある。また、ゴルフスコアカードは、1回のラウンド分の記入領域が1ページに印刷されることに意義がある。 As shown in FIG. 5A, each of these types of ruled line images is associated with attribute information as to whether it is type A or type B. In the type A ruled line image, it is preferable that an interval between two ruled lines adjacent to each other (called a ruled line interval) among the plurality of ruled lines included in the ruled line image is close to an appropriate interval. 5 (B) described later) has a relatively small significance in printing. In the present embodiment, the type A ruled line images include three types: report paper, graph paper, and staff notation. In particular, graph paper has a meaning that the ruled line interval is a predetermined value (such as 1 mm), and therefore it is desired that the ruled line interval is printed accurately. The type B ruled line image is a ruled line image that has a relatively high tolerance for fluctuations in the ruled line interval and is meaningful in that the entire basic ruled line image is printed even if the ruled line interval deviates from the appropriate interval to some extent. . In the present embodiment, there are three types B of ruled line images: manuscript paper, a household account book, and a golf score card. For example, a manuscript sheet is meaningful in the number of wrinkles per page, such as a manuscript sheet of 400 characters with 20 characters long × 20 characters wide per page. In addition, the golf score card is meaningful in that an entry area for one round is printed on one page.
ここで、不揮発性記憶装置240に格納された基本罫線画像データ群245(図1)は、レポート用紙の基本罫線画像、原稿用紙の基本罫線画像など、複数種類の基本罫線画像BGを表す複数種類の基本罫線画像データを含んでいる。図5(B)には、これらの基本罫線画像データのうち、レポート用紙を表す基本罫線画像GB1が示され、図5(C)には、原稿用紙を表す基本罫線画像BG2が示されている。これらの基本罫線画像BGのサイズ(縦幅と横幅)は、基本罫線画像データを用いて生成される1個の罫線画像が配置される1個の罫線領域MAの最大サイズと同程度である。罫線領域MAの最大サイズは、想定される最大の用紙サイズPSの用紙に、想定される最小の割付数ANテンプレート画像TIを印刷した場合に、該テンプレート画像TIに配置される1個の罫線領域MAのサイズである。ここで、基本罫線画像BG1、BG2に配置されている複数の罫線RLの罫線間隔NT1、NT2は、適正間隔に設定されている。
Here, the basic ruled line image data group 245 (FIG. 1) stored in the
図4のステップS125では、テンプレート準備部56は、用紙サイズPSに応じてテンプレート画像TIのサイズを決定し、決定されたサイズに対応する矩形画像SQを表す矩形画像データを準備する。矩形画像SQは、生成すべきテンプレート画像TIの外形(用紙サイズPSに対応している)に等しいサイズの白紙を表す画像である。すなわち、テンプレート準備部56は、テンプレート画像TIを作成するためのメモリ領域を揮発性記憶装置230に確保する。
In step S125 of FIG. 4, the
ステップS130では、テンプレート準備部56は、割付数ANに応じて、矩形画像SQに配置される単位画像10のサイズ(縦幅と横幅)と位置とを決定し、決定されたサイズと位置に対応する部分領域PAを矩形画像SQ内に設定する。後述する処理にて、1個の部分領域PAに対して、1個の単位画像10が配置される。
In step S130, the
図6は、矩形画像SQ内に設定される部分領域PAを示す図である。図6(A)〜(C)には、それぞれ、割付数ANが、2、4、8である場合に、矩形画像SQに設定される部分領域PA2、PA4、PA8が示されている。1回のテンプレート画像データ生成処理で生成されるテンプレート画像TIは、1個であるが、割付数AN等の印刷条件が異なる場合のテンプレート画像データ生成処理の違いを説明するために、図6以降の図では、印刷条件の異なる複数の場合について、それぞれ、図示する場合がある。 FIG. 6 is a diagram showing a partial area PA set in the rectangular image SQ. 6A to 6C show partial areas PA2, PA4, and PA8 that are set in the rectangular image SQ when the allocation number AN is 2, 4, and 8, respectively. In order to explain the difference in the template image data generation process when there is one template image TI generated in one template image data generation process but the printing conditions such as the allocation number AN are different, FIG. In the figure, a plurality of cases with different printing conditions may be illustrated respectively.
図6から解るように、1個の矩形画像SQ内に設定される部分領域PAのサイズ、すなわち、テンプレート画像TIに含まれる単位画像10のサイズは、それぞれ等しい。また、用紙サイズPSが同じである場合、割付数ANが大きいほど、単位画像10のサイズは小さく、割付数ANが小さいほど、単位画像10のサイズは大きい。具体的には、用紙サイズが同じである場合に、割付数ANが、2倍になると、単位画像10の面積は、約1/2になる。また、割付数ANが同じである場合に、すなわち、1個のテンプレート画像TIに含まれる単位画像10の数が同じである場合に、用紙サイズが大きいほど、単位画像10のサイズは大きく、用紙サイズが小さいほど、単位画像10のサイズは小さい。具体的には、用紙の面積が2倍になれば、単位画像10の面積も2倍になる。また、図3の折り畳まれた状態の説明から解るように、本実施例では、1個のテンプレート画像TIに含まれる単位画像10の数(割付数AN)は、2のZ乗の値を取る(Zは自然数)。すなわち、割付数ANは、2、4、8、16、32、...のいずれかの値を取る。
As can be seen from FIG. 6, the sizes of the partial areas PA set in one rectangular image SQ, that is, the sizes of the
ステップS140では、テンプレート準備部56は、矩形画像SQ内に設定された各部分領域PAのサイズと位置に応じて、罫線領域MAのサイズと位置を決定して、矩形画像SQの各部分領域PA内に1個ずつ罫線領域MAを設定する。図7は、矩形画像SQに設定される複数の罫線領域MAを示す図である。図7(A)〜(C)には、それぞれ、割付数ANが、2、4、8である場合に、本ステップで設定される罫線領域MAの外形を示す線が示されている。罫線領域MAの幅(短手方向の長さ)と高さ(長手方向の長さ)を、それぞれ、KwとKhとし、部分領域PAの幅と高さ、すなわち、単位画像10の幅と高さを、それぞれ、RwとRhとする。テンプレート準備部56は、Kw/Rw=Kh/Rh=0.9になるように、KwおよびKhの値を決定する。罫線領域MAは、幅Kw×高さKhの矩形である。罫線領域MAは、例えば、左右方向のマージンが互いに等しく、かつ、上下方向のマージンが互いに等しくなるように、罫線領域MAの中心が部分領域PAの中心と一致するように配置される。本実施例では、Kw/Rw、Kh/Rhの値を、割付数ANに拘わらずに、一定値0.9に設定されている。従って、部分領域PAの面積(単位画像10の面積)Stに対する罫線領域MAの面積Smの比率Sm/St(罫線領域比率と呼ぶ。)は、割付数ANに拘わらずに、一定である。なお、上述した各寸法Kw、Rw、Kh、Kwは、割付数ANに応じて変化するので、図7では、対応するANの数を符号の末尾に付加している。例えば、図7(A)に示すように、割付数ANである場合の罫線領域MAの幅はと高さは、それぞれ、符号Kw2と、符号Kh2を用いて表す。
In step S140, the
1つの部分領域PA内に設定された罫線領域MAの外側の領域は、周辺領域IAであり、罫線領域MAのサイズと位置が決定されると、周辺領域IAのサイズと位置も決定される。 The area outside the ruled line area MA set in one partial area PA is the peripheral area IA. When the size and position of the ruled line area MA are determined, the size and position of the peripheral area IA are also determined.
図4のステップS150では、テンプレート準備部56は、罫線画像特定情報LTによって指定された罫線画像の種類は、タイプAであるか否かを判断する(図5参照)。罫線領域の種類がタイプAである場合には(ステップS150:YES)、テンプレート準備部56は、罫線画像特定情報LTによって特定された種類の基本罫線画像BGの一部分を、拡大処理や縮小処理を行うことなく、矩形画像SQの各罫線領域MAに配置する(ステップS160)。ステップS160の配置処理を第1の配置処理とも呼ぶ。具体的には、テンプレート準備部56は、基本罫線画像BGを表す基本罫線画像データに対してトリミング処理を実行して、ステップS140にて決定された罫線領域MAのサイズに対応する罫線画像を表す罫線画像データを生成する。テンプレート準備部56は、生成された罫線画像を、複数の罫線領域MAに1個ずつ配置する。換言すれば、第1の処理において、罫線領域MAに配置される罫線画像は、基本罫線画像BGから罫線領域MAのサイズに応じて切り出された部分画像PGである。なお、基本罫線画像BGを表す基本罫線画像データは、矩形画像SQのサイズ、すなわち、用紙サイズPSに拘わらず、同一のデータが使用される。また、基本罫線画像BGを表す基本罫線画像データは、割付数ANに拘わらず、同一のデータが使用される。
In step S150 of FIG. 4, the
図8は、第1の配置処理について説明する図である。図8(D)には、タイプAの基本罫線画像BGの一例として、レポート用紙の基本罫線画像BG1が示されている。図8(D)には、割付数ANが、2、4、8である場合に、基本罫線画像BG1からそれぞれ切り出される部分画像PG2、PG4、PG8がそれぞれ破線で図示されている。図8(A)〜(C)には、それぞれ、割付数ANが、2、4、8である矩形画像SQに対して、割付数ANに対応する個数の部分画像PG2、PG4、PG8が配置された様子が図示されている。第1の配置処理によれば、図8(A)〜(C)に示すように、割付数ANが、2、4、8である矩形画像SQに配置される罫線画像の罫線間隔は、割付数ANに拘わらずに、一定値NT1である。この一定値NT1は、基本罫線画像BG1における適正に設定された罫線間隔NT1に等しい。第1の配置処理の場合には、割付数ANが大きいほど、1個の罫線領域MAのサイズが小さくなるにも拘わらず、罫線間隔は一定値であるので、1個の罫線領域MAに含まれる罫線の数は、少なくなる。 FIG. 8 is a diagram illustrating the first arrangement process. FIG. 8D shows a basic ruled line image BG1 of a report sheet as an example of the type A basic ruled line image BG. In FIG. 8D, partial images PG2, PG4, and PG8 respectively cut out from the basic ruled line image BG1 when the allocation number AN is 2, 4, and 8 are indicated by broken lines. 8A to 8C, the partial images PG2, PG4, and PG8 corresponding to the allocation number AN are arranged for the rectangular images SQ having the allocation numbers AN of 2, 4, and 8, respectively. This is shown in the figure. According to the first arrangement process, as shown in FIGS. 8A to 8C, the ruled line intervals of the ruled line images arranged in the rectangular images SQ having the allocation numbers AN of 2, 4, and 8 are assigned. Regardless of the number AN, it is a constant value NT1. The constant value NT1 is equal to the appropriately set ruled line interval NT1 in the basic ruled line image BG1. In the case of the first arrangement process, the larger the number of assignments AN, the smaller the size of one ruled line area MA, but the ruled line interval is a constant value, so it is included in one ruled line area MA. The number of ruled lines is reduced.
罫線画像の種類がタイプAでない場合、すなわち、罫線画像の種類がタイプBである場合には(ステップS150:NO)、テンプレート準備部56は、罫線画像特定情報LTによって特定された種類の基本罫線画像BGの全体を変倍(縮小または拡大)して、矩形画像SQの各罫線領域MAに配置する(ステップS170)。ステップS170の配置処理を第2の配置処理とも呼ぶ。具体的には、テンプレート準備部56は、基本罫線画像BGを表す基本罫線画像データに対して変倍処理を実行して、ステップS140にて決定された罫線領域MAのサイズに対応する罫線画像を表す罫線画像データを生成する。本実施例では、想定される罫線領域MAの最大サイズ程度の基本罫線画像BGが準備されているので、基本的に基本罫線画像BGのサイズは、罫線領域MAのサイズより大きい。したがって、本実施例の変倍処理は、縮小処理である。基本罫線画像BGのサイズが、罫線領域MAのサイズより小さい場合には、変倍処理として拡大処理が実行される。換言すれば、第2の処理において、罫線領域MAに配置される罫線画像は、基本罫線画像BGのサイズを変倍(縮小または拡大)した変倍画像MGである。
When the type of the ruled line image is not type A, that is, when the type of the ruled line image is type B (step S150: NO), the
図9は、第2の配置処理について説明する図である。図9(D)には、タイプBの基本罫線画像BGの一例として、原稿用紙の基本罫線画像BG2が示されている。図9(A)〜(C)には、それぞれ、割付数ANが、2、4、8である矩形画像SQに対して、割付数ANに対応する個数の変倍画像MG2、MG4、MG8が配置された様子が図示されている。第2の配置処理によれば、図9(A)〜(D)に示すように、割付数ANが、2、4、8である場合に、同じ大きさの矩形画像SQに配置される罫線画像の罫線間隔MT2、MT4、MT8は、対応する割付数ANが大きいほど小さい(MT2>MT4>MT8)。割付数ANが大きいほど、基本罫線画像BG2に対して実行される変倍処理における縮小率が大きくなるからである。 FIG. 9 is a diagram illustrating the second arrangement process. FIG. 9D shows a basic ruled line image BG2 of document paper as an example of the type B basic ruled line image BG. 9A to 9C, for each rectangular image SQ having an allocation number AN of 2, 4, and 8, there are a number of scaled images MG2, MG4, and MG8 corresponding to the allocation number AN. The state of arrangement is shown. According to the second arrangement process, as shown in FIGS. 9A to 9D, when the allocation number AN is 2, 4, or 8, ruled lines arranged in the rectangular image SQ having the same size. The ruled line intervals MT2, MT4, and MT8 of the image are smaller as the corresponding allocation number AN is larger (MT2> MT4> MT8). This is because the reduction ratio in the scaling process executed on the basic ruled line image BG2 increases as the allocation number AN increases.
ステップS180では、テンプレート準備部56は、矩形画像SQ内に設定された各部分領域PA内の周辺領域IAに、必要な情報を配置して、テンプレート画像TIを完成させる。図10は、周辺領域IAに対する情報の配置について説明する図である。図10(A)〜(C)には、それぞれ、割付数ANが、2、4、8である矩形画像SQ内に設定された部分領域PA2、PA4、PA8が図示されている。ここで、部分領域PA2、PA4、PA8のサイズは、図7〜9に示すように、それぞれ異なるが、図10では、図示する大きさを揃えている。
In step S180, the
テンプレート準備部56は、図10に示すように、矩形画像SQ内に設定された各部分領域PA内に、単位画像10に配置すべき各種の情報(情報画像)11〜17(図2(A)参照)を配置する。ここで、各種の情報画像11〜17のサイズである情報画像サイズは、用紙サイズPSが同じである場合には、割付数ANが大きいほど、部分領域PAのサイズ(単位画像10のサイズ)に対する情報画像サイズの比率が大きくなるように、設定されている。ここで、具体的には、情報画像サイズは、情報画像に含まれる特定の文字の面積である。文字の面積は、例えば、当該文字に外接する外接矩形の面積である。また、各種の情報画像11〜17のサイズである情報画像サイズは、割付数ANが同じ値である場合には、用紙サイズPSが小さいほど、部分領域PAのサイズ(単位画像10のサイズ)に対する情報画像サイズの比率(例えば、面積比)が大きくなるように、設定されている。例えば、部分領域PAの面積(単位画像10の面積)Stに対する情報画像の面積Siの比率Si/Stは、割付数ANが大きいほど、大きく、用紙サイズPSが小さいほど、大きくなる。
As shown in FIG. 10, the
具体的には、割付数ANが4である場合の比率Si/Stは、割付数ANが2である場合の比率Si/Stより大きい。また、割付数ANが8である場合の比率(Si/St)は、割付数ANが4である場合の比率(Si/St)より大きい。これは、比率(Si4/Si2)は、比率(St4/St2)よりも大きい、と言い換えることができる。比率(Si4/Si2)は、割付数ANが2である場合の情報画像の面積Si2に対する、割付数ANが4である場合の情報画像の面積Si4の比率である。比率(St4/St2)は、割付数ANが2である場合の部分領域PA2の面積(単位画像10の面積)St2に対する、割付数ANが4である場合の部分領域PA4の面積(単位画像10の面積)St4比率である。割付数が4である場合と、割付数が8である場合と、を比較する場合も同様である。 Specifically, the ratio Si / St when the allocation number AN is 4 is larger than the ratio Si / St when the allocation number AN is 2. The ratio (Si / St) when the allocation number AN is 8 is larger than the ratio (Si / St) when the allocation number AN is 4. In other words, the ratio (Si4 / Si2) is larger than the ratio (St4 / St2). The ratio (Si4 / Si2) is the ratio of the area Si4 of the information image when the allocation number AN is 4 to the area Si2 of the information image when the allocation number AN is 2. The ratio (St4 / St2) is the area of the partial area PA4 when the allocation number AN is 4 (unit image 10) with respect to the area of the partial area PA2 when the allocation number AN is 2 (area of the unit image 10) St2. Area) St4 ratio. The same applies to the case where the allocation number is 4 and the allocation number is 8.
また、用紙サイズPSが特定サイズSZ1(例えば、A3)である場合の比率Si/Stは、用紙サイズPSが特定サイズSZ1より小さな特定サイズSZ2(例えば、A3)である場合の比率Si/Stより小さい。これは、比率(SiB/SiA)は、比率(StB/StA)よりも大きい、と言い換えることができる。比率(SiB/SiA)は、用紙サイズPSが特定サイズSZ1である場合の情報画像の面積SiAに対する、用紙サイズPSが特定サイズSZ2である場合の情報画像の面積SiBの比率である。比率(StB/StA)は、用紙サイズPSが特定サイズSZ1である場合の部分領域PAの面積(単位画像10の面積)StAに対する、用紙サイズPSが特定サイズSZ1である場合の部分領域PAの面積(単位画像10の面積)StBの比率である。 Further, the ratio Si / St when the paper size PS is the specific size SZ1 (for example, A3) is more than the ratio Si / St when the paper size PS is the specific size SZ2 (for example, A3) that is smaller than the specific size SZ1. small. In other words, the ratio (SiB / SiA) is larger than the ratio (StB / StA). The ratio (SiB / SiA) is the ratio of the area SiB of the information image when the paper size PS is the specific size SZ2 to the area SiA of the information image when the paper size PS is the specific size SZ1. The ratio (StB / StA) is the area of the partial area PA when the paper size PS is the specific size SZ1 with respect to the area (area of the unit image 10) StA of the partial area PA when the paper size PS is the specific size SZ1. (Area of unit image 10) StB ratio.
各種の情報画像11〜17を構成する特定の文字は、図10に示すように、具体的には、「メモ」「議事録」「セミナ」「アイデア」などのキーワードを構成する文字や、ページ番号を表す数字を含む。例えば、テンプレート準備部56は、上述した面積に関する比率の関係に従ったサイズの各種の情報画像11〜17を配置するために、例えば、用紙サイズPSや割付数ANに拘わらずに、同じサイズの情報画像11〜17を配置する。テンプレート準備部56は、割付数ANが大きくなるほど、情報画像11〜17のサイズを小さくするものの、上述した面積に関する比率の関係に従ように、情報画像11〜17のサイズを調整しても良い。テンプレート準備部56は、上述した面積に関する比率の関係で、各種の情報画像11〜17を配置するために、必要に応じて、周辺領域IAに配置される情報量、例えば、各種の情報画像11〜17の数、各種の情報画像11〜17に含まれる特定の文字の数を調整しても良い。具体的には、割付数ANが大きいほど、各種の情報画像11〜17に含まれる特定の文字の数を減少させる。例えば、図10の例では、割付数ANが「4」である場合に配置されるキーワード15の数(4個)と比較して、割付数ANが「8」である場合に配置されるキーワード15の数(3個)は、減らされている。
As shown in FIG. 10, the specific characters constituting the
この結果、図10に示すように、部分領域PA2、PA4、PA8を大きさを揃えて図示した場合には、割付数ANが大きい場合の部分画像に配置された情報画像11〜17ほど、大きく図示される。このように、周辺領域IAに配置される情報画像11〜17のサイズ、具体的には、情報画像11〜17に含まれる特定の文字のサイズが、上述した面積に関する比率の関係を実現するように配置されるので、メモシートMSにおいて、これらの文字が過度に小さくなることを抑制することができる。
As a result, as shown in FIG. 10, when the partial areas PA2, PA4, and PA8 are illustrated with the same size, the
ステップS180までの処理が終了すると、矩形画像SQには、必要な画像が全て配置されるので、矩形画像SQを表す矩形画像データは、生成すべきテンプレート画像TIを表すテンプレート画像データになる。 When the processing up to step S180 is completed, all the necessary images are arranged in the rectangular image SQ. Therefore, the rectangular image data representing the rectangular image SQ becomes template image data representing the template image TI to be generated.
ステップS190では、テンプレート供給部58は、この時点で矩形画像データ、すなわち、テンプレート画像TIを表すテンプレート画像データを、複合機300からの生成要求に対する応答として、300に対して送信して、処理を終了する。送信されるテンプレート画像データには、様々な形式のデータが採用され得、ラスタライズ処理やハーフトーン処理が実行された印刷データが採用されても良く、ページ記述言語で記述された画像データなどのベクターデータが採用されても良い。
In step S190, the
複合機300の装置制御部312は、受信したテンプレート画像データを用いて、テンプレート画像を用紙に印刷することによって、メモシートMSを作成する。作成されたメモシートMSは、ユーザによって使用される。
The
ここで、用紙サイズPSが異なる場合における、上述したテンプレート画像データ生成処理によって生成されるテンプレート画像データによって表されるテンプレート画像TIの違いを説明する。図11は、用紙サイズPSが異なる場合に生成されるテンプレート画像TIを例示する図である。図11(A)、(B)は、タイプAであるレポート用紙の罫線画像が配置されたテンプレート画像TI1、TI2がそれぞれ図示されている。図11(C)、(D)は、タイプBである原稿用紙の罫線画像が配置されたテンプレート画像TI3、TI4がそれぞれ図示されている。テンプレート画像TI1〜TI4の割付数ANは互いに同じ値「2」である。用紙サイズPS(例えば、A4サイズ)に応じたテンプレート画像TI1、TI3のサイズは、用紙サイズPS(例えば、A3サイズ)に応じたテンプレート画像TI2、TI4のサイズより小さい。 Here, the difference in the template image TI represented by the template image data generated by the above-described template image data generation process when the paper sizes PS are different will be described. FIG. 11 is a diagram illustrating a template image TI generated when the paper sizes PS are different. FIGS. 11A and 11B show template images TI1 and TI2 on which ruled line images of report paper of type A are arranged, respectively. FIGS. 11C and 11D respectively show template images TI3 and TI4 on which ruled line images of type B original paper are arranged. The allocation numbers AN of the template images TI1 to TI4 are the same value “2”. The sizes of the template images TI1 and TI3 according to the paper size PS (for example, A4 size) are smaller than the sizes of the template images TI2 and TI4 according to the paper size PS (for example, A3 size).
図11(A)、(B)に示すように、タイプAの罫線画像が配置される場合には、用紙サイズPSに拘わらず、同じ罫線間隔NT1で配置された複数の罫線RLを含む罫線画像が、罫線領域MAに配置される。上述したように、タイプAの罫線画像が配置される場合に実行される第1の配置処理(ステップS160)では、テンプレート準備部56は、用紙サイズPSに拘わらずに、同一の基本罫線画像BGから切り出された部分画像PGを、変倍することなく、罫線領域MAに配置するからである。この結果、タイプAの罫線画像が配置される場合には、例えば、用紙サイズPSが小さい場合に、罫線間の間隔が過度に小さくなることを抑制することができる。したがって、用紙に印刷された場合に使いやすいテンプレート画像TIを提供することができる。
As shown in FIGS. 11A and 11B, when a type A ruled line image is arranged, a ruled line image including a plurality of ruled lines RL arranged at the same ruled line interval NT1 regardless of the paper size PS. Are arranged in the ruled line area MA. As described above, in the first arrangement process (step S160) executed when a type A ruled line image is arranged, the
一方、図11(C)、(D)に示すように、タイプBの罫線画像が配置される場合には、上述した第2の配置処理(ステップS170)が実行されることによって、用紙サイズPSに応じて、変倍された基本罫線画像BGの全体が、罫線領域MAに配置される。言い換えれば、割付数ANが同じ値である場合には、用紙サイズPSが小さいほど、罫線領域MAに配置される複数の罫線RLの罫線間隔が小さくされる(MTC<MTD:図11)。この結果、タイプBの罫線画像が配置される場合には、例えば、用紙サイズPSが小さい場合に、全体が同じページ内に印刷されることが要請されるタイプBの罫線画像のうちの一部だけが、印刷されてしまう不都合が発生しない。したがって、用紙に印刷された場合に使いやすいテンプレート画像TIを提供することができる。 On the other hand, as shown in FIGS. 11C and 11D, when a type B ruled line image is arranged, the above-described second arrangement process (step S170) is executed, thereby the paper size PS. Accordingly, the entire scaled basic ruled line image BG is arranged in the ruled line area MA. In other words, when the allocation number AN is the same value, the smaller the paper size PS, the smaller the ruled line intervals of the plurality of ruled lines RL arranged in the ruled line area MA (MTC <MTD: FIG. 11). As a result, when the type B ruled line image is arranged, for example, when the paper size PS is small, a part of the type B ruled line image that is required to be printed on the same page as a whole. However, there is no inconvenience of printing. Therefore, it is possible to provide a template image TI that is easy to use when printed on paper.
さらに、テンプレート準備部56は、上述したステップS180において、上述したような面積に関する比率の関係に従ったサイズの情報画像11〜17を配置する。図11(A)〜(D)は、テンプレート準備部56が、例えば、割付数ANが同じ値(例えば、K2個)である場合には、用紙サイズPSに拘わらずに、ほぼ同じサイズの情報画像11〜17を配置する場合を示している。この結果、用紙サイズPSが小さい場合に、情報画像11〜17に含まれる特定の文字が読み難くなる不具合を抑制することができる。したがって、用紙に印刷された場合に使いやすいテンプレート画像TIを提供することができる。
Furthermore, the
上記テンプレート画像データ生成処理によれば、図8に示すように、タイプAの罫線画像が配置される場合には、用紙に印刷されたテンプレート画像TIにおいて、罫線間の罫線間隔が、割付数ANに拘わらず、一定であるので、罫線間の罫線間隔が、割付数ANによって変動することを抑制することができる。例えば、割付数ANが大きい場合に、罫線間の間隔が過度に小さくなることを抑制することができる。この結果、用紙に印刷されたテンプレート画像TI(すなわち、メモシートMS)の使いやすさを向上することができる According to the template image data generation process, as shown in FIG. 8, when a type A ruled line image is arranged, in the template image TI printed on the paper, the ruled line interval between the ruled lines is the assigned number AN. Regardless of this, since it is constant, it is possible to prevent the ruled line interval between the ruled lines from fluctuating depending on the allocation number AN. For example, when the allocation number AN is large, it is possible to suppress the interval between ruled lines from becoming excessively small. As a result, the usability of the template image TI (that is, the memo sheet MS) printed on the paper can be improved.
また、図9に示すように、タイプBの罫線画像が配置される場合には、上述した第2の配置処理(ステップS170)が実行されることによって、割付数ANに応じて定まる罫線領域MAのサイズ、変倍された基本罫線画像BGの全体が、罫線領域MAに配置される。言い換えれば、用紙サイズPSが同じである場合には、割付数ANが大きいほど、罫線領域MAに配置される複数の罫線RLの罫線間隔が小さくされる。この結果、割付数ANが大きい場合に、タイプBの罫線画像のうちの一部だけが、印刷されてしまう不都合が発生しない。したがって、用紙に印刷された場合に使いやすいテンプレート画像TIを提供することができる。 As shown in FIG. 9, when a type B ruled line image is arranged, the ruled line area MA determined according to the allocation number AN is executed by executing the second arrangement process (step S170) described above. The basic ruled line image BG that has been scaled and scaled is arranged in the ruled line area MA. In other words, when the paper sizes PS are the same, the ruled line intervals of the plurality of ruled lines RL arranged in the ruled line area MA are reduced as the allocation number AN is increased. As a result, when the allocation number AN is large, there is no inconvenience that only part of the type B ruled line image is printed. Therefore, it is possible to provide a template image TI that is easy to use when printed on paper.
このように、上記実施例のテンプレート画像データ生成処理によれば、罫線領域MAに配置される罫線の種類に応じて、第1の配置処理と、第2の配置処理とを、使い分けるので、罫線領域MAに配置される罫線の種類に応じて適切な適切なテンプレート画像データを準備することができる。 As described above, according to the template image data generation process of the above embodiment, the first arrangement process and the second arrangement process are selectively used according to the type of ruled line arranged in the ruled line area MA. Appropriate and appropriate template image data can be prepared according to the type of ruled lines arranged in the area MA.
さらに、上記実施例のテンプレート画像データ生成処理によれば、上述したように、テンプレート画像TIの周辺領域IAに、特定の文字を含む情報画像11〜17が配置される。ここで、例えば、割付数ANがN3である場合の単位画像10の面積をSt(N3)とし、割付数がN3より大きなN4である場合の単位画像の面積をSt(N4)とする。そして、割付数ANがN3である場合の情報画像の面積(例えば、情報画像を構成する特定の文字の面積)をSi(N3)とし、割付数がN4である場合の情報画像の面積(例えば、情報画像を構成する特定の文字の面積)をSi(N4)とする。テンプレート準備部56は、用紙サイズPSが同じである場合には、Si(N4)に対するSi(N3)の比率(Si(N4)/Si(N3))が、St(N4)に対するSt(N4)の比率が(St(N4)/St(N3))より大きくなるように、情報画像11〜17を配置する。この結果、割付数がN3大きなN4である場合に、過度に周辺領域の特定の文字のサイズが小さくなることを抑制することができる。
Further, according to the template image data generation process of the above embodiment, as described above, the
A−2−2:分割ドキュメント生成処理:
図12は、分割ドキュメント生成処理のフローチャートである。ドキュメント生成処理は、ユーザによって様々な情報(記入情報と呼ぶ)が記入(手書き)されたメモシートMSの内容を表す画像データを保存するためのファイルを生成する処理である。ドキュメント生成処理は、画像処理サーバ200が、複合機300から原稿画像データを受信した場合に、画像処理サーバ200の原稿画像処理部100によって実行される。原稿画像データは、記入済みのメモシートMSが複合機300の画像読取部380によって読み取られることによって生成される。原稿画像データは、例えば、1個の送信ファイルに格納されて画像処理サーバ200に対して送信される。送信すべき複数個の原稿画像データが存在する場合には、該複数個の原稿画像データは、送信ファイルに、生成順(読み取り順)に並べられる。このように、複数個の原稿画像データは、画像処理サーバ200の生成順特定部140が該複数個の原稿画像データの生成順を特定できるように、送信される。
A-2-2: Split document generation process:
FIG. 12 is a flowchart of the divided document generation process. The document generation process is a process of generating a file for storing image data representing the contents of the memo sheet MS in which various information (referred to as entry information) is entered (handwritten) by the user. The document generation process is executed by the document
図13、図14は、分割ドキュメント生成処理の説明図である。まず、原稿画像データによって表される原稿画像SIについて説明する。図13(A)は、第1種のメモシートMSAを読み取って生成される第1種の原稿画像データによって表される第1種の原稿画像SIAを示し、図14(A)は、第2種のメモシートMSBを読み取って生成される第2種の原稿画像データによって表される第2種の原稿画像SIBを示す。このように、特定種類の原稿画像SIを区別する場合には、符号の末尾にさらにアルファベット(例えば、A、B)を付加する。原稿画像SIは、1枚のメモシートMSに印刷された1個のテンプレート画像TIに含まれる複数個の単位画像10に対応する複数個の領域画像20を含む。従って、1個の原稿画像SIに含まれる複数個の領域画像20の個数は、1個のテンプレート画像TIに含まれる単位画像10の個数に等しく、2のZ乗の値(Zは自然数)、具体的には、2、4、8、16、32、...のいずれかの値を取る。また、1個の原稿画像SIに含まれる複数個の領域画像20のサイズは、互いにほぼ等しく、対応する単位画像10のサイズにほぼ等しい。具体的には、図13に示す第1種の原稿画像SIAは、2個の領域画像20A、20Bを含み、図14に示す第2種の原稿画像SIBは、4個の領域画像20C〜20Fを含んでいる。このように、特定の領域画像20を区別する場合には、符号の末尾にさらにアルファベット(例えば、A、B)を付加する。領域画像20は、対応する単位画像10(図2参照)を含むとともに、ユーザによってメモシートMSに記入された記入情報19(記入画像とも呼ぶ)を含み得る。記入情報19は、単位画像10の罫線領域MA(図2(A)参照)にも含まれ得るし、単位画像10の周辺領域IA(ヘッダ領域HAやフッタ領域FA(図2(A)参照))にも含まれ得る。具体的には、ユーザによって記入される記入情報19には、罫線領域MAに記入される文字、図形などのメイン情報(保存すべきコンテンツ)や、周辺領域IAに記入される各種のサブ情報(不要チェックボックス14のチェック、マーク領域16の塗りつぶし、タイトル領域13への書き込みなど)を含む(図13(A))。以下では、1個の原稿画像あたり4個の領域画像20を含む原稿画像SIをそれぞれ表す3個の原稿画像データが処理される場合を例に説明する。この場合には、12個の領域画像20が処理される。
13 and 14 are explanatory diagrams of the divided document generation process. First, the document image SI represented by the document image data will be described. FIG. 13A shows the first type of document image SIA represented by the first type of document image data generated by reading the first type of memo sheet MSA, and FIG. 14A shows the second type of document image SIA. A second type of document image SIB represented by a second type of document image data generated by reading a type of memo sheet MSB is shown. Thus, when distinguishing a specific type of document image SI, an alphabet (for example, A, B) is further added to the end of the code. The document image SI includes a plurality of
ステップS300にて、原稿画像取得部110が複合機300から1個以上の原稿画像データを受信すると、原稿画像処理部100は、処理対象とする1個の原稿画像データを選択する(ステップS310)。複数個の原稿画像データがある場合には、原稿画像データの生成順に、1個ずつ原稿画像データが選択される。例えば、送信ファイルに、原稿画像データが生成順に並べて配置されている場合には、送信ファイルに並べられた順に1個ずつ原稿画像データが選択される。
In step S300, when the document
ステップS320では、生成順特定部140は、選択された原稿画像データの番号(原稿画像番号SN)を決定する。ここで、原稿画像番号SNは、原稿画像データを特定する番号であり、生成順に付される。本実施例では、ステップS320にて、生成順に、原稿画像データが選択されるので、ステップS320での選択順に、原稿画像番号SNが付される。換言すれば、原稿画像番号SNによって、原稿画像データの生成順が特定できる。
In step S320, the generation
ステップS330では、領域画像生成部160は、原稿画像SIに含まれるマーカを検出して、原稿画像SIのレイアウトを特定する。具体的には、画像情報取得部120は、原稿画像データを解析することによって、原稿画像SIに含まれる単位画像10の上マーカ11と下マーカ17(図2)を検出する。マーカを検出する解析方法には、周知のパターンマッチングなどが用いられる。領域画像生成部160は、マーカ11、17が検出された位置に基づいて、原稿画像SIに含まれる領域画像20の数と位置(領域画像20の数と位置と等しい)を特定する。
In step S330, area
ステップS340では、ページ番号取得部130は、処理対象の原稿画像データによって表される原稿画像SI内の各領域画像20に対応するページ番号(原稿画像ページ番号SPN)を取得する。具体的には、ページ番号取得部130は、原稿画像データを解析することによって、各領域画像20に対応するページ情報領域12(図2(A)参照)に含まれるページ番号を取得する。
In step S340, the page
ステップS350では、原稿画像処理部100は、各領域画像20がスキップの対象であるか否かを判断する。具体的には、画像情報取得部120は、原稿画像データを解析することによって、各領域画像20に含まれる不要チェックボックス14(図2(A)参照)に記入情報(具体的にはチェック)が記入されているか否か検出する。不要条件判断部150は、記入情報が記入されている不要チェックボックス14に対応する領域画像20はスキップの対象であると判断し、記入情報が記入されていない不要チェックボックス14に対応する領域画像20はスキップの対象でないと判断する。スキップの対象であると判断された領域画像20は、後述するように、後に生成されるPDFファイルに格納される対象から除外される。
In step S350, the document
ステップS360では、画像情報取得部120は、各領域画像20に関連付けられたキーワード(関連付キーワードKW)を取得する。具体的には、画像情報取得部120は、原稿画像データを解析することによって、各領域画像20に含まれる複数のマーク領域16(図2(A)参照)に記入情報(具体的には塗りつぶし)が記入されているか否かを検出する。画像情報取得部120は、記入情報が記入されているマーク領域16に対応するキーワード15(図2(A)参照)を、対応する領域画像20に関連付けられた関連付キーワードKWとして取得する。マーク領域16に対応するキーワード15の内容は、マーク領域16の位置と、キーワード15の内容との、予め定められた対応関係に基づいて、特定される。マーク領域16と、キーワード15との対応関係が、画像処理サーバ200によって認識されていない場合には、画像情報取得部120は、対象画像データのキーワード15を表す領域に対して周知の文字認識処理(OCR処理)を実行することによって、該キーワード15の内容を取得しても良い。
In step S360, the image
ステップS370では、原稿画像処理部100は、複合機300から受信した全ての原稿画像データを選択したか否かを判断する。未選択の原稿画像データがある場合には(ステップS370:NO)、原稿画像処理部100は、ステップS310に戻って、新たな原稿画像データを選択して、上述したS320〜S360までの処理を繰り返す。また、全ての原稿画像データが選択済みである場合には(ステップS370:YES)、原稿画像処理部100は、処理を、ステップS380に進める。
In step S <b> 370, the document
なお、ここまでの処理で取得・特定された各種の情報は、揮発性記憶装置230に一時的に生成された管理テーブルMTに記録される。図15は、管理テーブルMTの一例を示す図である。管理テーブルMTには、処理される12個の領域画像20ごとに、原稿画像番号SNと、原稿画像ページ番号SPNと、スキップ情報SKと、PDFファイル番号PNと、PDFページ番号PPNと、関連付キーワードKWとが記録される。上述したように、原稿画像番号SNは、ステップS320にて決定され、原稿画像ページ番号SPNは、ステップS340にて取得される。スキップ情報SKは、ステップS350にて実行される、各領域画像20がスキップの対象であるか否かの判断結果を示す情報である。図15の管理テーブルMTでは、スキップの対象とされる領域画像20に対しては、スキップ情報SKとして「スキップ」の対象である旨が記録され、スキップの対象とされない領域画像20に対しては、なにも記録されない。上述したように、関連付キーワードKWは、ステップS360にて取得される。PDFファイル番号PNと、PDFページ番号PPNについては、ステップS370までの処理が終了した時点では、まだ記録されていない。
Note that the various types of information acquired and specified in the processes so far are recorded in the management table MT temporarily generated in the
ステップS380では、ファイル生成部170は、生成すべきPDFファイルの仕様を決定する。具体的には、ファイル生成部170は、上述した管理テーブルMT(図15)に記録済みの情報に基づいて、原稿画像番号SNと原稿画像ページ番号SPNとの組み合わせによって特定される領域画像20ごとに、PDFファイル番号PNと、PDFページ番号PPNとを、決定する。以下では、原稿画像番号SN=1と、原稿画像ページ番号SPN=2との組み合わせによって特定される領域画像20を、(1−2)の領域画像20というように、(SN−SPN)という記述を用いて表すことがある。
In step S380, the
具体的には、PDFファイル番号PNと、PDFページ番号PPNは、管理テーブルMTにおける12個の領域画像20の並び順と、12個の領域画像20の関連付キーワードKWとを用いて、決定される。12個の領域画像20の並び順は、図15から解るように、原稿画像番号SNで表される生成順が早いほど先であり、同じ原稿画像SIの4個の領域画像20の中では、原稿画像ページ番号SPNが小さいほど先である。まず、スキップの対象であると判断される領域画像20は、処理から除外され、該領域画像20に対しては、PDFファイル番号PNおよびPDFページ番号PPNが付されない。この並び順が連続しており、かつ、同じ関連付キーワードKWを有する2個以上の領域画像20(領域画像群)には、同じPDFファイル番号PNが付される。また、互いに異なる関連付キーワードKWを有する2個以上の領域画像20には、互いに異なるPDFファイル番号PNが付される。同じ関連付キーワードKWを有する2個の領域画像20であっても、並び順が当該2個の領域画像20の間に位置する領域画像20の中に、異なる関連付キーワードKWを有する領域画像20が含まれる場合には、当該2個の領域画像20には、互いに異なるPDFファイル番号PNが付される。図15に示す例では、(1−1)〜(2−1)までの5個の領域画像20は、並び順が連続しており、かつ、関連付キーワードKWが同じ「議事録」であるので、該5個の領域画像20のPDFファイル番号PNは、「1」に決定される。(2−2)および(2−3)の2個の領域画像20は、並び順が連続しており、かつ、関連付キーワードKWが同じ「メモ」であるので、該2個の領域画像20のPDFファイル番号PNは、「2」に決定される。(2−4)〜(3−3)までの4個の領域画像20は、並び順が連続しており、かつ、関連付キーワードKWが同じ「アイデア」であるので、該4個の領域画像20のPDFファイル番号PNは、「3」に決定される。、
Specifically, the PDF file number PN and the PDF page number PPN are determined using the arrangement order of the 12
また、ファイル生成部170は、同じPDFファイル番号PNを有する1個以上の領域画像20に、並び順に従って、1から始まるPDFページ番号PPNを付す。具体的には、図15に示すように、PDFファイル番号PNが「1」である5個の領域画像20には、1〜5のPDFページ番号PPNが並び順に付される。PDFファイル番号PNが「2」である2個の領域画像20には、1および2のPDFページ番号PPNが並び順に付される。PDFファイル番号PNが「3」である4個の領域画像20には、1〜4のPDFページ番号PPNが並び順に付される。
Further, the
ステップS390では、領域画像生成部160は、3個の原稿画像データに対して領域画像データ生成処理を実行して、3個の原稿画像SIに含まれる12個の領域画像20を表す領域画像データを生成する。ただし、スキップの対象であると判断された(3−4)の領域画像20を表す領域画像データは、生成されなくても良い。
In step S390, the region
図16は、領域画像データ生成処理のフローチャートである。ステップS391では、領域画像生成部160は、処理対象とする1個の原稿画像データを選択する。ステップS392では、選択された原稿画像データに対して傾き補正処理を実行して、原稿画像データによって表される原稿画像SIの傾きを補正する。傾き補正処理は、原稿画像SIに含まれるマーカ11、17の座標に基づく傾き角の計算処理と、算出された傾き角分だけ、原稿画像SIを回転させる回転処理とを含む。これらの具体的な計算方法は、公知の手法を用いて実行される。
FIG. 16 is a flowchart of region image data generation processing. In step S391, the area
ステップS393では、領域画像生成部160は、傾き補正処理後の原稿画像データを用いて、原稿画像SI内の分割位置を特定する。分割位置は、例えば、原稿画像SIに含まれるマーカ11、17の座標に基づいて特定される。分割位置は、図13(B)に示すように、原稿画像SIが、2個の領域画像20A、20Bを含む第1種の原稿画像SIAである場合には、第1種の原稿画像SIAの2つの長辺をそれぞれ略均等に分割する2つの中点を結ぶ直線である。また、分割位置は、図14(B)に示すように、原稿画像SIが、4個の領域画像20C〜20Fを含む第2種の原稿画像SIBである場合には、第2種の原稿画像SIBの2つの長辺をそれぞれ略均等に分割する2つの中点を結ぶ直線と、第2種の原稿画像SIBの2つの短辺をそれぞれ略均等に分割する2つの中点を結ぶ直線である。
In step S393, the region
ステップS394では、領域画像生成部160は、特定された分割位置で、原稿画像SIを分割して、原稿画像SIに含まれる各領域画像20を表す領域画像データを生成する。図13(B)に示すように、原稿画像SIが、2個の領域画像20を含む第1種の原稿画像SIAである場合には、2個の領域画像20A、20Bをそれぞれ表す2個の領域画像データが生成される。また、図14(B)に示すように、原稿画像SIが、4個の領域画像20C〜20Fを含む第2種の原稿画像SIBである場合には、4個の領域画像20C〜20Fをそれぞれ表す4個の領域画像データが生成される。
In step S394, the region
ステップS395では、原稿画像SIのレイアウトに応じて、回転すべき領域画像20を特定する。具体的には、原稿画像SIが、図13に示す第1種の原稿画像SIAである場合には、全部の領域画像、すなわち、2個の領域画像20A、20Bがそれぞれ回転すべき領域画像として特定される。原稿画像SIが、図14に示す第2種の原稿画像SIBである場合には、一部の領域画像、すなわち、原稿画像ページ番号SPNが「2」と「3」である2個の領域画像20D、20Eがそれぞれ回転すべき領域画像として特定される。
In step S395, the
ステップS396では、領域画像生成部160は、特定された領域画像20をレイアウトに応じた回転量だけ回転する回転処理を、特定された領域画像20を表す領域画像データに対して実行する。具体的には、原稿画像SIが、図13に示す第1種の原稿画像SIAである場合には、2個の領域画像20A、20Bは、時計回りに90度だけ回転される。なお、原稿画像データの生成時における画像読取部380の読取方向が逆向きであることによって、第1種の原稿画像SIAは、図13(B)に示す状態とは、逆向きである場合があるが、この場合には、領域画像生成部160は、2個の領域画像20A、20Bを、反時計回りに90度だけ回転すれば良い。この結果、2個の領域画像データは、適正方向を向いた状態で、2個の領域画像20A、20Bを表すように、変換される。画像が適正方向を向いた状態とは、例えば、該画像が、観察者が画像を見た場合に上方を向いているべきと感じる方向を向いている状態であり、例えば、文字画像であれば、該文字画像内の文字の上方向が上方を向いている状態である。例えば、領域画像20に含まれる単位画像10の場合には、図2(A)に示す破線の矢印の方向が上方を向いた状態が、適正方向を向いた状態である。
In step S <b> 396, the region
同様に、原稿画像SIが、図14に示す第2種の原稿画像SIBである場合には、2個の領域画像20D、20Eは、それぞれ、180度だけ回転される。この結果、4個の領域画像20C〜20Fが同じ向きになると共に、4個の領域画像20C〜20Fが適正方向を向いた状態になるように、4個の領域画像データが変換される。なお、原稿画像データの生成時における画像読取部380の読取方向が逆向きであることによって、第2種の原稿画像SIBは、図14(B)に示す状態とは、逆向きである場合がある。すなわち、原稿画像SIBにおいて、ページ番号1、4に対応する領域画像20C、20Fが、図14における上方側に位置し、ページ番号2、3に対応する領域画像20D、20Eが、図14における下方側に位置する場合がある。この場合には、領域画像生成部160は、2個の領域画像20C、20Fを、それぞれ180度だけ回転させれば良い。
Similarly, when the document image SI is the second type of document image SIB shown in FIG. 14, the two
ステップS397では、領域画像生成部160は、全ての原稿画像データを選択したか否かを判断する。未選択の原稿画像データがある場合には(ステップS397:NO)、領域画像生成部160は、ステップS391に戻って、新たな原稿画像データを選択して、上述したS392〜S396までの処理を繰り返す。また、全ての原稿画像データが選択済みである場合には(ステップS397:YES)、領域画像生成部160は、領域画像データ生成処理を、終了する。
In step S397, area
領域画像データ生成処理が終了すると、図12のステップS400では、ファイル生成部170は、生成された複数の領域画像データを用いて、PDF(Portable Document Format)形式のファイル(PDFファイル)を生成する。PDFファイルは、ページの概念を有するファイルであり、任意の数のページのそれぞれに、1個以上の画像データを対応付けて格納することができる。PDFファイルでは、ページに対応付けられた画像データによって表される画像に対して、ページ上の配置位置、配置角度などを指定することができる。ユーザは、PDFファイルに格納された画像データによって表される画像を、閲覧プログラム(ビューワー)を用いて、ディスプレイ上で複数ページに亘る書類のように閲覧することができる。
When the region image data generation processing is completed, in step S400 of FIG. 12, the
図17は、PDFファイルの生成について説明する図である。具体的には、ファイル生成部170は、図15に示す管理テーブルMTに領域画像20ごとに記録されたPDFファイル番号PNと、PDFページ番号PPNとに従って、3個のPDFファイルPFA、PFB、PFCを生成する。PDFファイルPFAには、PDFファイル番号PNが「1」である5個の領域画像データが格納される。PDFファイルPFAに格納される5個の領域画像データによって表される5個の領域画像20は、対応するPDFページ番号PPNのページに、配置される。同様に、PDFファイルPFBには、PDFファイル番号PNが「2」である2個の領域画像データが格納され、該2個の領域画像データは、対応するPDFページ番号PPNのページに配置される。PDFファイルPFCには、PDFファイル番号PNが「3」である4個の領域画像データが格納され、該4個の領域画像データは、対応するPDFページ番号PPNのページに配置される。ここで、スキップの対象であると判断された1個の領域画像20に対応する領域画像データは、生成されるPDFファイルには格納されない。
FIG. 17 is a diagram for explaining generation of a PDF file. Specifically, the
この結果、3個の原稿画像SIから構成される画像群SIG(図17)に含まれる12個の領域画像20のうち、スキップの対象であると判断された1個の領域画像20を除く11個の領域画像20が、3個のPDFファイルPFA、PFB、PFC(図17(B))に分類されて格納される。
As a result, of the 12
図12のステップS410では、原稿画像処理部100は、3個のPDFファイルPFA、PFB、PFCを、格納先に対して送信して、分割ドキュメント生成処理を終了する。本実施例の格納先は、格納サーバ500である。原稿画像処理部100は、3個のPDFファイルPFA、PFB、PFCに、ユーザの識別情報(具体的には、格納サーバ500を利用するためのユーザID)を関連付けて、格納サーバ500に対して送信する。格納サーバ500のCPU510は、3個のPDFファイルPFA、PFB、PFCを、格納サーバ500が有する記憶装置(図示せず)に格納する。ユーザは、パーソナルコンピュータ400や携帯端末(図示せず)などのクライアント装置を用いて、格納サーバ500に格納されたPDFファイルPFA、PFB、PFCにアクセス可能である。
In step S410 in FIG. 12, the document
以上説明した本実施例によれば、原稿画像SIの複数の領域画像20が互いに異なるページに配置されたPDFファイルを生成することができるので、複数の領域画像20を含む原稿画像SIを便利な形態で保存することができる。
According to the present embodiment described above, it is possible to generate a PDF file in which a plurality of
また、ページ番号取得部130は、複数個の領域画像データに対応する複数個のページ番号情報(具体的には、ページ情報領域12内の数字(図2))を、画像解析によって取得する。そして、ファイル生成部170は、取得されたページ番号順に配置されたPDFファイルを生成する(図15、図17)。したがって、ページ番号順に配置された便利なPDFPDFファイルを生成することができる。
Further, the page
さらに、上記実施例では、原稿画像処理部100は、N個(図15、17の例では11個)の領域画像データを生成し、N個の領域画像データのうちの1個以上の領域画像データをそれぞれ含むM個(図15、17の例では、3個)のPDFファイルを生成している。M個のPDFファイルのうち少なくとも1個のファイル(図15、17の例では、3個のPDFファイル)は、N個の領域画像データのうちの2個以上の領域画像データに対応する2個以上の領域画像20が互いに異なるページに配置されている。このように、原稿画像データを用いて2個以上のPDFファイルを生成することができる。この結果、原稿画像データに応じて、便利な個数のPDFファイルを生成することができる。なお、Nは、3以上の整数であることが好ましく、Mは、2以上、かつ、(N−1)以下の整数であることが好ましい。図15から解るように、PDFファイルPFBに含まれる2個の領域画像データに対応する2個の領域画像20は、原稿画像SI内のページ番号(原稿画像ページ番号SPN)が連続する領域画像であることが解る。
Further, in the above embodiment, the document
画像情報取得部120は、原稿画像データを解析することによって、複数個の領域画像データに対応する複数個の関連付キーワードKWを取得する。原稿画像処理部100は、複数個の関連付キーワードKWを用いて、例えば、関連付キーワードKWが「議事録」である複数個の領域画像20に対応する複数個の領域画像データを含むPDFファイルPFAと、関連付キーワードKWが「メモ」である複数個の領域画像20に対応する複数個の領域画像データを含むPDFファイルPFBと、を生成できる(図15、17)。このように、関連付キーワードKWのような領域画像20のそれぞれに含まれる特定種の情報を用いて、複数のPDFファイルを生成することができるので、より便利な形態で原稿画像SIを保存することができる。
The image
原稿画像取得部110は、第1の原稿画像を表す第1の原稿画像データ(例えば、原稿画像番号SNが「1」である原稿画像データ(図15))と、第2の原稿画像を表す第2の原稿画像データと、を含む2個以上の原稿画像データ(例えば、SN=「2」である原稿画像データ(図15))を取得する。そして、領域画像生成部160は、第1の原稿画像データを用いて、第1の原稿画像に含まれるP個(例えば、4個(図15))の領域画像20をそれぞれ表すP個の第1の領域画像データ(例えば、SN=「1」である原稿画像データを分割して生成される4個の領域画像データ)を生成する。領域画像生成部160は、第2の原稿画像データを用いて、第2の原稿画像に含まれるP個の前記領域画像をそれぞれ表すP個の第2の領域画像データ(例えば、SN=「2」である原稿画像データを分割して生成される4個の領域画像データ)を生成する。
The document
また、ファイル生成部170は、P個の第1の領域画像データとP個の第2の領域画像データとを含むファイルであって、第1の原稿画像に含まれるP個の前記領域画像と、第2の原稿画像に含まれるP個の前記領域画像と、が2・P個の異なるページに配置されたファイル(例えば、3個のPDFファイルPFA〜PFC(図17))を生成する。この結果、2個以上の原稿画像データに含まれる2・P個の領域画像データを含むファイルを生成することができる。このとき、第1のページ番号情報と、第2のページ番号情報と、第1の原稿画像データと第2の原稿画像データとが生成された順番(原稿画像番号SNの順番)と、に基づいて定められるページ順に、2・P個の領域画像20が、PDFファイルに配置される。したがって、生成順とページ番号に応じて、複数の原稿画像SIを便利な形態で保存することができる。
The
4個の領域画像20を含む原稿画像SIは、互いに異なる向きで配置された第1の領域画像(例えば、ページ番号「1」「4」の領域画像20C、20F(図14))と第2の領域画像(例えば、ページ番号「2」「3」の領域画像20D、20E(図14))とを含む。上記実施例によれば、ファイル生成部170は、第1の領域画像と第2の領域画像とが同じ向きで表示されるように、PDFファイルを生成する。この結果、原稿画像SIにおいて、互いに異なる向きで配置された第1の領域画像と第2の領域画像とを含む原稿画像を、見やすく表示できるファイルを生成することができる。
The document image SI including the four
また、不要条件判断部150は、各領域画像20のそれぞれに含まれる不要チェックボックス14内のチェックの有無に基づいて、複数個の領域画像のそれぞれがスキップの対象となる条件を満たすか否かを判断する。このスキップ条件を満たす領域画像20が存在する場合には、ファイル生成部170は、当該スキップ条件を満たす領域画像20を表す領域画像データを含まないPDFファイルを生成する。この結果、PDFファイルの内容を表示した場合に、不要な画像が表示されないので便利である。
Further, the unnecessary
B.変形例: B. Variations:
(1)図18、図19は、テンプレート画像データ生成処理の変形例を説明する図である。図18(A)〜(C)には、本変形例において、用紙サイズPSは互いに同じであるが、割付数ANは互いに異なる値2、4、8である3つのテンプレート画像TI内に設定される部分領域PA2、PA4、PA8が図示されている。ここで、部分領域PA2、PA4、PA8のサイズは、図7〜9に示すように、それぞれ異なるが、図18では、図10と同様に、図示する大きさを揃えている。図19は、割付数ANは互いに同じであるが、用紙サイズPSが互いに異なる2つのテンプレート画像TI内にそれぞれ設定される部分領域PAAと、PABと、が示されている。
(1) FIGS. 18 and 19 are diagrams for explaining a modification of the template image data generation process. 18A to 18C, in this modification, the paper sizes PS are the same, but the allocation number AN is set in three template images TI having
上記実施例のテンプレート画像データ生成処理では、割付数ANおよび用紙サイズPSに応じて定まる部分領域PA(単位画像10のサイズ)に拘わらず、罫線領域比率が同じになるように、罫線領域MAを設定している。本変形例では、これに代えて、テンプレート準備部56は、罫線領域MAのサイズが小さくなるほど、罫線領域比率が大きくなるように、罫線領域MAのサイズを決定する。この結果、図18に示すように、部分領域PA2、PA4、PA8を大きさを揃えて図示した場合には、罫線領域MAは、割付数ANが大きいほど、大きく図示される。
In the template image data generation process of the above-described embodiment, the ruled line area MA is set so that the ruled line area ratio is the same regardless of the partial area PA (the size of the unit image 10) determined according to the allocation number AN and the paper size PS. It is set. In the present modification, instead of this, the
具体的には、テンプレート準備部56は、用紙サイズPSが同じである場合には、割付数ANが大きくなるほど、罫線領域比率が大きくなるように、罫線領域MAのサイズを決定する。すなわち、図18に示すように、テンプレート準備部56は、割付数がN1より大きなN2である場合における罫線領域比率が、割付数ANがN1である場合における罫線領域比率よりも大きくなるように、罫線領域MAのサイズを決定する。割付数ANが比較的大きい場合には、部分領域PAのサイズ、すなわち、単位画像10のサイズが比較的小さくなる。本変形例では、割付数ANが比較的大きい場合に、過度に罫線領域のサイズが小さくなることを抑制することができる。
Specifically, when the paper size PS is the same, the
また、テンプレート準備部56は、割付数ANが同じ値(例えば、K1)である場合には、用紙サイズPSが小さくなるほど、罫線領域比率が大きくなるように、罫線領域MAのサイズを決定する。すなわち、図19に示すように、テンプレート準備部56は、用紙サイズPSが特定サイズSZ3(例えば、A4)である場合における罫線領域比率が、用紙サイズPSが特定サイズSZ4より大きな特定サイズSZ3(例えば、A3)である場合における罫線領域比率よりも大きくなるように、罫線領域MAのサイズを決定する。用紙サイズPSが比較的小さな場合には、部分領域PAのサイズ、すなわち、単位画像10のサイズが比較的小さくなる。本変形例では、用紙サイズPSが比較的小さい場合に、過度に罫線領域のサイズが小さくなることを抑制することができる。
Further, when the allocation number AN is the same value (for example, K1), the
(2)上記実施例のテンプレート画像データ生成処理における第1の配置処理を用いて生成されたテンプレート画像TIでは、上述したように、用紙サイズPSや割付数ANに拘わらずに、罫線画像における罫線間隔が一定である。この罫線間隔は、完全に一定である必要はなく、略一定であれば良い。 (2) In the template image TI generated by using the first arrangement process in the template image data generation process of the above embodiment, as described above, the ruled lines in the ruled line image regardless of the paper size PS and the allocation number AN. The interval is constant. The ruled line interval need not be completely constant, but may be substantially constant.
ここで、用紙サイズPSおよび割付数ANのうちの少なくとも一方が互いに異なることに起因して、罫線領域MAのサイズが互いに異なる第1テンプレート画像と第2テンプレート画像が生成されるとする。この場合に、第1のテンプレート画像の罫線領域の面積をST1とし、第2のテンプレート画像の罫線領域の面積をST2とする。また、第1のテンプレート画像の罫線間隔をNS1とし、第2のテンプレート画像の罫線間隔をNS2とする。用紙サイズPSや割付数ANに拘わらずに、罫線画像における罫線間隔が完全に一定である場合には、NS1=NS2であるので、両画像の罫線間隔の比率(NS1/NS2)は、1である。以上を考慮すると、上述したテンプレート画像データ生成処理において第1の配置処理を行って両画像のテンプレート画像データを生成すると、両画像の罫線間隔の比率(NS1/NS2)は、1となり、第2の配置処理を行って両画像のテンプレート画像データを生成すると、両画像の罫線間隔の比率(NS1/NS2)は、両画像の罫線領域MAの面積比(ST1/ST2)の平方根(SQRT(ST1/ST2)と表す)となる。 Here, it is assumed that the first template image and the second template image having different sizes of the ruled line area MA are generated due to at least one of the paper size PS and the allocation number AN being different from each other. In this case, the area of the ruled line region of the first template image is ST1, and the area of the ruled line region of the second template image is ST2. Further, the ruled line interval of the first template image is NS1, and the ruled line interval of the second template image is NS2. When the ruled line interval in the ruled line image is completely constant regardless of the paper size PS and the allocation number AN, NS1 = NS2, and therefore the ratio of the ruled line interval between both images (NS1 / NS2) is 1. is there. In consideration of the above, when the template image data of both images is generated by performing the first arrangement process in the template image data generation process described above, the ratio of the ruled line interval (NS1 / NS2) of both images becomes 1, and the second When the template image data of both images is generated by performing the arrangement process of (2), the ratio of the ruled line spacing (NS1 / NS2) of both images is the square root (SQRT (ST1 / ST2)).
第1のテンプレート画像と第2のテンプレート画像との罫線間隔の比率(NS1/NS2)が、SQRT(ST1/ST2)より、1に近い場合には、両画像の罫線間隔は、用紙サイズPSや割付数ANに拘わらず、略一定であると言うことができる。第1のテンプレート画像と第2のテンプレート画像との罫線間隔の比率(NS1/NS2)が、SQRT(ST1/ST2)と1との平均値より、1に近い場合には、両画像の罫線間隔は、用紙サイズPSや割付数ANに拘わらず、略一定であると、より明確に言うことができる。 When the ratio (NS1 / NS2) of the ruled line interval between the first template image and the second template image is closer to 1 than SQRT (ST1 / ST2), the ruled line interval of both images is the paper size PS or It can be said that it is substantially constant regardless of the allocation number AN. When the ratio (NS1 / NS2) of the ruled line interval between the first template image and the second template image is closer to 1 than the average value of SQRT (ST1 / ST2) and 1, the ruled line interval between both images Can be said more clearly that it is substantially constant regardless of the paper size PS and the number of assignments AN.
(3)上記実施例のテンプレート画像データ生成処理では、罫線画像の種類がタイプAである場合には、割付数ANと用紙サイズPSに拘わらずに、罫線間隔が一定になるように、テンプレート画像データを生成している。これに代えて、割付数ANに拘わらず、罫線間隔が一定になるように、テンプレート画像データを生成するが、用紙サイズPSが異なる場合には、罫線間隔が異なるようにテンプレート画像データを生成しても良い。逆に、用紙サイズPSに拘わらず、罫線間隔が一定になるように、テンプレート画像データを生成するが、割付数ANが異なる場合には、罫線間隔が異なるようにテンプレート画像データを生成しても良い。 (3) In the template image data generation process of the above embodiment, when the type of ruled line image is type A, the template image is set so that the ruled line interval is constant regardless of the allocation number AN and the paper size PS. Data is being generated. Instead, the template image data is generated so that the ruled line interval is constant regardless of the allocation number AN. However, when the paper size PS is different, the template image data is generated so that the ruled line interval is different. May be. Conversely, the template image data is generated so that the ruled line interval is constant regardless of the paper size PS. However, if the allocation number AN is different, the template image data may be generated so that the ruled line interval is different. good.
(4)上記実施例のテンプレート画像データ生成処理において、罫線画像の種類(タイプA、タイプBなど)に応じて、第1の配置処理と、第2の配置処理とを使い分けている。これに代えて、テンプレート準備部56は、罫線画像の種類とは無関係に、常に、第1の配置処理を行って、割付数ANと用紙サイズPSに拘わらずに、罫線間隔が一定になるように、テンプレート画像データを生成してもよい。また、テンプレート準備部56は、罫線画像の種類とは無関係に、ユーザの指示に従って、第1の配置処理と、第2の配置処理とを使い分けても良い。第1の配置処理と、第2の配置処理とのいずれを実行するかを指定するユーザの指示は、例えば、複合機300の操作部350を介して複合機300に受け付けられ、複合機300から画像処理サーバ200に送信される生成要求に、当該指示を示すコマンド情報が含められる。
(4) In the template image data generation process of the above-described embodiment, the first arrangement process and the second arrangement process are selectively used according to the type of ruled line image (type A, type B, etc.). Instead, the
(5)上記実施例のテンプレート画像データ生成処理では、基本罫線画像BGを用いて、矩形画像SQ(テンプレート画像TI)に配置される罫線画像を生成しているが、基本罫線画像BGを用いることなく、罫線画像を生成しても良い。具体的には、テンプレート準備部56は、生成すべき罫線画像がタイプAである場合には、罫線領域MAに、固定間隔で罫線画像の種類に応じた罫線を配置することによって、罫線画像を生成しても良い。
(5) In the template image data generation process of the above embodiment, the ruled line image arranged in the rectangular image SQ (template image TI) is generated using the basic ruled line image BG, but the basic ruled line image BG is used. Alternatively, a ruled line image may be generated. Specifically, when the ruled line image to be generated is type A, the
(6)なお、原稿画像データを生成するための画像読取部は、光学的に原稿を読み取る装置であれば良く、実施例におけるスキャナに限らず、デジタルカメラであっても良い。 (6) The image reading unit for generating the document image data may be any device that optically reads the document, and is not limited to the scanner in the embodiment but may be a digital camera.
(7)上記実施例における画像処理サーバ200が備えるテンプレート画像生成部50の機能は、複合機300に備えられていても良い。また、パーソナルコンピュータ400がテンプレート画像生成部50の機能を備えていても良い。この場合には、テンプレート画像生成部50の機能は、例えば、複合機300を制御するためのドライバプログラム、例えば、プリンタドライバのプログラムに組み込まれて、パーソナルコンピュータ400のユーザに提供されても良い。
(7) The function of the template
(8)画像処理サーバ200は、1つの筐体の装置に限らず、複数の別筐体の計算機を含む装置(いわゆるクラウドサーバ)であっても良い。
(8) The
(9)上記実施例において、ハードウェアによって実現されていた構成の一部をソフトウェアに置き換えるようにしても良く、逆に、ソフトウェアによって実現されていた構成の一部をハードウェアに置き換えるようにしても良い。 (9) In the above embodiment, a part of the configuration realized by hardware may be replaced with software, and conversely, a part of the configuration realized by software may be replaced with hardware. Also good.
以上、実施例、変形例に基づき本発明について説明してきたが、上記した発明の実施の形態は、本発明の理解を容易にするためのものであり、本発明を限定するものではない。本発明は、その趣旨並びに特許請求の範囲を逸脱することなく、変更、改良され得ると共に、本発明にはその等価物が含まれる。 As mentioned above, although this invention was demonstrated based on the Example and the modification, Embodiment mentioned above is for making an understanding of this invention easy, and does not limit this invention. The present invention can be changed and improved without departing from the spirit and scope of the claims, and equivalents thereof are included in the present invention.
50...テンプレート画像生成部、51...罫線種取得部、52...割付数取得部、54...用紙サイズ取得部、56...テンプレート準備部、58...テンプレート供給部、100...原稿画像処理部、110...原稿画像取得部、120...画像情報取得部、130...ページ番号取得部、140...生成順特定部、150...不要条件判断部、160...領域画像生成部、170...ファイル生成部、200...画像処理サーバ、210...CPU、220...通信部、230...揮発性記憶装置、240...不揮発性記憶装置、241...コンピュータプログラム、300...複合機、310...CPU、312...装置制御部、314...テンプレート画像取得部、316...原稿画像送信部、320...通信部、330...揮発性記憶装置、340...不揮発性記憶装置、341...コンピュータプログラム、350...操作部、360...表示部、370...印刷実行部、380...画像読取部、400...パーソナルコンピュータ、410...CPU、500...格納サーバ、510...CPU、700...インターネット、1000...原稿保存システム
50 ... Template image generation unit, 51 ... Ruled line type acquisition unit, 52 ... Assignment number acquisition unit, 54 ... Paper size acquisition unit, 56 ... Template preparation unit, 58 ... Template supply , 100 ... Original image processing unit, 110 ... Original image acquisition unit, 120 ... Image information acquisition unit, 130 ... Page number acquisition unit, 140 ... Generation order identification unit, 150 .. Unnecessary condition determination unit, 160 ... region image generation unit, 170 ... file generation unit, 200 ... image processing server, 210 ... CPU, 220 ... communication unit, 230 ... volatile Storage device, 240 ... nonvolatile storage device, 241 ... computer program, 300 ... multifunction machine, 310 ... CPU, 312 ... device control unit, 314 ... template image acquisition unit, 316 ... Original image transmission unit, 320 ... Communication unit, 330 ... Volatile storage device, 340 ... Nonvolatile storage device, 341 ...
Claims (11)
1枚の用紙内に印刷されるべき単位画像の数を示す割付数を取得する割付数取得部と、
前記割付数に対応する複数個の単位画像を含むテンプレート画像を表すテンプレート画像データを準備するテンプレート準備部であって、前記複数個の単位画像のそれぞれは、複数の罫線を含む罫線領域を含み、前記複数の罫線のうち、隣接する2つの罫線の間隔は、前記テンプレート画像が前記用紙に印刷された場合に、前記割付数に拘わらず、略一定である、前記テンプレート準備部と、
前記テンプレート画像データを印刷実行部に供給するテンプレート供給部と、
を備える画像処理装置。 An image processing apparatus for printing,
An allocation number acquisition unit for acquiring an allocation number indicating the number of unit images to be printed on one sheet;
A template preparation unit for preparing template image data representing a template image including a plurality of unit images corresponding to the number of allocations, each of the plurality of unit images including a ruled line region including a plurality of ruled lines; Among the plurality of ruled lines, the interval between two adjacent ruled lines is substantially constant regardless of the number of assignments when the template image is printed on the paper, the template preparation unit,
A template supply unit for supplying the template image data to a print execution unit;
An image processing apparatus comprising:
前記複数個の単位画像のそれぞれは、さらに、前記罫線領域の周辺に位置する周辺領域を含み、
前記テンプレート準備部は、前記割付数がN1である場合には、N1個の第1の単位画像を含む前記テンプレート画像を準備し、前記割付数がN1より大きなN2である場合には、N2個の第2の単位画像を含む前記テンプレート画像を準備し、
前記第2の単位画像のサイズに対する前記第2の単位画像内の前記罫線領域のサイズの比率は、前記第1の単位画像のサイズに対する前記第1の単位画像内の前記罫線領域のサイズの比率より大きい、画像処理装置。 The image processing apparatus according to claim 1,
Each of the plurality of unit images further includes a peripheral region located around the ruled line region,
The template preparation unit prepares the template image including N1 first unit images when the allocation number is N1, and N2 when the allocation number is N2 larger than N1. Preparing the template image including the second unit image of
The ratio of the size of the ruled line area in the second unit image to the size of the second unit image is the ratio of the size of the ruled line area in the first unit image to the size of the first unit image. Larger image processing device.
前記複数個の単位画像のそれぞれは、さらに、前記罫線領域の周辺に位置する周辺領域であって、特定の文字を含む前記周辺領域を含み、
前記テンプレート準備部は、前記割付数がN3である場合には、N3個の第3の単位画像を含む前記テンプレート画像を準備し、前記割付数がN3より大きなN4である場合には、N4個の第4の単位画像を含む前記テンプレート画像を準備し、
前記第3の単位画像の前記特定の文字のサイズに対する前記第4の単位画像の前記特定の文字のサイズの比率は、前記第3の単位画像のサイズに対する前記第4の単位画像のサイズの比率よりも大きい、画像処理装置。 The image processing apparatus according to claim 1 or 2,
Each of the plurality of unit images further includes a peripheral region located around the ruled line region, the peripheral region including a specific character,
The template preparation unit prepares the template image including N3 third unit images when the allocation number is N3, and N4 when the allocation number is N4 larger than N3. Preparing the template image including the fourth unit image of
The ratio of the size of the specific character of the fourth unit image to the size of the specific character of the third unit image is the ratio of the size of the fourth unit image to the size of the third unit image. Larger than the image processing device.
前記テンプレート画像が印刷されるべき用紙のサイズを取得する用紙サイズ取得部を備え、
前記テンプレート準備部は、前記隣接する2つの罫線の間隔が、前記テンプレート画像が前記用紙に印刷された場合に、前記用紙のサイズに拘わらず、略一定になるように、前記テンプレート画像データを準備する、画像処理装置。 The image processing apparatus according to any one of claims 1 to 3, further comprising:
A paper size acquisition unit that acquires the size of the paper on which the template image is to be printed;
The template preparation unit prepares the template image data so that an interval between the two adjacent ruled lines is substantially constant regardless of the size of the paper when the template image is printed on the paper. An image processing apparatus.
前記複数個の単位画像のそれぞれは、さらに、前記罫線領域の周辺に位置する周辺領域を含み、
前記テンプレート準備部は、前記用紙のサイズが第1のサイズである場合には、K1個の第5の単位画像を含む前記テンプレート画像を準備し、前記用紙のサイズが前記第1のサイズより小さな第2のサイズである場合には、K1個の第6の単位画像を含む前記テンプレート画像を準備し、
前記第6の単位画像のサイズに対する前記第6の単位画像内の前記罫線領域のサイズの比率は、前記第5の単位画像のサイズに対する前記第5の単位画像内の前記罫線領域のサイズの比率より大きい、画像処理装置。 The image processing apparatus according to claim 4,
Each of the plurality of unit images further includes a peripheral region located around the ruled line region,
When the size of the paper is the first size, the template preparation unit prepares the template image including K1 fifth unit images, and the size of the paper is smaller than the first size. In the case of the second size, the template image including K1 sixth unit images is prepared,
The ratio of the size of the ruled line area in the sixth unit image to the size of the sixth unit image is the ratio of the size of the ruled line area in the fifth unit image to the size of the fifth unit image. Larger image processing device.
前記複数個の単位画像のそれぞれは、さらに、前記罫線領域の周辺に位置する周辺領域であって、特定の文字を含む前記周辺領域を含み、
前記テンプレート準備部は、前記用紙のサイズが第3のサイズである場合には、K2個の第7の単位画像を含む前記テンプレート画像を準備し、前記用紙のサイズが前記第3のサイズより小さな第4のサイズである場合には、K2個の第8の単位画像を含む前記テンプレート画像を準備し、
前記第7の単位画像の前記特定の文字のサイズに対する前記第8の単位画像の前記特定の文字のサイズの比率は、前記第7の単位画像のサイズに対する前記第8の単位画像のサイズの比率より大きい、画像処理装置。 The image processing apparatus according to claim 4 or 5, wherein
Each of the plurality of unit images further includes a peripheral region located around the ruled line region, the peripheral region including a specific character,
The template preparation unit prepares the template image including K2 seventh unit images when the size of the sheet is the third size, and the size of the sheet is smaller than the third size. In the case of the fourth size, the template image including K2 eighth unit images is prepared,
The ratio of the size of the specific character of the eighth unit image to the size of the specific character of the seventh unit image is the ratio of the size of the eighth unit image to the size of the seventh unit image. Larger image processing device.
前記罫線の種類を取得する種類取得部を備え、
前記テンプレート準備部は、前記罫線の種類が第1の種類である場合に、前記隣接する2つの罫線の間隔が、前記割付数に拘わらず、略一定である前記テンプレート画像を表す第1のテンプレート画像データを準備し、前記罫線の種類が第2の種類である場合に、前記隣接する2つの罫線の間隔が、前記割付数が大きいほど小さい前記テンプレート画像を表す第2のテンプレート画像データを準備する、画像処理装置。 The image processing apparatus according to any one of claims 1 to 6, further comprising:
A type acquisition unit for acquiring the type of the ruled line;
When the type of the ruled line is the first type, the template preparing unit represents the first template representing the template image in which the interval between the two adjacent ruled lines is substantially constant regardless of the number of assignments. When image data is prepared and the type of ruled line is the second type, second template image data representing the template image having a smaller interval between the two adjacent ruled lines is prepared. An image processing apparatus.
前記用紙のサイズを取得する用紙サイズ取得部と、
複数個の単位画像を含むテンプレート画像を表すテンプレート画像データを準備するテンプレート準備部であって、前記複数個の単位画像のそれぞれは、複数の罫線を含む罫線領域を含み、前記複数の罫線のうち、隣接する2つの罫線の間隔は、前記テンプレート画像が前記用紙に印刷された場合に、前記用紙のサイズに拘わらず、略一定である、前記テンプレート準備部と、
前記テンプレート画像データを印刷実行部に供給するテンプレート供給部と、
を備える画像処理装置。 An image processing apparatus for printing,
A paper size acquisition unit for acquiring the size of the paper;
A template preparation unit for preparing template image data representing a template image including a plurality of unit images, each of the plurality of unit images including a ruled line region including a plurality of ruled lines, and among the plurality of ruled lines The interval between two ruled lines adjacent to each other is substantially constant regardless of the size of the paper when the template image is printed on the paper;
A template supply unit for supplying the template image data to a print execution unit;
An image processing apparatus comprising:
1枚の用紙内に印刷されるべき単位画像の数を示す割付数を取得する割付数取得部を備え、
前記テンプレート準備部は、前記割付数に対応する前記複数個の単位画像を含む前記テンプレート画像を表す前記テンプレート画像データを準備する、画像処理装置。 The image processing apparatus according to claim 8, further comprising:
An allocation number acquisition unit that acquires an allocation number indicating the number of unit images to be printed on one sheet;
The template preparation unit prepares the template image data representing the template image including the plurality of unit images corresponding to the allocation number.
前記複数個の単位画像のそれぞれは、さらに、前記罫線領域の周辺に位置する周辺領域を含み、
前記テンプレート準備部は、前記用紙のサイズが第1のサイズである場合には、K1個の第1の単位画像を含む前記テンプレート画像を準備し、前記用紙のサイズが前記第1のサイズより小さな第2のサイズである場合には、K1個の第2の単位画像を含む前記テンプレート画像を準備し、
前記第2の単位画像のサイズに対する前記第2の単位画像内の前記罫線領域のサイズの比率は、前記第1の単位画像内の前記罫線領域のサイズの比率より大きい、画像処理装置。 The image processing apparatus according to claim 8 or 9, wherein
Each of the plurality of unit images further includes a peripheral region located around the ruled line region,
The template preparation unit prepares the template image including K1 first unit images when the size of the paper is the first size, and the size of the paper is smaller than the first size. In the case of the second size, preparing the template image including K1 second unit images,
The image processing apparatus, wherein a ratio of a size of the ruled line area in the second unit image to a size of the second unit image is larger than a ratio of the size of the ruled line area in the first unit image.
前記複数個の単位画像のそれぞれは、さらに、前記罫線領域の周辺に位置する周辺領域であって、特定の文字を含む前記周辺領域を含み、
前記テンプレート準備部は、前記用紙のサイズが第3のサイズである場合には、K2個の第3の単位画像を含む前記テンプレート画像を準備し、前記用紙のサイズが前記第3のサイズより小さな第4のサイズである場合には、K2個の第4の単位画像を含む前記テンプレート画像を準備し、
前記第3の単位画像の前記特定の文字のサイズに対する前記第4の単位画像の前記特定の文字のサイズの比率は、前記第3の単位画像のサイズに対する前記第4の単位画像のサイズの比率より大きい、画像処理装置。 An image processing apparatus according to any one of claims 8 to 10,
Each of the plurality of unit images further includes a peripheral region located around the ruled line region, the peripheral region including a specific character,
The template preparation unit prepares the template image including K2 third unit images when the size of the paper is the third size, and the size of the paper is smaller than the third size. In the case of the fourth size, preparing the template image including K2 fourth unit images,
The ratio of the size of the specific character of the fourth unit image to the size of the specific character of the third unit image is the ratio of the size of the fourth unit image to the size of the third unit image. Larger image processing device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2012148088A JP2014011699A (en) | 2012-07-01 | 2012-07-01 | Image processor, and computer program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2012148088A JP2014011699A (en) | 2012-07-01 | 2012-07-01 | Image processor, and computer program |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2014011699A true JP2014011699A (en) | 2014-01-20 |
Family
ID=50107998
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2012148088A Pending JP2014011699A (en) | 2012-07-01 | 2012-07-01 | Image processor, and computer program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2014011699A (en) |
-
2012
- 2012-07-01 JP JP2012148088A patent/JP2014011699A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9591169B2 (en) | Image processing apparatus and program | |
JP5929210B2 (en) | Information processing program, information processing apparatus, and information processing apparatus control method | |
US9485385B2 (en) | Image processing apparatus and computer program for generating a file in which plural area images of a document image are disposed in different pages | |
JP2010039943A (en) | Layout printing system, layout document browsing method, and program | |
JP2009169536A (en) | Information processor, image forming apparatus, document creating method, and document creating program | |
US20190132471A1 (en) | Image processing apparatus | |
US9898236B2 (en) | Image processing apparatus and program for printing template images using keyword data | |
JP2015204075A (en) | Electronic document creation system, and program | |
US10306095B2 (en) | Image processing apparatus and method | |
JP5712489B2 (en) | Image processing apparatus, image processing system, and program | |
JP4792099B2 (en) | Printing program, printing control apparatus, and image forming apparatus | |
US11089179B2 (en) | Image processing apparatus, system, and computer program product capable of performing image processing on target image with respect to image data of the target image corresponding to target image state by acquired display image | |
JP2014011699A (en) | Image processor, and computer program | |
JP6578696B2 (en) | Document image management apparatus and document image management program | |
JP2006215619A (en) | Document creation support system, program and method | |
JP2016139869A (en) | Image processing device | |
JP4998421B2 (en) | Image forming apparatus and image forming program | |
US20240111463A1 (en) | Information processing apparatus and method, and storage medium storing program | |
JP2013254277A (en) | Image processing device, image processing system, and program | |
US20150062660A1 (en) | File management apparatus and file management method | |
JP2007115190A (en) | Document processing system, control method, and program | |
JP4544133B2 (en) | Printing apparatus and printing control method | |
JP5193340B2 (en) | Printing method and printing program | |
JP2018005803A (en) | Image formation apparatus, pattern printing method, and pattern printing program | |
JP2017175367A (en) | Information processing apparatus for performing data conversion, data conversion processing method and program |