JP6565740B2 - Information processing apparatus and program - Google Patents
Information processing apparatus and program Download PDFInfo
- Publication number
- JP6565740B2 JP6565740B2 JP2016038685A JP2016038685A JP6565740B2 JP 6565740 B2 JP6565740 B2 JP 6565740B2 JP 2016038685 A JP2016038685 A JP 2016038685A JP 2016038685 A JP2016038685 A JP 2016038685A JP 6565740 B2 JP6565740 B2 JP 6565740B2
- Authority
- JP
- Japan
- Prior art keywords
- marking
- image
- characters
- superimposed
- character string
- 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
Links
Landscapes
- Electrically Operated Instructional Devices (AREA)
- Processing Or Creating Images (AREA)
- Editing Of Facsimile Originals (AREA)
Description
本発明は、文字列に重畳されたマーキングを含む原稿画像から、マーキングされた文字列を解答とする穴埋め問題を作成することが可能な情報処理装置及びプログラムに関する。 The present invention relates to an information processing apparatus and program capable of creating a hole-filling problem using a marked character string as an answer from a document image including markings superimposed on the character string.
問題の解答となる文字列を手書きのマーキングで指定した原稿の画像を読み取り、読み取った原稿の画像データの中からマーキングの画像を抽出し、マーキングの位置で文字列を抽出し、マーキングの位置で文字列を消去し、文字列の消去部分に解答欄を設定する、穴埋め問題を作成する技術が知られている(特許文献1、要約書)。一具体例として、2以上の虫食い箇所を1つの虫食いグループとして設定し、その虫食いグループについて1つの虫食い問題を作成する技術も知られている(特許文献2、要約書)。 Read the image of the manuscript with the character string that is the answer to the problem specified by handwritten marking, extract the marking image from the image data of the read manuscript, extract the character string at the marking position, and at the marking position A technique for creating a hole filling problem in which a character string is erased and an answer column is set in the erased portion of the character string is known (Patent Document 1, Abstract). As a specific example, a technique for setting two or more worm-eater portions as one worm-eater group and creating one worm-eaten problem for the worm-eater group is also known (Patent Document 2, Abstract).
穴埋め問題を作成することが可能な情報処理装置においては、問題作成者及び回答者の双方について益々ユーザーフレンドリーであることが望まれる。 In an information processing apparatus capable of creating a hole filling problem, it is desired that both the problem creator and the respondent are more user-friendly.
以上のような事情に鑑み、本発明の目的は、文字列に重畳されたマーキングを含む原稿画像から、マーキングされた文字列を解答とする穴埋め問題を作成することが可能な情報処理装置及びプログラムにおいて、ユーザーの利便性を向上することにある。 In view of the circumstances as described above, an object of the present invention is to provide an information processing apparatus and program capable of creating a hole-filling problem using a marked character string as an answer from a document image including a marking superimposed on the character string. Therefore, it is to improve user convenience.
上記目的を達成するため、本発明の一形態に係る情報処理装置は、
文字列に重畳されたマーキングを含む原稿画像から、前記マーキングを抽出するマーキング抽出部と、
前記マーキングが重畳された前記文字列に含まれる1以上の文字を抽出する文字抽出部と、
前記抽出した1以上の文字のうち、前記マーキングが重畳する割合がそれぞれ閾値以上の1以上の文字を判定する重畳判定部と
を具備する。
In order to achieve the above object, an information processing apparatus according to an aspect of the present invention provides:
A marking extraction unit for extracting the marking from the original image including the marking superimposed on the character string;
A character extraction unit that extracts one or more characters included in the character string on which the marking is superimposed;
A superimposition determination unit that determines one or more characters whose ratio of the marking to be superimposed is a threshold value or more among the extracted one or more characters.
このように、マーキングが重畳する割合がそれぞれ閾値以上の1以上の文字を判定することにより、空欄とすべき文字列(解答となる文字列)を正確に抽出することができる。 In this way, by determining one or more characters whose markings are superimposed at a threshold value or more, it is possible to accurately extract a character string to be left blank (a character string to be an answer).
情報処理装置は、
前記重畳判定部が判定した1以上の文字に重畳する1つの空欄画像を作成する空欄作成部と、
前記原稿画像と、前記空欄画像とを合成した合成画像を作成する画像合成部と
をさらに具備する。
Information processing device
A blank creation unit that creates one blank image to be superimposed on one or more characters determined by the superimposition determination unit;
And an image composition unit for creating a composite image by combining the original image and the blank image.
前記文字抽出部は、エッジ検出により、前記マーキングが重畳された前記文字列に含まれる1以上の文字のエッジを抽出し、
前記空欄作成部は、前記重畳判定部が判定した1以上の文字のエッジを合成して得られる文字列に重畳する1つの空欄画像を作成する。
The character extraction unit extracts an edge of one or more characters included in the character string on which the marking is superimposed by edge detection;
The blank creation unit creates one blank image to be superimposed on a character string obtained by combining one or more character edges determined by the superimposition determination unit.
このように、マーキングを空欄画像作成の基準とするのではなく、1以上の文字のエッジを合成して得られる文字列に重畳する1つの空欄画像を作成することにより、空欄とすべき文字列(解答となる文字列)を過不足なく正確に空欄にすることができる。 Thus, instead of using marking as a reference for creating a blank image, by creating one blank image that is superimposed on a character string obtained by combining the edges of one or more characters, a character string that should be blank (An answer character string) can be exactly blank without excess or deficiency.
情報処理装置は、
前記マーキング抽出部が抽出した前記マーキングの前記原稿画像内での位置及び形状を判定するマーキング判定部をさらに具備し、
前記文字抽出部は、前記マーキングの位置及び形状をもとに、前記マーキングが重畳された前記文字列に含まれる1以上の文字を抽出する。
Information processing device
A marking determination unit that determines the position and shape of the marking extracted by the marking extraction unit in the document image;
The character extraction unit extracts one or more characters included in the character string on which the marking is superimposed based on the position and shape of the marking.
上記目的を達成するため、本発明の一形態に係るプログラムは、
情報処理装置を、
文字列に重畳されたマーキングを含む原稿画像から、前記マーキングを抽出するマーキング抽出部と、
前記マーキングが重畳された前記文字列に含まれる1以上の文字を抽出する文字抽出部と、
前記抽出した1以上の文字のうち、前記マーキングが重畳する割合がそれぞれ閾値以上の1以上の文字を判定する重畳判定部
として機能させる。
In order to achieve the above object, a program according to an aspect of the present invention is provided.
Information processing device
A marking extraction unit for extracting the marking from the original image including the marking superimposed on the character string;
A character extraction unit that extracts one or more characters included in the character string on which the marking is superimposed;
Among the extracted one or more characters, the superimposition determination unit that determines one or more characters whose ratio of the marking to be superimposed is a threshold value or more is made to function.
本発明によれば、文字列に重畳されたマーキングを含む原稿画像から、マーキングされた文字列を解答とする穴埋め問題を作成することが可能な情報処理装置及びプログラムにおいて、ユーザーの利便性が向上する。 Advantageous Effects of Invention According to the present invention, in an information processing apparatus and program capable of creating a hole-filling problem using a marked character string as an answer from a manuscript image including markings superimposed on the character string, user convenience is improved. To do.
以下、図面を参照しながら、本発明の実施形態を説明する。 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, MFP, 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 CPU (Central Processing Unit), a RAM (Random Access Memory), a ROM (Read Only Memory), a dedicated hardware circuit, and the like, and controls 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 an image reading unit 12, an image processing unit 14, an image memory 15, an image forming unit 16, an operation unit 17, a storage unit 18, a network communication unit 13, and the like. The control unit 11 performs operation control of each of the above connected units and transmission / reception of signals or data to / from each unit.
制御部11は、ユーザーから、操作部17またはネッワーク接続されたパーソナルコンピュータ(図示せず)等を通じて入力されるジョブの実行指示に従って、スキャナ機能、印刷機能及びコピー機能機能などの各機能についての動作制御を実行するために必要な機構の駆動及び処理を制御する。 The control unit 11 operates for each function such as a scanner function, a print function, and a copy function function in accordance with a job execution instruction input from the user through the operation unit 17 or a personal computer (not shown) connected via a network. Controls the drive and processing of the mechanisms necessary to perform the control.
画像読取部12は、原稿から画像を読み取る。 The image reading unit 12 reads an image from a document.
画像処理部14は、画像読取部12で読み取られた画像の画像データを必要に応じて画像処理する。例えば、画像処理部14は、画像読取部12により読み取られた画像が画像形成された後の品質を向上させるために、シェーディング補正等の画像処理を行う。 The image processing unit 14 performs image processing on 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 is an area for temporarily storing document image data 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 the image data read by the image reading unit 12.
操作部17は、MFP1が実行可能な各種動作及び処理についてユーザーからの指示を受け付けるタッチパネル部および操作キー部を備える。タッチパネル部は、タッチパネルが設けられたLCD(Liquid Crystal Display)等の表示部17aを備えている。 The operation unit 17 includes a touch panel unit and operation key units 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 17a 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 an HDD (Hard Disk Drive) that stores a document image read by the image reading unit 12.
(2.画像形成装置の機能的構成)
図2は、画像形成装置の機能的構成を示すブロック図である。
(2. Functional configuration of image forming apparatus)
FIG. 2 is a block diagram illustrating a functional configuration of the image forming apparatus.
MFP1は、情報処理プログラムを実行することで、マーキング抽出部101、マーキング判定部102、文字抽出部103、重畳判定部104、空欄作成部105及び画像合成部106として機能する。 The MFP 1 functions as a marking extraction unit 101, a marking determination unit 102, a character extraction unit 103, a superimposition determination unit 104, a blank creation unit 105, and an image composition unit 106 by executing an information processing program.
マーキング抽出部101は、画像読取部12が読み取った原稿画像から、文字列に重畳されたマーキングを抽出する。なお、本実施形態において、「文字列」は、1文字からなる単位、又は連続する複数の文字からなる単位を意味する。 The marking extraction unit 101 extracts the marking superimposed on the character string from the document image read by the image reading unit 12. In the present embodiment, the “character string” means a unit composed of one character or a unit composed of a plurality of consecutive characters.
マーキング判定部102は、マーキング抽出部101が抽出したマーキングの、原稿画像内での位置及び形状を判定する。 The marking determination unit 102 determines the position and shape of the marking extracted by the marking extraction unit 101 in the document image.
文字抽出部103は、マーキング判定部102が判定したマーキングの位置及び形状をもとに、マーキングが重畳された文字列に含まれる1以上の文字を抽出する。 The character extraction unit 103 extracts one or more characters included in the character string on which the marking is superimposed based on the marking position and shape determined by the marking determination unit 102.
重畳判定部104は、文字抽出部103が抽出した1以上の文字のうち、マーキングに対して重畳する割合がそれぞれ閾値以上の連続する1以上の文字を判定する。 The superimposition determination unit 104 determines one or more consecutive characters each having a ratio of superposition with respect to the marking among the one or more characters extracted by the character extraction unit 103.
空欄作成部105は、重畳判定部104が判定したマーキングが重畳する割合が閾値以上の1以上の文字に重畳する1つの空欄画像を作成する。 The blank creation unit 105 creates one blank image to be superimposed on one or more characters whose ratio of the marking determined by the overlay determination unit 104 is greater than or equal to a threshold value.
画像合成部106は、画像読取部12が読み取った原稿画像と、空欄作成部105が作成した空欄画像とを合成した合成画像を作成する。 The image composition unit 106 creates a composite image by combining the document image read by the image reading unit 12 and the blank image created by the blank creation unit 105.
(3.画像形成装置の動作)
図3は、画像形成装置の動作を示すフローチャートである。図4は、画像形成装置の動作を説明するための図である。図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. In FIG. 4, the hatched portion indicates the marking.
前提として、原稿(典型的には、紙)には、テキストデータとしての文字列が印字されている。あるいは、原稿には、画像データとしての文字列の画像が形成されている(文字列が印字された原稿がコピーされている)。そして、文字列全体のうち複数の一部の文字列(熟語、文節、数値等)が、ユーザーである問題作成者により、蛍光マーカーペン等を用いて手書きでマーキングされている。マーキングされた文字列は、穴埋め問題において、解答となる文字列である。 As a premise, a character string as text data is printed on an original (typically, paper). Alternatively, a character string image as image data is formed on the document (a document on which the character string is printed is copied). A plurality of partial character strings (jukugo, phrases, numerical values, etc.) of the entire character string are marked by hand using a fluorescent marker pen or the like by a problem creator as a user. The marked character string is a character string that becomes an answer in the hole filling problem.
画像読取部12は、原稿を光学的にスキャンし、原稿画像を読み取る(ステップS101)。「原稿画像」は、全体的に見れば多数の文字列を含む文書原稿の画像データであり、複数の文字列に重畳された複数のマーキングを含む。「文字列」は、語句(単語、文節、文章等)、数値等であり、厳密には、その画像である。 The image reading unit 12 optically scans a document and reads a document image (step S101). The “document image” is image data of a document 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 phrase (word, phrase, sentence, etc.), a numerical value, and the like, strictly speaking, an image thereof.
マーキング抽出部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 a region having a specific shape and size (such as a strip-shaped rectangle having a specific width) that is different from the background (white or the like) in brightness and / or saturation and the like as a marking. .
マーキング判定部102は、マーキング抽出部101が抽出したマーキングの、原稿画像内での位置及び形状を判定する(ステップS103)。具体的には、マーキング判定部102は、原稿画像全体を座標系全体として、マーキングの位置及び形状を座標として算出する。 The marking determination unit 102 determines the position and shape of the marking extracted by the marking extraction unit 101 in the document image (step S103). Specifically, the marking determination unit 102 calculates the entire document image as the entire coordinate system and the marking position and shape as coordinates.
文字抽出部103は、マーキング判定部102が判定したマーキングの位置及び形状(座標)をもとに、マーキングが重畳された文字列に含まれる1以上の文字を抽出する(ステップS104でYES、S105)。具体的には、文字抽出部103は、エッジ検出により、マーキング判定部102が判定した位置及び形状(座標)により定義されるマーキングが重畳された1以上の文字のエッジを抽出する。なお、文字抽出部103は、1つのマーキングが重畳された文字列全体を、1つの文字列として抽出するのではなく、文字列に含まれる1文字1文字のエッジを抽出する。 Based on the marking position and shape (coordinates) determined by the marking determination unit 102, the character extraction unit 103 extracts one or more characters included in the character string on which the marking is superimposed (YES in step S104, S105). ). Specifically, the character extraction unit 103 extracts edges of one or more characters on which the marking defined by the position and shape (coordinates) determined by the marking determination unit 102 is superimposed by edge detection. Note that the character extraction unit 103 does not extract the entire character string on which one marking is superimposed as one character string, but extracts the edge of each character included in the character string.
重畳判定部104は、文字抽出部103が抽出した1以上の文字のうち、マーキングに対して重畳する割合がそれぞれ閾値以上の1以上の文字(1文字、又は連続する複数の文字。以下同じ)を判定する(ステップS106)。具体的には、重畳判定部104は、エッジ検出により抽出されたそれぞれの文字(1文字1文字)に対してマーキングが重畳する割合を算出し、その割合が閾値以上か否かを判定する(文字1つに対してマーキングが完全に重畳している場合を100%とする。図4のA)。重畳判定部104は、マーキングが重畳する割合が閾値以上の1以上の文字が存在する場合(ステップS106でYES、図4のB)、この1以上の文字は、マーキングが重畳されていると判定する(ステップS107)。閾値は、例えば、30%などであり、ユーザーが任意に設定できてもよい。 The superimposition determination unit 104 includes one or more characters (one character or a plurality of consecutive characters; the same applies hereinafter) of the one or more characters extracted by the character extraction unit 103, each of which has a ratio of superimposition to the marking that is equal to or greater than a threshold value. Is determined (step S106). Specifically, the superimposition determination unit 104 calculates a ratio of markings superimposed on each character (one character per character) extracted by edge detection, and determines whether the ratio is equal to or greater than a threshold ( The case where the marking is completely superimposed on one character is 100% (A) in FIG. The superimposition determination unit 104 determines that the marking is superimposed on the one or more characters when there is one or more characters whose markings are superimposed at the threshold or higher (YES in step S106, B in FIG. 4). (Step S107). The threshold is 30%, for example, and may be arbitrarily set by the user.
なお、図4のCのように、文字抽出部103が抽出した1以上の文字「ABC」は、マーキングに対して重畳する割合がそれぞれ閾値以上の1以上の文字「AB」と、マーキングに対して重畳する割合がそれぞれ閾値以上の1以上の文字「C」とを含むことも考えられる。この場合、重畳判定部104は、マーキングが重畳する割合が閾値以上の1以上の文字「AB」が存在するので(ステップS106でYES)、この1以上の文字「AB」は、マーキングが重畳されていると判定する(ステップS107)。 As shown in FIG. 4C, the one or more characters “ABC” extracted by the character extraction unit 103 are equal to one or more characters “AB” whose overlapping ratio with respect to the marking is equal to or more than a threshold, respectively. It is also conceivable that the ratio of superimposing each includes one or more characters “C” each having a threshold value or more. In this case, the superimposition determination unit 104 has one or more characters “AB” whose ratio of the marking to be superimposed is equal to or greater than the threshold (YES in step S106), and thus the one or more characters “AB” are superimposed with the marking. (Step S107).
空欄作成部105は、重畳判定部104が判定したマーキングが重畳する割合が閾値以上の1以上の文字に重畳する1つの空欄画像を作成する(ステップS108)。具体的には、空欄作成部105は、重畳判定部104が判定した1以上の文字の、文字抽出部103がエッジ検出により抽出したエッジを合成して得られる文字列に重畳する1つの空欄画像を作成する。空欄作成部105は、この文字列からはみ出たマーキングの縁部分とを消し込むような形状及び位置(座標)の空欄画像を作成する。より詳細には、空欄作成部105は、重畳判定部104が判定した1以上の文字に対して抽出されたエッジを全て含む空欄画像を作成する。このとき、空欄画像は、その周囲の少なくとも一部がエッジに接していてもよい。また、空欄画像は、単なるブランクでも良いし、予め決められたスタイル(下線、矩形枠、括弧等)を含んでも良い。また、空欄画像は、矩形としてもよい。空欄画像が矩形の場合、空欄画像の4辺とも、少なくとも一部がエッジに接していてもよい。 The blank creation unit 105 creates one blank image to be superimposed on one or more characters whose ratio of the marking determined by the superimposition determination unit 104 is superposed (step S108). Specifically, the blank creation unit 105 superimposes one or more characters determined by the superimposition determination unit 104 on a character string obtained by combining the edges extracted by the character extraction unit 103 by edge detection. Create The blank creation unit 105 creates a blank image having a shape and position (coordinates) that erases the marking edge that protrudes from the character string. More specifically, the blank creation unit 105 creates a blank image including all the extracted edges for one or more characters determined by the superimposition determination unit 104. At this time, the blank image may be at least partially in contact with the edge. The blank image may be a simple blank or may include a predetermined style (underline, rectangular frame, parentheses, etc.). The blank image may be a rectangle. When the blank image is rectangular, at least part of the four sides of the blank image may be in contact with the edge.
一方、重畳判定部104は、マーキングが重畳する割合が閾値以上の文字が存在しない場合(ステップS106でNO、図4のD)、判定対象の文字にはマーキングが重畳されていないと判定し(ステップS109)、マーキングが無効であると判定する(ステップS110)。なお、文字抽出部103が、マーキングが重畳された文字列に含まれる1以上の文字を抽出しない(マーキングが重畳された文字が存在しない)(ステップS104でNO、図4のE)場合も、同様に、マーキングが無効である。 On the other hand, the superimposition determination unit 104 determines that the marking is not superimposed on the character to be determined when there is no character whose marking overlap ratio is greater than or equal to the threshold (NO in step S106, D in FIG. 4) ( In step S109, it is determined that the marking is invalid (step S110). Note that the character extraction unit 103 does not extract one or more characters included in the character string on which the marking is superimposed (there is no character on which the marking is superimposed) (NO in step S104, E in FIG. 4). Similarly, the marking is invalid.
MFP1がステップS104〜S110の処理を原稿画像に含まれる全てのマーキングに対して行う(ステップS111、YES)と、画像合成部106は、画像読取部12が読み取った原稿画像(ステップS101)と、空欄作成部105が作成した空欄画像(ステップS108)とを合成した合成画像を作成する(ステップS112)。具体的には、画像合成部106は、原稿画像の座標系に、形状及び位置が座標により定義される空欄画像を配置する。 When the MFP 1 performs the processing of steps S104 to S110 for all markings included in the document image (step S111, YES), the image composition unit 106 reads the document image read by the image reading unit 12 (step S101), A composite image is created by combining the blank image created by the blank creation unit 105 (step S108) (step S112). Specifically, the image composition unit 106 arranges a blank image whose shape and position are defined by coordinates in the coordinate system of the document image.
画像形成部16は、画像合成部106が作成した合成画像を、用紙に形成(プリントアウト)する(ステップS113)。 The image forming unit 16 forms (prints out) the composite image created by the image composition unit 106 on a sheet (step S113).
(4.変形例)
各実施形態では、画像読取部12が原稿画像を読み取った(ステップS101)。これに替えて、MFP1は、ネットワーク通信部13を通じて、ネットワークに接続された情報処理装置(図示せず)から原稿画像を受信しても良い。
(4. Modifications)
In each embodiment, the image reading unit 12 reads a document image (step S101). Instead, the MFP 1 may receive a document image from an information processing apparatus (not shown) connected to the network through the network communication unit 13.
(5.まとめ)
元原稿の空欄とすべき文字列(解答となる文字列)を手書きでマーキングして穴埋め問題を作成する場合、文字列の上を正確にマーキングできるとは限らず、マーキングが文字列に対して位置ずれすることがある。そのため、マーキングから文字がはみ出したり、関係ない文字にマーキングの一部が及ぶことがある。このような場合、マーキングの位置及び形状等をもとに空欄を作成すると、マーキングが文字列に対して位置ずれしている故、解答となる文字列を過不足なく正確に空欄にすることができないおそれがある。
(5. Summary)
When creating a hole-filling problem by manually marking a character string (an answer character string) that should be left blank in the original manuscript, it is not always possible to mark the top of the character string accurately, and the marking is not applied to the character string. Misalignment may occur. For this reason, characters may protrude from the marking, or a part of the marking may extend to unrelated characters. In such a case, if a blank is created based on the marking position and shape, etc., since the marking is misaligned with respect to the character string, the answer character string can be accurately blank without excess or deficiency. It may not be possible.
これに対して、本形態によれば、重畳判定部104は、マーキングが重畳する割合がそれぞれ閾値以上の1以上の文字を判定する(ステップS106)。これにより、空欄とすべき文字列(解答となる文字列)を正確に抽出することができる。 On the other hand, according to the present embodiment, the superimposition determination unit 104 determines one or more characters each having a marking superimposition ratio that is equal to or greater than a threshold (step S106). Thereby, the character string (character string used as an answer) which should be made into a blank can be extracted correctly.
さらに、本形態によれば、空欄作成部105は、重畳判定部104が判定した1以上の文字の、文字抽出部103がエッジ検出により抽出したエッジを合成して得られる文字列に重畳する1つの空欄画像を作成する(ステップS108)。このように、マーキングを空欄画像作成の基準とするのではなく、解答となる文字列のエッジに重畳する空欄画像を作成することにより、解答となる文字列を過不足なく正確に空欄にすることができる。 Further, according to the present embodiment, the blank creating unit 105 superimposes one or more characters determined by the superimposition determination unit 104 on a character string obtained by combining the edges extracted by the character extraction unit 103 by edge detection. Two blank images are created (step S108). In this way, instead of using marking as a standard for creating blank images, creating blank images that are superimposed on the edges of the character strings that are the answers, so that the character strings that are the answers can be accurately blank without excess or deficiency. Can do.
1…MFP
12…画像読取部
16…画像形成部
101…マーキング抽出部
102…マーキング判定部
103…文字抽出部
104…重畳判定部
105…空欄作成部
106…画像合成部
1 ... MFP
DESCRIPTION OF SYMBOLS 12 ... Image reading part 16 ... Image formation part 101 ... Marking extraction part 102 ... Marking determination part 103 ... Character extraction part 104 ... Superimposition determination part 105 ... Blank creation part 106 ... Image composition part
Claims (3)
エッジ検出により、前記マーキングが重畳された前記文字列に含まれる1以上の文字のエッジを抽出することにより、前記マーキングが重畳された前記文字列に含まれる1以上の文字を抽出する文字抽出部と、
前記抽出した1以上の文字のうち、前記マーキングが重畳する割合がそれぞれ閾値以上の1以上の文字を判定する重畳判定部と、
前記重畳判定部が判定した1以上の文字のエッジを合成して得られる文字列に重畳する1つの空欄画像であって、前記重畳判定部が判定した前記1以上の文字から抽出されたエッジを全て含み、4辺とも少なくとも一部が前記1以上の文字から抽出されたエッジに接する矩形である空欄画像を作成することにより、前記重畳判定部が判定した1以上の文字に重畳する1つの空欄画像を作成する空欄作成部と、
前記原稿画像と、前記空欄画像とを合成した合成画像を作成する画像合成部と
を具備する情報処理装置。 A marking extraction unit for extracting the marking from the original image including the marking superimposed on the character string;
A character extraction unit that extracts one or more characters included in the character string on which the marking is superimposed by extracting edges of the one or more characters included in the character string on which the marking is superimposed by edge detection. When,
A superimposition determination unit that determines one or more characters each having a ratio of the markings that are not less than a threshold among the extracted one or more characters ;
One blank image to be superimposed on a character string obtained by combining the edges of one or more characters determined by the superimposition determination unit, the edges extracted from the one or more characters determined by the superimposition determination unit One blank that is superimposed on one or more characters determined by the superimposition determination unit by creating a blank image that includes all of the four sides and is a rectangle that touches at least part of the edges extracted from the one or more characters A blank creation section for creating an image;
An information processing apparatus comprising: an image composition unit that creates a composite image obtained by combining the document image and the blank image .
前記マーキング抽出部が抽出した前記マーキングの前記原稿画像内での位置及び形状を判定するマーキング判定部をさらに具備し、
前記文字抽出部は、前記マーキングの位置及び形状をもとに、前記マーキングが重畳された前記文字列に含まれる1以上の文字を抽出する
情報処理装置。 The information processing apparatus according to claim 1 ,
A marking determination unit that determines the position and shape of the marking extracted by the marking extraction unit in the document image;
The character extraction unit extracts one or more characters included in the character string on which the marking is superimposed based on a position and a shape of the marking.
文字列に重畳されたマーキングを含む原稿画像から、前記マーキングを抽出するマーキング抽出部と、
エッジ検出により、前記マーキングが重畳された前記文字列に含まれる1以上の文字のエッジを抽出することにより、前記マーキングが重畳された前記文字列に含まれる1以上の文字を抽出する文字抽出部と、
前記抽出した1以上の文字のうち、前記マーキングが重畳する割合がそれぞれ閾値以上の1以上の文字を判定する重畳判定部と、
前記重畳判定部が判定した1以上の文字のエッジを合成して得られる文字列に重畳する1つの空欄画像であって、前記重畳判定部が判定した前記1以上の文字から抽出されたエッジを全て含み、4辺とも少なくとも一部が前記1以上の文字から抽出されたエッジに接する矩形である空欄画像を作成することにより、前記重畳判定部が判定した1以上の文字に重畳する1つの空欄画像を作成する空欄作成部と、
前記原稿画像と、前記空欄画像とを合成した合成画像を作成する画像合成部
として機能させるプログラム。 Information processing device
A marking extraction unit for extracting the marking from the original image including the marking superimposed on the character string;
A character extraction unit that extracts one or more characters included in the character string on which the marking is superimposed by extracting edges of the one or more characters included in the character string on which the marking is superimposed by edge detection. When,
A superimposition determination unit that determines one or more characters each having a ratio of the markings that are not less than a threshold among the extracted one or more characters ;
One blank image to be superimposed on a character string obtained by combining the edges of one or more characters determined by the superimposition determination unit, the edges extracted from the one or more characters determined by the superimposition determination unit One blank that is superimposed on one or more characters determined by the superimposition determination unit by creating a blank image that includes all of the four sides and is a rectangle that touches at least part of the edges extracted from the one or more characters A blank creation section for creating an image;
A program that functions as an image composition unit that creates a composite image by combining the original image and the blank image .
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2016038685A JP6565740B2 (en) | 2016-03-01 | 2016-03-01 | Information processing apparatus and program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2016038685A JP6565740B2 (en) | 2016-03-01 | 2016-03-01 | Information processing apparatus and program |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2017157995A JP2017157995A (en) | 2017-09-07 |
| JP6565740B2 true JP6565740B2 (en) | 2019-08-28 |
Family
ID=59810832
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2016038685A Expired - Fee Related JP6565740B2 (en) | 2016-03-01 | 2016-03-01 | Information processing apparatus and program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP6565740B2 (en) |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2007004523A (en) * | 2005-06-24 | 2007-01-11 | Fuji Xerox Co Ltd | Apparatus and method for preparing question sheet |
| JP4807618B2 (en) * | 2006-03-06 | 2011-11-02 | 富士ゼロックス株式会社 | Image processing apparatus and image processing program |
| JP4577421B2 (en) * | 2008-07-10 | 2010-11-10 | 富士ゼロックス株式会社 | Image processing apparatus and image processing program |
| JP2011228792A (en) * | 2010-04-15 | 2011-11-10 | Murata Mach Ltd | Image processing device |
| JP2013186610A (en) * | 2012-03-07 | 2013-09-19 | Nikon Systems Inc | Character extraction device and character extraction program |
-
2016
- 2016-03-01 JP JP2016038685A patent/JP6565740B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2017157995A (en) | 2017-09-07 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP2008192032A (en) | Document processing device, document processing method, and program | |
| JP5234822B2 (en) | XHTML data generation method and apparatus, and computer-readable recording medium | |
| JP4332858B2 (en) | Image processing apparatus, printing apparatus, and image processing method | |
| JP5393104B2 (en) | Print control apparatus, print control method, and program | |
| US9860398B2 (en) | Information processing apparatus that creates other documents from read document | |
| CN107147820B (en) | information processing device | |
| US8660357B2 (en) | Image processing apparatus, method, and computer program | |
| JP2008276677A (en) | Support device for character recognition, character recognition device and program | |
| JP7035656B2 (en) | Information processing equipment and programs | |
| JP6565740B2 (en) | Information processing apparatus and program | |
| JP6561876B2 (en) | Information processing apparatus and program | |
| JP6520761B2 (en) | Information processing apparatus and program | |
| JP2017157981A (en) | Electronics | |
| JP2000168294A (en) | Electronic white board system | |
| JP6489041B2 (en) | Information processing apparatus and program | |
| JP2008131381A (en) | Form generating device, form generating method, program and record medium | |
| JP2007005950A (en) | Image processing apparatus and network system | |
| JP6885311B2 (en) | Image processing equipment, image forming equipment and programs | |
| JP5528410B2 (en) | Viewer device, server device, display control method, electronic comic editing method and program | |
| JP6540546B2 (en) | Information processing apparatus and program | |
| JP5935376B2 (en) | Copy machine | |
| JP5650683B2 (en) | Image processing apparatus, image processing method, and image processing program | |
| JP7287097B2 (en) | Image processing device, image processing program and image processing method | |
| JP2006270589A (en) | Information processing device, information processing method, program, and recording medium | |
| US10659654B2 (en) | Information processing apparatus for generating an image surrounded by a marking on a document, and non-transitory computer readable recording medium that records an information processing program for generating an image surrounded by a marking on a document |
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: 20190702 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20190715 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 6565740 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| LAPS | Cancellation because of no payment of annual fees |