Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP6885111B2 - Image processing equipment and image forming equipment - Google Patents
[go: Go Back, main page]

JP6885111B2 - Image processing equipment and image forming equipment - Google Patents

Image processing equipment and image forming equipment Download PDF

Info

Publication number
JP6885111B2
JP6885111B2 JP2017040830A JP2017040830A JP6885111B2 JP 6885111 B2 JP6885111 B2 JP 6885111B2 JP 2017040830 A JP2017040830 A JP 2017040830A JP 2017040830 A JP2017040830 A JP 2017040830A JP 6885111 B2 JP6885111 B2 JP 6885111B2
Authority
JP
Japan
Prior art keywords
image
original
range
input image
document
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.)
Active
Application number
JP2017040830A
Other languages
Japanese (ja)
Other versions
JP2018148362A (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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
Fujifilm Business Innovation Corp
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 Fuji Xerox Co Ltd, Fujifilm Business Innovation Corp filed Critical Fuji Xerox Co Ltd
Priority to JP2017040830A priority Critical patent/JP6885111B2/en
Publication of JP2018148362A publication Critical patent/JP2018148362A/en
Application granted granted Critical
Publication of JP6885111B2 publication Critical patent/JP6885111B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Processing (AREA)
  • Facsimiles In General (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Image Analysis (AREA)

Description

本発明は、画像処理装置および画像形成装置に関する。 The present invention relates to an image processing device and an image forming device.

特許文献1には、原稿から画像を読み取る読み取り手段と、2つの原稿面の画像を1つの画像として形成する機能を有する画像形成装置であって、操作者が原稿の種類を指定する原稿種指定手段と、操作者に前記原稿種に応じて2つの原稿面の切り替えを指示する原稿面切り替え指示手段とを備え、前記指定された原稿種の前記原稿面の読み込みの際に前記原稿種と原稿面により予め特定された画像処理を行なう画像処理手段と、前記読み込んだ2つの画像を所定の出力サイズの1つの画像として形成する画像形成手段とを設けたことを特徴とする画像形成装置が開示されている。 Patent Document 1 is an image forming apparatus having a reading means for reading an image from a document and a function of forming an image of two document surfaces as one image, and the operator specifies the type of the document. A means and a document surface switching instruction means for instructing an operator to switch between two document surfaces according to the document type are provided, and the document type and the document are read when the document surface of the specified document type is read. Disclosure of an image forming apparatus characterized in that an image processing means for performing image processing specified in advance by a surface and an image forming means for forming the two read images as one image having a predetermined output size are provided. Has been done.

特開2009−100102号公報Japanese Unexamined Patent Publication No. 2009-100102

原稿を読み取り、読み取った原稿の画像を記録媒体に形成するといった複数の機能を有する画像形成装置で、例えば自動車運転免許証及びパスポート等の身分証明書を複写することがある。 An image forming apparatus having a plurality of functions such as reading a manuscript and forming an image of the read manuscript on a recording medium may copy an identification card such as a driver's license and a passport.

身分証明書にも様々な形状があり、身分証明書の形状によっては、読み取り装置で読み取った身分証明書を含む画像から、身分証明書に相当する箇所が正しく抽出されずに、身分証明書全体が記録媒体に形成されないことがある。 There are various shapes of ID cards, and depending on the shape of the ID card, the part corresponding to the ID card is not correctly extracted from the image including the ID card read by the reading device, and the entire ID card is not extracted. May not be formed on the recording medium.

また、身分証明書を画像として読み取る読み取り装置の解像度が低くなるに従って、読み取り装置で読み取った身分証明書を含む画像が不鮮明となり、身分証明書に相当する箇所が正しく抽出されずに、身分証明書全体が記録媒体に形成されないことがある。 In addition, as the resolution of the reading device that reads the identification card as an image becomes lower, the image including the identification card read by the reading device becomes unclear, and the part corresponding to the identification card is not correctly extracted, and the identification card is not extracted correctly. The whole may not be formed on the recording medium.

一方で、身分証明書の大きさに関わらず、例えば定型の大きさで身分証明書に相当する箇所を画像から抽出すると、身分証明書の背景部分の映り込みが大きくなり、場合によっては有効な身分証明書の複写として受け付けてもらえないことがある。 On the other hand, regardless of the size of the ID card, for example, if a part of the standard size corresponding to the ID card is extracted from the image, the background part of the ID card will be reflected more, which is effective in some cases. It may not be accepted as a copy of your ID.

本発明は、上記内容を鑑みてなされたものであり、原稿を読み取る読み取り装置の解像度または原稿の形状に関わらず、原稿の背景部分の映り込みを抑制しつつ、原稿全体が含まれる画像を取得することができる画像処理装置および画像形成装置を提供することを目的とする。 The present invention has been made in view of the above contents, and obtains an image including the entire original while suppressing reflection of the background portion of the original regardless of the resolution of the scanning device for reading the original or the shape of the original. It is an object of the present invention to provide an image processing apparatus and an image forming apparatus capable of the present invention.

上記目的を達成するために、請求項1記載の画像処理装置の発明は、読み取り装置で読み取られた原稿を含む入力画像を取得する取得手段と、前記取得手段で取得した前記入力画像から検出した前記原稿の輪郭を表す基準範囲を拡張し、前記原稿を含む原稿画像の範囲として設定する設定手段と、前記設定手段で設定した範囲の前記原稿画像を出力する出力手段と、を備え、前記設定手段は、前記原稿画像の範囲が前記入力画像の範囲を超える場合、前記原稿画像の範囲が前記入力画像の範囲内に含まれるように、前記基準範囲に対する拡張幅を設定する。 In order to achieve the above object, the invention of the image processing apparatus according to claim 1 is detected from an acquisition means for acquiring an input image including a document read by the reading device and the input image acquired by the acquisition means. extend the reference range that represents the outline of the document, comprising setting means for setting a range of an original image including the original, and output means for outputting the document image in a range set by the setting means, wherein the setting means, if the range of the original image exceeds the range of the input image, so that the range of the original image are included within the scope of the input image, to set the extended width with respect to the reference range.

請求項2記載の発明は、読み取り装置で読み取られた原稿を含む入力画像を取得する取得手段と、前記取得手段で取得した前記入力画像から検出した前記原稿の輪郭を表す基準範囲を拡張し、前記原稿を含む原稿画像の範囲として設定する設定手段と、前記設定手段で設定した範囲の前記原稿画像を出力する出力手段と、を備え、前記設定手段は、前記原稿の輪郭に曲線が含まれる場合、前記入力画像の予め定めた方向に対する前記基準範囲の傾斜角が大きくなるに従って、前記基準範囲に対する拡張幅を小さくするThe invention according to claim 2 extends an acquisition means for acquiring an input image including a document read by a reading device and a reference range representing the outline of the document detected from the input image acquired by the acquisition means. The setting means includes a setting means for setting the range of the original image including the original and an output means for outputting the original image in the range set by the setting means, and the setting means includes a curve in the outline of the original. In this case, as the inclination angle of the reference range with respect to the predetermined direction of the input image increases, the expansion width with respect to the reference range is reduced .

請求項3記載の発明は、読み取り装置で読み取られた原稿を含む入力画像を取得する取得手段と、前記取得手段で取得した前記入力画像から検出した前記原稿の輪郭を表す基準範囲を拡張し、前記原稿を含む原稿画像の範囲として設定する設定手段と、前記設定手段で設定した範囲の前記原稿画像を出力する出力手段と、を備え、前記設定手段は、前記読み取り装置における前記入力画像の読み取り精度が高くなるに従って、前記基準範囲に対する拡張幅を小さくするThe invention according to claim 3 extends an acquisition means for acquiring an input image including a document read by a reading device and a reference range representing the outline of the document detected from the input image acquired by the acquisition means. The setting means for setting the range of the original image including the original and the output means for outputting the original image in the range set by the setting means are provided, and the setting means reads the input image by the reading device. As the accuracy increases, the expansion width with respect to the reference range is reduced .

請求項4記載の発明は、読み取り装置で読み取られた原稿を含む入力画像を取得する取得手段と、前記取得手段で取得した前記入力画像から検出した前記原稿の輪郭を表す基準範囲を拡張し、前記原稿を含む原稿画像の範囲として設定する設定手段と、前記設定手段で設定した範囲の前記原稿画像を出力する出力手段と、前記原稿画像に関する情報を報知する報知手段と、を備え、前記報知手段は、前記入力画像に前記原稿が含まれない場合、前記入力画像に前記原稿が含まれるように、前記原稿を前記読み取り装置に配置するよう報知するThe invention according to claim 4 extends an acquisition means for acquiring an input image including a document read by a reading device and a reference range representing the outline of the document detected from the input image acquired by the acquisition means. The notification is provided with a setting means for setting the range of the original image including the original, an output means for outputting the original image in the range set by the setting means, and a notification means for notifying information about the original image. When the input image does not include the original, the means notifies that the original is placed in the reading device so that the input image includes the original .

請求項5記載の発明は、前記報知手段は、前記出力手段から前記原稿画像を出力する前に、前記入力画像を報知する。 In the invention according to claim 5, the notifying means notifies the input image before outputting the manuscript image from the output means.

請求項6記載の発明は、前記設定手段は、前記原稿の変曲点を用いて前記基準範囲を設定する。 In the invention according to claim 6, the setting means sets the reference range by using the inflection point of the manuscript.

請求項7記載の発明は、前記設定手段は、前記入力画像に前記基準範囲の各頂点が含まれる場合、前記基準範囲における少なくとも2つの頂点からの拡張幅が同じになるように、前記原稿画像の範囲を設定する。 According to the invention of claim 7, when the input image includes each vertex of the reference range, the manuscript image has the same extension width from at least two vertices in the reference range. Set the range of.

請求項8記載の発明は、前記設定手段は、前記基準範囲における各頂点からの拡張幅が同じになるように、前記原稿画像の範囲を設定する
請求項9記載の発明は、前記設定手段は、前記入力画像における前記基準範囲の位置に関わらず、前記基準範囲における少なくとも2つの頂点からの拡張幅が同じになるように、前記原稿画像の範囲を設定する
In the invention according to claim 8, the setting means sets the range of the original image so that the extension width from each vertex in the reference range is the same .
According to a ninth aspect of the present invention, the setting means has the same range of the original image so that the extension width from at least two vertices in the reference range is the same regardless of the position of the reference range in the input image. To set .

請求項10記載の発明は、前記設定手段は、前記入力画像に同じ種類の複数の前記原稿画像が含まれる場合、各々の前記原稿画像の大きさが同じになるように、前記基準範囲に対する拡張幅を設定する。 The invention according to claim 10 , wherein when the input image includes a plurality of the original images of the same type, the setting means is extended with respect to the reference range so that the sizes of the original images are the same. Set the width.

請求項11記載の発明は、前記設定手段は、複数の前記入力画像に同じ種類の前記原稿の画像が各々含まれる場合、各々の前記原稿に対する前記原稿画像の大きさが同じになるように、前記基準範囲に対する拡張幅を設定する。 According to the invention of claim 11 , when the plurality of input images include images of the same type of manuscript, the size of the manuscript image with respect to each of the manuscripts is the same. The extension width with respect to the reference range is set.

請求項1記載の発明は、前記取得手段は、利用者が指定した拡張幅を取得し、前記設定手段は、前記取得手段で取得した拡張幅を、前記基準範囲に対する拡張幅としても用いる。 The invention of claim 1 wherein, said acquiring means acquires the extended width specified by the user, the setting means, the extension width acquired by the acquisition unit is also used as an extension width with respect to the reference range.

請求項1記載の発明は、前記設定手段は、前記原稿画像が予め定めた配置方向に対して傾斜している場合、前記原稿画像が前記予め定めた配置方向に沿って配置されるように、前記原稿画像の傾斜を補正する。 The invention of claim 1 3, wherein, said setting means, the document when the image is tilted with respect to a predetermined orientation, so that the original image is arranged along the predetermined arrangement direction , The inclination of the original image is corrected.

請求項1記載の画像形成装置の発明は、原稿を画像として読み取る読み取り手段と、請求項1から請求項11の何れか1項に記載の画像処理装置と、前記画像処理装置から出力された原稿画像を記録媒体に形成する画像形成手段と、を備える。 Invention of the image forming apparatus according to claim 1 4, wherein the reading means for reading an original as the image, the image processing apparatus according to claims 1 to any one of claims 11, output from the image processing apparatus An image forming means for forming an original image on a recording medium is provided.

請求項1、1記載の発明によれば、原稿を読み取る読み取り装置の解像度または原稿の形状に関わらず、原稿の背景部分の映り込みを抑制しつつ、原稿全体が含まれる画像を取得することができる、という効果を有する。 According to the invention of claim 1,1 4 wherein, regardless of the resolution or the original shape of the reading device for reading a document, while suppressing the reflection of the background portion of the document, obtaining an image includes the entire document It has the effect of being able to.

請求項2記載の発明によれば、原稿画像の傾斜角によらず拡張幅を予め定めた長さに固定する場合と比較して、原稿の原寸大に近い原稿画像を取得することができる、という効果を有する。 According to the invention of claim 2, it is possible to obtain a document image close to the actual size of the document as compared with the case where the extension width is fixed to a predetermined length regardless of the tilt angle of the document image. It has the effect of.

請求項3記載の発明によれば、入力画像の読み取り精度によらずに拡張幅を予め定めた長さに固定する場合と比較して、原稿の原寸大に近い原稿画像を取得することができる、という効果を有する。 According to the invention of claim 3, it is possible to obtain a document image close to the actual size of the document as compared with the case where the extension width is fixed to a predetermined length regardless of the reading accuracy of the input image. , Has the effect.

請求項4記載の発明によれば、入力画像の再取得を報知しない場合と比較して、原稿全体が含まれる入力画像を取得することができる、という効果を有する。 According to the fourth aspect of the present invention, there is an effect that the input image including the entire manuscript can be acquired as compared with the case where the reacquisition of the input image is not notified.

請求項5記載の発明によれば、原稿画像を確認させずに外部に出力する場合と比較して、原稿画像に原稿全体が含まれていない頻度を低減させることができる、という効果を有する。 According to the fifth aspect of the present invention, there is an effect that the frequency in which the entire manuscript is not included in the manuscript image can be reduced as compared with the case where the manuscript image is output to the outside without being confirmed.

請求項6記載の発明によれば、原稿の変曲点から設定した基準範囲を原稿画像の範囲とする場合と比較して、原稿全体が含まれる画像を取得することができる、という効果を有する。 According to the invention of claim 6, it has an effect that an image including the entire manuscript can be obtained as compared with the case where the reference range set from the inflection point of the manuscript is set as the range of the manuscript image. ..

請求項7記載の発明によれば、基準範囲の拡張幅が各々異なる場合と比較して、原稿画像の視認性を向上させることができる、という効果を有する。 According to the invention of claim 7, the visibility of the original image can be improved as compared with the case where the extended widths of the reference ranges are different from each other.

請求項8記載の発明によれば、基準範囲の拡張幅が各々異なる場合と比較して、原稿画像の視認性を更に向上させることができる、という効果を有する。
請求項9記載の発明によれば、入力画像の予め定めた範囲に基準範囲が含まれる際に、基準範囲の拡張幅を調整する場合と比較して、原稿の読み取りに関する操作性を向上させることができる、という効果を有する。
According to the invention of claim 8, the visibility of the original image can be further improved as compared with the case where the extended widths of the reference ranges are different from each other.
According to the invention of claim 9, when the reference range is included in the predetermined range of the input image, the operability regarding reading the original is improved as compared with the case where the extension width of the reference range is adjusted. It has the effect of being able to.

請求項10記載の発明によれば、1つの入力画像に含まれる同じ種類の原稿画像の大きさを調整しない場合と比較して、原稿画像の内容の確認効率を向上させることができる、という効果を有する。 According to the invention of claim 10, it is possible to improve the efficiency of confirming the content of the original image as compared with the case where the size of the original image of the same type included in one input image is not adjusted. Has.

請求項1記載の発明によれば、複数の入力画像に含まれる同じ種類の原稿画像の大きさを調整しない場合と比較して、原稿画像の内容の確認効率を向上させることができる、という効果を有する。 According to the invention of claim 1 1, wherein, compared to not adjust the size of the same type of original images included in the plurality of input images, thereby improving the confirmation efficiency of the contents of the original image, that Has an effect.

請求項1記載の発明によれば、画像処理装置で算出した拡張幅を用いる場合と比較して、利用者が意図する大きさの原稿画像を取得することができる、という効果を有する。 According to the invention of claim 1 wherein, as compared with the case of using an extended width calculated in the image processing apparatus can acquire the size of the original image that the user intends, an effect that.

請求項1記載の発明によれば、原稿画像の配置を補正しない場合と比較して、原稿画像の内容の確認効率を向上させることができる、という効果を有する。 According to the invention of claim 1 3, wherein, as compared with the case without correcting the arrangement of the original image, it is possible to improve confirmation efficiency of the contents of the original image, an effect that.

画像形成装置の一例を示す要部斜視図である。It is a main part perspective view which shows an example of an image forming apparatus. 画像形成装置の構成例を示す機能ブロック図である。It is a functional block diagram which shows the structural example of the image forming apparatus. 画像形成装置の電気系統の要部構成例を示す図である。It is a figure which shows the example of the composition of the main part of the electric system of an image forming apparatus. 画像処理の流れの一例を示すフローチャートである。It is a flowchart which shows an example of the flow of image processing. 矩形の身分証明書の角に相当する座標の一例を示す図である。It is a figure which shows an example of the coordinates corresponding to the corner of the rectangular identification card. 四隅の角に丸みを帯びた身分証明書の角に相当する座標の一例を示す図である。It is a figure which shows an example of the coordinates corresponding to the corner of the identification card with rounded corners. 原稿確認処理の流れの一例を示すフローチャートである。It is a flowchart which shows an example of the flow of a manuscript confirmation process. 入力画像から原稿の3隅がはみ出している場合の配置例を示す模式図である。It is a schematic diagram which shows the arrangement example when three corners of a document protrude from an input image. 入力画像から原稿の2隅がはみ出している場合の配置例を示す模式図である。It is a schematic diagram which shows the arrangement example when two corners of a document protrude from an input image. 原稿の大きさの一例を示す図である。It is a figure which shows an example of the size of a manuscript. 複数の原稿の可能性がある場合に表示される情報画面の一例を示す図である。It is a figure which shows an example of the information screen which is displayed when there is a possibility of a plurality of originals. 利用者に原稿の再スキャンを喚起する情報画面の一例を示す図である。It is a figure which shows an example of an information screen which urges a user to rescan a document. 基準範囲の設定例を示す図である。It is a figure which shows the setting example of a reference range. 基準範囲によって枠部分が切り取られた原稿例を示す図である。It is a figure which shows the example of the manuscript which the frame part was cut off by the reference range. 基準範囲によって枠部分が切り取られた他の原稿例を示す図である。It is a figure which shows the example of another manuscript which the frame part was cut off by a reference range. 枠切れ補正処理の説明に供する模式図である。It is a schematic diagram which provides the explanation of the frame break correction processing. 1つの座標が入力画像の範囲外にはみ出した原稿画像の一例を示す図である。It is a figure which shows an example of the original image which one coordinate protruded from the range of the input image. 枠切れ再補正処理の流れの一例を示すフローチャートである。It is a flowchart which shows an example of the flow of the frame break re-correction process. 1つの座標が入力画像の範囲外にはみ出した原稿画像に対する枠切れ再補正処理の説明に供する模式図である。It is a schematic diagram provided for the explanation of the frame break re-correction process for the original image in which one coordinate is out of the range of the input image. 2つの座標が入力画像の範囲外にはみ出した原稿画像の一例を示す図である。It is a figure which shows an example of a manuscript image in which two coordinates are out of the range of an input image. 2つの座標が入力画像の範囲外にはみ出した原稿画像に対する枠切れ再補正処理の経過説明に供する模式図である。It is a schematic diagram provided for the progress explanation of the frame break re-correction process for the original image in which the two coordinates are out of the range of the input image. 2つの座標が入力画像の範囲外にはみ出した原稿画像に対する枠切れ再補正処理の実行結果の一例を示す図である。It is a figure which shows an example of the execution result of the frame break re-correction processing for the original image which two coordinates are out of the range of an input image. 傾斜した原稿画像の一例を示す図である。It is a figure which shows an example of the inclined document image. 四隅の角に丸みを帯びた原稿の幅方向を水平に配置した場合の入力画像の一例を示す図である。It is a figure which shows an example of the input image in the case where the width direction of a document with rounded corners is arranged horizontally. 四隅の角に丸みを帯びた原稿の幅方向を傾斜させて配置した場合の入力画像の一例を示す図である。It is a figure which shows an example of the input image at the time of arranging the original with rounded corners at an angle in the width direction. 利用者に原稿の再配置を喚起する情報画面の一例を示す図である。It is a figure which shows an example of the information screen which urges the user to rearrange a manuscript. 拡張幅の設定を受け付ける情報画面の一例を示す図である。It is a figure which shows an example of the information screen which accepts the setting of an extended width.

以下、本実施の形態について図面を参照しながら説明する。なお、機能が同じ構成要素および処理には、全図面を通して同じ符合を付与し、重複する説明を省略する。 Hereinafter, the present embodiment will be described with reference to the drawings. The components and processes having the same function are given the same code throughout the drawings, and duplicate description is omitted.

図1に、画像形成装置10の要部斜視図を示す。画像形成装置10は一例として、紙等の記録媒体に形成された画像を画像データとして読み込むスキャナ機能、画像データに対応した画像を記録媒体に形成する印刷機能、公衆回線等に接続された他の画像形成装置等に対して、画像データを送信するファクシミリ(facsimile:FAX)機能、及び記録媒体に形成された画像を他の記録媒体に複写する複写機能を有する。 FIG. 1 shows a perspective view of a main part of the image forming apparatus 10. As an example, the image forming apparatus 10 has a scanner function of reading an image formed on a recording medium such as paper as image data, a printing function of forming an image corresponding to the image data on the recording medium, and another connected to a public line or the like. It has a facsimile (facsimile: FAX) function for transmitting image data to an image forming apparatus and the like, and a copying function for copying an image formed on a recording medium to another recording medium.

なお、画像形成装置10が有する機能はスキャナ機能、印刷機能、FAX機能、及び複写機能に限定されず、例えば3次元プリンタのように3Dデータに基づいて立体物を形成する機能を含むものであってもよい。 The functions of the image forming apparatus 10 are not limited to the scanner function, the printing function, the FAX function, and the copying function, but include a function of forming a three-dimensional object based on 3D data, such as a three-dimensional printer. You may.

画像形成装置10には、画像形成装置10に備えられた各機能を制御する制御部2が含まれる。そして、画像形成装置10の上部には、例えば原稿読み取り部12が設けられ、原稿読み取り部12の下方に画像形成ユニット19が設けられている。 The image forming apparatus 10 includes a control unit 2 that controls each function provided in the image forming apparatus 10. Then, for example, a document reading unit 12 is provided above the image forming apparatus 10, and an image forming unit 19 is provided below the document reading unit 12.

原稿読み取り部12は、図示しない原稿読み取り装置と原稿カバー16内の原稿搬送部18を含んで構成される。原稿搬送部18は、原稿カバー16に設けられている原稿台16A上に載せられた原稿20を順に引き込んで、図示しない搬送原稿読み取りガラス(「プラテンガラス」ともいう)上に搬送する。そして、原稿読み取り部12は、図示しない搬送原稿読み取りガラス上に搬送された原稿20の画像を、図示しない光学読み取り装置で入力画像70として読み取る。その後、原稿搬送部18は、画像の読み込みが終了した原稿20を原稿カバー16に設けられている排出台16B上に排出する。 The document reading unit 12 includes a document reading device (not shown) and a document transporting unit 18 in the document cover 16. The document transporting unit 18 draws the document 20 placed on the document table 16A provided on the document cover 16 in order, and transports the document 20 onto a transport document reading glass (also referred to as “platen glass”) (also referred to as “platen glass”) (not shown). Then, the document reading unit 12 reads the image of the document 20 conveyed on the conveyed document reading glass (not shown) as the input image 70 by an optical reading device (not shown). After that, the document transport unit 18 ejects the document 20 for which the image has been read onto the ejection table 16B provided on the document cover 16.

一方、画像形成ユニット19は、記録媒体の種別やサイズ毎に分類された用紙収容部28に収容される記録媒体上に、例えば電子写真方式によって入力画像70に基づく画像を形成する。なお、画像形成ユニット19が記録媒体に形成する画像の色に制約はなく、カラー画像であっても白黒画像であってもよい。画像形成ユニット19は、画像形成手段の一例である。 On the other hand, the image forming unit 19 forms an image based on the input image 70 on the recording medium accommodated in the paper accommodating unit 28 classified according to the type and size of the recording medium, for example, by an electrophotographic method. The color of the image formed by the image forming unit 19 on the recording medium is not limited, and may be a color image or a black-and-white image. The image forming unit 19 is an example of an image forming means.

画像形成装置10の利用者(以降、単に「利用者」という)によってスキャナ機能の使用が指示された場合、制御部2は、原稿読み取り部12を制御し、原稿読み取り部12で読み取った原稿20の入力画像70を、例えばハードディスク等の記憶媒体に記憶する。 When the user of the image forming apparatus 10 (hereinafter, simply referred to as “user”) instructs the use of the scanner function, the control unit 2 controls the document reading unit 12 and the document 20 read by the document reading unit 12. The input image 70 is stored in a storage medium such as a hard disk.

また、利用者によって印刷機能の使用が指示された場合、制御部2は、画像形成ユニット19を制御し、ユーザによって指定された入力画像70に基づく画像を、例えば紙等の記録媒体に形成する。 When the user instructs to use the print function, the control unit 2 controls the image forming unit 19 to form an image based on the input image 70 designated by the user on a recording medium such as paper. ..

また、利用者によってFAX機能の使用が指示された場合、制御部2は、原稿読み取り部12を制御して原稿読み取り部12で読み取った原稿20の入力画像70に基づく画像、又はユーザによって指定された画像を、公衆回線等に接続されたFAX機能を有する指定先の他の画像形成装置へ送信すると共に、当該他の画像形成装置から画像データを受信した場合、画像形成ユニット19を制御して、受信した画像データに基づく画像を記録媒体に形成する。 When the user instructs to use the FAX function, the control unit 2 is designated by the user or an image based on the input image 70 of the document 20 read by the document reading unit 12 by controlling the document reading unit 12. When the image is transmitted to another designated image forming device having a FAX function connected to a public line or the like and image data is received from the other image forming device, the image forming unit 19 is controlled. , An image based on the received image data is formed on the recording medium.

また、利用者によって複写機能の使用が指示された場合、制御部2は、原稿読み取り部12を制御して原稿読み取り部12で読み取った原稿20の入力画像70に基づく画像、又はユーザによって指定された画像を、画像形成ユニット19を制御して記録媒体に形成する。 When the user instructs to use the copy function, the control unit 2 controls the document reading unit 12 and is designated by the user as an image based on the input image 70 of the document 20 read by the document reading unit 12. The image is formed on a recording medium by controlling the image forming unit 19.

一方、画像形成装置10には、利用者による各種機能の実行に関する操作を受け付けると共に、画像形成装置10の機能に関する各種情報を表示するユーザインターフェース装置22(以降、「UI装置22」という)が設けられている。具体的には、UI装置22には、例えばタッチパネルが重畳され、ソフトウェアプログラムによってユーザからの操作を受け付ける表示ボタン等や各種情報が表示される液晶ディスプレイ24、並びに、テンキー及びスタートボタンなどのハードウェアキー26等が設けられている。 On the other hand, the image forming apparatus 10 is provided with a user interface device 22 (hereinafter referred to as "UI device 22") that accepts operations related to the execution of various functions by the user and displays various information related to the functions of the image forming apparatus 10. Has been done. Specifically, for example, a touch panel is superimposed on the UI device 22, a display button that accepts operations from the user by a software program, a liquid crystal display 24 that displays various information, and hardware such as a numeric keypad and a start button. A key 26 and the like are provided.

更に、UI装置22には、例えばUniversal Serial Bus(USB)メモリやメモリカード等の可搬型記憶媒体を接続し、可搬型記憶媒体に記憶された画像データで表される画像を画像形成装置10に読み込むと共に、例えばスキャナ機能で原稿20から読み取った入力画像70を表す画像データ等、画像形成装置10内部のデータを可搬型記憶媒体に書き込むインターフェースとなる外部端子30を備える。 Further, a portable storage medium such as a Universal Serial Bus (USB) memory or a memory card is connected to the UI device 22, and an image represented by image data stored in the portable storage medium is transmitted to the image forming device 10. In addition to being read, it is provided with an external terminal 30 that serves as an interface for writing data inside the image forming apparatus 10 to a portable storage medium, such as image data representing an input image 70 read from the original 20 by a scanner function.

UI装置22が備えるデバイスは上記の内容に限られず、例えば音声で利用者に情報を通知するスピーカ、または音声で利用者の指示を受け付けるマイク等を備えるようにしてもよい。このように、UI装置22は、画像形成装置10での処理内容を文字、記号、図形、画像および音声等の少なくとも1つを用いて利用者に知らせる報知手段の一例である。 The device included in the UI device 22 is not limited to the above contents, and may include, for example, a speaker for notifying the user of information by voice, a microphone for receiving instructions of the user by voice, and the like. As described above, the UI device 22 is an example of the notification means for notifying the user of the processing content of the image forming device 10 by using at least one of characters, symbols, figures, images, sounds, and the like.

図2は、画像形成装置10の構成例を示す機能ブロック図である。画像形成装置10は、原稿読み取り装置25を備えた原稿読み取り部12、取得部13、設定部15、画像出力部17、画像形成ユニット19およびUI装置22を含む。UI装置22には、例えばタッチパネルおよびハードウェアキー26等を備えた入力部22A、並びに、液晶ディスプレイ24等を備えた出力部22Bを含む。 FIG. 2 is a functional block diagram showing a configuration example of the image forming apparatus 10. The image forming apparatus 10 includes a document reading unit 12 including a document reading device 25, an acquisition unit 13, a setting unit 15, an image output unit 17, an image forming unit 19, and a UI device 22. The UI device 22 includes, for example, an input unit 22A provided with a touch panel, a hardware key 26, and the like, and an output unit 22B provided with a liquid crystal display 24 and the like.

取得部13は取得手段の一例であり、原稿読み取り部12で読み取られた原稿20の画像を入力画像70として取得し、設定部15へ通知する。また、取得部13は、利用者によってUI装置22の入力部22Aから入力された指示等を取得する。 The acquisition unit 13 is an example of the acquisition means, and acquires the image of the document 20 read by the document reading unit 12 as the input image 70 and notifies the setting unit 15. Further, the acquisition unit 13 acquires an instruction or the like input from the input unit 22A of the UI device 22 by the user.

設定部15は、取得部13から入力画像70を受け付けると、入力画像70に含まれる原稿20の変曲点を検出し、検出した変曲点を線で接続した閉領域を形成することによって、入力画像70における原稿20の範囲を示す基準範囲62を設定する。ここで、変曲点とは、線の進行方向が変化し始める位置に対応した点のことである。また、基準範囲62とは、入力画像70における原稿20の仮の位置を表す範囲である。 When the setting unit 15 receives the input image 70 from the acquisition unit 13, it detects the inflection points of the document 20 included in the input image 70 and forms a closed region in which the detected inflection points are connected by a line. A reference range 62 indicating the range of the document 20 in the input image 70 is set. Here, the inflection point is a point corresponding to a position where the traveling direction of the line starts to change. The reference range 62 is a range representing a temporary position of the document 20 on the input image 70.

設定部15は、設定した基準範囲62を拡張することで、入力画像70における原稿20の確定した位置を表す範囲(以降、「原稿画像66の範囲」という)を設定し、設定した原稿画像66の範囲を画像出力部17に通知する。すなわち、設定部15は設定手段の一例である。 By expanding the set reference range 62, the setting unit 15 sets a range representing a fixed position of the document 20 in the input image 70 (hereinafter, referred to as “range of the document image 66”), and sets the document image 66. Notify the image output unit 17 of the range of. That is, the setting unit 15 is an example of the setting means.

また、設定部15は、UI装置22の出力部22Bと接続され、取得部13から受け付けた入力画像70や、原稿画像66の範囲の設定に伴う各種情報を、出力部22Bを介して利用者に通知する。 Further, the setting unit 15 is connected to the output unit 22B of the UI device 22, and the user receives the input image 70 received from the acquisition unit 13 and various information associated with the setting of the range of the original image 66 via the output unit 22B. Notify to.

画像出力部17は、原稿画像66の範囲を設定部15から受け付けると、入力画像70から原稿画像66の範囲で示された領域を抽出して、抽出した原稿画像66を例えば画像形成ユニット19に出力する。すなわち、画像出力部17は出力手段の一例である。 When the image output unit 17 receives the range of the original image 66 from the setting unit 15, the image output unit 17 extracts the region indicated by the range of the original image 66 from the input image 70, and transfers the extracted original image 66 to, for example, the image forming unit 19. Output. That is, the image output unit 17 is an example of the output means.

なお、本実施の形態では、画像出力部17は、抽出した原稿画像66を画像形成ユニット19に出力するものとして説明するが、画像出力部17による原稿画像66の出力先は画像形成ユニット19に限られない。例えば、外部端子30に挿入された可搬型記憶媒体に原稿画像66を出力してもよい。また、例えばインターネット等の通信回線に接続された通信装置を介して、通信回線に接続されたスマートフォンまたはタブレット端末、若しくはパーソナルコンピュータ等の情報端末に原稿画像66を出力するようにしてもよい。 In the present embodiment, the image output unit 17 will be described as outputting the extracted original image 66 to the image forming unit 19, but the output destination of the original image 66 by the image output unit 17 is to the image forming unit 19. Not limited. For example, the original image 66 may be output to a portable storage medium inserted in the external terminal 30. Further, the manuscript image 66 may be output to an information terminal such as a smartphone or tablet terminal connected to the communication line or an information terminal such as a personal computer via a communication device connected to a communication line such as the Internet.

画像形成ユニット19は、画像出力部17から原稿画像66を受け付けると、受け付けた原稿画像66を記録媒体に形成する。 When the image forming unit 19 receives the original image 66 from the image output unit 17, the image forming unit 19 forms the received original image 66 on the recording medium.

次に、図3を参照して、画像形成装置10の電気系統の要部構成について説明する。画像形成装置10の制御部2は、例えばコンピュータ50を用いて構成される。 Next, with reference to FIG. 3, the configuration of a main part of the electrical system of the image forming apparatus 10 will be described. The control unit 2 of the image forming apparatus 10 is configured by using, for example, a computer 50.

コンピュータ50は、CPU(Central Processing Unit)51、RAM(Random Access Memory)52、ROM(Read Only Memory)53、不揮発性メモリ54および入出力インターフェース(Input Output:I/O)55がバス56を介して各々接続され、I/O55には画像形成ユニット19、液晶ディスプレイ24、原稿読み取り装置25、入力デバイス29および通信装置27が接続されている。液晶ディスプレイ24および入力デバイス29は、UI装置22に含まれるデバイスである。 The computer 50 has a CPU (Central Processing Unit) 51, a RAM (Random Access Memory) 52, a ROM (Read Only Memory) 53, a non-volatile memory 54, and an input / output interface (Input Output: I / O) 55 via a bus 56. The image forming unit 19, the liquid crystal display 24, the document reading device 25, the input device 29, and the communication device 27 are connected to the I / O 55. The liquid crystal display 24 and the input device 29 are devices included in the UI device 22.

なお、I/O55に接続される液晶ディスプレイ24は一例であり、原稿読み取り装置25で読み取った原稿20の画像を利用者に表示するデバイスであればどのようなものであってもよく、有機EL(Electroluminescence)ディスプレイまたは電子ペーパー等であってもよい。また、入力デバイス29は、マイク、タッチパネルおよびハードウェアキー26といった、利用者からの指示を受け付けるデバイスの総称である。 The liquid crystal display 24 connected to the I / O 55 is an example, and any device may be used as long as it is a device that displays the image of the document 20 read by the document reading device 25 to the user. It may be a (Electroluminescence) display, electronic paper, or the like. Further, the input device 29 is a general term for devices that receive instructions from the user, such as a microphone, a touch panel, and a hardware key 26.

通信装置27は、画像形成装置10を公衆回線に接続し、FAX機能を有する他の画像形成装置とFAX機能を用いて画像を送受信する。また、通信装置27は、公衆回線だけではなくインターネット等の通信回線に接続し、例えば原稿画像66等のデータを送受信する。 The communication device 27 connects the image forming apparatus 10 to a public line, and transmits / receives an image by using the FAX function with another image forming apparatus having a FAX function. Further, the communication device 27 connects not only to a public line but also to a communication line such as the Internet, and transmits / receives data such as a manuscript image 66.

RAM52は、CPU51によるプログラムの実行時のワークエリア等として用いられ、ROM53には、画像形成装置10の動作を規定したプログラムが予め記憶されている。更に、不揮発性メモリ54には、プログラムの実行時にCPU51が参照する各種パラメータ及びテーブル等が予め記憶される。CPU51は、取得部13、設定部15および画像出力部17に相当する機能を実行する The RAM 52 is used as a work area or the like when the program is executed by the CPU 51, and the ROM 53 stores in advance a program that defines the operation of the image forming apparatus 10. Further, the non-volatile memory 54 stores in advance various parameters, tables, and the like that the CPU 51 refers to when the program is executed. The CPU 51 executes functions corresponding to the acquisition unit 13, the setting unit 15, and the image output unit 17.

なお、図3に示したI/O55に接続される装置は一例であり、図3に示した装置等に限られないことは言うまでもない。 Needless to say, the device connected to the I / O 55 shown in FIG. 3 is an example, and is not limited to the device shown in FIG.

次に、本実施形態に係る画像形成装置10の作用について説明する。 Next, the operation of the image forming apparatus 10 according to the present embodiment will be described.

図4は、原稿読み取り装置25で原稿20が読み取られた場合に、制御部2のCPU51によって実行される画像処理プログラムにおける画像処理の流れの一例を示すフローチャートである。以降では、原稿20の一例である身分証明書60を原稿読み取り装置25で読み取る例について説明する。 FIG. 4 is a flowchart showing an example of the flow of image processing in the image processing program executed by the CPU 51 of the control unit 2 when the document 20 is read by the document reading device 25. Hereinafter, an example in which the identification card 60, which is an example of the document 20, is read by the document reading device 25 will be described.

まず、ステップS10において、CPU51は、原稿読み取り装置25で読み取った入力画像70を取得し、例えばRAM52の予め定めた領域に記憶する。 First, in step S10, the CPU 51 acquires the input image 70 read by the document reading device 25 and stores it in, for example, a predetermined area of the RAM 52.

入力画像70の形状は原稿読み取り装置25における原稿20の読み取り領域の形状に従う。ここでは一例として、原稿20の読み取り領域は矩形とする。すなわち、入力画像70の形状は矩形となる。そして、例えば入力画像70の左上の頂点の座標を原点とし、原点から入力画像70の右上の頂点に沿った方向をX軸、原点から入力画像70の左下に沿った方向をY軸とするXY座標系を入力画像70に対して設定する。 The shape of the input image 70 follows the shape of the reading region of the document 20 in the document reading device 25. Here, as an example, the reading area of the document 20 is a rectangle. That is, the shape of the input image 70 is rectangular. Then, for example, XY with the coordinates of the upper left apex of the input image 70 as the origin, the direction from the origin along the upper right apex of the input image 70 as the X axis, and the direction from the origin along the lower left of the input image 70 as the Y axis. The coordinate system is set for the input image 70.

ステップS20において、CPU51は、ステップS10で取得した入力画像70に対して、例えば公知のエッジ検出処理等を実行し、身分証明書60の輪郭に相当する線分を抽出する。そして、CPU51は、エッジ検出処理を実行した入力画像70を予め定めた方向に走査しながら線分の変曲点を検出し、検出した線分の変曲点の座標を身分証明書60の角に相当する座標とする。 In step S20, the CPU 51 executes, for example, a known edge detection process or the like on the input image 70 acquired in step S10, and extracts a line segment corresponding to the outline of the identification card 60. Then, the CPU 51 detects the inflection point of the line segment while scanning the input image 70 subjected to the edge detection process in a predetermined direction, and sets the coordinates of the inflection point of the detected line segment at the corner of the identification card 60. The coordinates correspond to.

ここで、「予め定めた方向」とはX軸に沿った方向をいい、CPU51は、原点からX軸に沿って入力画像70を走査しながら入力画像70の画素を読み込み、入力画像70の右端まで達すると、今度は走査ラインをY軸方向に1ラインずらすことで、入力画像70全体を走査する。 Here, the "predetermined direction" means a direction along the X-axis, and the CPU 51 reads the pixels of the input image 70 while scanning the input image 70 along the X-axis from the origin, and reads the pixels of the input image 70, and the right end of the input image 70. When it reaches, the entire input image 70 is scanned by shifting the scanning line by one line in the Y-axis direction.

図5は、矩形の身分証明書60を含む入力画像70から検出した、身分証明書60の角に相当する座標の一例を示す図である。この場合、線分の変曲点は矩形の頂点となることから、身分証明書60の4つの頂点に対応した座標P1〜座標P4が身分証明書60の角に相当する座標として検出される。 FIG. 5 is a diagram showing an example of coordinates corresponding to the corners of the ID card 60 detected from the input image 70 including the rectangular ID card 60. In this case, since the inflection point of the line segment is a rectangular vertex, the coordinates P 1 to P 4 corresponding to the four vertices of the ID card 60 are detected as the coordinates corresponding to the corners of the ID card 60. To.

一方、図6は、四隅の角に丸みを帯びた身分証明書60を含む入力画像70から検出した、身分証明書60の角に相当する座標の一例を示す図である。この場合、図5に示した矩形の身分証明書60とは異なり、身分証明書60の輪郭に沿って直線から曲線に移行する4つの位置が、身分証明書60の4つの角に相当する座標P1〜座標P4として検出される。 On the other hand, FIG. 6 is a diagram showing an example of coordinates corresponding to the corners of the ID card 60 detected from the input image 70 including the ID card 60 having rounded corners. In this case, unlike the rectangular ID card 60 shown in FIG. 5, the four positions where the straight line shifts to the curved line along the contour of the ID card 60 correspond to the four corners of the ID card 60. Detected as P 1 to coordinates P 4.

ステップS30において、CPU51は、ステップS10で取得した入力画像70に身分証明書60が含まれるか否かを判定する原稿確認処理を実行する。 In step S30, the CPU 51 executes a manuscript confirmation process for determining whether or not the input image 70 acquired in step S10 includes the identification card 60.

図7は、原稿確認処理の流れの一例を示すフローチャートである。 FIG. 7 is a flowchart showing an example of the flow of the document confirmation process.

ステップS300において、CPU51は、図4のステップS20で、身分証明書60の角に相当する3つ以上の座標を検出したか否かを判定する。身分証明書60の中には、四隅の角に丸みを帯びた身分証明書60があるとはいえ、身分証明書60の形状は、円や台形等の形状に比べて矩形に近いことが多いため、例えば3つの座標が検出されていれば、未検出の身分証明書60の角に相当する座標は、検出された3つの座標から推定される。 In step S300, the CPU 51 determines whether or not three or more coordinates corresponding to the corners of the identification card 60 have been detected in step S20 of FIG. Although some of the ID cards 60 have rounded corners, the shape of the ID card 60 is often closer to a rectangle than a shape such as a circle or a trapezoid. Therefore, for example, if three coordinates are detected, the coordinates corresponding to the corners of the undetected ID card 60 are estimated from the detected three coordinates.

また、3つ以上の複数の座標が検出されていることから、検出された座標は、プラテンガラスに付着したごみや疵によるものとは考えにくく、身分証明書60の輪郭における変曲点に対応した座標と考えられる。 In addition, since three or more coordinates are detected, it is unlikely that the detected coordinates are due to dust or scratches adhering to the platen glass, and correspond to the inflection point in the outline of the identification card 60. It is considered to be the coordinates.

更に、検出された座標が4つの場合は、検出された座標が3つの場合よりも原稿20である蓋然性が高い。 Further, when the detected coordinates are four, it is more likely that the document 20 is the document 20 than when the detected coordinates are three.

したがって、ステップS300の判定処理が肯定判定の場合には、後ほど説明するステップS340に移行する。 Therefore, when the determination process in step S300 is an affirmative determination, the process proceeds to step S340, which will be described later.

一方、ステップS300の判定処理が否定判定の場合、すなわち、身分証明書60の角に相当する座標が2つ以下しか検出されていない場合は、ステップS310に移行する。 On the other hand, if the determination process in step S300 is a negative determination, that is, if only two or less coordinates corresponding to the corners of the ID card 60 are detected, the process proceeds to step S310.

ステップS310において、CPU51は、図4のステップS20で検出された身分証明書60の角に相当する座標が、2つであるか否かを判定し、否定判定の場合、すなわち、検出された座標が1つ以下の場合には、ステップS350に移行する。 In step S310, the CPU 51 determines whether or not there are two coordinates corresponding to the corners of the identification card 60 detected in step S20 of FIG. 4, and in the case of a negative determination, that is, the detected coordinates. If there is one or less, the process proceeds to step S350.

図8は、原稿読み取り装置25における原稿20の読み取り領域に対して、例えば身分証明書60の3隅がはみ出すように置かれたため、入力画像70から身分証明書60の3隅がはみ出している場合の一例を示す模式図である。 FIG. 8 shows a case where the three corners of the identification card 60 protrude from the input image 70 because, for example, the three corners of the identification card 60 protrude from the reading area of the document 20 in the document reading device 25. It is a schematic diagram which shows an example.

この場合、入力画像70に含まれる身分証明書60の角に相当する座標は座標P11つであるため、検出された座標P1から他の角に相当する座標P2〜座標P4を推定することは困難である。また、検出された座標が1つであることから、座標P1がプラテンガラスに付着したごみや疵に対応した座標であることも考えられる。 In this case, since the coordinates corresponding to the corners of the identification 60 in the input image 70 is one coordinates P 1, the coordinates P 2 ~ coordinates P 4 corresponding the coordinates P 1 detected in other corners It is difficult to estimate. Further, since the detected coordinates are one, it is conceivable that the coordinates P 1 are the coordinates corresponding to the dust and flaws adhering to the platen glass.

したがって、ステップS350において、CPU51は、例えばRAM52に記憶されるフラグFの値を“0”に設定し、図7に示す原稿確認処理を終了する。ここで、フラグFは、値が“0”の場合、入力画像70に何れの原稿20も含まれないことを表し、値が“1”の場合、入力画像70に何らかの原稿20が含まれることを表す変数である。 Therefore, in step S350, the CPU 51 sets the value of the flag F stored in the RAM 52, for example, to “0” and ends the document confirmation process shown in FIG. 7. Here, the flag F indicates that when the value is "0", the input image 70 does not include any manuscript 20, and when the value is "1", the input image 70 includes some manuscript 20. It is a variable that represents.

一方、ステップS310の判定処理が肯定判定の場合、すなわち、検出された座標が2つの場合には、ステップS320に移行する。 On the other hand, when the determination process in step S310 is an affirmative determination, that is, when the detected coordinates are two, the process proceeds to step S320.

図9は、原稿読み取り装置25における原稿20の読み取り領域に対して、例えば身分証明書60の2隅がはみ出すように置かれたため、入力画像70から身分証明書60の2隅がはみ出している場合の一例を示す模式図である。 FIG. 9 shows a case where the two corners of the identification card 60 protrude from the input image 70 because, for example, the two corners of the identification card 60 protrude from the reading area of the document 20 in the document reading device 25. It is a schematic diagram which shows an example.

検出された座標が2つであっても、当該座標間を接続する直線L1の長さが、画像形成装置10に予め登録されている原稿20の幅または高さに近い値であれば、登録されている原稿20の何れかが入力画像70に含まれる蓋然性が高いと考えられる。 Even if there are two detected coordinates, if the length of the straight line L 1 connecting the coordinates is close to the width or height of the document 20 registered in advance in the image forming apparatus 10. It is highly probable that any of the registered manuscripts 20 is included in the input image 70.

したがって、ステップS320において、CPU51は、検出された2つの座標(図9の例では、座標P1と座標P2)を接続する直線L1の長さを算出する。 Therefore, in step S320, the CPU 51 calculates the length of the straight line L 1 connecting the two detected coordinates (coordinate P 1 and coordinate P 2 in the example of FIG. 9).

ステップS330において、CPU51は、ステップS320で算出した直線L1の長さが、例えば不揮発性メモリ54に予め記憶されている原稿20の幅または高さと同じか否かを判定する。なお、「直線L1の長さが原稿20の幅または高さと同じ」とは、直線L1の長さが、登録されている原稿20の幅または高さと同じとみなせる範囲の長さである場合も含まれる。 In step S330, CPU 51 determines the length of the straight line L 1 calculated in step S320 is, for example, whether the same as the width or height of the document 20 which is previously stored in the nonvolatile memory 54. Note that the "length of the straight line L 1 is the same as the width or the height of the document 20", the length of the straight line L 1 is, is the length in a range that can be regarded the same as the width or height of the document 20 registered Cases are also included.

図10は、不揮発性メモリ54に記憶される原稿20の大きさの一例を示す図である。なお、原稿20の幅Wとは、原稿20の記載内容が天地逆転しないように、原稿20を原稿読み取り装置25の原稿20の読み取り領域に置いた場合の水平方向に沿った長さであり、原稿20の高さHとは、原稿20の幅Wと直交する方向の長さをいう。 FIG. 10 is a diagram showing an example of the size of the document 20 stored in the non-volatile memory 54. The width W of the original 20 is a length along the horizontal direction when the original 20 is placed in the reading area of the original 20 of the original reading device 25 so that the description contents of the original 20 are not reversed upside down. The height H of the document 20 means the length in the direction orthogonal to the width W of the document 20.

図10に示すように、不揮発性メモリ54には、例えば身分証明書60の一例であるIDカード60A、2つ折りした戸籍(半面)60B、戸籍(半面)60Bを折り目に従って展開した戸籍(全面)60C、2つ折りしたパスポート(半面)60Dおよびパスポート(半面)60Dを折り目に従って展開したパスポート(全面)60E等の各々の幅Wおよび高さHが含まれる。 As shown in FIG. 10, in the non-volatile memory 54, for example, the ID card 60A, which is an example of the identification card 60, the family register (half side) 60B folded in half, and the family register (half side) 60B developed according to the creases (entire surface). Each width W and height H of 60C, a passport (half side) 60D folded in half and a passport (full surface) 60E obtained by unfolding the passport (half side) 60D according to the crease are included.

登録された原稿20の幅Wまたは高さHに、ステップS320で算出した直線L1の長さと同じ長さが含まれる場合には、入力画像70に身分証明書60が含まれる蓋然性が高いと考えられる。また、例えば2つの座標しか検出されていなくても、登録された原稿20の大きさと検出された2つの座標から、未検出の身分証明書60の角に相当する残り2つの座標が推定される。したがって、登録された原稿20の幅Wまたは高さHに、ステップS320で算出した直線L1の長さと同じ長さが含まれる場合には、ステップS340に移行する。この際、CPU51は、算出した直線L1の長さから特定した身分証明書60の種類を、例えばRAM52に記憶する。 The width W or height H of the registered document 20, of the case that contains the same length as the straight line L 1 calculated in step S320, when there is a high probability that contains the identification 60 in the input image 70 Conceivable. Further, for example, even if only two coordinates are detected, the remaining two coordinates corresponding to the corners of the undetected ID card 60 are estimated from the size of the registered manuscript 20 and the detected two coordinates. .. Therefore, the width W or height H of the document 20 registered, if it contains the same length as the length of the straight line L 1 calculated in step S320, the process proceeds to step S340. At this time, the CPU 51 stores the type of the identification card 60 specified from the calculated length of the straight line L 1 in, for example, the RAM 52.

なお、図10に示すように、例えば身分証明書60がパスポートの場合、パスポート(半面)60Dとパスポート(全面)60Eでは、共に高さHが135mmであることから、パスポート(半面)60Dとパスポート(全面)60Eを区別することが困難な場合がある。 As shown in FIG. 10, for example, when the identification card 60 is a passport, the height H of both the passport (half side) 60D and the passport (full surface) 60E is 135 mm, so that the passport (half side) 60D and the passport It may be difficult to distinguish (entire surface) 60E.

この場合、CPU51は、UI装置22の液晶ディスプレイ24を制御して、利用者にパスポート(半面)60Dとパスポート(全面)60Eの何れを画像形成装置10で読み取ろうとしたかを選択させる画面を表示すればよい。 In this case, the CPU 51 controls the liquid crystal display 24 of the UI device 22 to display a screen that allows the user to select whether the passport (half side) 60D or the passport (full surface) 60E is to be read by the image forming device 10. do it.

図11は、直線L1の長さが複数の登録された原稿20の大きさと同じ場合に液晶ディスプレイ24に表示される情報画面32の一例である。 FIG. 11 is an example of an information screen 32 displayed on the liquid crystal display 24 when the length of the straight line L 1 is the same as the size of the plurality of registered documents 20.

情報画面32には、例えば情報領域24Aと情報領域24Bの2つの領域が含まれ、情報領域24Aには、原稿読み取り装置25から取得した入力画像70が表示される。また、情報領域24Bには、例えば文字、記号または図形を用いた利用者への通知、並びに、利用者の指示を受け付けるソフトウェアボタン等が表示される。 The information screen 32 includes, for example, two areas, an information area 24A and an information area 24B, and the information area 24A displays an input image 70 acquired from the document reading device 25. Further, in the information area 24B, for example, a notification to the user using characters, symbols or figures, a software button for receiving the user's instruction, and the like are displayed.

図11の例では、情報領域24Bに身分証明書60の半面を読み取ろうとしているのか、全面を読み取ろうとしているのかを利用者に選択させる「半面」ボタンと「全面」ボタンが表示される。したがって、押下されたボタンの種類と算出した直線L1の長さから、未検出の身分証明書60の角に相当する残り2つの座標が推定されることになる。 In the example of FIG. 11, in the information area 24B, a “half-side” button and a “full-face” button are displayed, which allows the user to select whether the identification card 60 is to be read on one side or the entire surface. Therefore, the length of the straight line L 1 and the calculated type of the pressed button, so that the remaining two coordinates corresponding to the corners of identification 60 undetected is estimated.

ステップS340において、CPU51は、フラグFの値を“1”に設定し、図7に示す原稿確認処理を終了する。なお、上述したように、ステップS300の判定処理が肯定判定の場合にもステップS340が実行されるため、フラグFの値は“1”に設定される。 In step S340, the CPU 51 sets the value of the flag F to “1” and ends the document confirmation process shown in FIG. 7. As described above, since step S340 is executed even when the determination process in step S300 is an affirmative determination, the value of the flag F is set to "1".

一方、登録された原稿20の幅Wまたは高さHに、ステップS320で算出した直線L1の長さと同じ長さが含まれない場合には、身分証明書60の大きさを推定する情報が存在しないため、検出された2つの座標から身分証明書60の未検出の角に相当する残り2つの座標を推定することは困難である。したがって、ステップS350に移行する。 On the other hand, the width W or height H of the document 20 registered, in the absence of the same length as the length of the straight line L 1 calculated in step S320, the information for estimating the size of the identification 60 Since it does not exist, it is difficult to estimate the remaining two coordinates corresponding to the undetected corners of the ID card 60 from the two detected coordinates. Therefore, the process proceeds to step S350.

ステップS350において、CPU51は、フラグFの値を“0”に設定し、図7に示す原稿確認処理を終了する。以上の処理が、図4のステップS30における原稿確認処理である。 In step S350, the CPU 51 sets the value of the flag F to “0” and ends the document confirmation process shown in FIG. 7. The above process is the document confirmation process in step S30 of FIG.

なお、上記では身分証明書60を例にして原稿確認処理について説明したが、原稿確認処理は身分証明書60以外の種類の原稿20に対しても適用されることは言うまでもない。 Although the manuscript confirmation process has been described above by taking the identification card 60 as an example, it goes without saying that the manuscript confirmation process is also applied to the manuscript 20 of a type other than the identification card 60.

ステップS40において、CPU51は、ステップS30の原稿確認処理での処理結果を参照して、入力画像70に身分証明書60が含まれているか否かを判定する。具体的には、フラグFの値が“0”であれば、入力画像に身分証明書60が含まれていないと判定し、ステップS140に移行する。 In step S40, the CPU 51 refers to the processing result in the document confirmation process in step S30 and determines whether or not the input image 70 includes the identification card 60. Specifically, if the value of the flag F is "0", it is determined that the input image does not include the identification card 60, and the process proceeds to step S140.

ステップS140において、CPU51は、UI装置22の液晶ディスプレイ24を制御して、身分証明書60全体が入力画像70に含まれるように、身分証明書60を原稿読み取り装置25における原稿20の読み取り領域に配置することを表示する。これによって、利用者に身分証明書60の再読み取り(「再スキャン」ともいう)の実行を喚起して、図4に示した画像処理を終了する。 In step S140, the CPU 51 controls the liquid crystal display 24 of the UI device 22 to put the identification card 60 into the reading area of the document 20 in the document reading device 25 so that the entire identification card 60 is included in the input image 70. Display to place. As a result, the user is urged to re-read the identification card 60 (also referred to as “rescan”), and the image processing shown in FIG. 4 is completed.

図12は、ステップS140で液晶ディスプレイ24に表示される情報画面32の一例である。ステップS140の処理では、情報領域24Bに、例えば「原稿全体が表示されるように、原稿を置きなおしてください。」という文章と共に、「OK」ボタンが表示される。これにより、利用者に身分証明書60の再スキャンの実行を喚起する。更に、利用者に「OK」ボタンを押下させることで、表示した文章を利用者に確認させる効果を高める。 FIG. 12 is an example of the information screen 32 displayed on the liquid crystal display 24 in step S140. In the process of step S140, an "OK" button is displayed in the information area 24B together with, for example, the sentence "Please reposition the manuscript so that the entire manuscript is displayed." As a result, the user is urged to perform a rescan of the identification card 60. Furthermore, by having the user press the "OK" button, the effect of having the user confirm the displayed text is enhanced.

また、ステップS140の処理では、情報領域24Aに入力画像70を表示することで、利用者に身分証明書60の位置ずれを視覚的に認識させ、身分証明書60を原稿20の読み取り領域にどのように置けば、身分証明書60全体が入力画像70に含まれるようになるかを把握させるための情報を提供する。 Further, in the process of step S140, by displaying the input image 70 in the information area 24A, the user is made to visually recognize the misalignment of the identification card 60, and the identification card 60 is placed in the reading area of the document 20. If it is placed in such a manner, it provides information for grasping whether the entire identification card 60 is included in the input image 70.

一方、ステップS40の判定処理が肯定判定の場合、すなわち、フラグFの値が“1”であれば、入力画像に身分証明書60が含まれると判定し、ステップS50に移行する。 On the other hand, if the determination process in step S40 is an affirmative determination, that is, if the value of the flag F is "1", it is determined that the input image includes the identification card 60, and the process proceeds to step S50.

ステップS50において、CPU51は、ステップS20で検出された座標が4つか否かを判定する。 In step S50, the CPU 51 determines whether or not there are four coordinates detected in step S20.

検出された座標が4つあれば、図13に示すように、検出された座標から、入力画像70における身分証明書60の範囲を示す基準範囲62が設定される。したがって、後述するステップS60およびステップS70の処理を実行することなく、ステップS80に移行する。 If there are four detected coordinates, as shown in FIG. 13, a reference range 62 indicating the range of the identification card 60 in the input image 70 is set from the detected coordinates. Therefore, the process proceeds to step S80 without executing the processes of steps S60 and S70, which will be described later.

一方、検出された座標が4つない場合、ステップS60に移行する。具体的には、ステップS40の判定処理で、入力画像70に身分証明書60が含まれていると判定されていることから、検出された座標が2つまたは3つの場合にステップS60に移行することになる。 On the other hand, if there are no four detected coordinates, the process proceeds to step S60. Specifically, since it is determined in the determination process of step S40 that the input image 70 includes the identification card 60, the process proceeds to step S60 when the detected coordinates are two or three. It will be.

ステップS60において、CPU51は、身分証明書60の未検出の座標を算出する。 In step S60, the CPU 51 calculates the undetected coordinates of the ID card 60.

ステップS20で検出された座標が3つの場合、上述したように、身分証明書60の形状は矩形で近似されることから、検出された3つの座標から、身分証明書60の未検出の角に相当する残り1つの座標が算出される。 When the coordinates detected in step S20 are three, as described above, the shape of the ID card 60 is approximated by a rectangle. Therefore, from the three detected coordinates to the undetected corner of the ID card 60. The corresponding remaining one coordinate is calculated.

ステップS20で検出された座標が2つの場合、ステップS30の原稿確認処理で入力画像70に含まれる身分証明書60の種類が特定されることから、特定された身分証明書60の種類と検出された2つの座標を用いて、身分証明書60の未検出の角に相当する残り2つの座標が算出される。 When the coordinates detected in step S20 are two, the type of the identification card 60 included in the input image 70 is specified in the manuscript confirmation process in step S30, so that the type of the identified identification card 60 is detected. Using these two coordinates, the remaining two coordinates corresponding to the undetected corners of the ID card 60 are calculated.

ステップS70において、CPU51は、ステップS60で算出した身分証明書60の未検出の角に相当する座標が、入力画像70の範囲外であるか否かを判定する。 In step S70, the CPU 51 determines whether or not the coordinates corresponding to the undetected corners of the identification card 60 calculated in step S60 are outside the range of the input image 70.

算出した座標が入力画像70の範囲外にある場合は、身分証明書60が原稿読み取り装置25における原稿20の読み取り領域をはみ出すように置かれたと考えられるため、ステップS140に移行し、利用者に身分証明書60の再読み取りの実行を喚起する。 If the calculated coordinates are outside the range of the input image 70, it is considered that the identification card 60 is placed so as to extend beyond the reading area of the document 20 in the document reading device 25. It urges the execution of re-reading of the identification card 60.

一方、算出した座標が入力画像70の範囲内にある場合は、身分証明書60の基準範囲62が入力画像70に含まれるため、ステップS80に移行する。 On the other hand, when the calculated coordinates are within the range of the input image 70, the reference range 62 of the identification card 60 is included in the input image 70, so the process proceeds to step S80.

なお、ステップS70では、ステップS60で算出した身分証明書60の未検出の角に相当する座標が入力画像70の範囲外にあるか否かを判定したが、ステップS20で検出した座標とステップS60で算出した座標とを合わせた4つの座標が、入力画像70の範囲外にあるか否かを判定するようにしてもよい。 In step S70, it was determined whether or not the coordinates corresponding to the undetected corners of the identification card 60 calculated in step S60 were outside the range of the input image 70, but the coordinates detected in step S20 and step S60 were determined. It may be determined whether or not the four coordinates including the coordinates calculated in the above are outside the range of the input image 70.

身分証明書60の角に相当する4つの座標がわかれば、基準範囲62が設定されることから、基準範囲62を身分証明書60の範囲としてもよい。しかし、四隅の角に丸みを帯びた身分証明書60の場合、各々の座標は変曲点の座標であるため、身分証明書60の四隅の角から離れた地点を示すことがある。したがって、図14に示すように、基準範囲62を身分証明書60の範囲に設定すると、身分証明書60の枠部分64が切り取られてしまうことがある。 If the four coordinates corresponding to the corners of the ID card 60 are known, the reference range 62 is set. Therefore, the reference range 62 may be used as the range of the ID card 60. However, in the case of the ID card 60 having rounded corners, since each coordinate is the coordinate of an inflection point, it may indicate a point away from the corners of the ID card 60. Therefore, as shown in FIG. 14, when the reference range 62 is set to the range of the identification card 60, the frame portion 64 of the identification card 60 may be cut off.

また、身分証明書60が矩形であっても、原稿読み取り装置25における入力画像70の読み取り精度が低くなるに従って、検出した座標の位置が矩形の頂点からずれていく傾向がある。例えば、原稿読み取り装置25における入力画像70の読み取り精度が25dpi(dots per inch)の場合、入力画像70の読み取り精度が600dpiの原稿読み取り装置25に比べて、矩形の頂点に対する検出した座標のずれ量が大きくなる。 Further, even if the identification card 60 is rectangular, the position of the detected coordinates tends to deviate from the apex of the rectangle as the reading accuracy of the input image 70 by the document reading device 25 decreases. For example, when the reading accuracy of the input image 70 in the document reading device 25 is 25 dpi (dots per inch), the amount of deviation of the detected coordinates with respect to the vertices of the rectangle is larger than that of the document reading device 25 in which the reading accuracy of the input image 70 is 600 dpi. Becomes larger.

したがって、図15に示すように、身分証明書60が矩形であっても、基準範囲62を身分証明書60の範囲に設定すると、身分証明書60の枠部分64が切り取られてしまうことがある。 Therefore, as shown in FIG. 15, even if the ID card 60 is rectangular, if the reference range 62 is set to the range of the ID card 60, the frame portion 64 of the ID card 60 may be cut off. ..

したがって、ステップS80において、CPU51は、身分証明書60の枠部分64が切り取られないように原稿画像66の範囲を設定する枠切れ補正処理を実行する。 Therefore, in step S80, the CPU 51 executes a frame cut correction process for setting the range of the original image 66 so that the frame portion 64 of the identification card 60 is not cut off.

図16は、枠切れ補正処理を説明するための模式図である。CPU51は、身分証明書60の全体が含まれるように基準範囲62を拡張することで、原稿画像66の範囲を設定する。具体的には、例えば、CPU51は、基準範囲62を設定する各々の座標P1〜座標P4を、座標移動方向に予め定めた幅だけ基準範囲62の外側に向かって移動させ、移動後の座標P1〜座標P4に対応するそれぞれの座標P1A〜座標P4Aを、原稿画像66の範囲に設定する。 FIG. 16 is a schematic diagram for explaining the frame break correction process. The CPU 51 sets the range of the original image 66 by extending the reference range 62 so that the entire identification card 60 is included. Specifically, for example, CPU 51 associates each of the coordinates P 1 ~ coordinates P 4 to set a reference range 62 is moved toward the outside of the reference range 62 by a predetermined width in the coordinate direction of movement, after movement the respective coordinates P 1A ~ coordinates P 4A corresponding to the coordinates P 1 ~ coordinates P 4, is set in the range of the original image 66.

ここで、「座標移動方向」とは座標P1〜座標P4の移動方向であり、座標P1〜座標P4が基準範囲62の外側に向かう方向であれば特に制約はない。例えば、座標P1と座標P2を接続する線分の延長方向、座標P1と座標P4を接続する線分の延長方向または基準範囲62の対角線の延長方向であってもよい。一例として、図16では、基準範囲62を設定する各々の線分に対して135度の傾斜角を有する線分の方向ARを座標移動方向としている。 Here, the "coordinate movement direction" coincides with the movement direction of the coordinate P 1 ~ coordinates P 4, no particular limitation as long as the direction coordinates P 1 ~ coordinates P 4 is directed outward from the reference range 62. For example, it may be the extension direction of the line segment connecting the coordinates P 1 and the coordinates P 2 , the extension direction of the line segment connecting the coordinates P 1 and the coordinates P 4 , or the extension direction of the diagonal line of the reference range 62. As an example, in FIG. 16, the direction AR of the line segment having an inclination angle of 135 degrees with respect to each line segment for which the reference range 62 is set is set as the coordinate movement direction.

また、「予め定めた幅」とは、座標P1〜座標P4の座標移動方向に沿った移動量であり、身分証明書60の形状によらずに身分証明書60の全体が含まれるような移動量が、画像形成装置10の実機による実験や画像形成装置10の設計仕様に基づくコンピュータシミュレーション等により設定されている。 Moreover, "predetermined width", a movement amount along the coordinate direction of movement of the coordinates P 1 ~ coordinates P 4, to include the entire identification 60 regardless of the shape of the identification 60 The amount of movement is set by an experiment of the image forming apparatus 10 with an actual machine, a computer simulation based on the design specifications of the image forming apparatus 10, and the like.

座標P1〜座標P4の移動に伴って基準範囲62が拡張されることから、以降では、座標P1〜座標P4の座標移動方向に沿った移動量を「拡張幅」ということがある。 Since the reference range 62 with the movement of the coordinates P 1 ~ coordinates P 4 is expanded, and later, may be referred to as "extended width" amount of movement along the coordinate direction of movement of the coordinates P 1 ~ coordinates P 4 ..

ステップS80の枠切れ補正処理によって、身分証明書60全体を含む原稿画像66の範囲が得られる。原稿画像66には身分証明書60全体が含まれることから、原稿画像66には、身分証明書60を配置した原稿20の読み取り領域が、身分証明書60の背景として含まれることになる。 By the frame cut correction process in step S80, the range of the manuscript image 66 including the entire identification card 60 is obtained. Since the manuscript image 66 includes the entire identification card 60, the manuscript image 66 includes the reading area of the manuscript 20 in which the identification card 60 is arranged as the background of the identification card 60.

しかしながら、座標P1〜座標P4の拡張幅によっては、図17に示すように、原稿画像66の範囲が入力画像70の範囲を超える場合がある。この場合、設定した範囲の原稿画像66が入力画像70から抽出されない。 However, the extended width of the coordinates P 1 ~ coordinates P 4, as shown in FIG. 17, there is a case where the range of the original image 66 is outside the range of the input image 70. In this case, the original image 66 in the set range is not extracted from the input image 70.

したがって、ステップS90において、CPU51は、ステップS80で設定した原稿画像66の範囲を示す座標P1A〜座標P4Aの各々が、入力画像70の範囲内に含まれるか否かを判定する。 Therefore, in step S90, the CPU 51 determines whether or not each of the coordinates P 1A to the coordinates P 4A indicating the range of the original image 66 set in step S80 is included in the range of the input image 70.

座標P1A〜座標P4Aの各々が入力画像70の範囲内に含まれる場合、後述するステップS100を実行することなく、ステップS110に移行する。 When each of the coordinates P 1A to the coordinates P 4A is included in the range of the input image 70, the process proceeds to step S110 without executing step S100 described later.

一方、座標P1A〜座標P4Aの少なくとも1つが入力画像70の範囲外にはみ出している場合、ステップS100に移行する。 On the other hand, when at least one of the coordinates P 1A to the coordinates P 4A is out of the range of the input image 70, the process proceeds to step S100.

ステップS100において、CPU51は、ステップS80で設定した原稿画像66の範囲を入力画像70の範囲内に補正する枠切れ再補正処理を実行する。 In step S100, the CPU 51 executes a frame break re-correction process for correcting the range of the original image 66 set in step S80 within the range of the input image 70.

図18は、枠切れ再補正処理の流れの一例を示すフローチャートである。 FIG. 18 is a flowchart showing an example of the flow of the frame break re-correction process.

ステップS400において、CPU51は、入力画像70の範囲外にはみ出している座標のうちで、はみ出し量が最も少ない座標を選択する。座標のはみ出し量は、例えば入力画像70の範囲外にはみ出している各座標から座標移動方向に沿った入力画像70の輪郭線までの距離で算出すればよい。 In step S400, the CPU 51 selects the coordinates having the smallest amount of protrusion among the coordinates that protrude outside the range of the input image 70. The amount of coordinate protrusion may be calculated, for example, by the distance from each coordinate protruding outside the range of the input image 70 to the contour line of the input image 70 along the coordinate movement direction.

なお、例えば図17に示したように、1つの座標P2Aしか入力画像70の範囲外にはみ出していない場合については、座標のはみ出し量を算出することなく、入力画像70の範囲外にはみ出している座標を選択すればよい。 For example, as shown in FIG. 17, when only one coordinate P 2A protrudes outside the range of the input image 70, the coordinate protrudes outside the range of the input image 70 without calculating the amount of protrusion of the coordinates. All you have to do is select the coordinates you have.

ステップS410において、CPU51は、ステップS400で選択した座標(以降、「選択座標」という)が入力画像70の範囲内に含まれるように、選択座標を座標移動方向に沿って移動させる。 In step S410, the CPU 51 moves the selected coordinates along the coordinate moving direction so that the coordinates selected in step S400 (hereinafter referred to as “selected coordinates”) are included in the range of the input image 70.

なお、移動させた選択座標と原稿画像66の範囲を示す他の3つの座標をそのまま直線で接続した場合、原稿画像66の形状が矩形と異なる形状となってしまう。したがって、CPU51は、原稿画像66の形状が矩形となるように、原稿画像66の輪郭線に沿って選択座標と隣り合う他の2つの座標(以降、「隣接座標」という)の位置も補正する。 If the moved selection coordinates and the other three coordinates indicating the range of the document image 66 are connected as they are by a straight line, the shape of the document image 66 will be different from the rectangle. Therefore, the CPU 51 also corrects the positions of the other two coordinates (hereinafter referred to as "adjacent coordinates") adjacent to the selected coordinates along the contour line of the original image 66 so that the shape of the original image 66 becomes rectangular. ..

図19は、座標P2Aが入力画像70の範囲外にはみ出している場合の座標P2Aの移動について示した模式図である。 Figure 19 is a schematic diagram showing the movement of the coordinates P 2A when the coordinates P 2A is overrunning outside the range of the input image 70.

CPU51は、座標P2Aが入力画像70の範囲内に含まれるように座標P2Bに移動させた後、原稿画像66の形状が矩形となるように、座標P2Aの隣接座標である座標P1Aと座標P3Aの位置を原稿画像66の輪郭線に沿って移動させる。 The CPU 51 moves the coordinates P 2A to the coordinates P 2B so that the coordinates P 2A are included in the range of the input image 70, and then the coordinates P 1A which are adjacent coordinates of the coordinates P 2A so that the shape of the original image 66 becomes a rectangle. And the position of the coordinate P 3A is moved along the contour line of the original image 66.

ステップS420において、CPU51は、ステップS410で入力画像70の範囲内に移動させた選択座標を含むように、原稿画像66の範囲を設定する。図19の例では、座標P1B、座標P2B、座標P3Bおよび座標P4Aを頂点とする矩形が原稿画像66の範囲となる。したがって、選択座標および隣接座標における座標移動方向の拡張幅は、ステップS80で拡張した基準範囲62に対する拡張幅よりも縮小される。 In step S420, the CPU 51 sets the range of the original image 66 so as to include the selected coordinates moved within the range of the input image 70 in step S410. In the example of FIG. 19, the range of the original image 66 is a rectangle having coordinates P 1B , coordinates P 2B , coordinates P 3B, and coordinates P 4A as vertices. Therefore, the expansion width in the coordinate movement direction in the selected coordinates and the adjacent coordinates is smaller than the expansion width with respect to the reference range 62 expanded in step S80.

ステップS430において、CPU51は、ステップS420で再設定した原稿画像666の範囲を参照し、入力画像70の範囲外にはみ出している座標がまだあるか否かを判定する。肯定判定の場合にはステップS400に移行し、上述したステップS400〜S430を繰り返すことで、原稿画像66の範囲が入力画像70の範囲内に含まれるようにする。 In step S430, the CPU 51 refers to the range of the original image 666 reset in step S420, and determines whether or not there are still coordinates that are outside the range of the input image 70. In the case of an affirmative determination, the process proceeds to step S400, and the above-mentioned steps S400 to S430 are repeated so that the range of the original image 66 is included in the range of the input image 70.

なお、この場合、変曲点P1から座標P1Bまでの距離、変曲点P2から座標P2Bまでの距離、変曲点P3から座標P3Bまでの距離、および変曲点P4から座標P4Aまでの距離を、基準範囲62を表す輪郭の各頂点における拡張幅とみなす。この場合、変曲点P1に対する拡張幅と、変曲点P3に対する拡張幅は同じになる。 In this case, the distance from the inflection point P 1 to the coordinates P 1B , the distance from the inflection point P 2 to the coordinates P 2B , the distance from the inflection point P 3 to the coordinates P 3B , and the inflection point P 4 The distance from to the coordinate P 4A is regarded as the extension width at each vertex of the contour representing the reference range 62. In this case, the expansion width for the inflection point P 1 and the expansion width for the inflection point P 3 are the same.

図20は、2つの座標(座標P2Aと座標P3A)が入力画像70の範囲外にはみ出している原稿画像66の一例を示す図である。 FIG. 20 is a diagram showing an example of a manuscript image 66 in which two coordinates (coordinates P 2A and coordinates P 3A) are outside the range of the input image 70.

この場合、座標P2Aと座標P3Aのうち、はみ出し量が少ない座標P2AがステップS400で最初に選択される。そして、図21に示すように、座標P2Aが入力画像70の範囲内に含まれるように座標P2Aを移動させることによって、座標P1B、座標P2B、座標P3Bおよび座標P4Aで示される原稿画像66の範囲が設定される。 In this case, among the coordinates P 2A and coordinate P 3A, the protrusion amount is less coordinate P 2A is first selected in step S400. Then, as shown in FIG. 21, by moving the coordinates P 2A as coordinates P 2A are included within the scope of the input image 70, represented by coordinates P 1B, coordinates P 2B, coordinates P 3B and coordinates P 4A The range of the original image 66 is set.

しかしながら、座標P2Aを入力画像70の範囲内に含めるように補正しても、依然として座標P3Bは入力画像70の範囲外に含まれる。この場合、ステップS430の判定処理が肯定判定となり、今度は座標P3Bを選択座標として、ステップS400〜S430が実行される。そして、図22に示すように、座標P3Bが入力画像70の範囲内に含まれるように座標P3Bを座標P3Cの位置まで移動させることによって、座標P1B、座標P2C、座標P3Cおよび座標P4Bで示される原稿画像66の範囲が設定される。 However, even if the coordinates P 2A are corrected to be included in the range of the input image 70, the coordinates P 3B are still included in the range of the input image 70. In this case, the determination process in step S430 becomes an affirmative determination, and this time, steps S400 to S430 are executed with the coordinates P 3B as the selection coordinates. Then, as shown in FIG. 22, by moving the coordinates P 3B to the position of the coordinates P 3C as coordinates P 3B are included within the scope of the input image 70, the coordinate P 1B, coordinates P 2C, coordinates P 3C And the range of the original image 66 indicated by the coordinates P 4B is set.

座標P1B、座標P2C、座標P3Cおよび座標P4Bを頂点とする矩形で示される原稿画像66は入力画像70に含まれ、かつ、原稿画像66には身分証明書60全体が含まれる。 The manuscript image 66 represented by a rectangle having coordinates P 1B , coordinates P 2C , coordinates P 3C and coordinates P 4B as vertices is included in the input image 70, and the manuscript image 66 includes the entire identification card 60.

なお、入力画像70の範囲外にはみ出している座標が3つ以上の場合でも、上述した処理と同様の処理によって、原稿画像66の範囲が入力画像70の範囲内に設定されることになる。 Even when the number of coordinates protruding outside the range of the input image 70 is three or more, the range of the original image 66 is set within the range of the input image 70 by the same process as the above-described process.

以上の処理によって、全ての座標が入力画像70の範囲内に含まれると、ステップS430の判定処理が否定判定となり、図18に示す枠切れ再補正処理が終了する。 When all the coordinates are included in the range of the input image 70 by the above processing, the determination processing in step S430 becomes a negative determination, and the frame break re-correction processing shown in FIG. 18 ends.

引き続き、図4のステップS110において、CPU51は、ステップS80で設定された原稿画像66の範囲またはステップS100で再設定された原稿画像66の範囲を入力画像70から切り出して、原稿画像66を抽出する。 Subsequently, in step S110 of FIG. 4, the CPU 51 cuts out the range of the original image 66 set in step S80 or the range of the original image 66 reset in step S100 from the input image 70, and extracts the original image 66. ..

ステップS110で抽出した原稿画像66は、場合によっては入力画像70上に設定したX軸方向に対して傾斜していることがある。 In some cases, the original image 66 extracted in step S110 may be tilted with respect to the X-axis direction set on the input image 70.

図23は、X軸方向に対して原稿画像66が傾斜している場合の一例を示す図である。図23に示すように、例えばX軸方向に対して原稿画像66の幅方向が傾斜角αで傾斜している場合、そのまま画像形成ユニット19で原稿画像66を記録媒体に形成すると、原稿画像66が記録媒体の各辺に対して傾斜することになり、原稿画像66の内容が読み取りにくくなる。 FIG. 23 is a diagram showing an example of a case where the original image 66 is tilted with respect to the X-axis direction. As shown in FIG. 23, for example, when the width direction of the original image 66 is inclined by the inclination angle α with respect to the X-axis direction, when the original image 66 is formed on the recording medium by the image forming unit 19 as it is, the original image 66 is formed. Will be tilted with respect to each side of the recording medium, making it difficult to read the contents of the original image 66.

したがって、ステップS120において、CPU51は、傾斜角αが0度に近づくように原稿画像66を回転移動して、原稿画像66の幅方向がX軸方向の方向に沿うように配置する原稿画像角度補正処理を実行する。 Therefore, in step S120, the CPU 51 rotates and moves the document image 66 so that the inclination angle α approaches 0 degrees, and arranges the document image 66 so that the width direction of the document image 66 is along the X-axis direction. Execute the process.

ステップS130において、CPU51は、ステップS120で配置を補正した原稿画像66の画像データを画像形成ユニット19に出力して、図4に示した画像処理を終了する。 In step S130, the CPU 51 outputs the image data of the original image 66 whose arrangement has been corrected in step S120 to the image forming unit 19, and ends the image processing shown in FIG.

原稿画像66に対応した画像データを受け付けた画像形成ユニット19は、記録媒体に原稿画像66を形成する。 The image forming unit 19 that has received the image data corresponding to the original image 66 forms the original image 66 on the recording medium.

このように、図4に示した画像処理を実行するCPU51を含む制御部2は、画像処理装置として機能する。 As described above, the control unit 2 including the CPU 51 that executes the image processing shown in FIG. 4 functions as an image processing device.

なお、図4のステップS20では変曲点を検出するため、XY座標系の原点からX軸に沿って入力画像70を走査しながら入力画像70の画素を読み込み、入力画像70の右端まで達すると、今度は走査ラインをY軸方向に1ラインずらすことで、入力画像70全体を走査することを説明した。 In step S20 of FIG. 4, in order to detect the bending point, the pixels of the input image 70 are read while scanning the input image 70 along the X axis from the origin of the XY coordinate system, and when the pixel reaches the right end of the input image 70. This time, it has been explained that the entire input image 70 is scanned by shifting the scanning line by one line in the Y-axis direction.

したがって、四隅の角に丸みを帯びた身分証明書60の角に相当する座標を検出する場合、原稿20の読み取り領域に対する身分証明書60の配置状態によっては、座標の検出精度が変化することがある。 Therefore, when detecting the coordinates corresponding to the corners of the identification card 60 having rounded corners, the detection accuracy of the coordinates may change depending on the arrangement state of the identification card 60 with respect to the reading area of the document 20. is there.

図24は、四隅の角に丸みを帯びた身分証明書60の幅方向を、X軸方向に沿って配置した場合の入力画像70の一例を示す図である。この場合、身分証明書60の上辺を示す輪郭線に沿って変曲点Pの検出が行われるため、身分証明書60の角(点PN)から離れた位置に変曲点Pが検出されることがある。 FIG. 24 is a diagram showing an example of an input image 70 when the width direction of the identification card 60 having rounded corners is arranged along the X-axis direction. In this case, since the inflection point P is detected along the contour line indicating the upper side of the identification card 60, the inflection point P is detected at a position away from the corner (point P N) of the identification card 60. There are times.

一方、図25は、四隅の角に丸みを帯びた身分証明書60の幅方向を、X軸方向に対して傾斜させて配置した場合の入力画像70の一例を示す図である。この場合、身分証明書60の四隅の角に近い位置から変曲点Pの検出が行われるため、図24の配置と比較して、点PNに近い位置に変曲点Pが検出される傾向が見られる。 On the other hand, FIG. 25 is a diagram showing an example of an input image 70 when the width direction of the identification card 60 having rounded corners is inclined with respect to the X-axis direction. In this case, since the detection of the inflection point P from the position close to the corner of the four corners of identification 60 is performed, as compared with the arrangement of FIG. 24, the inflection point P is detected at a position close to a point P N There is a tendency.

検出される変曲点Pが点PNに近づく程、変曲点Pを接続して得られる基準範囲62が、身分証明書60の大きさに近づくことになる。 As the detected inflection point P approaches the point P N , the reference range 62 obtained by connecting the inflection point P becomes closer to the size of the identification card 60.

したがって、CPU51は、入力画像70のX軸方向に対する基準範囲62の幅方向の傾斜角が大きくなるに従って、基準範囲62に対する拡張幅を予め定めた拡張幅より小さくするようにしてもよい。この場合、基準範囲62に対する拡張幅を予め定めた拡張幅より小さくしても、身分証明書60全体が原稿画像66の範囲に含まれる。したがって、原稿画像66の大きさが身分証明書60の原寸大に近づき、原稿画像66において、身分証明書60の周囲に写り込む背景の割合が抑制される。 Therefore, the CPU 51 may make the expansion width with respect to the reference range 62 smaller than the predetermined expansion width as the inclination angle in the width direction of the reference range 62 with respect to the X-axis direction of the input image 70 increases. In this case, even if the extension width with respect to the reference range 62 is smaller than the predetermined extension width, the entire identification card 60 is included in the range of the manuscript image 66. Therefore, the size of the original image 66 approaches the actual size of the identification card 60, and the proportion of the background reflected around the identification card 60 in the original image 66 is suppressed.

なお、入力画像70のX軸方向に対する基準範囲62の幅方向の傾斜角は、約35度以上約55度以下が好ましく、約45度が特に好ましい。したがって、CPU51は、利用者に身分証明書60の配置方向を指示する情報を通知するように、UI装置22を制御してもよい。 The inclination angle of the input image 70 in the width direction of the reference range 62 with respect to the X-axis direction is preferably about 35 degrees or more and about 55 degrees or less, and particularly preferably about 45 degrees. Therefore, the CPU 51 may control the UI device 22 so as to notify the user of the information indicating the arrangement direction of the identification card 60.

図26は、身分証明書60の配置に関する情報を表示する情報画面32の一例を示す図である。CPU51は、例えば図4のステップS20で検出した変曲点Pの座標から、入力画像70のX軸方向に対して身分証明書60が傾斜しているか否か判定し、身分証明書60の傾斜角が基準傾斜角以下の場合には、液晶ディスプレイ24に図26に示す情報画面32を表示してもよい。 FIG. 26 is a diagram showing an example of an information screen 32 that displays information regarding the arrangement of the identification card 60. The CPU 51 determines, for example, whether or not the identification card 60 is tilted with respect to the X-axis direction of the input image 70 from the coordinates of the inflection point P detected in step S20 of FIG. 4, and tilts the identification card 60. When the angle is equal to or less than the reference inclination angle, the information screen 32 shown in FIG. 26 may be displayed on the liquid crystal display 24.

図26の情報画面32における情報領域24Aには、例えば入力画像70を表示し、利用者に身分証明書60の配置状態を視覚的に認識させる。また、情報領域24Bには、例えば「身分証明書が斜め45度になるように配置してください」という文章と共に、「OK」ボタンを表示して、利用者に原稿20の読み取り領域に身分証明書60を傾斜して配置した上で、身分証明書60の再スキャンの実行するよう喚起する。 For example, an input image 70 is displayed in the information area 24A on the information screen 32 of FIG. 26, and the user is made to visually recognize the arrangement state of the identification card 60. Further, in the information area 24B, for example, a "OK" button is displayed together with a sentence "Please arrange the identification card at an angle of 45 degrees" to give the user identification in the reading area of the manuscript 20. After arranging the document 60 at an angle, it is urged to perform a rescan of the identification card 60.

また、原稿読み取り装置25における入力画像70の読み取り精度が高くなるに従って、身分証明書60の角を表す点PNに近い位置に変曲点Pが検出される傾向が見られる。したがって、CPU51は、原稿読み取り装置25における入力画像70の読み取り精度が高くなるに従って、基準範囲62に対する拡張幅を予め定めた拡張幅より小さくするようにしてもよい。 Further, as the reading accuracy of the input image 70 by the document reading device 25 increases, the inflection point P tends to be detected at a position close to the point P N representing the corner of the identification card 60. Therefore, the CPU 51 may make the expansion width with respect to the reference range 62 smaller than the predetermined expansion width as the reading accuracy of the input image 70 in the document reading device 25 increases.

例えば、原稿読み取り装置25における入力画像70の読み取り精度が25dpiの場合は、基準範囲62に対する拡張幅を4mm、600dpiの場合は、基準範囲62に対する拡張幅を2mmにするといったように、原稿読み取り装置25の読み取り精度と拡張幅との対応関係を不揮発性メモリ54に記憶しておけば、原稿読み取り装置25の読み取り精度に応じた拡張幅が基準範囲62に適用される。 For example, when the reading accuracy of the input image 70 in the document reading device 25 is 25 dpi, the extension width with respect to the reference range 62 is 4 mm, and when the reading accuracy is 600 dpi, the extension width with respect to the reference range 62 is set to 2 mm. If the correspondence between the reading accuracy of 25 and the extended width is stored in the non-volatile memory 54, the extended width corresponding to the reading accuracy of the document reading device 25 is applied to the reference range 62.

この場合も、原稿画像66に身分証明書60全体が含まれた状態で原稿画像66の大きさが身分証明書60の原寸大に近づくため、原稿画像66において、身分証明書60の周囲に写り込む背景の割合が抑制される。 Also in this case, since the size of the manuscript image 66 approaches the actual size of the ID card 60 with the entire ID card 60 included in the manuscript image 66, the image is reflected around the ID card 60 in the manuscript image 66. The proportion of crowded background is suppressed.

また、利用者によっては、自らの意思に基づいて原稿画像66の大きさを調整したい場合がある。したがって、画像形成装置10は、利用者から基準範囲62に適用する拡張幅の指定を受け付け、受け付けた拡張幅で基準範囲62を拡張するようにしてもよい。 In addition, some users may want to adjust the size of the manuscript image 66 based on their own will. Therefore, the image forming apparatus 10 may accept the designation of the extension width to be applied to the reference range 62 from the user, and extend the reference range 62 by the accepted extension width.

図27は、拡張幅の設定を受け付ける情報画面32の一例を示す図である。情報画面32の情報領域24Bには、例えば2mm、3mm、4mmといった規定の拡張幅を設定するためのソフトウェアボタン34A、34B、34Cと、任意の拡張幅を設定するためのエディットボックス34Dが表示される。 FIG. 27 is a diagram showing an example of the information screen 32 that accepts the setting of the expansion width. In the information area 24B of the information screen 32, software buttons 34A, 34B, 34C for setting a specified expansion width such as 2 mm, 3 mm, and 4 mm, and an edit box 34D for setting an arbitrary expansion width are displayed. To.

利用者によってソフトウェアボタン34Aが押下された場合は“2mm”、ソフトウェアボタン34Bが押下された場合は“3mm”、ソフトウェアボタン34Cが押下された場合は“4mm”が拡張幅として設定される。また、利用者によってエディットボックス34Dに数値が入力された場合は、入力された数値(単位はmm)が拡張幅として設定される。 When the software button 34A is pressed by the user, "2 mm" is set, when the software button 34B is pressed, "3 mm" is set, and when the software button 34C is pressed, "4 mm" is set as the expansion width. When a numerical value is input to the edit box 34D by the user, the input numerical value (unit: mm) is set as the expansion width.

また、図4に示した画像処理において、ステップS130で例えば画像形成ユニット19に原稿画像66を出力する前に、画像処理プログラムに従って自動的に算出された拡張幅が設定された原稿画像66を、情報画面32の情報領域24Aに表示するようにしてもよい。 Further, in the image processing shown in FIG. 4, the original image 66 in which the expansion width automatically calculated according to the image processing program is set before the original image 66 is output to, for example, the image forming unit 19 in step S130. It may be displayed in the information area 24A of the information screen 32.

この場合、画像形成装置10は、拡張幅を修正するための編集画面を情報画面32の情報領域24Bに表示し、利用者が指定した拡張幅の修正量に従って原稿画像66の大きさを調整するようにしてもよい。 In this case, the image forming apparatus 10 displays an edit screen for correcting the expansion width in the information area 24B of the information screen 32, and adjusts the size of the original image 66 according to the correction amount of the expansion width specified by the user. You may do so.

また、利用者によっては、身分証明書60の表面と裏面を1枚の記録媒体に複写したいことがある。 Further, depending on the user, the front side and the back side of the identification card 60 may be copied on one recording medium.

この場合、画像形成装置10は、原稿読み取り装置25で身分証明書60の表面と裏面が読み込まれてから、身分証明書60の表面を含む入力画像70と、身分証明書60の裏面を含む入力画像70の各々に対して、図4に示した画像処理を実行する。そして、画像形成装置10は、図4に示した画像処理によって得られた身分証明書60の表面と裏面に対応する各々の原稿画像66を1つの記録媒体に形成するように、RAM52で原稿画像66の配置編集を行う。 In this case, the image forming apparatus 10 reads the front and back surfaces of the identification card 60 by the document reading device 25, and then inputs the input image 70 including the front surface of the identification card 60 and the input including the back surface of the identification card 60. The image processing shown in FIG. 4 is executed for each of the images 70. Then, the image forming apparatus 10 uses the RAM 52 to form the original image 66 corresponding to the front surface and the back surface of the identification card 60 obtained by the image processing shown in FIG. 4 on one recording medium. Arrangement and editing of 66 are performed.

画像形成装置10が原稿画像66の配置編集を行う場合に、同じ身分証明書60でありながら、身分証明書60の表面と裏面に対応する各々の原稿画像66の大きさが異なると、各々の原稿画像66の大きさが同じ場合と比較して、身分証明書60の有効性の確認等に時間を要することがある。 When the image forming apparatus 10 edits the arrangement of the original image 66, if the size of each original image 66 corresponding to the front surface and the back surface of the identification card 60 is different even though the identification card 60 is the same, each Compared with the case where the size of the manuscript image 66 is the same, it may take more time to confirm the validity of the identification card 60.

したがって、画像形成装置10は、同じ種類の身分証明書60の画像を含む複数の原稿画像66に対して配置編集を行う場合、各々の原稿画像66に身分証明書60全体が含まれ、かつ、各々の原稿画像66の大きさが同じになるように、拡張幅を調整してもよい。 Therefore, when the image forming apparatus 10 arranges and edits a plurality of manuscript images 66 including images of the same type of ID card 60, each manuscript image 66 includes the entire ID card 60, and the image forming apparatus 10 includes the entire ID card 60. The expansion width may be adjusted so that the size of each original image 66 is the same.

更に、利用者によっては、家族の同じ種類の身分証明書60を1枚の記録媒体に複写したいことがある。 Further, some users may want to copy the same type of family identification card 60 on one recording medium.

この場合、利用者は、原稿読み取り装置25における原稿20の読み取り領域に、複数の同じ種類の身分証明書60を配置して、各々の身分証明書60を原稿読み取り装置25で読み込む。したがって、画像形成装置10では、複数の同じ種類の身分証明書60の画像が含まれた入力画像70が取得される。 In this case, the user arranges a plurality of identification cards 60 of the same type in the reading area of the document 20 in the document reading device 25, and reads each identification card 60 by the document reading device 25. Therefore, the image forming apparatus 10 acquires an input image 70 including a plurality of images of the same type of identification card 60.

画像形成装置10は、こうした入力画像70から抽出した、各々の身分証明書60に対応する原稿画像66に対して配置編集を行う場合にも、各々の原稿画像66に身分証明書60全体が含まれ、かつ、各々の原稿画像66の大きさが同じになるように、拡張幅を調整してもよい。 Even when the image forming apparatus 10 arranges and edits the manuscript image 66 corresponding to each identification card 60 extracted from the input image 70, each manuscript image 66 includes the entire identification card 60. The expansion width may be adjusted so that the size of each original image 66 is the same.

このように本実施の形態に係る画像形成装置10によれば、原稿読み取り装置25から取得した入力画像70に含まれる線分の変曲点Pを検出して、原稿20の基準範囲62を設定する。そして、画像形成装置10は、原稿20の基準範囲62に拡張して、原稿20全体を含む原稿画像66の範囲を設定する。 As described above, according to the image forming apparatus 10 according to the present embodiment, the inflection point P of the line segment included in the input image 70 acquired from the document reading device 25 is detected, and the reference range 62 of the document 20 is set. To do. Then, the image forming apparatus 10 extends to the reference range 62 of the document 20 and sets the range of the document image 66 including the entire document 20.

したがって、画像形成装置10では、原稿読み取り装置25の解像度または原稿20の形状に関わらず、原稿の背景部分の映り込みを抑制しつつ、原稿20全体が含まれる原稿画像66が得られる。 Therefore, the image forming apparatus 10 can obtain the original image 66 including the entire original 20 while suppressing the reflection of the background portion of the original regardless of the resolution of the original reading device 25 or the shape of the original 20.

以上、実施の形態を用いて本発明について説明したが、本発明は実施の形態に記載の範囲には限定されない。本発明の要旨を逸脱しない範囲で実施の形態に多様な変更又は改良を加えることができ、当該変更又は改良を加えた形態も本発明の技術的範囲に含まれる。例えば、本発明の要旨を逸脱しない範囲で処理の順序を変更してもよい。 Although the present invention has been described above using the embodiments, the present invention is not limited to the scope described in the embodiments. Various changes or improvements can be made to the embodiments without departing from the gist of the present invention, and the modified or improved forms are also included in the technical scope of the present invention. For example, the order of processing may be changed without departing from the gist of the present invention.

上述した実施の形態では、一例として画像形成装置10における画像処理をソフトウェアで実現する形態について説明したが、図4に示したフローチャートと同等の処理をハードウェアで処理させるようにしてもよい。この場合、画像処理をソフトウェアで実現する場合に比べて、処理の高速化が図られる。 In the above-described embodiment, the embodiment in which the image processing in the image forming apparatus 10 is realized by software has been described as an example, but the same processing as the flowchart shown in FIG. 4 may be processed by hardware. In this case, the processing speed can be increased as compared with the case where the image processing is realized by software.

また、上述した実施の形態では、画像処理プログラムがROM52にインストールされている形態を説明したが、これに限定されるものではない。本発明に係る画像処理プログラムは、コンピュータ読み取り可能な記録媒体に記録された形態で提供することも可能である。例えば、本発明に係る画像処理プログラムを、CD(Compact Disc)−ROM、又はDVD(Digital Versatile Disc)−ROM等の光ディスクに記録された形態で提供してもよい。また、本発明に係る画像処理プログラムを、USBメモリ及びフラッシュメモリ等の半導体メモリに記録された形態で提供してもよい。 Further, in the above-described embodiment, the mode in which the image processing program is installed in the ROM 52 has been described, but the present invention is not limited to this. The image processing program according to the present invention can also be provided in a form recorded on a computer-readable recording medium. For example, the image processing program according to the present invention may be provided in a form recorded on an optical disk such as a CD (Compact Disc) -ROM or a DVD (Digital Versatile Disc) -ROM. Further, the image processing program according to the present invention may be provided in a form recorded in a semiconductor memory such as a USB memory and a flash memory.

更に、本発明に係る画像処理プログラムを、通信回線を介して接続された他の情報端末から取得するようにしてもよい。 Further, the image processing program according to the present invention may be acquired from another information terminal connected via a communication line.

2・・・制御部、10・・・画像形成装置、12・・・原稿読み取り部、13・・・取得部、15・・・設定部、17・・・画像出力部、19・・・画像形成ユニット、20・・・原稿、22・・・ユーザインターフェース(UI)装置、24・・・液晶ディスプレイ、25・・・原稿読み取り装置、27・・・通信装置、32・・・情報画面、50・・・コンピュータ、51・・・CPU、52・・・RAM、53・・・ROM、54・・・不揮発性メモリ、60・・・身分証明書、62・・・基準範囲、66・・・原稿画像、70・・・入力画像、P・・・変曲点 2 ... Control unit, 10 ... Image forming device, 12 ... Document reading unit, 13 ... Acquisition unit, 15 ... Setting unit, 17 ... Image output unit, 19 ... Image Formation unit, 20 ... original, 22 ... user interface (UI) device, 24 ... liquid crystal display, 25 ... original reading device, 27 ... communication device, 32 ... information screen, 50 ... Computer, 51 ... CPU, 52 ... RAM, 53 ... ROM, 54 ... Non-volatile memory, 60 ... Identification card, 62 ... Reference range, 66 ... Manuscript image, 70 ... Input image, P ... Variation point

Claims (14)

読み取り装置で読み取られた原稿を含む入力画像を取得する取得手段と、
前記取得手段で取得した前記入力画像から検出した前記原稿の輪郭を表す基準範囲を拡張し、前記原稿を含む原稿画像の範囲として設定する設定手段と、
前記設定手段で設定した範囲の前記原稿画像を出力する出力手段と、
を備え
前記設定手段は、前記原稿画像の範囲が前記入力画像の範囲を超える場合、前記原稿画像の範囲が前記入力画像の範囲内に含まれるように、前記基準範囲に対する拡張幅を設定する
画像処理装置。
An acquisition means for acquiring an input image including a document read by a scanning device, and
A setting means for expanding a reference range representing the outline of the original document detected from the input image acquired by the acquisition means and setting it as a range of the original image including the original document.
An output means that outputs the original image in the range set by the setting means, and
Equipped with a,
When the range of the original image exceeds the range of the input image, the setting means sets an extension width with respect to the reference range so that the range of the original image is included in the range of the input image.
Image processing device.
読み取り装置で読み取られた原稿を含む入力画像を取得する取得手段と、
前記取得手段で取得した前記入力画像から検出した前記原稿の輪郭を表す基準範囲を拡張し、前記原稿を含む原稿画像の範囲として設定する設定手段と、
前記設定手段で設定した範囲の前記原稿画像を出力する出力手段と、
を備え
前記設定手段は、前記原稿の輪郭に曲線が含まれる場合、前記入力画像の予め定めた方向に対する前記基準範囲の傾斜角が大きくなるに従って、前記基準範囲に対する拡張幅を小さくする
画像処理装置。
An acquisition means for acquiring an input image including a document read by a scanning device, and
A setting means for expanding a reference range representing the outline of the original document detected from the input image acquired by the acquisition means and setting it as a range of the original image including the original document.
An output means that outputs the original image in the range set by the setting means, and
Equipped with a,
When the contour of the document includes a curve, the setting means reduces the expansion width with respect to the reference range as the inclination angle of the reference range with respect to a predetermined direction of the input image increases.
Image processing device.
読み取り装置で読み取られた原稿を含む入力画像を取得する取得手段と、
前記取得手段で取得した前記入力画像から検出した前記原稿の輪郭を表す基準範囲を拡張し、前記原稿を含む原稿画像の範囲として設定する設定手段と、
前記設定手段で設定した範囲の前記原稿画像を出力する出力手段と、
を備え
前記設定手段は、前記読み取り装置における前記入力画像の読み取り精度が高くなるに従って、前記基準範囲に対する拡張幅を小さくする
画像処理装置。
An acquisition means for acquiring an input image including a document read by a scanning device, and
A setting means for expanding a reference range representing the outline of the original document detected from the input image acquired by the acquisition means and setting it as a range of the original image including the original document.
An output means that outputs the original image in the range set by the setting means, and
Equipped with a,
The setting means reduces the expansion width with respect to the reference range as the reading accuracy of the input image in the reading device increases.
Image processing device.
読み取り装置で読み取られた原稿を含む入力画像を取得する取得手段と、
前記取得手段で取得した前記入力画像から検出した前記原稿の輪郭を表す基準範囲を拡張し、前記原稿を含む原稿画像の範囲として設定する設定手段と、
前記設定手段で設定した範囲の前記原稿画像を出力する出力手段と、
前記原稿画像に関する情報を報知する報知手段と、
を備え、
前記報知手段は、前記入力画像に前記原稿が含まれない場合、前記入力画像に前記原稿が含まれるように、前記原稿を前記読み取り装置に配置するよう報知する
画像処理装置。
An acquisition means for acquiring an input image including a document read by a scanning device, and
A setting means for expanding a reference range representing the outline of the original document detected from the input image acquired by the acquisition means and setting it as a range of the original image including the original document.
An output means that outputs the original image in the range set by the setting means, and
A notification means for notifying information about the manuscript image and
With
When the input image does not include the original, the notification means notifies the reading device to arrange the original so that the input image includes the original.
Image processing device.
前記報知手段は、前記出力手段から前記原稿画像を出力する前に、前記入力画像を報知する
請求項記載の画像処理装置。
The image processing device according to claim 4 , wherein the notification means notifies the input image before outputting the original image from the output means.
前記設定手段は、前記原稿の変曲点を用いて前記基準範囲を設定する
請求項1から請求項5の何れか1項記載の画像処理装置。
The image processing apparatus according to any one of claims 1 to 5, wherein the setting means sets the reference range by using the inflection point of the manuscript.
前記設定手段は、前記入力画像に前記基準範囲の各頂点が含まれる場合、前記基準範囲における少なくとも2つの頂点からの拡張幅が同じになるように、前記原稿画像の範囲を設定する
請求項2から請求項5の何れか1項記載の画像処理装置。
The setting means, if it contains the vertices of the reference range in the input image, as extended width from at least two vertices in the reference range is the same, claim 2 for setting a range of the original image The image processing apparatus according to any one of claims 5.
前記設定手段は、前記基準範囲における各頂点からの拡張幅が同じになるように、前記原稿画像の範囲を設定する
請求項記載の画像処理装置。
The image processing apparatus according to claim 7 , wherein the setting means sets a range of the original image so that the extension width from each vertex in the reference range is the same.
前記設定手段は、前記入力画像における前記基準範囲の位置に関わらず、前記基準範囲における少なくとも2つの頂点からの拡張幅が同じになるように、前記原稿画像の範囲を設定する
請求項記載の画像処理装置。
The setting means, irrespective of the position of the reference range in the input image, as extended width from at least two vertices is the same in the reference range, according to claim 7, wherein setting the range of the original image Image processing device.
前記設定手段は、前記入力画像に同じ種類の複数の前記原稿画像が含まれる場合、各々の前記原稿画像の大きさが同じになるように、前記基準範囲に対する拡張幅を設定する
請求項1から請求項の何れか1項に記載の画像処理装置。
From claim 1, the setting means sets an extension width with respect to the reference range so that when the input image includes a plurality of the original images of the same type, the size of each of the original images is the same. The image processing apparatus according to any one of claims 9.
前記設定手段は、複数の前記入力画像に同じ種類の前記原稿の画像が各々含まれる場合、各々の前記原稿に対する前記原稿画像の大きさが同じになるように、前記基準範囲に対する拡張幅を設定する
請求項1から請求項の何れか1項に記載の画像処理装置。
When the plurality of input images include images of the same type of the original, the setting means sets an extension width with respect to the reference range so that the size of the original image with respect to each of the originals is the same. The image processing apparatus according to any one of claims 1 to 9.
前記取得手段は、利用者が指定した拡張幅を取得し、
前記設定手段は、前記取得手段で取得した拡張幅を、前記基準範囲に対する拡張幅としても用いる
請求項1又は請求項4又は請求項5の何れか1項に記載の画像処理装置。
The acquisition means acquires the expansion width specified by the user, and obtains the expansion width.
The image processing apparatus according to claim 1 , wherein the setting means also uses the extension width acquired by the acquisition means as an extension width with respect to the reference range.
前記設定手段は、前記原稿画像が予め定めた配置方向に対して傾斜している場合、前記原稿画像が前記予め定めた配置方向に沿って配置されるように、前記原稿画像の傾斜を補正する
請求項1から請求項1の何れか1項に記載の画像処理装置。
When the original image is inclined with respect to a predetermined arrangement direction, the setting means corrects the inclination of the original image so that the original image is arranged along the predetermined arrangement direction. the image processing apparatus according to any one of claims 1 2 to claims 1.
原稿を画像として読み取る読み取り手段と、
請求項1から請求項1の何れか1項に記載の画像処理装置と、
前記画像処理装置から出力された原稿画像を記録媒体に形成する画像形成手段と、
を備えた画像形成装置。
A reading means that reads the original as an image,
An image processing device according to claim 1 to any one of claims 1 3,
An image forming means for forming a document image output from the image processing apparatus on a recording medium, and
An image forming apparatus equipped with.
JP2017040830A 2017-03-03 2017-03-03 Image processing equipment and image forming equipment Active JP6885111B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017040830A JP6885111B2 (en) 2017-03-03 2017-03-03 Image processing equipment and image forming equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017040830A JP6885111B2 (en) 2017-03-03 2017-03-03 Image processing equipment and image forming equipment

Publications (2)

Publication Number Publication Date
JP2018148362A JP2018148362A (en) 2018-09-20
JP6885111B2 true JP6885111B2 (en) 2021-06-09

Family

ID=63591656

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017040830A Active JP6885111B2 (en) 2017-03-03 2017-03-03 Image processing equipment and image forming equipment

Country Status (1)

Country Link
JP (1) JP6885111B2 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020053931A (en) * 2018-09-28 2020-04-02 日本電産サンキョー株式会社 Image processing system, image scanner, and image processing method
US11303774B2 (en) 2018-10-19 2022-04-12 Kyocera Document Solutions Inc. Image reading device and method for controlling image reading device
JP2020096347A (en) 2018-11-29 2020-06-18 ソニーセミコンダクタソリューションズ株式会社 Solid-state image sensor, imaging device, and control method of solid-state image sensor
JP7258700B2 (en) 2019-09-13 2023-04-17 株式会社Pfu MEDIUM CONVEYING DEVICE, CONTROL METHOD AND CONTROL PROGRAM
JP7402414B2 (en) * 2020-02-18 2023-12-21 京セラドキュメントソリューションズ株式会社 Image forming device
JP7484229B2 (en) * 2020-03-03 2024-05-16 大日本印刷株式会社 Card cutting device and program
JP7584934B2 (en) * 2020-07-29 2024-11-18 キヤノン株式会社 IMAGE PROCESSING APPARATUS, IMAGE PROCESSING METHOD, PROGRAM, AND STORAGE MEDIUM

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4037512B2 (en) * 1997-04-15 2008-01-23 コニカミノルタビジネステクノロジーズ株式会社 Image reading device
JP5542380B2 (en) * 2009-07-22 2014-07-09 シャープ株式会社 Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium
JP6047988B2 (en) * 2012-08-07 2016-12-21 セイコーエプソン株式会社 Image processing apparatus and image processing method
JP6224476B2 (en) * 2014-02-07 2017-11-01 ローランドディー.ジー.株式会社 Printing apparatus and printing method

Also Published As

Publication number Publication date
JP2018148362A (en) 2018-09-20

Similar Documents

Publication Publication Date Title
JP6885111B2 (en) Image processing equipment and image forming equipment
JP4358870B2 (en) Image processing device
US8395807B2 (en) Image processing apparatus and method for borderless printing
US8284463B2 (en) Image reading apparatus
JP4888439B2 (en) Image reading apparatus and original size determination program
JP2009164807A (en) Image reading device
JP2015111819A (en) Reading device and image processing system
JP6592873B2 (en) Image reading apparatus, image forming apparatus, image reading method, and image reading program
JP2019201356A (en) Image processing apparatus, program, and image processing method
US10659639B2 (en) Image reading apparatus
JP6953957B2 (en) Image processing equipment and programs
JP2011166778A (en) Image-forming device, and method of correcting image and program for the same
JP4680217B2 (en) Image forming apparatus
JP2004235680A (en) Manuscript reader
JP2017063332A (en) Image forming apparatus and image forming method
JP4952575B2 (en) Image reading device
JP6107851B2 (en) Program and image processing apparatus
JP2006260398A (en) Printing controller and its control method
JP2008252383A (en) Image reader, image processing method and image processing program
JP2007116546A (en) Image processing unit, image forming unit, and display control method
JP6515887B2 (en) Image forming apparatus and image forming program
JP2006237999A (en) Image processing apparatus and image processing system
JP2017228922A (en) Image reader, image reading method, and image reading program
JP2017208626A (en) Image processing apparatus and image reading device and image reading system
JP2025080389A (en) Image forming apparatus, image forming method and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20200121

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20201218

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20210105

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210305

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20210426

R150 Certificate of patent or registration of utility model

Ref document number: 6885111

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150