JP6540546B2 - Information processing apparatus and program - Google Patents

Information processing apparatus and program

Info

Publication number
JP6540546B2
JP6540546B2 JP2016038683A JP2016038683A JP6540546B2 JP 6540546 B2 JP6540546 B2 JP 6540546B2 JP 2016038683 A JP2016038683 A JP 2016038683A JP 2016038683 A JP2016038683 A JP 2016038683A JP 6540546 B2 JP6540546 B2 JP 6540546B2
Authority
JP
Japan
Prior art keywords
character string
marking
superimposed
unit
image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2016038683A
Other languages
Japanese (ja)
Other versions
JP2017157993A (en
Inventor
友博 三浦
友博 三浦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kyocera Document Solutions Inc
Original Assignee
Kyocera Document Solutions Inc
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 Kyocera Document Solutions Inc filed Critical Kyocera Document Solutions Inc
Priority to JP2016038683A priority Critical patent/JP6540546B2/en
Priority to CN201910829510.2A priority patent/CN110740221B/en
Priority to CN201910828875.3A priority patent/CN110636181A/en
Priority to CN201710070630.XA priority patent/CN107147820B/en
Priority to US15/438,331 priority patent/US10425556B2/en
Publication of JP2017157993A publication Critical patent/JP2017157993A/en
Application granted granted Critical
Publication of JP6540546B2 publication Critical patent/JP6540546B2/en
Priority to US16/524,364 priority patent/US10681245B2/en
Priority to US16/524,424 priority patent/US10715699B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Editing Of Facsimile Originals (AREA)
  • Image Analysis (AREA)

Description

本発明は、文字列に重畳されたマーキングを含む原稿画像から、マーキングされた文字列を解答とする穴埋め問題を作成することが可能な情報処理装置及びプログラムに関する。   The present invention relates to an information processing apparatus and program capable of creating a hole-filling problem in which a marked character string is an answer from a document image including markings superimposed on the character string.

問題の解答となる文字列を手書きのマーキングで指定した原稿の画像を読み取り、読み取った原稿の画像データの中からマーキングの画像を抽出し、マーキングの位置で文字列を抽出し、マーキングの位置で文字列を消去し、文字列の消去部分に回答欄を設定する、穴埋め問題を作成する技術が知られている(特許文献1、要約書)。一具体例として、2以上の虫食い箇所を1つの虫食いグループとして設定し、その虫食いグループについて1つの虫食い問題を作成する技術も知られている(特許文献2、要約書)。   The image of the original specified by handwritten markings is read from the character string that is the answer to the question, the marking image is extracted from the image data of the read original, the character string is extracted at the marking position, and the marking position is There is known a technique for creating a fill-in-the-blank problem, which erases a character string and sets an answer field in an erased portion of the character string (Patent Document 1, abstract). As one specific example, there is also known a technique of setting two or more worm-eaten spots as one worm-eaten group and creating one worm-eaten problem for the worm-eaten group (Patent Document 2, abstract).

特開2007−4523号公報JP 2007-4523 A 特開2010−101970号公報JP, 2010-101970, A

穴埋め問題を作成することが可能な情報処理装置においては、問題作成者及び回答者の双方について益々ユーザーフレンドリーであることが望まれる。   In an information processing apparatus capable of creating a fill-in-the-blank problem, it is desirable to be more user-friendly for both the problem creator and the respondent.

以上のような事情に鑑み、本発明の目的は、文字列に重畳されたマーキングを含む原稿画像から、マーキングされた文字列を解答とする穴埋め問題を作成することが可能な情報処理装置及びプログラムにおいて、ユーザーの利便性を向上することにある。   In view of the above circumstances, it is an object of the present invention to provide an information processing apparatus and program capable of creating a fill-in-blank problem in which a marked character string is an answer from a document image including markings superimposed on the character string. To improve user convenience.

上記目的を達成するため、本発明の一形態に係る情報処理装置は、
マーキングが重畳された文字列と、マーキングが重畳されていない文字列とを含む文字列エリアを有する原稿画像から、前記マーキングを抽出するマーキング抽出部と、
前記文字列に重畳されたマーキングを拡大して拡大文字列を作成し、前記マーキングが重畳されていない文字列を縮小して縮小文字列を作成する画像変換部と
を具備する。
In order to achieve the above object, an information processing apparatus according to an aspect of the present invention is:
A marking extraction unit for extracting the marking from a document image having a character string area including a character string on which the marking is superimposed and a character string on which the marking is not superimposed;
And an image conversion unit for enlarging the marking superimposed on the character string to create an enlarged character string, and reducing the character string on which the marking is not superimposed to generate a reduced character string.

このように、マーキングが重畳されていない文字列を縮小して縮小文字列を作成し、文字列に重畳されたマーキングを拡大して拡大文字列を作成することで、空欄画像を重畳すべき文字列のサイズを相対的に大きくすることができる。   In this manner, the character string on which the blank image should be superimposed is formed by reducing the character string where the marking is not superimposed to create a reduced character string and enlarging the marking superimposed on the character string to create an enlarged character string. The size of the columns can be relatively large.

情報処理装置は、
前記拡大文字列に重畳する空欄画像を作成する空欄作成部と、
前記縮小文字列と、前記空欄画像とを合成した合成画像を作成する画像合成部と
をさらに具備する。
The information processing apparatus is
A blank creating unit that creates a blank image to be superimposed on the enlarged character string;
And an image combining unit that creates a combined image combining the reduced character string and the blank image.

このように、縮小文字列と、拡大文字列に重畳する空欄画像とを合成することで、元の原稿画像のレイアウトを極力活かしつつ、空欄画像のサイズを相対的に大きくすることができる。   As described above, by combining the reduced character string and the blank image superimposed on the enlarged character string, the size of the blank image can be relatively enlarged while making the most of the layout of the original document image.

情報処理装置は、
前記マーキング抽出部が抽出した前記マーキングの、前記原稿画像内での位置及びサイズを判定するマーキング判定部と、
前記文字列エリアの、前記原稿画像内での位置及びサイズを判定する文字列エリア判定部と、
前記文字列エリアを1以上の行エリアに分割し、前記1以上の行エリアの前記文字列エリア内での位置及びサイズを判定する行エリア判定部と、
前記マーキングの前記原稿画像内での位置及びサイズと、前記1以上の行エリアの前記文字列エリア内での位置及びサイズとに基づき、前記マーキングが属する行エリア内での前記マーキングの位置及びサイズを判定し、
前記マーキングが属する行エリアを、前記文字列に重畳されたマーキングと、前記マーキングが重畳されていない文字列とに分割する
行エリア分割部と
をさらに具備し、
前記画像変換部は、前記行エリア分割部が分割して得られた各前記文字列を拡大及び縮小することにより、前記拡大文字列及び前記縮小文字列を作成する。
The information processing apparatus is
A marking determination unit that determines the position and size of the marking extracted by the marking extraction unit within the document image;
A character string area determination unit that determines the position and size of the character string area in the document image;
A line area determination unit that divides the character string area into one or more line areas and determines the position and size of the one or more line areas in the character string area;
The position and size of the marking in the line area to which the marking belongs, based on the position and size of the marking in the original image and the position and size of the one or more line areas in the character string area To determine
The apparatus further comprises a line area division unit for dividing a line area to which the markings belong to a marking superimposed on the character string and a character string on which the marking is not superimposed.
The image conversion unit generates the enlarged character string and the reduced character string by enlarging and reducing the character strings obtained by dividing the line area dividing unit.

このように、マーキングが属する行エリアを、文字列に重畳されたマーキングと、マーキングが重畳されていない文字列とに分割することで、文字列に重畳されたマーキングを過不足無く拡大して拡大文字列を作成することができる。   In this manner, the line area to which the markings belong is divided into the marking superimposed on the character string and the character string not having the marking superimposed thereon, whereby the marking superimposed on the character string is enlarged and expanded without excess or deficiency. You can create a string.

情報処理装置は、
前記文字列に重畳されたマーキングから前記拡大文字列を作成するための拡大率を計算し、又は
前記マーキングが重畳されていない文字列から前記縮小文字列を作成するための縮小率を計算する
変換率計算部
をさらに具備する。
The information processing apparatus is
The enlargement ratio for creating the expanded character string is calculated from the marking superimposed on the character string, or the reduction ratio for creating the reduced character string from the character string on which the marking is not superimposed is calculated It further comprises a rate calculator.

前記変換率計算部は、
前記拡大文字列を含む行エリアの、前記行エリア内で文字が並ぶ方向での長さが、拡大及び縮小前の前記行エリアの同方向での長さ以下となるように、
予め定められた前記縮小率をもとに、前記拡大率を計算し、又は
予め定められた前記拡大率をもとに、前記縮小率を計算する。
The conversion rate calculation unit
The length of the line area including the expanded character string in the direction in which the characters are arranged in the line area is equal to or less than the length in the same direction of the line area before enlargement and reduction.
The enlargement ratio is calculated based on the predetermined reduction ratio, or the reduction ratio is calculated based on the predetermined enlargement ratio.

このように、拡大文字列を含む行エリアの、行エリア内で文字が並ぶ方向での長さが、拡大及び縮小前の行エリアの同方向での長さ以下とすることで、拡大文字列を含む行エリアの長さが相対的に長くなるにも拘らず改行等する必要がないため、元の原稿画像のレイアウトを極力活かしつつ、空欄画像のサイズを相対的に大きくすることができる。   In this manner, the length of the line area including the expanded character string in the direction in which the characters are arranged in the line area is equal to or less than the length in the same direction of the line area before enlargement and reduction. Although it is not necessary to perform line feed or the like despite the fact that the length of the line area including the is relatively long, it is possible to make the size of the blank image relatively large while making the most of the layout of the original document image.

前記変換率計算部は、
前記拡大文字列を含む行エリアの、前記行エリア内で文字が並ぶ方向での長さが、拡大及び縮小前の前記行エリアの長さ以下となる範囲で、
前記拡大文字列が最大サイズとなるように、予め定められた前記縮小率をもとに、前記拡大率を計算し、又は
前記縮小文字列が最大サイズとなるように、予め定められた前記拡大率をもとに、前記縮小率を計算する。
The conversion rate calculation unit
In a range in which the length of the line area including the expanded character string in the direction in which characters are arranged in the line area is equal to or less than the length of the line area before enlargement and reduction,
The enlargement ratio is calculated based on the reduction ratio determined in advance so that the expanded character string has the maximum size, or the enlargement determined in advance such that the reduced character string has the maximum size. The reduction rate is calculated based on the rate.

このように、拡大文字列を最大サイズとすることで、空欄画像のサイズを最大サイズにすることができる。縮小文字列を最大サイズとすることで、縮小文字列の視認性を高めることができる。   Thus, the size of the blank image can be made the maximum size by setting the enlarged character string as the maximum size. By setting the size of the reduced text to the maximum size, the visibility of the reduced text can be improved.

前記変換率計算部は、
前記拡大文字列を含む文字列エリアの、前記1以上の行エリアが並ぶ方向での長さが、拡大及び縮小前の前記文字列エリアの同方向での長さ以下となるように、
予め定められた前記縮小率をもとに、前記拡大率を計算し、又は
予め定められた前記拡大率をもとに、前記縮小率を計算する。
The conversion rate calculation unit
The length of the character string area including the expanded character string in the direction in which the one or more line areas are arranged is equal to or less than the length in the same direction of the character string area before enlargement and reduction.
The enlargement ratio is calculated based on the predetermined reduction ratio, or the reduction ratio is calculated based on the predetermined enlargement ratio.

このように、拡大文字列を含む文字列エリアの、1以上の行エリアが並ぶ方向での長さが、拡大及び縮小前の文字列エリアの同方向での長さ以下とすることで、拡大文字列を含む文字列エリアの長さが元の原稿画像に比べて長くなるにも拘らず改頁等する必要がないため、元の原稿画像のレイアウトを極力活かしつつ、空欄画像のサイズを相対的に大きくすることができる。   As described above, the length of the character string area including the enlarged character string in the direction in which one or more line areas are arranged is equal to or less than the length in the same direction of the character string area before enlargement and reduction. Since it is not necessary to form a page break despite the fact that the length of the character string area including the character string is longer than that of the original document image, the size of the blank image is relative while taking full advantage of the original document image layout. Can be made larger.

前記変換率計算部は、
前記拡大文字列を含む文字列エリアの、前記1以上の行エリアが並ぶ方向での長さが、拡大及び縮小前の前記文字列エリアの長さ以下となる範囲で、
前記拡大文字列が最大サイズとなるように、予め定められた前記縮小率をもとに、前記拡大率を計算し、又は
前記縮小文字列が最大サイズとなるように、予め定められた前記拡大率をもとに、前記縮小率を計算する。
The conversion rate calculation unit
In a range in which the length of the character string area including the expanded character string in the direction in which the one or more line areas are arranged is equal to or less than the length of the character string area before enlargement and reduction,
The enlargement ratio is calculated based on the reduction ratio determined in advance so that the expanded character string has the maximum size, or the enlargement determined in advance such that the reduced character string has the maximum size. The reduction rate is calculated based on the rate.

このように、拡大文字列を最大サイズとすることで、空欄画像のサイズを最大サイズにすることができる。縮小文字列を最大サイズとすることで、縮小文字列の視認性を高めることができる。   Thus, the size of the blank image can be made the maximum size by setting the enlarged character string as the maximum size. By setting the size of the reduced text to the maximum size, the visibility of the reduced text can be improved.

上記目的を達成するため、本発明の一形態に係るプログラムは、
情報処理装置を、
マーキングが重畳された文字列と、マーキングが重畳されていない文字列とを含む文字列エリアを有する原稿画像から、前記マーキングを抽出するマーキング抽出部と、
前記文字列に重畳されたマーキングを拡大して拡大文字列を作成し、前記マーキングが重畳されていない文字列を縮小して縮小文字列を作成する画像変換部
として機能させる。
In order to achieve the above object, a program according to an aspect of the present invention is
An information processor,
A marking extraction unit for extracting the marking from a document image having a character string area including a character string on which the marking is superimposed and a character string on which the marking is not superimposed;
The marking superimposed on the character string is enlarged to create an enlarged character string, and the character string on which the marking is not superimposed is reduced to function as an image conversion unit that generates a reduced character string.

本発明によれば、文字列に重畳されたマーキングを含む原稿画像から、マーキングされた文字列を解答とする穴埋め問題を作成することが可能な情報処理装置及びプログラムにおいて、ユーザーの利便性が向上する。   According to the present invention, the convenience of the user is improved in the information processing apparatus and program capable of creating a fill-in-blank problem in which the marked character string is the answer from the document image including the marking superimposed on the character string. Do.

画像形成装置のハードウェア構成を示すブロック図である。FIG. 2 is a block diagram showing a hardware configuration of the image forming apparatus. 画像形成装置の機能的構成を示すブロック図である。FIG. 2 is a block diagram showing a functional configuration of the image forming apparatus. 画像形成装置の動作を示すフローチャートである。5 is a flowchart showing an operation of the image forming apparatus. 画像形成装置の動作を説明するための図である。FIG. 6 is a diagram for explaining the operation of the image forming apparatus. 拡大率又は縮小率を算出するための数式に用いる変数を説明するための図である。It is a figure for demonstrating the variable used for the numerical formula for calculating an expansion rate or a reduction rate. 実施例1における拡大率又は縮小率の計算手法を説明するための図である。FIG. 7 is a diagram for explaining a calculation method of the enlargement ratio or the reduction ratio in the first embodiment. 実施例2における拡大率又は縮小率の計算手法を説明するための図である。FIG. 8 is a diagram for explaining a calculation method of the enlargement ratio or the reduction ratio in the second embodiment. 実施例3における拡大率又は縮小率の計算手法を説明するための図である。FIG. 16 is a diagram for explaining a calculation method of the enlargement ratio or the reduction ratio in the third embodiment. 実施例4における拡大率又は縮小率の計算手法を説明するための図である。FIG. 18 is a diagram for explaining a calculation method of the enlargement ratio or the reduction ratio in the fourth embodiment. 実施例5における拡大率又は縮小率の計算手法を説明するための図である。FIG. 18 is a diagram for explaining a calculation method of the enlargement ratio or the reduction ratio in the fifth embodiment.

以下、図面を参照しながら、本発明の実施形態を説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings.

(1.画像形成装置のハードウェア構成)
図1は、本発明の一実施形態に係る画像形成装置のハードウェア構成を示すブロック図である。
(1. Hardware configuration of image forming apparatus)
FIG. 1 is a block diagram showing a hardware configuration of an image forming apparatus according to an embodiment of the present invention.

本発明の各実施形態に係る情報処理装置は、画像形成装置(例えば、MFP、Multifunction Peripheral)であり、以下MFPと称する。   An information processing apparatus according to each embodiment of the present invention is an image forming apparatus (for example, an MFP or multifunction peripheral), and is hereinafter referred to as an MFP.

MFP1は、制御部11を備える。制御部11は、CPU(Central Processing Unit)、RAM(Random Access Memory)、ROM(Read Only Memory)及び専用のハードウェア回路等から構成され、MFP1の全体的な動作制御を司る。MFP1を各機能部(後述)として機能させるコンピュータプログラムは、ROM等の非一過性の記憶媒体に記憶される。   The MFP 1 includes a control unit 11. The control unit 11 includes a central processing unit (CPU), a random access memory (RAM), a read only memory (ROM), a dedicated hardware circuit, and the like, and controls the overall operation of the MFP 1. A computer program that causes the MFP 1 to function as each functional unit (described later) is stored in a non-transitory storage medium such as a ROM.

制御部11は、画像読取部12、画像処理部14、画像メモリー15、画像形成部16、操作部17、記憶部18、ネットワーク通信部13等と接続されている。制御部11は、接続されている上記各部の動作制御や、各部との間での信号又はデータの送受信を行う。   The control unit 11 is connected to the image reading unit 12, the image processing unit 14, the image memory 15, the image forming unit 16, the operation unit 17, the storage unit 18, the network communication unit 13 and the like. The control unit 11 controls the operation of each of the connected units, and transmits and receives signals or data to and from each unit.

制御部11は、ユーザーから、操作部17またはネッワーク接続されたパーソナルコンピュータ(図示せず)等を通じて入力されるジョブの実行指示に従って、スキャナ機能、印刷機能及びコピー機能機能などの各機能についての動作制御を実行するために必要な機構の駆動及び処理を制御する。   The control unit 11 operates the respective functions such as the scanner function, the print function and the copy function according to a job execution instruction input from the user through the operation unit 17 or a personal computer (not shown) connected to the network or the like. Control the drive and processing of the mechanism necessary to carry out the control.

画像読取部12は、原稿から画像を読み取る。   The image reading unit 12 reads an image from a document.

画像処理部14は、画像読取部12で読み取られた画像の画像データを必要に応じて画像処理する。例えば、画像処理部14は、画像読取部12により読み取られた画像が画像形成された後の品質を向上させるために、シェーディング補正等の画像処理を行う。   The image processing unit 14 processes the image data of the image read by the image reading unit 12 as necessary. For example, the image processing unit 14 performs image processing such as shading correction in order to improve the quality after the image read by the image reading unit 12 is formed.

画像メモリー15は、画像読取部12による読み取りで得られた原稿画像のデータを一時的に記憶したり、画像形成部16での印刷対象となるデータを一時的に記憶したりする領域を有する。   The image memory 15 has an area for temporarily storing data of a document image obtained by reading by the image reading unit 12 and temporarily storing data to be printed by the image forming unit 16.

画像形成部16は、画像読取部12で読み取られた画像データ等の画像形成を行う。   The image forming unit 16 forms an image of image data or the like read by the image reading unit 12.

操作部17は、MFP1が実行可能な各種動作及び処理についてユーザーからの指示を受け付けるタッチパネル部および操作キー部を備える。タッチパネル部は、タッチパネルが設けられたLCD(Liquid Crystal Display)等の表示部17aを備えている。   The operation unit 17 includes a touch panel unit and an operation key unit that receive instructions from the user regarding various operations and processes that can be executed by the MFP 1. The touch panel unit includes a display unit 17 a such as an LCD (Liquid Crystal Display) provided with a touch panel.

ネットワーク通信部13は、ネットワークに接続するためのインタフェースである。   The network communication unit 13 is an interface for connecting to a network.

記憶部18は、画像読取部12によって読み取られた原稿画像等を記憶する、HDD(Hard Disk Drive)などの大容量の記憶装置である。   The storage unit 18 is a large-capacity storage device such as a hard disk drive (HDD) that stores an original image and the like read by the image reading unit 12.

(2.画像形成装置の機能的構成)
図2は、画像形成装置の機能的構成を示すブロック図である。
(2. Functional configuration of image forming apparatus)
FIG. 2 is a block diagram showing a functional configuration of the image forming apparatus.

MFP1は、情報処理プログラムを実行することで、マーキング抽出部101、マーキング判定部102、文字列エリア判定部103、行エリア判定部104、行エリア分割部107、変換率計算部108、画像変換部109、空欄作成部105及び画像合成部106として機能する。   By executing an information processing program, MFP 1 executes marking extraction unit 101, marking determination unit 102, character string area determination unit 103, line area determination unit 104, line area division unit 107, conversion rate calculation unit 108, and image conversion unit. 109 functions as the blank space creation unit 105 and the image combining unit 106.

マーキング抽出部101は、画像読取部12が読み取った原稿画像から、文字列に重畳されたマーキングを抽出する。   The marking extraction unit 101 extracts the marking superimposed on the character string from the document image read by the image reading unit 12.

マーキング判定部102は、マーキング抽出部101が抽出したマーキングの、原稿画像内での位置及びサイズを判定する。   The marking determination unit 102 determines the position and size of the marking extracted by the marking extraction unit 101 in the document image.

文字列エリア判定部103は、文字列エリアの、原稿画像内での位置及びサイズを判定する。   The character string area determination unit 103 determines the position and size of the character string area in the document image.

行エリア判定部104は、文字列エリア判定部103が判定した文字列エリアを、複数の行エリアに分割する。行エリア判定部104は、複数の行エリアの、文字列エリア内での位置及びサイズを判定する。   The line area determination unit 104 divides the character string area determined by the character string area determination unit 103 into a plurality of line areas. The line area determination unit 104 determines the position and size of the plurality of line areas in the character string area.

行エリア分割部107は、マーキング抽出部101が抽出したマーキングの、このマーキングが属する行エリア内での位置及びサイズを判定する。行エリア分割部107は、マーキングが属する行エリアを、文字列に重畳されたマーキングと、マーキングが重畳されていない文字列とに分割する。なお、本実施形態において、「文字列」は、1文字からなる単位、又は連続する複数の文字からなる単位を意味する。   The row area division unit 107 determines the position and size of the marking extracted by the marking extraction unit 101 in the row area to which the marking belongs. The line area division unit 107 divides the line area to which the markings belong to a marking superimposed on a character string and a character string on which the marking is not superimposed. In the present embodiment, “character string” means a unit consisting of one character or a unit consisting of a plurality of consecutive characters.

変換率計算部108は、文字列に重畳されたマーキングを拡大するための拡大率、又は、マーキングが重畳されていない文字列を縮小するための縮小率を計算する。   The conversion ratio calculation unit 108 calculates an enlargement ratio for enlarging the marking superimposed on the character string, or a reduction ratio for reducing the character string on which the marking is not superimposed.

画像変換部109は、文字列に重畳されたマーキングを拡大することにより、拡大文字列を作成する。画像変換部109は、マーキングが重畳されていない文字列を縮小することにより、縮小文字列を作成する。画像変換部109は、作成した拡大文字列及び縮小文字列を、出力対象となる原稿に対してレイアウト配置する。   The image conversion unit 109 creates an enlarged character string by enlarging the marking superimposed on the character string. The image conversion unit 109 generates a reduced character string by reducing the character string on which the marking is not superimposed. The image conversion unit 109 lays out and arranges the created enlarged character string and reduced character string with respect to the document to be output.

空欄作成部105は、画像変換部109が作成した拡大文字列に重畳する空欄画像を作成する。   The blank creating unit 105 creates a blank image to be superimposed on the enlarged character string created by the image conversion unit 109.

画像合成部106は、画像変換部109が作成した縮小文字列の画像と、空欄作成部105が作成した空欄画像とを、レイアウト通りに配置して、合成画像を作成する。   The image combining unit 106 creates a combined image by arranging the image of the reduced character string created by the image conversion unit 109 and the blank image created by the blank creating unit 105 according to the layout.

(3.画像形成装置の動作)
図3は、画像形成装置の動作を示すフローチャートである。図4は、画像形成装置の動作を説明するための図である。
(3. Operation of image forming apparatus)
FIG. 3 is a flowchart showing the operation of the image forming apparatus. FIG. 4 is a diagram for explaining the operation of the image forming apparatus.

前提として、原稿(典型的には、紙)には、テキストデータとしての文字列が印字されている。あるいは、原稿には、画像データとしての文字列の画像が形成されている(文字列が印字された原稿がコピーされている)。そして、文字列全体のうち複数の一部の文字列(熟語、文節、数値等)が、ユーザーである問題作成者により、蛍光マーカーペン等を用いて手書きでマーキングされている。マーキングされた文字列は、穴埋め問題において、解答となる文字列である。   As a premise, a character string as text data is printed on a document (typically, paper). Alternatively, an image of a character string as image data is formed on the document (the document on which the character string is printed is copied). Then, a plurality of partial character strings (idioms, phrases, numerical values, etc.) of the entire character string are marked by handwriting using a fluorescent marker pen or the like by the user who is the user who is the user. The marked character string is a character string that is the answer in the fill-in-the-blank question.

画像読取部12は、原稿を光学的にスキャンし、原稿画像を読み取る(ステップS101)。「原稿画像」は、全体的に見れば多数の文字列を含む文書原稿の画像データであり、複数の文字列に重畳された複数のマーキングを含む。「文字列」は、語句(単語、文節、文章等)、数値等であり、厳密には、その画像である。   The image reading unit 12 optically scans an original and reads an image of the original (step S101). The “original image” is image data of an original document including a large number of character strings as a whole, and includes a plurality of markings superimposed on a plurality of character strings. The “character string” is a word (word, segment, sentence, etc.), a numerical value, etc., and strictly speaking, the image.

マーキング抽出部101は、画像読取部12が読み取った原稿画像から、文字列に重畳されたマーキングを抽出する(ステップS102)。具体的には、マーキング抽出部101は、背景(白色等)と明度及び/又は彩度等が異なり、特定の形状及びサイズ(特定の幅の帯状の長方形等)の領域を、マーキングとして抽出する。   The marking extraction unit 101 extracts the marking superimposed on the character string from the document image read by the image reading unit 12 (step S102). Specifically, the marking extraction unit 101 extracts an area having a specific shape and size (a band-like rectangle having a specific width, etc.) different from the background (white, etc.) and the lightness and / or saturation etc. as a marking. .

マーキング判定部102は、マーキング抽出部101が抽出したマーキング(図4の左下の図に示すハッチング部分)の、原稿画像内での位置及びサイズを判定する(ステップS103、図4参照)。具体的には、マーキング判定部102は、原稿画像全体(余白(マージン)を含む)を座標系全体として、マーキングの位置及びサイズを座標として算出する。   The marking determination unit 102 determines the position and size of the marking (the hatched portion shown in the lower left of FIG. 4) extracted by the marking extraction unit 101 in the document image (see step S103 and FIG. 4). Specifically, the marking determination unit 102 calculates the position and size of the marking as coordinates, with the entire document image (including the margin (margin)) as the entire coordinate system.

一方、ステップS102及びS103と並行して、文字列エリア判定部103は、文字列エリアの、原稿画像内での位置及びサイズを判定する(ステップS104、図4参照)。「文字列エリア」は、原稿画像中、マーキングが重畳された文字列と、マーキングが重畳されていない文字列とを含む文字列の集合体が存在するエリアである。具体的には、文字列エリア判定部103は、原稿画像全体(余白(マージン)を含む)を座標系全体として、文字列エリアの位置及びサイズを座標として算出する。   On the other hand, in parallel with steps S102 and S103, the character string area determination unit 103 determines the position and size of the character string area in the document image (see step S104 and FIG. 4). The “character string area” is an area in the original image in which a collection of character strings including a character string on which the marking is superimposed and a character string on which the marking is not superimposed is present. Specifically, the character string area determination unit 103 calculates the position and size of the character string area as coordinates, with the entire document image (including the margin (margin)) as the entire coordinate system.

行エリア判定部104は、文字列エリア判定部103が判定した文字列エリアを、複数の行エリアに分割する。「行エリア」は、文字列エリア内に存在する文字列の集合体を、1行ごとに分割して得られたエリアである。言い換えれば、文書原稿では、複数の文字が一方向に連続して並んで1行を成すのが一般的であるが、1行に連なる文字列を含む、文字列エリアの一端から他端までを「行エリア」とする。また、ある1行の文字列を含む「行エリア」と、次の1行の文字列を含む「行エリア」とは隣り合う。言い換えれば、隣り合う2つの行エリアの間に、空間が存在しない。図4の中央の図に示す例では、破線で囲まれた矩形の行エリアが隙間なく連なっている。行エリア判定部104は、文字列エリアを分割して得た複数の行エリアの、文字列エリア内での位置及びサイズを判定する(ステップS105、図4参照)。具体的には、行エリア判定部104は、原稿画像全体を座標系全体として、文字列エリア内での行エリアの位置及びサイズを座標として算出する。   The line area determination unit 104 divides the character string area determined by the character string area determination unit 103 into a plurality of line areas. The “line area” is an area obtained by dividing a set of character strings present in the character string area into lines. In other words, in a document original, it is general that a plurality of characters are continuously arranged in one direction to form one line, but from one end to the other end of the character string area including a character string continuous in one line "Line area" In addition, a "line area" containing a character string of one line and a "line area" containing a character string of the next line are adjacent to each other. In other words, there is no space between two adjacent row areas. In the example shown in the center of FIG. 4, rectangular line areas surrounded by broken lines are connected without gaps. The line area determination unit 104 determines the position and size in the character string area of a plurality of line areas obtained by dividing the character string area (see step S105, FIG. 4). Specifically, the line area determination unit 104 calculates the position and size of the line area in the character string area as coordinates with the entire original image as the entire coordinate system.

行エリア分割部107は、マーキング抽出部101が抽出(ステップS102)したマーキングの、このマーキングが属する行エリア内での位置及びサイズを判定する。具体的には、行エリア分割部107は、マーキング判定部102が判定(ステップS103)したマーキングの原稿画像内での位置及びサイズと、行エリア判定部104が判定(ステップS105)した複数の行エリアの文字列エリア内での位置及びサイズとを取得する。行エリア分割部107は、マーキングの原稿画像内での位置及びサイズを、複数の行エリアの文字列エリア内での位置及びサイズに反映することで、このマーキングの、マーキングが属する行エリア内での位置及びサイズを判定する。図4の右側の図に示す例では、上から4つ目と6つ目の行エリア内のマーキング(ハッチング部分)の行エリア内での位置及びサイズが判定される。そして、行エリア分割部107は、マーキングが属する行エリアを、文字列に重畳されたマーキングと、マーキングが重畳されていない文字列とに分割する(ステップS106、図4参照)。具体的には、行エリア分割部107は、マーキングの位置及びサイズを座標として算出し、マーキングが重畳されていない文字列の位置及びサイズを座標として算出する。   The row area division unit 107 determines the position and size of the marking extracted by the marking extraction unit 101 (step S102) in the row area to which the marking belongs. Specifically, the row area dividing unit 107 determines the position and size of the marking determined by the marking determination unit 102 (step S103) in the document image, and the plurality of rows determined by the row area determination unit 104 (step S105). Get the position and size in the text area of the area. The row area division unit 107 reflects the position and size of the marking in the document image on the position and size in the character string area of the plurality of row areas, so that in the row area to which the marking of this marking belongs. Determine the position and size of the In the example shown in the right side of FIG. 4, the position and size of the marking (hatched portion) in the fourth and sixth row areas from the top are determined in the row area. Then, the line area dividing unit 107 divides the line area to which the markings belong to the marking superimposed on the character string and the character string on which the marking is not superimposed (see step S106 and FIG. 4). Specifically, the line area dividing unit 107 calculates the position and size of the marking as coordinates, and calculates the position and size of the character string on which the marking is not superimposed as coordinates.

変換率計算部108は、行エリア分割部107が分割(ステップS106)して得られた、文字列に重畳されたマーキングを拡大するための拡大率、又は、マーキングが重畳されていない文字列を縮小するための縮小率を計算する(ステップS107)。変換率計算部108は、予め定められた拡大率及び縮小率の何れか一方をもとに、拡大率及び縮小率の他方を計算する。拡大率が予め定められている場合とは、例えば、ユーザーが操作部17を用いて拡大率をMFP1に予め設定した場合や、ユーザーが操作部17を用いて空欄サイズをMFP1に予め設定した場合(元の文字サイズと空欄サイズとから、拡大率が予め定められる。)である。縮小率が予め定められている場合とは、例えば、ユーザーが操作部17を用いて縮小率をMFP1に予め設定した場合や、ユーザーが操作部17を用いて縮小後の文字サイズをMFP1に予め設定した場合(元の(縮小前の)文字サイズと縮小後の文字サイズとから、縮小率が予め定められる。)である。   The conversion ratio calculation unit 108 uses the enlargement ratio for enlarging the marking superimposed on the character string obtained by the line area division unit 107 dividing (step S106), or the character string on which the marking is not superimposed. A reduction ratio for reduction is calculated (step S107). The conversion ratio calculation unit 108 calculates the other of the enlargement ratio and the reduction ratio based on any one of the predetermined enlargement ratio and the reduction ratio. When the enlargement ratio is predetermined, for example, when the user sets the enlargement ratio in advance to MFP 1 using operation unit 17 or when the user sets the blank size in MFP 1 beforehand using operation unit 17 (The enlargement ratio is determined in advance from the original character size and the blank size). When the reduction ratio is predetermined, for example, the user sets in advance the reduction ratio in MFP 1 using operation unit 17 or the user uses the operation unit 17 to reduce the character size after reduction in MFP 1 in advance. In the case of setting (the reduction ratio is determined in advance from the original (before reduction) character size and the character size after reduction).

望ましくは、変換率計算部108は、拡大文字列を含む行エリアの、行エリア内で文字が並ぶ方向での長さが、拡大及び縮小前の行エリアの同方向での長さ以下となるように、拡大率又は縮小率を計算する。より望ましくは、変換率計算部108は、拡大文字列を含む行エリアの、行エリア内で文字が並ぶ方向での長さが、拡大及び縮小前の行エリアの同方向での長さ以下となる範囲で、拡大文字列が最大サイズとなるように拡大率を計算し、又は縮小文字列が最大サイズとなるように縮小率を計算する。これにより、拡大文字列を含む行エリアの長さが相対的に長くなるにも拘らず改行等する必要がないため、元の原稿画像のレイアウトを極力活かしつつ、空欄画像のサイズを相対的に大きくすることができる。   Preferably, the conversion ratio calculation unit 108 determines that the length of the line area including the expanded character string in the direction in which the characters are arranged in the line area is less than or equal to the length of the line area before enlargement and reduction in the same direction. As such, calculate the enlargement or reduction ratio. More preferably, the conversion rate calculation unit 108 determines that the length of the line area including the expanded character string in the direction in which the characters are arranged in the line area is less than or equal to the length of the line area before enlargement and reduction in the same direction. In such a range, the enlargement ratio is calculated so that the enlargement string has the maximum size, or the reduction ratio is calculated so that the reduction string has the maximum size. As a result, there is no need to perform a line feed or the like despite the fact that the length of the line area including the enlarged character string is relatively long, so the blank image size is relatively increased while making the most of the original document image layout. It can be enlarged.

望ましくは、変換率計算部108は、拡大文字列を含む文字列エリアの、複数の行エリアが並ぶ方向での長さが、拡大及び縮小前の文字列エリアの同方向での長さ以下となるように、拡大率又は縮小率を計算する。より望ましくは、変換率計算部108は、拡大文字列を含む文字列エリアの、複数の行エリアが並ぶ方向での長さが、拡大及び縮小前の文字列エリアの同方向での長さ以下となる範囲で、拡大文字列が最大サイズとなるように拡大率を計算し、又は縮小文字列が最大サイズとなるように縮小率を計算する。これにより、拡大文字列を含む文字列エリアの長さが元の原稿画像に比べて長くなるにも拘らず改頁等する必要がないため、元の原稿画像のレイアウトを極力活かしつつ、空欄画像のサイズを相対的に大きくすることができる。   Preferably, the conversion rate calculation unit 108 determines that the length of the character string area including the expanded character string in the direction in which the plurality of line areas are arranged is equal to or less than the length in the same direction of the character string area before enlargement and reduction. To calculate the enlargement or reduction ratio. More preferably, the conversion ratio calculation unit 108 determines that the length of the character string area including the expanded character string in the direction in which the plurality of line areas are arranged is less than or equal to the length in the same direction of the character string area before enlargement and reduction. The enlargement ratio is calculated so that the expanded character string has the maximum size, or the reduction ratio is calculated so that the reduced character string has the maximum size. As a result, since it is not necessary to form a page break etc. despite the fact that the length of the character string area including the enlarged character string is longer than that of the original document image, the blank image is obtained while making full use of the original document image layout. The size of can be made relatively large.

変換率計算部108による拡大率及び縮小率の計算手法は、後述の各実施例において、より具体的に説明する。   The calculation method of the enlargement ratio and the reduction ratio by the conversion ratio calculation unit 108 will be described more specifically in each embodiment described later.

画像変換部109は、行エリア分割部107が分割(ステップS106)して得られた、文字列に重畳されたマーキングを、予め定められた又は変換率計算部108が計算(ステップS107)した拡大率で拡大することにより、拡大文字列(厳密には、拡大文字列の画像)を作成する。そして、画像変換部109は、行エリア分割部107が分割(ステップS106)して得られた、マーキングが重畳されていない文字列を、予め定められた又は変換率計算部108が計算(ステップS107)した縮小率で縮小することにより、縮小文字列(厳密には、縮小文字列の画像)を作成する(ステップS108)。画像変換部109は、作成した拡大文字列及び縮小文字列を、出力対象となる原稿に対してレイアウト配置する(ステップS109)。「レイアウト」とは、例えば、複数の行エリアをそれぞれ「中央揃え」とするか、「左揃え」(横書きの場合)とするか、等である。   The image conversion unit 109 enlarges the marking superimposed on the character string obtained by dividing the line area division unit 107 (step S106), which is determined in advance or calculated by the conversion ratio calculation unit 108 (step S107). Create an expanded string (strictly, an image of the expanded string) by expanding at a rate. Then, the image conversion unit 109 calculates in advance a character string on which the marking is not superimposed, obtained by the line area division unit 107 dividing (step S106), or the conversion ratio calculation unit 108 calculates (step S107). The reduced character string (strictly speaking, an image of the reduced character string) is created by performing reduction at the reduced ratio (step S108). The image conversion unit 109 lays out and arranges the created enlarged character string and reduced character string with respect to the document to be output (step S109). The “layout” is, for example, whether the plurality of line areas are respectively “center-aligned” or “left-aligned” (in the case of horizontal writing), or the like.

空欄作成部105は、画像変換部109が作成(ステップS108)した拡大文字列に重畳する空欄画像を作成する(ステップS110)。空欄画像は、単なるブランクでも良いし、予め決められたスタイル(下線、矩形枠、括弧、符号等)を含んでも良い。   The blank creating unit 105 creates a blank image to be superimposed on the enlarged character string created by the image conversion unit 109 (step S108) (step S110). The blank image may be a simple blank or may include a predetermined style (underline, rectangular frame, parentheses, sign, etc.).

画像合成部106は、画像変換部109が作成(ステップS108)した縮小文字列の画像と、空欄作成部105が作成(ステップS110)した空欄画像とを、レイアウト(ステップS109)通りに配置して、合成画像を作成する(ステップS111)。   The image combining unit 106 arranges the image of the reduced character string created by the image conversion unit 109 (step S108) and the blank image created by the blank space creation unit 105 (step S110) according to the layout (step S109). , Create a composite image (step S111).

画像形成部16は、画像合成部106が作成した合成画像を、用紙に形成(プリントアウト)する(ステップS112)。   The image forming unit 16 forms (prints out) the composite image created by the image combining unit 106 on a sheet (step S112).

(4.実施例)
以下の各実施例において、変換率計算部108による拡大率又は縮小率の計算手法を、具体的に説明する。
(4. Example)
In each of the following embodiments, a method of calculating the enlargement ratio or the reduction ratio by the conversion ratio calculation unit 108 will be specifically described.

図5は、拡大率又は縮小率を算出するための数式に用いる変数を説明するための図である。   FIG. 5 is a diagram for explaining variables used in an equation for calculating the enlargement ratio or the reduction ratio.

各実施例では、文字が「横書き」されているものとする。以下、行エリア内で文字が並ぶ方向(図5の横方向)での長さを、「幅」と定義する。文字列エリア内で行エリアが並ぶ方向(図5の縦方向)での長さを、「高さ」と定義する。拡大率又は縮小率を算出するための数式に用いる変数を、以下に定義する。   In each embodiment, characters are assumed to be "horizontally written". Hereinafter, the length in the direction in which characters are arranged in the line area (horizontal direction in FIG. 5) is defined as “width”. The length in the line area alignment direction (vertical direction in FIG. 5) in the character string area is defined as “height”. The variables used in the formula for calculating the enlargement ratio or reduction ratio are defined below.

以下は全て、画像読取部12が読み取った原稿画像内での値である。
1つの文字列エリアに含まれる、行エリアの総数:L
1つの文字列エリアに含まれる、マーキング(図5に示すハッチング部分)を含む行エリアの総数:L
文字列エリアの幅:X
文字列エリアの高さ:Y
1つの行エリアに含まれる、文字列に重畳されたマーキングの合計幅:x
文字列に重畳された各マーキングの高さ:y
マーキングを含む行エリアに含まれる、マーキングが重畳されていない文字列の合計幅:x
マーキングが重畳されていない文字列の高さ:y
The following are all values in the document image read by the image reading unit 12.
Total number of line areas included in one string area: L
Total number of line areas including markings (hatched portions shown in FIG. 5) included in one string area: L M
String area width: X
String area height: Y
Total width of the marking superimposed on the text contained in one line area: x M
Height of each marking superimposed on the text: y M
Total width of non-marking superimposed string included in line area including marking: x N
String height without marking superimposed: y N

文字列に重畳されたマーキングから拡大文字列を作成するための拡大率:α(α>1)
マーキングが重畳されていない文字列から縮小文字列を作成するための縮小率:β(0<β<1)
以下の各実施例で示す数式は、何れも、拡大率α及び縮小率βを含む。拡大率α及び縮小率βの何れか一方は、変数として予め定められる。結果的に、拡大率α及び縮小率βの他方を算出することができる。
Magnification factor for creating enlarged character strings from markings superimposed on character strings: α (α> 1)
Reduction ratio for creating a reduced character string from a character string in which markings are not superimposed: β (0 <β <1)
All formulas shown in the following embodiments include the enlargement factor α and the reduction factor β. One of the enlargement factor α and the reduction factor β is predetermined as a variable. As a result, the other of the enlargement factor α and the reduction factor β can be calculated.

画像変換部109による拡大/縮小後のサイズを、便宜的に、以下のように称する。これらは変数ではない。
マーキングを含む行エリアの幅:X'
文字列エリアの高さ:Y'
The size after enlargement / reduction by the image conversion unit 109 is conveniently referred to as follows. These are not variables.
Width of line area including marking: X '
String area height: Y '

(4−1.実施例1)
図6は、実施例1における拡大率又は縮小率の計算手法を説明するための図である。
(4-1. Example 1)
FIG. 6 is a diagram for explaining a calculation method of the enlargement ratio or the reduction ratio in the first embodiment.

図6は、1つの文字列エリアに含まれる複数の行エリアのうち、1つの行エリアに、1つのマーキングと、1つのマーキング(図6に示すハッチング部分)が重畳されていない文字列が含まれる場合を示す。この場合、数1及び数2が成立すればよい。   FIG. 6 shows one line area out of a plurality of line areas included in one character string area, including one marking and a character string on which one marking (hatched portion shown in FIG. 6) is not superimposed. Show the case. In this case, Equations 1 and 2 may be established.

(数1)
Y'=αy+β(y+y+y+・・・+y)≦Y
(1)
Y ′ = αy M + β (y 1 + y 3 + y 4 +... + Y L ) ≦ Y

αyは、拡大後の、マーキングを含む行エリアの高さの合計値である。
β(y+y+y+・・・+y)は、縮小後の、マーキングを含まない複数の行エリアの高さの合計値である。
α y M is the sum of the heights of the row areas including the markings after enlargement.
β (y 1 + y 3 + y 4 +... + y L ) is the total value of the heights of the plurality of line areas not including the marking after reduction.

Y'≦Yが成立する。すなわち、拡大/縮小後の文字列エリアの高さY'を、拡大/縮小前の文字列エリアの高さY以下に収めることができる。   Y ′ ≦ Y holds. That is, the height Y ′ of the character string area after enlargement / reduction can be made equal to or less than the height Y of the character string area before enlargement / reduction.

(数2)
X'=αx+βx≦X
(2)
X ′ = αx M + βx N ≦ X

αxは、拡大後の、マーキングの幅の合計値である。
βxは、縮小後の、マーキングが重畳されていない文字列の幅の合計値である。
α x M is the sum of the widths of the markings after enlargement.
β x N is the total value of the widths of the reduced character strings that are not superimposed on markings.

X'≦Xが成立する。すなわち、拡大/縮小後のマーキングを含む行エリアの幅X'を、拡大/縮小前の文字列エリアの幅X以下に収めることができる。   X '≦ X is satisfied. That is, the width X ′ of the line area including the marking after enlargement / reduction can be made within the width X of the character string area before enlargement / reduction.

(4−2.実施例2)
以下、すでに説明した実施例と同様の点は説明を省略し、異なる点を中心に説明する。
(4-2. Example 2)
Hereinafter, the same points as those of the embodiment already described will be omitted, and the different points will be mainly described.

図7は、実施例2における拡大率又は縮小率の計算手法を説明するための図である。   FIG. 7 is a diagram for explaining a calculation method of the enlargement ratio or the reduction ratio in the second embodiment.

図7は、1つの文字列エリアに含まれる複数の行エリアのうち、2つの行エリアに、1つのマーキング(図7に示すハッチング部分)と、1つのマーキングが重畳されていない文字列とが含まれる場合を示す。この場合、数3、数4及び数5が成立すればよい。   In FIG. 7, one marking (hatched part shown in FIG. 7) and a character string to which one marking is not superimposed are included in two line areas among a plurality of line areas included in one character string area. Indicates the case of inclusion. In this case, Equations 3, 4 and 5 may be established.

(数3)
Y'=α(yM1+yM2)+β(y+y+・・・+y)≦Y
(Number 3)
Y ′ = α (y M 1 + y M 2 ) + β (y 1 + y 3 +... + Y L ) ≦ Y

(数4)
X'=αxM1+βxN1≦X
(Number 4)
X ' 1 = α x M 1 + β x N 1 X X

(数5)
X'=αxM2+βxN2≦X
(Number 5)
X ′ 2 = αx M 2 + βx N 2 ≦ X

(4−3.実施例3)
図8は、実施例3における拡大率又は縮小率の計算手法を説明するための図である。
(4-3. Example 3)
FIG. 8 is a diagram for explaining a calculation method of the enlargement ratio or the reduction ratio in the third embodiment.

図8は、1つの文字列エリアに含まれる複数の行エリアのうち、1つの行エリアに、1つのマーキング(図8に示すハッチング部分)と、2つのマーキングが重畳されていない文字列が含まれる場合を示す。   FIG. 8 shows that one of the plural line areas included in one character string area includes one marking (hatched portion shown in FIG. 8) and a character string on which two markings are not superimposed. Show the case.

X=10、Y=12、L=6、x=2、x=5+3、y=2、y=2、α=1.4が、予め変数として定められているとする。 X = 10, Y = 12, L = 6, x M = 2, x N = 5 + 3, y N = 2, y M = 2, α = 1.4 is a is defined in advance as a variable.

これらの変数を、数1及び数2に代入すると、数6及び数7になる。   Substituting these variables into Equations 1 and 2 results in Equations 6 and 7.

(数6)
Y'=1.4×2+β(2+2+2+2+2)≦12
(Number 6)
Y ′ = 1.4 × 2 + β (2 + 2 + 2 + 2 + 2) ≦ 12

数6によれば、β≦0.92である。   According to Equation 6, β ≦ 0.92.

(数7)
X'=1.4×2+β(5+3)≦10
(Number 7)
X ′ = 1.4 × 2 + β (5 + 3) ≦ 10

数7によれば、β≦0.9である。   According to Equation 7, β ≦ 0.9.

β≦0.92及びβ≦0.9の両方を満たす範囲で、縮小率βの最小値(すなわち、縮小文字列が最大サイズとなる縮小率βの値)は0.9である。視認性を高めるためには縮小文字列が最大サイズとなる縮小率を採用するとよいので、この場合、β=0.9とするのがよい。   The minimum value of the reduction ratio β (that is, the value of the reduction ratio β at which the size of the reduced character string is maximum) is 0.9 within the range where both β ≦ 0.92 and β ≦ 0.9 are satisfied. In order to improve the visibility, it is preferable to adopt a reduction ratio at which the size of the reduced character string is the largest. In this case, β should be 0.9.

(4−4.実施例4)
図9は、実施例4における拡大率又は縮小率の計算手法を説明するための図である。
(4-4. Example 4)
FIG. 9 is a diagram for explaining a calculation method of the enlargement ratio or the reduction ratio in the fourth embodiment.

図9は、1つの文字列エリアに含まれる複数の行エリアのうち、2つの行エリアそれぞれにマーキング(図8に示すハッチング部分)が含まれ、さらに、2つの行エリアのマーキングの合計幅xが互いに等しい場合を示す。 FIG. 9 includes markings (hatched portions shown in FIG. 8) in each of two row areas among a plurality of row areas included in one character string area, and further, the total width x of the markings of the two row areas It shows the case where M is equal to each other.

X=10、Y=12、L=6、上から2行目のxM1=3+2、上から4行目のxM2=4+1、上から2行目のxN1=2+3、上から4行目のxN2=1+4、y=2、y=2、α=1.2が、予め変数として定められているとする。 X = 10, Y = 12, L = 6, the second line from the top, x M1 = 3 + 2, the fourth line from the top, x M 2 = 4 + 1, the second line from the top, x N 1 = 2 + 3, the fourth line from the top It is assumed that x N2 = 1 + 4, y N = 2, y M = 2, α = 1.2 are predetermined as variables.

これらの変数を、数3、数4及び数5に代入すると、数8、数9及び数10になる。   Substituting these variables into Eq. 3, Eq. 4 and Eq. 5, results in Eq. 8, Eq. 9 and Eq.

(数8)
Y'=1.2(2+2)+β(2+2+2+2)≦12
(Equation 8)
Y ′ = 1.2 (2 + 2) + β (2 + 2 + 2 + 2) ≦ 12

数8によれば、β≦0.9である。   According to equation 8, β ≦ 0.9.

(数9)
X'=1.2×(3+2)+β(2+3)≦10
(Number 9)
X ' 1 = 1.2 × (3 + 2) + β (2 + 3) ≦ 10

数9によれば、β≦0.8である。   According to equation 9, β ≦ 0.8.

(数10)
X'=1.2×(4+1)+β(1+4)≦10
(Number 10)
X ' 2 = 1.2 × (4 + 1) + β (1 + 4) ≦ 10

数10によれば、β≦0.8である。   According to equation 10, β ≦ 0.8.

β≦0.9、β≦0.8及びβ≦0.8の全てを満たす範囲で、縮小率βの最小値(すなわち、縮小文字列が最大サイズとなる縮小率βの値)は0.8である。視認性を高めるためには縮小文字列が最大サイズとなる縮小率を採用するとよいので、この場合、β=0.8とするのがよい。   The minimum value of the reduction ratio β (that is, the value of the reduction ratio β at which the reduced character string is the maximum size) is 0. 0 within the range satisfying all of β ≦ 0.9, β ≦ 0.8 and β ≦ 0.8. It is eight. In order to improve the visibility, it is preferable to adopt a reduction ratio at which the size of the reduced character string is the largest. In this case, β should be 0.8.

(4−5.実施例5)
図10は、実施例5における拡大率又は縮小率の計算手法を説明するための図である。
(4-5. Example 5)
FIG. 10 is a diagram for explaining a calculation method of the enlargement ratio or the reduction ratio in the fifth embodiment.

図10は、1つの文字列エリアに含まれる複数の行エリアのうち、2つの行エリアそれぞれにマーキング(図10のハッチング部分)が含まれ、さらに、2つの行エリアのマーキングの合計幅xが互いに異なる場合を示す。 FIG. 10 includes markings (hatched portions in FIG. 10) in each of two row areas among a plurality of row areas included in one character string area, and further, the total width x M of the markings of the two row areas Are different from one another.

X=10、Y=12、L=6、上から2行目のxM1=2、上から4行目のxM2=5、上から2行目のxN1=3+5、上から4行目のxN2=2+3、y=2、y=2、α=1.2が、予め変数として定められているとする。 X = 10, Y = 12, L = 6, x M1 = 2 in the second line from the top, x M2 = 5 in the fourth line from the top, x N1 = 3 + 5 in the second line from the top, the fourth line from the top It is assumed that x N2 = 2 + 3, y N = 2, y M = 2, α = 1.2 are predetermined as variables.

これらの変数を、数3、数4及び数5に代入すると、数11、数12及び数13になる。   Substituting these variables into Eq. 3, Eq. 4 and Eq. 5, it becomes Eq. 11, Eq. 12 and Eq.

(数11)
Y'=1.2(2+2)+β(2+2+2+2)≦12
(Equation 11)
Y ′ = 1.2 (2 + 2) + β (2 + 2 + 2 + 2) ≦ 12

数11によれば、β≦0.9である。   According to Equation 11, β ≦ 0.9.

(数12)
X'=1.2×2+β(3+5)≦10
(12)
X ' 1 = 1.2 × 2 + β (3 + 5) ≦ 10

数12によれば、β≦0.95である。   According to Equation 12, β ≦ 0.95.

(数13)
X'=1.2×5+β(2+3)≦10
(Equation 13)
X ' 2 = 1.2 × 5 + β (2 + 3) ≦ 10

数13によれば、β≦0.8である。   According to Equation 13, β ≦ 0.8.

β≦0.9、β≦0.95及びβ≦0.8の全てを満たす範囲で、縮小率βの最小値(すなわち、縮小文字列が最大サイズとなる縮小率βの値)は0.8である。視認性を高めるためには縮小文字列が最大サイズとなる縮小率を採用するとよいので、この場合、β=0.8とするのがよい。   The minimum value of the reduction ratio β (that is, the value of the reduction ratio β at which the reduced character string is the maximum size) is 0. 0 within the range satisfying all of β ≦ 0.9, β ≦ 0.95 and β ≦ 0.8. It is eight. In order to improve the visibility, it is preferable to adopt a reduction ratio at which the size of the reduced character string is the largest. In this case, β should be 0.8.

以上、実施例1〜5を説明したが、それ以外の例も含めて、拡大率又は縮小率の計算手法において、数14及び数15が成立すればよい。   As described above, the first to fifth embodiments have been described, but the equations (14) and (15) may be satisfied in the method of calculating the enlargement ratio or the reduction ratio including the other examples.

数14において、nはマーキングを含む行エリアの数、Mnはマーキングを含む行エリアにおけるマーキング、mはマーキングを含まない行エリアの数、Lmはマーキングを含まない行エリアを示す。   In Equation 14, n is the number of row areas including markings, Mn is the marking in row areas including markings, m is the number of row areas not including markings, and Lm is the row area not including markings.

数15において、nはマーキングを含む行エリアの数、Pnはマーキングを含む行エリア、sは行エリアPn内のマーキングの数、Msは行エリアPn内のマーキング、tは行エリアPn内のマーキングが重畳されていない文字列の数、Ntは行エリアPn内のマーキングが重畳されていない文字列を示す。   In Equation 15, n is the number of row areas including markings, Pn is the row area including markings, s is the number of markings in row areas Pn, Ms is markings in row areas Pn, t is markings in row areas Pn Indicates the number of non-superimposed character strings, and Nt indicates a character string in which markings in the line area Pn are not superimposed.

(5.まとめ)
MFP1は、文字列に重畳されたマーキングを含む原稿画像から、マーキングされた文字列を解答とする穴埋め問題(空欄問題)を作成する。空欄には、回答者が回答となる文字列や符号を記入したり、問題作成者が符号等を記入する場合がある。空欄が小さいと、回答者が回答となる文字列や符号を記入するのが困難であったり、問題作成者が記入した符号等が見にくくなる等のおそれがある。
(5. Summary)
The MFP 1 creates, from the original image including the marking superimposed on the character string, a hole filling problem (blank question) in which the marked character string is an answer. In the blank space, a respondent may enter a character string or a code to be answered or a question maker may enter a code or the like. If the blank space is small, it may be difficult for the respondent to enter a character string or code to be an answer, or it may be difficult to read the code or the like entered by the question maker.

これに対して、本実施形態によれば、画像変換部109は、文字列に重畳されたマーキングを拡大して拡大文字列を作成し、マーキングが重畳されていない文字列を縮小して縮小文字列を作成する。空欄作成部105は、拡大文字列に重畳する空欄画像を作成する。画像合成部106は、縮小文字列と、空欄画像とを合成した合成画像を作成する   On the other hand, according to the present embodiment, the image conversion unit 109 enlarges the marking superimposed on the character string to create an enlarged character string, and reduces the character string on which the marking is not superimposed to reduce the reduced character. Create a column The blank creating unit 105 creates a blank image to be superimposed on the enlarged character string. The image combining unit 106 creates a combined image combining the reduced character string and the blank image.

このように、空欄以外の文字列(マーキングされていない文字列)を縮小し、空欄のサイズを大きくすることで、元の原稿画像のレイアウトを極力活かしつつ、空欄のサイズを相対的に大きくすることができる。   As described above, the size of the blank is made relatively large while making the most of the layout of the original document image as much as possible by reducing the character string other than the blank (character string not marked) and increasing the size of the blank. be able to.

1…MFP
12…画像読取部
16…画像形成部
101…マーキング抽出部
102…マーキング判定部
103…文字列エリア判定部
104…行エリア判定部
105…空欄作成部
106…画像合成部
107…行エリア分割部
108…変換率計算部
109…画像変換部
1 ... MFP
12 ... image reading unit 16 ... image forming unit 101 ... marking extraction unit 102 ... marking determination unit 103 ... character string area determination unit 104 ... line area determination unit 105 ... blank section creation unit 106 ... image combining unit 107 ... line area division unit 108 ... conversion rate calculation unit 109 ... image conversion unit

Claims (9)

マーキングが重畳された文字列と、マーキングが重畳されていない文字列とを含む文字列エリアを有する原稿画像から、前記マーキングを抽出するマーキング抽出部と、
前記文字列に重畳されたマーキングを拡大して拡大文字列を作成し、前記マーキングが重畳されていない文字列を縮小して縮小文字列を作成する画像変換部と
を具備する情報処理装置。
A marking extraction unit for extracting the marking from a document image having a character string area including a character string on which the marking is superimposed and a character string on which the marking is not superimposed;
An image conversion unit configured to enlarge a marking superimposed on the character string to create an enlarged character string, and reduce a character string on which the marking is not superimposed to generate a reduced character string;
請求項1に記載の情報処理装置であって、
前記拡大文字列に重畳する空欄画像を作成する空欄作成部と、
前記縮小文字列と、前記空欄画像とを合成した合成画像を作成する画像合成部と
をさらに具備する情報処理装置。
The information processing apparatus according to claim 1, wherein
A blank creating unit that creates a blank image to be superimposed on the enlarged character string;
An information processing apparatus, further comprising: an image combining unit configured to create a combined image obtained by combining the reduced character string and the blank image.
請求項1又は2に記載の情報処理装置であって、
前記マーキング抽出部が抽出した前記マーキングの、前記原稿画像内での位置及びサイズを判定するマーキング判定部と、
前記文字列エリアの、前記原稿画像内での位置及びサイズを判定する文字列エリア判定部と、
前記文字列エリアを1以上の行エリアに分割し、前記1以上の行エリアの前記文字列エリア内での位置及びサイズを判定する行エリア判定部と、
前記マーキングの前記原稿画像内での位置及びサイズと、前記1以上の行エリアの前記文字列エリア内での位置及びサイズとに基づき、前記マーキングが属する行エリア内での前記マーキングの位置及びサイズを判定し、
前記マーキングが属する行エリアを、前記文字列に重畳されたマーキングと、前記マーキングが重畳されていない文字列とに分割する
行エリア分割部と
をさらに具備し、
前記画像変換部は、前記行エリア分割部が分割して得られた各前記文字列を拡大及び縮小することにより、前記拡大文字列及び前記縮小文字列を作成する
情報処理装置。
The information processing apparatus according to claim 1 or 2, wherein
A marking determination unit that determines the position and size of the marking extracted by the marking extraction unit within the document image;
A character string area determination unit that determines the position and size of the character string area in the document image;
A line area determination unit that divides the character string area into one or more line areas and determines the position and size of the one or more line areas in the character string area;
The position and size of the marking in the line area to which the marking belongs, based on the position and size of the marking in the original image and the position and size of the one or more line areas in the character string area To determine
The apparatus further comprises a line area division unit for dividing a line area to which the markings belong to a marking superimposed on the character string and a character string on which the marking is not superimposed.
The image conversion unit creates the enlarged character string and the reduced character string by enlarging and reducing the character strings obtained by dividing the line area dividing unit.
請求項1乃至3の何れか一項に記載の情報処理装置であって、
前記文字列に重畳されたマーキングから前記拡大文字列を作成するための拡大率を計算し、又は
前記マーキングが重畳されていない文字列から前記縮小文字列を作成するための縮小率を計算する
変換率計算部
をさらに具備する情報処理装置。
The information processing apparatus according to any one of claims 1 to 3, wherein
The enlargement ratio for creating the expanded character string is calculated from the marking superimposed on the character string, or the reduction ratio for creating the reduced character string from the character string on which the marking is not superimposed is calculated An information processing apparatus further comprising a rate calculation unit.
請求項4に記載の情報処理装置であって、
前記変換率計算部は、
前記拡大文字列を含む行エリアの、前記行エリア内で文字が並ぶ方向での長さが、拡大及び縮小前の前記行エリアの同方向での長さ以下となるように、
予め定められた前記縮小率をもとに、前記拡大率を計算し、又は
予め定められた前記拡大率をもとに、前記縮小率を計算する
情報処理装置。
The information processing apparatus according to claim 4, wherein
The conversion rate calculation unit
The length of the line area including the expanded character string in the direction in which the characters are arranged in the line area is equal to or less than the length in the same direction of the line area before enlargement and reduction.
An information processing apparatus, which calculates the enlargement ratio based on the predetermined reduction ratio, or calculates the reduction ratio based on the predetermined enlargement ratio.
請求項5に記載の情報処理装置であって、
前記変換率計算部は、
前記拡大文字列を含む行エリアの、前記行エリア内で文字が並ぶ方向での長さが、拡大及び縮小前の前記行エリアの長さ以下となる範囲で、
前記拡大文字列が最大サイズとなるように、予め定められた前記縮小率をもとに、前記拡大率を計算し、又は
前記縮小文字列が最大サイズとなるように、予め定められた前記拡大率をもとに、前記縮小率を計算する
情報処理装置。
The information processing apparatus according to claim 5, wherein
The conversion rate calculation unit
In a range in which the length of the line area including the expanded character string in the direction in which characters are arranged in the line area is equal to or less than the length of the line area before enlargement and reduction,
The enlargement ratio is calculated based on the reduction ratio determined in advance so that the expanded character string has the maximum size, or the enlargement determined in advance such that the reduced character string has the maximum size. An information processing apparatus that calculates the reduction rate based on a rate.
請求項に記載の情報処理装置であって、
前記文字列に重畳されたマーキングから前記拡大文字列を作成するための拡大率を計算し、又は
前記マーキングが重畳されていない文字列から前記縮小文字列を作成するための縮小率を計算する
変換率計算部
をさらに具備し、
前記変換率計算部は、
前記拡大文字列を含む文字列エリアの、前記1以上の行エリアが並ぶ方向での長さが、拡大及び縮小前の前記文字列エリアの同方向での長さ以下となるように、
予め定められた前記縮小率をもとに、前記拡大率を計算し、又は
予め定められた前記拡大率をもとに、前記縮小率を計算する
情報処理装置。
The information processing apparatus according to claim 3 , wherein
Calculate an enlargement factor for creating the expanded character string from the marking superimposed on the character string, or
Calculate a reduction ratio for creating the reduced character string from the character string on which the marking is not superimposed
Conversion rate calculator
Further equipped,
The conversion rate calculation unit
The length of the character string area including the expanded character string in the direction in which the one or more line areas are arranged is equal to or less than the length in the same direction of the character string area before enlargement and reduction.
An information processing apparatus, which calculates the enlargement ratio based on the predetermined reduction ratio, or calculates the reduction ratio based on the predetermined enlargement ratio.
請求項7に記載の情報処理装置であって、
前記変換率計算部は、
前記拡大文字列を含む文字列エリアの、前記1以上の行エリアが並ぶ方向での長さが、拡大及び縮小前の前記文字列エリアの長さ以下となる範囲で、
前記拡大文字列が最大サイズとなるように、予め定められた前記縮小率をもとに、前記拡大率を計算し、又は
前記縮小文字列が最大サイズとなるように、予め定められた前記拡大率をもとに、前記縮小率を計算する
情報処理装置。
The information processing apparatus according to claim 7, wherein
The conversion rate calculation unit
In a range in which the length of the character string area including the expanded character string in the direction in which the one or more line areas are arranged is equal to or less than the length of the character string area before enlargement and reduction,
The enlargement ratio is calculated based on the reduction ratio determined in advance so that the expanded character string has the maximum size, or the enlargement determined in advance such that the reduced character string has the maximum size. An information processing apparatus that calculates the reduction rate based on a rate.
情報処理装置を、
マーキングが重畳された文字列と、マーキングが重畳されていない文字列とを含む文字列エリアを有する原稿画像から、前記マーキングを抽出するマーキング抽出部と、
前記文字列に重畳されたマーキングを拡大して拡大文字列を作成し、前記マーキングが重畳されていない文字列を縮小して縮小文字列を作成する画像変換部
として機能させるプログラム。
An information processor,
A marking extraction unit for extracting the marking from a document image having a character string area including a character string on which the marking is superimposed and a character string on which the marking is not superimposed;
A program that causes a marking superimposed on the character string to be enlarged to create an enlarged character string, and a character string on which the marking is not superimposed to be reduced to generate a reduced character string as an image conversion unit.
JP2016038683A 2016-03-01 2016-03-01 Information processing apparatus and program Expired - Fee Related JP6540546B2 (en)

Priority Applications (7)

Application Number Priority Date Filing Date Title
JP2016038683A JP6540546B2 (en) 2016-03-01 2016-03-01 Information processing apparatus and program
CN201910828875.3A CN110636181A (en) 2016-03-01 2017-02-09 Information processing apparatus
CN201710070630.XA CN107147820B (en) 2016-03-01 2017-02-09 Information processing unit
CN201910829510.2A CN110740221B (en) 2016-03-01 2017-02-09 Information processing apparatus
US15/438,331 US10425556B2 (en) 2016-03-01 2017-02-21 Information processing apparatus
US16/524,364 US10681245B2 (en) 2016-03-01 2019-07-29 Information processing apparatus
US16/524,424 US10715699B2 (en) 2016-03-01 2019-07-29 Information processing apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016038683A JP6540546B2 (en) 2016-03-01 2016-03-01 Information processing apparatus and program

Publications (2)

Publication Number Publication Date
JP2017157993A JP2017157993A (en) 2017-09-07
JP6540546B2 true JP6540546B2 (en) 2019-07-10

Family

ID=59810826

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016038683A Expired - Fee Related JP6540546B2 (en) 2016-03-01 2016-03-01 Information processing apparatus and program

Country Status (1)

Country Link
JP (1) JP6540546B2 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3432665B2 (en) * 1996-02-27 2003-08-04 シャープ株式会社 Document processing device
JP2015135653A (en) * 2013-12-17 2015-07-27 キヤノンマーケティングジャパン株式会社 Information processing apparatus, information processing method, program, and storage medium

Also Published As

Publication number Publication date
JP2017157993A (en) 2017-09-07

Similar Documents

Publication Publication Date Title
CN101876967A (en) Method for generating PDF text paragraphs
JP4332858B2 (en) Image processing apparatus, printing apparatus, and image processing method
JP2011150544A (en) Apparatus and method for processing information, and program
JP2010105202A (en) Printing method and printing apparatus
US10715699B2 (en) Information processing apparatus
US8780404B2 (en) Information processing apparatus, method for controlling same, and storage medium on which computer program has been recorded
JP6540546B2 (en) Information processing apparatus and program
JPS58208865A (en) Document producing device
JP6520761B2 (en) Information processing apparatus and program
JP6561876B2 (en) Information processing apparatus and program
JPH05108793A (en) Document edition device
JP6565740B2 (en) Information processing apparatus and program
JP2000137801A (en) Method and device for image formation and medium storing image processing control program
JP5612973B2 (en) Comic book layout device, comic book layout method, and program
JP2006019931A (en) Apparatus and method for image processing, computer program, and storage medium
JP2810368B2 (en) Image processing method
US10417312B2 (en) Information added document preparation device, non-transitory computer-readable recording medium and information added document preparation method for selecting a format for adding information to a document to satisfy a layout condition
JP2001056857A (en) Electronizing method for pattern
JP2008108187A (en) Cad data converter, cad data conversion method, and cad data conversion program
JP2547797B2 (en) Document processing method
JP2962720B2 (en) Image processing method
JP2017157992A (en) Information processing apparatus and program
JP2008198091A (en) Print support system, program, and method
JP2003044466A (en) Method, device and program for locating character string
JPH08293033A (en) Information processor

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20171227

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20190130

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190205

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190329

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: 20190514

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190527

R150 Certificate of patent or registration of utility model

Ref document number: 6540546

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees