JP2019208290A - Image reading apparatus, control method of the same, and program - Google Patents

Image reading apparatus, control method of the same, and program Download PDF

Info

Publication number
JP2019208290A
JP2019208290A JP2019168710A JP2019168710A JP2019208290A JP 2019208290 A JP2019208290 A JP 2019208290A JP 2019168710 A JP2019168710 A JP 2019168710A JP 2019168710 A JP2019168710 A JP 2019168710A JP 2019208290 A JP2019208290 A JP 2019208290A
Authority
JP
Japan
Prior art keywords
image
polygon
reading
gamma curve
image reading
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2019168710A
Other languages
Japanese (ja)
Inventor
希 政尾
Mare Masao
希 政尾
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.)
Canon Electronics Inc
Original Assignee
Canon Electronics Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Electronics Inc filed Critical Canon Electronics Inc
Priority to JP2019168710A priority Critical patent/JP2019208290A/en
Publication of JP2019208290A publication Critical patent/JP2019208290A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

To provide a mechanism for correcting a distortion of a read image due to a change in a current inclination due to transportation and forming it suitably.SOLUTION: The image reading apparatus is configured to: create a gamma curve from a density distribution of image data obtained by reading an image from a document; extract a polygon indicating a contour of an image indicated by the image data using the gamma curve; divide the extracted polygon into a plurality of squares; and transform each of the divided squares into a rectangles and join them.SELECTED DRAWING: Figure 4

Description

本発明は、原稿から画像を読み取る画像読取装置、その制御方法、プログラム、及び画像読取システムに関するものである。   The present invention relates to an image reading apparatus that reads an image from a document, a control method thereof, a program, and an image reading system.

画像読取装置には、フラットベッド型スキャナーと、シートフィード型スキャナーとがある。フラットベッド型スキャナーは、シート状の原稿を画像センサーで読み取ってデジタルデータに変換するために、平床に原稿が置かれた状態で、ライン状の画像センサーを端から端まで移動させることによって原稿を撮像する。一方、シートフィード型スキャナーは、1枚または複数の原稿をセットする給紙台と原稿搬送機構を有し、搬送路の途中にライン状の画像センサーを配置することによって原稿を撮像する。いずれの方式においても、撮像対象の原稿が画像センサーに対して平行になっていない場合があり、撮像の結果、原稿が傾いているかのような画像が得られる。原稿の画像が傾いていると視認性が劣化し、また、光学文字認識等の処理にも悪影響を与えるため、原稿の傾きをできるだけ取り除くことが望ましい。そのため、画像に記録されている原稿の傾き角度を検出し、傾き角度の逆方向に画像全体を回転させることによって、原稿画像を正立した状態に変換する傾き補正処理を有するものが多い。傾き検出の技術としては、たとえば特許文献1や特許文献2などがある。   The image reading apparatus includes a flat bed type scanner and a sheet feed type scanner. In order to read a sheet-like document with an image sensor and convert it into digital data, a flatbed scanner moves the line-shaped image sensor from end to end while the document is placed on a flat floor. Take an image. On the other hand, the sheet feed type scanner has a paper feed table on which one or a plurality of documents are set and a document transport mechanism, and images a document by arranging a line-shaped image sensor in the middle of the transport path. In either method, the document to be imaged may not be parallel to the image sensor, and as a result of imaging, an image as if the document is tilted is obtained. If the image of the document is tilted, the visibility is deteriorated and the processing such as optical character recognition is adversely affected. Therefore, it is desirable to remove the tilt of the document as much as possible. For this reason, many have an inclination correction process for converting an original image into an upright state by detecting the inclination angle of the original document recorded in the image and rotating the entire image in the opposite direction of the inclination angle. Examples of tilt detection techniques include Patent Document 1 and Patent Document 2.

特開平03−198178号Japanese Patent Laid-Open No. 03-198178 特開平02−193267号Japanese Patent Laid-Open No. 02-193267

しかしながら、上記従来技術には以下に記載する問題がある。シートフィード型のスキャナーの場合、給紙台にセットされた原稿の先端中央付近をローラー対ではさみ、ローラーを回転させることにより画像センサーの位置まで原稿を搬送する構成をとるものが多い。しかし、原稿が左右どちらかに偏った状態で給紙台にセットされて原稿を搬送する力が左右均等にならなかった場合などでは、搬送開始直後に原稿が傾いたり、搬送の途中で原稿の傾きが急激に拡大したりすることがある。このように原稿搬送の途中で原稿の傾きが大きく変化すると、スキャナーによって読み取られた原稿画像は、長方形が単純に回転したものではなく、図4に示すように中間部分で歪みが発生した画像になる。しかし、従来の傾き補正処理では、画像全体を一律に回転するだけであり、原稿画像の途中に歪みが発生した場合には、当該歪みを解消し、正立した長方形に補正することができなかった。   However, the above prior art has the following problems. In the case of a sheet feed type scanner, a configuration in which the vicinity of the center of the front end of a document set on a paper feed tray is sandwiched between a pair of rollers and the roller is rotated to convey the document to the position of the image sensor. However, if the original is biased to the left or right and is set on the paper feed stand and the force to convey the original is not equal to the left or right, the original will be tilted immediately after the start of conveyance, The slope may increase rapidly. In this way, when the inclination of the document greatly changes during document transportation, the document image read by the scanner is not a simple rotation of the rectangle, but an image in which distortion occurs in the intermediate portion as shown in FIG. Become. However, the conventional tilt correction process only rotates the entire image uniformly, and when distortion occurs in the middle of the original image, it cannot be corrected and corrected to an upright rectangle. It was.

本発明は、上述の問題に鑑みて成されたものであり、搬送により現行の傾きが変化したことによる読取画像の歪みを補正して好適に成形する仕組みを提供することを目的とする。   The present invention has been made in view of the above-described problems, and an object of the present invention is to provide a mechanism that corrects a distortion of a read image due to a change in the current inclination due to conveyance and forms the image appropriately.

本発明は、例えば、画像読取装置であって、原稿から画像を読み取る読取手段と、前記読取手段によって読み取った画像データの濃度分布からガンマ曲線を作成するガンマ曲線作成手段と、前記ガンマ曲線を用いて、前記画像データが示す画像の輪郭を示す多角形を抽出する多角形抽出手段と、前記多角形抽出手段によって抽出された多角形を複数の四角形に分割する分割手段と、前記分割手段によって分割された複数の四角形のそれぞれを、長方形に変形する変形手段と、前記変形手段によって変形された複数の長方形を結合する結合手段とを備えることを特徴とする。   The present invention is, for example, an image reading apparatus using a reading unit that reads an image from a document, a gamma curve generating unit that generates a gamma curve from a density distribution of image data read by the reading unit, and the gamma curve. A polygon extracting means for extracting a polygon indicating the contour of the image indicated by the image data; a dividing means for dividing the polygon extracted by the polygon extracting means into a plurality of quadrangles; and the dividing means for dividing the polygon. Each of the plurality of quadrilaterals is provided with a deforming unit that transforms the rectangle into a rectangle, and a coupling unit that joins the plurality of rectangles deformed by the deforming unit.

また、本発明は、原稿から画像を読み取る画像読取装置と、該画像読取装置によって読み取られた画像データを処理する画像処理装置とを含む画像読取システムであって、前記画像読取装置は、原稿から画像を読み取る読取手段と、前記読取手段によって読み取った画像データの濃度分布からガンマ曲線を作成する作成手段と、前記読取手段によって読み取った画像データと、前記作成手段によって作成したガンマ曲線を前記画像処理装置へ送信する送信手段とを備え、前記画像処理装置は、前記ガンマ曲線を用いて、前記画像データが示す画像の輪郭を示す多角形を抽出する多角形抽出手段と、前記多角形抽出手段によって抽出された多角形を複数の四角形に分割する分割手段と、前記分割手段によって分割された複数の四角形のそれぞれを、長方形に変形する変形手段と、前記変形手段によって変形された複数の長方形を結合する結合手段とを備えることを特徴とする。   The present invention also provides an image reading system including an image reading device that reads an image from a document and an image processing device that processes image data read by the image reading device. Reading means for reading an image; creating means for creating a gamma curve from a density distribution of image data read by the reading means; image data read by the reading means; and gamma curve created by the creating means for the image processing Transmitting means for transmitting to the apparatus, wherein the image processing apparatus uses the gamma curve to extract a polygon indicating the contour of the image indicated by the image data, and the polygon extracting means. Dividing means for dividing the extracted polygon into a plurality of quadrilaterals, and a plurality of quadrilaterals divided by the dividing means, respectively , Characterized in that it comprises a deforming means for deforming the rectangular, and coupling means for coupling a plurality of rectangular deformed by said deforming means.

本発明によれば、搬送により現行の傾きが変化したことによる読取画像の歪みを補正して好適に成形することができる。   According to the present invention, it is possible to correct the distortion of the read image due to the change in the current inclination due to the conveyance, and it is possible to suitably form the image.

スキャナーの外観図。External view of the scanner. スキャナーの内部構成図。The internal block diagram of a scanner. 画像システムの全体構成図。1 is an overall configuration diagram of an image system. 原稿の読取画像を示す図。The figure which shows the read image of a document. 原稿の輪郭を構成する多角形を示す図。The figure which shows the polygon which comprises the outline of a document. 頂点の対になる点が追加された多角形を示す図。The figure which shows the polygon by which the point which becomes a pair of a vertex was added. 多角形を分割して得られた四角形を示す図。The figure which shows the square obtained by dividing | segmenting a polygon. 四角形から変形された長方形を示す図。The figure which shows the rectangle deform | transformed from the square. 歪みが補正された原稿の画像を示す図。The figure which shows the image of the original document by which distortion was correct | amended. 四角形から長方形へのマッピングを示す図。The figure which shows the mapping from a rectangle to a rectangle. 画像センサーの対向面の濃度分布を示す図。The figure which shows density distribution of the opposing surface of an image sensor. ガンマ曲線を示す図。The figure which shows a gamma curve. ガンマ曲線を適用した原稿の画像を示す図。The figure which shows the image of the original document which applied the gamma curve. 歪み補正のフローチャート。The flowchart of distortion correction. 原稿画像の取得のフローチャート。6 is a flowchart for obtaining a document image. 頂点の反対側の点を求める方法を示す図。The figure which shows the method of calculating | requiring the point on the opposite side of a vertex.

以下に本発明の一実施形態を示す。以下で説明される個別の実施形態は、本発明の上位概念、中位概念及び下位概念など種々の概念を理解するために役立つであろう。また、本発明の技術的範囲は、特許請求の範囲によって確定されるのであって、以下の個別の実施形態によって限定されるわけではない。   An embodiment of the present invention is shown below. The individual embodiments described below will help to understand various concepts, such as superordinate concepts, intermediate concepts and subordinate concepts of the present invention. Further, the technical scope of the present invention is determined by the scope of the claims, and is not limited by the following individual embodiments.

<画像読取装置の構成>
以下では、図1乃至図16を参照して、本発明の一実施形態について説明する。まず、図1及び図2を参照して、本実施形態に係る画像読取装置の構成例について説明する。本実施形態に係る画像読取装置は、シートフィード型スキャナーである。なお、本発明はこれに限定されず、原稿から画像を読み取る装置であり、その機構により原稿が傾いた状態で画像を読み取ってしまい、読取画像が歪んでしまう可能性のある装置であれば適用することができる。
<Configuration of image reading apparatus>
Hereinafter, an embodiment of the present invention will be described with reference to FIGS. First, a configuration example of the image reading apparatus according to the present embodiment will be described with reference to FIGS. 1 and 2. The image reading apparatus according to the present embodiment is a sheet feed type scanner. Note that the present invention is not limited to this, and is an apparatus that reads an image from an original, and can be applied to any apparatus that can read an image while the original is tilted by the mechanism and the read image may be distorted. can do.

スキャナー1は、原稿205をセットする給紙台101、スキャンされた原稿が排紙される排紙台102、給紙台101から排紙台102まで原稿を搬送するローラー201、及び原稿を画像データとして入力する画像センサー202を備える。さらに、スキャナー1は、原稿が排紙されたことを検出する図示しない排紙センサー、プログラムや画像データを記憶するメモリやプログラムを制御するCPUを搭載したCPUボード203、及びスキャナー1をコンピューターと接続するための外部インターフェース204を備える。外部インターフェース204としては、SCSI、USB、Bluetooth(登録商標)、Ethernet(登録商標)、及び無線LAN等の公知の通信インターフェースを用いる。画像センサー202と対向する面は、その反射率が高くても低くてもよい。   The scanner 1 includes a paper feed tray 101 on which a document 205 is set, a paper discharge tray 102 on which a scanned document is discharged, a roller 201 that transports the document from the paper feed tray 101 to the paper discharge tray 102, and the document as image data. The image sensor 202 is input. Further, the scanner 1 connects a paper discharge sensor (not shown) that detects that a document has been discharged, a memory that stores a program and image data, a CPU board 203 equipped with a CPU that controls the program, and the scanner 1 to a computer. An external interface 204 is provided. As the external interface 204, a known communication interface such as SCSI, USB, Bluetooth (registered trademark), Ethernet (registered trademark), or wireless LAN is used. The surface facing the image sensor 202 may have high or low reflectance.

<画像読取システム構成>
次に、図3を参照して、シートフィード型スキャナーを含む画像読取システムの構成例について説明する。スキャナー1は、インターフェースケーブルにより画像処理装置302に接続される。画像処理装置302には、図示しないプログラム処理部であるところのCPU、及びプログラムや画像データを記憶する記憶部がある。また、表示部であるところのディスプレイ301と入力部であるところのキーボード303が画像処理装置302に接続される。入力部はキーボード以外にマウス、タッチパネルなどであってもよい。
<Image reading system configuration>
Next, a configuration example of an image reading system including a sheet feed type scanner will be described with reference to FIG. The scanner 1 is connected to the image processing apparatus 302 by an interface cable. The image processing apparatus 302 includes a CPU that is a program processing unit (not shown) and a storage unit that stores programs and image data. A display 301 serving as a display unit and a keyboard 303 serving as an input unit are connected to the image processing apparatus 302. The input unit may be a mouse, a touch panel, etc. in addition to the keyboard.

<画像読取処理>
次に、図15を参照して、本実施形態におけるスキャナー1において原稿の画像を読み取る際の処理手順について説明する。以下で説明する処理は、スキャナー1又は画像処理装置302のCPUがメモリに格納された制御プログラムを実行することによって実現される。
<Image reading process>
Next, with reference to FIG. 15, a processing procedure when reading an image of an original with the scanner 1 in the present embodiment will be described. The process described below is realized by the CPU of the scanner 1 or the image processing apparatus 302 executing a control program stored in the memory.

まず、S1501において、スキャナー1のCPUは、画像センサー202の対向面の画像を、画像センサー202によって取得する。続いて、S1502において、スキャナー1のCPUは、対向面の画像の濃度分布を求める。濃度分布の例を図11に示す。図11では、横軸に濃度を示し、縦軸に頻度を示す。S1502においては、図11に示すようなヒストグラムを取得する。   First, in step S <b> 1501, the CPU of the scanner 1 acquires an image on the opposite surface of the image sensor 202 using the image sensor 202. Subsequently, in S1502, the CPU of the scanner 1 obtains the density distribution of the image on the opposite surface. An example of the density distribution is shown in FIG. In FIG. 11, the horizontal axis indicates the concentration, and the vertical axis indicates the frequency. In S1502, a histogram as shown in FIG. 11 is acquired.

次に、S1503において、スキャナー1のCPUは、ガンマ曲線作成手段として機能し、図11に示す濃度分布の頂点Pが最も暗く、頂点Pから遠ざかるにつれ明るくなるようなガンマ曲線を作成する。このようにして作成したガンマ曲線の例を図12に示す。なお、濃度分布の頂点Pが最も明るく、頂点Pから遠ざかるにつれ暗くなるようなガンマ曲線でもよい。図12は、横軸に入力を示し、縦軸に出力を示す。   Next, in S1503, the CPU of the scanner 1 functions as a gamma curve creating unit, and creates a gamma curve in which the vertex P of the density distribution shown in FIG. 11 is the darkest and becomes brighter as the distance from the vertex P increases. An example of the gamma curve created in this way is shown in FIG. Note that the gamma curve may be such that the vertex P of the density distribution is brightest and becomes darker as the distance from the vertex P increases. FIG. 12 shows input on the horizontal axis and output on the vertical axis.

次に、S1504において、スキャナー1のCPUは、原稿検知センサーによって給紙台101に原稿が存在するか否かを判定する。給紙台101に原稿が無ければ処理を終了する。一方、原稿があればS1505に進む。S1505において、スキャナー1のCPUは、給紙台101に積載された原稿のうち1枚の原稿を、画像センサー202の位置までローラー201によって搬送する。S1506において、スキャナー1のCPUは、画像センサー202によって原稿の画像を取得し、インターフェースケーブルによって画像処理装置302に画像を送信する。さらに、スキャナー1のCPUは、S1503で作成したガンマ曲線の情報も画像処理装置302に送信する。原稿の読取画像の例を図4に示す。図4に示す読取画像は、ローラー201によって搬送された原稿が斜行したことにより、歪んだ画像となっている様子を示す。   In step S <b> 1504, the CPU of the scanner 1 determines whether a document is present on the paper feed tray 101 by using a document detection sensor. If there is no document on the paper feed tray 101, the process is terminated. On the other hand, if there is a document, the process advances to step S1505. In step S <b> 1505, the CPU of the scanner 1 conveys one document out of the documents stacked on the sheet feeding table 101 to the position of the image sensor 202 by the roller 201. In step S <b> 1506, the CPU of the scanner 1 acquires an image of a document using the image sensor 202 and transmits the image to the image processing apparatus 302 using an interface cable. Further, the CPU of the scanner 1 also transmits information on the gamma curve created in S1503 to the image processing apparatus 302. An example of a read image of a document is shown in FIG. The read image shown in FIG. 4 shows a state in which the original conveyed by the roller 201 is skewed due to skew.

S1507において、画像処理装置302のCPUは、歪み補正や明るさ補正などの画像処理を行う。歪み補正の詳細は後述する。続いて、S1508において、画像処理装置302のCPUは、原稿の画像をディスプレイ301に表示し、記憶部に保存した後に、S1504に戻って次の原稿を処理する。給紙台101に原稿が無ければ処理を終了する。   In step S1507, the CPU of the image processing apparatus 302 performs image processing such as distortion correction and brightness correction. Details of the distortion correction will be described later. In step S1508, the CPU of the image processing apparatus 302 displays the image of the document on the display 301 and saves it in the storage unit, and then returns to step S1504 to process the next document. If there is no document on the paper feed tray 101, the process is terminated.

<歪み補正処理>
次に、図14を参照して、S1507における画像処理のうち、歪み補正の処理手順について説明する。以下で説明する処理は、画像処理装置302のCPUがメモリに格納された制御プログラムを実行することによって実現される。
<Distortion correction processing>
Next, a distortion correction processing procedure in the image processing in S1507 will be described with reference to FIG. The process described below is realized by the CPU of the image processing apparatus 302 executing a control program stored in the memory.

S1401において、画像処理装置302のCPUは、原稿の読取画像に対して、S1504で作成したガンマ曲線を適用することにより、画像センサー202の対向面と同等の濃度を有する領域だけが暗くなった画像を得る。S1401で得た画像を図13に示す。公知の輪郭線検出処理によって図13の画像から輪郭データを検出し、公知のベクトル化処理によって輪郭データから多角形を求める。ここで、画像処理装置302のCPUは、多角形抽出手段として機能する。求めた多角形500を図5に示す。図5に示すように、読取画像の輪郭を示す多角形500は、原稿と異なり、歪みにより長方形ではなくなっている。なお、ここでは、ガンマ曲線を用いて輪郭データを抽出する処理について説明したが、当該ガンマ曲線を用いて用紙サイズや、用紙の傾き角度を検知することもできる。   In S1401, the CPU of the image processing apparatus 302 applies the gamma curve created in S1504 to the read image of the document, so that only an area having a density equivalent to the opposite surface of the image sensor 202 is darkened. Get. The image obtained in S1401 is shown in FIG. Contour data is detected from the image of FIG. 13 by a known contour detection process, and a polygon is obtained from the contour data by a known vectorization process. Here, the CPU of the image processing apparatus 302 functions as polygon extraction means. The obtained polygon 500 is shown in FIG. As shown in FIG. 5, a polygon 500 indicating the outline of the read image is not a rectangle due to distortion, unlike a document. Although the process of extracting contour data using a gamma curve has been described here, the paper size and the inclination angle of the paper can also be detected using the gamma curve.

次に、S1402において、画像処理装置302のCPUは、辺抽出手段として機能し、多角形500を構成する辺のうち、傾き角度が水平に近く、かつ、最も上部に存在する辺のうち、辺の長さが最長のものを上辺とする。さらに、画像処理装置302のCPUは、多角形500を構成する辺のうち、傾き角度が水平に近く、かつ、最も下部に存在する辺のうち、辺の長さが最長のものを下辺とする。即ち、ここでは、画像処理装置302のCPUは、多角形500から上辺と下辺を抽出する。   Next, in S1402, the CPU of the image processing apparatus 302 functions as a side extracting unit, and among the sides constituting the polygon 500, the side having the inclination angle close to the horizontal and existing at the uppermost side is the side. The longest is the top side. Further, the CPU of the image processing apparatus 302 uses the side having the longest side length among the sides forming the polygon 500 and having the inclination angle close to the horizontal and existing at the bottom as the lower side. . That is, here, the CPU of the image processing apparatus 302 extracts the upper side and the lower side from the polygon 500.

S1403において、画像処理装置302のCPUは、上辺及び下辺の長さの差が予め定められた閾値を超えているか否かを判定する。つまり、上辺と下辺との長さが略同じであるかどうかを判断している。上辺と下辺の長さが著しく異なる場合は、エラー終了とする。一方、上辺と下辺とが略同じ長さであれば、即ち、上辺と下辺との長さの差が上記閾値を超えていなければS1404に進む。   In step S1403, the CPU of the image processing apparatus 302 determines whether the difference between the lengths of the upper side and the lower side exceeds a predetermined threshold value. That is, it is determined whether or not the lengths of the upper side and the lower side are substantially the same. If the lengths of the upper and lower sides are significantly different, the process ends in error. On the other hand, if the upper side and the lower side are substantially the same length, that is, if the difference in length between the upper side and the lower side does not exceed the threshold value, the process proceeds to S1404.

S1404において、画像処理装置302のCPUは、頂点作成手段として機能し、頂点の対になる点を求める。例えば、左辺(一方の側辺)を構成する頂点501や、右辺(他方の側辺)を構成する頂点502について、それぞれ反対側の辺上の点の位置を求める。ここで、図16を参照して、反対側の点を求める方法について詳細に説明する。対象となる頂点をPとする。さらに、Pに隣接する頂点をそれぞれA、Bとする。このとき、直線ABと垂直に交差するような直線PQを引く。直線PQと反対側の辺との交点Rを、頂点Pの反対側の点とする。同様に、右辺を構成する頂点それぞれについて、反対側の辺上の点の位置を求める。このようにして新たに得られた点を含めた頂点の例を図6に示す。図16を用いて説明したような方法で求めると、図5に示す頂点501、502の反対側の辺上の点の位置は、図6に示すように、それぞれ頂点601、602となる。   In step S <b> 1404, the CPU of the image processing apparatus 302 functions as a vertex creation unit and obtains a vertex pair. For example, the positions of points on opposite sides of the vertex 501 constituting the left side (one side) and the vertex 502 constituting the right side (the other side) are obtained. Here, with reference to FIG. 16, a method for obtaining the opposite point will be described in detail. Let P be the target vertex. Furthermore, let apexes adjacent to P be A and B, respectively. At this time, a straight line PQ that perpendicularly intersects the straight line AB is drawn. An intersection R between the straight line PQ and the opposite side is defined as a point on the opposite side of the vertex P. Similarly, the position of the point on the opposite side is obtained for each vertex constituting the right side. An example of vertices including the points newly obtained in this way is shown in FIG. When obtained by the method described with reference to FIG. 16, the positions of the points on the sides opposite to the vertices 501 and 502 shown in FIG. 5 are the vertices 601 and 602, respectively, as shown in FIG.

図14の説明に戻る。反対側の辺上の点の位置を求めると、S1405において、画像処理装置302のCPUは、S1404によって得られた左辺を構成する点と右辺を構成する点を上辺側から順に直線で結んでいき、各点を頂点とする、複数個の四角形に分割する。図7は、分割した複数の四角形を示す。ここで、各々の四角形の左辺の長さをhLn、右辺の長さをhRnとし、最も上にある四角形の上辺の長さをwT、最も下にある四角形の下辺の長さをwBとする。   Returning to the description of FIG. When the position of the point on the opposite side is obtained, in S1405, the CPU of the image processing apparatus 302 connects the point constituting the left side and the point constituting the right side obtained in S1404 by a straight line in order from the upper side. Divide into a plurality of squares with each point as a vertex. FIG. 7 shows a plurality of divided quadrangles. Here, the length of the left side of each square is hLn, the length of the right side is hRn, the length of the upper side of the uppermost square is wT, and the length of the lower side of the lowermost square is wB.

S1406において、画像処理装置302のCPUは、S1405で分割した複数の四角形をそれぞれ長方形に変形した場合の横幅wと高さhnを決定し、面積を求める。その様子を図8に示す。たとえば、上辺の長さwTと下辺の長さwBのいずれか長い方、いずれか短い方、又は平均長さ、などを長方形の横幅wとする。また、左辺の長さhLnと右辺の長さhRnのいずれか長い方、いずれか短い方、又は平均長さ、などを長方形の高さhnとする。次に、図9に示すように、歪みを補正した後の原稿の幅と高さを、それぞれW、Hとすると、Wはwに等しくなり、Hは各々の長方形の高さhnの合計値Σhnとなる。   In S1406, the CPU of the image processing apparatus 302 determines the width w and height hn when the plurality of quadrangles divided in S1405 are transformed into rectangles, and obtains the area. This is shown in FIG. For example, the longer side, the shorter side, or the average length of the upper side length wT and the lower side length wB is defined as the lateral width w of the rectangle. Further, the longer side, the shorter side, or the average length of the left side length hLn and the right side length hRn is defined as the height hn of the rectangle. Next, as shown in FIG. 9, if the width and height of the document after correcting the distortion are W and H, respectively, W is equal to w, and H is the total value of the heights hn of the respective rectangles. Σhn.

S1407において、画像処理装置302のCPUは、各々の四角形を長方形に変形する。ここで、四角形A´B´C´D´から長方形ABCDへの変形方法を図10を用いて説明する。長方形ABCDの内部に存在する任意の点をPとするとき、点Pを通る辺ABの垂線を引くことで、辺ABとの交点Eが得られる。同様の操作で、辺BCとの交点F,辺CDとの交点G、辺DAとの交点Hが得られる。次に、変形前の四角形A´B´C´D´について、AE:EB=A´E´:E´B´となるような辺A´B´上の点E´を求める。同様の操作で、辺B´C´上の点F´,辺C´D´上の点G´,辺D´A´上の点H´を求める。直線E´G´とF´H´の交点P´が、点Pに対応する点である。このようにして長方形ABCD内部の任意の点を四角形A´B´C´D´内部の点と1対1で対応付けることにより、四角形を長方形に変形する。S1408において、画像処理装置302のCPUは、変形後の各々の長方形を結合し、図9に示す最終画像を取得する。   In S1407, the CPU of the image processing apparatus 302 transforms each quadrangle into a rectangle. Here, a deformation method from the rectangle A′B′C′D ′ to the rectangle ABCD will be described with reference to FIG. When an arbitrary point existing inside the rectangle ABCD is P, an intersection E with the side AB is obtained by drawing a perpendicular line of the side AB passing through the point P. By the same operation, an intersection point F with the side BC, an intersection point G with the side CD, and an intersection point H with the side DA are obtained. Next, for the square A′B′C′D ′ before deformation, a point E ′ on the side A′B ′ such that AE: EB = A′E ′: E′B ′ is obtained. By the same operation, a point F ′ on the side B′C ′, a point G ′ on the side C′D ′, and a point H ′ on the side D′ A ′ are obtained. An intersection P ′ between the straight lines E′G ′ and F′H ′ is a point corresponding to the point P. In this manner, the square is transformed into a rectangle by associating an arbitrary point inside the rectangle ABCD with a point inside the rectangle A′B′C′D ′ on a one-to-one basis. In S1408, the CPU of the image processing apparatus 302 combines the transformed rectangles to obtain the final image shown in FIG.

以上説明したように、本実施形態に係る画像読取装置は、原稿から画像を読み取って得た画像データの濃度分布からガンマ曲線を作成し、当該ガンマ曲線を用いて、画像データが示す画像の輪郭を示す多角形を抽出し、当該多角形を複数の四角形に分割し、分割された複数の四角形のそれぞれを、長方形に変形して結合する。これにより、原稿が搬送中に傾いたことによる読取画像の歪みを補正することができる。   As described above, the image reading apparatus according to the present embodiment creates a gamma curve from the density distribution of image data obtained by reading an image from a document, and uses the gamma curve to contour the image indicated by the image data. Is extracted, the polygon is divided into a plurality of rectangles, and each of the divided rectangles is transformed into a rectangle and combined. As a result, it is possible to correct the distortion of the read image due to the document being inclined during conveyance.

また、最も上にある四角形の上辺の長さと、最も下にある四角形の下辺の長さをもとに長方形の幅wを決定するのではなく、それ以外の四角形の上辺の長さや下辺の長さを考慮に入れてもよい。たとえば、各々の四角形の上辺の長さ及び下辺の長さの平均値をwとしてもよい。   Also, instead of determining the width w of the rectangle based on the length of the upper side of the uppermost rectangle and the length of the lower side of the lowermost rectangle, the length of the upper side and the length of the lower side of the other rectangles You may take this into account. For example, the average value of the length of the upper side and the length of the lower side of each quadrangle may be w.

また、既知の規格化された用紙サイズ(定型サイズ)のリストを持ち、S1406において歪みを補正した原稿の幅Wと高さHを求めたあと、WとHを用紙サイズのリストと比較し、十分近い用紙サイズを選択する。さらに、WとHが選択した用紙サイズになるような補正係数を求め、S1407における長方形変形処理において、変形後の長方形の大きさが補正係数を掛けた幅と高さになるようにしてもよい。   Also, after having obtained a list of known standardized paper sizes (standard sizes) and obtaining the width W and height H of the original whose distortion has been corrected in S1406, W and H are compared with the list of paper sizes. Select a paper size that is close enough. Further, a correction coefficient such that W and H become the selected paper size may be obtained, and in the rectangular deformation processing in S1407, the size of the rectangle after the deformation may be the width and height multiplied by the correction coefficient. .

上記実施形態では、S1501において、画像センサー202の対向面の画像をもとに濃度分布を作成することによって図12のガンマ曲線を求めたが、画像センサー202の対向面の画像は装置に固有のものでありほとんど変化するものではない。したがって、一定時間ごと、あるいは最初にスキャンを行うとき、などにガンマ曲線を作成してもよい。或いは、ガンマ曲線のデータを予め内蔵する構成とし、画像センサー202の対向面の画像の取得や濃度分布の作成を行わないようにしてもよい。   In the above embodiment, the gamma curve of FIG. 12 is obtained by creating a density distribution based on the image of the opposite surface of the image sensor 202 in S1501, but the image of the opposite surface of the image sensor 202 is unique to the apparatus. It's a thing and it doesn't change much. Therefore, a gamma curve may be created at regular time intervals or when scanning is performed for the first time. Alternatively, the gamma curve data may be built in in advance, and the acquisition of the image of the opposite surface of the image sensor 202 and the creation of the density distribution may not be performed.

また、上記実施形態では、画像処理装置302が画像処理部を有し、S1507において、スキャナー1で取得した原稿の画像の歪みを画像処理装置302によって補正する構成を説明したが、スキャナー1が画像処理部を持つ構成としてもよい。この構成では、画像センサー202により原稿の画像を取得した後、スキャナー1が有する画像処理部によって図14のフローチャートにしたがって原稿の画像の歪みを補正することとなる。   In the above-described embodiment, the configuration in which the image processing apparatus 302 includes the image processing unit and the image processing apparatus 302 corrects the image distortion of the document acquired by the scanner 1 in S1507 has been described. It is good also as a structure with a process part. In this configuration, after the image of the original is acquired by the image sensor 202, the image processing unit of the scanner 1 corrects the distortion of the original image according to the flowchart of FIG.

<その他の実施形態>
また、本発明は、以下の処理を実行することによっても実現される。即ち、上述した実施形態の機能を実現するソフトウェア(プログラム)を、ネットワーク又は各種記憶媒体を介してシステム或いは装置に供給し、そのシステム或いは装置のコンピュータ(又はCPUやMPU等)がプログラムを読み出して実行する処理である。
<Other embodiments>
The present invention can also be realized by executing the following processing. That is, software (program) that realizes the functions of the above-described embodiments is supplied to a system or apparatus via a network or various storage media, and a computer (or CPU, MPU, etc.) of the system or apparatus reads the program. It is a process to be executed.

なお、本発明は、上述した実施形態に限定されず、例えば、シートを搬送する搬送路と、この搬送路を搬送されるシートの画像を読み取る画像読取部とを備え、画像読取部によってシートの画像を読み取る画像処理装置(または画像読取装置とコンピュータとの連携によって実現する画像処理システム、もしくは、画像読取装置又はコンピュータ、あるいはこれらの連携を実現するための画像処理プログラム)において、シートの向きが搬送中に変化することによって生じるシートの画像の歪みを補正する歪み補正手段を持つことを特徴とする。例えば、画像に記録されている原稿の輪郭を検出し、輪郭を多角形に近似し、多角形を複数の四角形に分割し、各々の四角形を長方形に変形し、得られた各々の長方形を結合する。このような構成とした場合には、搬送の途中で原稿の傾きが変化したことによって生じる原稿の歪みを補正し、正立した長方形に変形することができる。   The present invention is not limited to the above-described embodiment, and includes, for example, a conveyance path that conveys a sheet and an image reading unit that reads an image of the sheet conveyed through the conveyance path. In an image processing apparatus that reads an image (or an image processing system that is realized by cooperation between an image reading apparatus and a computer, or an image reading apparatus or computer, or an image processing program that realizes such cooperation), the orientation of a sheet is It is characterized by having a distortion correction means for correcting distortion of a sheet image caused by a change during conveyance. For example, the outline of the document recorded in the image is detected, the outline is approximated to a polygon, the polygon is divided into a plurality of rectangles, each rectangle is transformed into a rectangle, and the obtained rectangles are combined. To do. In the case of such a configuration, it is possible to correct the distortion of the original caused by the change in the inclination of the original in the middle of conveyance and transform the original into an upright rectangle.

また、このような構成の場合、例えば、歪み補正手段は、画像情報に記録されるシートの輪郭を検出する輪郭検出手段と、輪郭検出手段によって検出された輪郭を多角形に変換する多角形検出手段と、記多角形検出手段によって検出された多角形を1つ以上の四角形に分割する輪郭分割手段と、輪郭分割手段によって分割された四角形それぞれを長方形に変形する四角形変形手段と、四角形変形手段によって変形された複数の長方形をひとつの長方形に結合する長方形結合手段と、を持つようにするのがよい。   In the case of such a configuration, for example, the distortion correction unit includes a contour detection unit that detects the contour of the sheet recorded in the image information, and a polygon detection that converts the contour detected by the contour detection unit into a polygon. Means, a contour dividing means for dividing the polygon detected by the polygon detecting means into one or more quadrangles, a quadrangle deforming means for transforming each of the quadrilaterals divided by the contour dividing means into rectangles, and a quadrilateral deforming means It is preferable to have a rectangular combination means for combining a plurality of rectangles deformed by 1 into one rectangle.

さらに、歪み補正手段は、例えば、複数の用紙サイズ情報と、長方形結合手段によって結合される長方形の大きさにもっとも近い大きさの用紙サイズを選択する用紙サイズ選択手段と、を持ち、長方形結合手段によって結合される長方形の大きさが、用紙サイズ選択手段によって選択された大きさになるように、四角形変形手段は、輪郭分割手段によって分割された四角形それぞれを適切な比率で長方形に変形するようにするのがよい。   Furthermore, the distortion correction means has, for example, a plurality of paper size information, and a paper size selection means for selecting a paper size closest to the size of the rectangle combined by the rectangular combination means, and the rectangular combination means The quadrangle deforming means transforms each of the quadrilaterals divided by the contour dividing means into rectangles at an appropriate ratio so that the size of the rectangles combined by the sheet size selecting means becomes the size selected by the paper size selecting means. It is good to do.

また、歪み補正手段は、例えば、多角形検出手段によって検出された多角形の上辺の長さと下辺の長さが著しく異なる場合は、歪みを補正しないようにするのがよい。   In addition, the distortion correction unit may not correct the distortion when, for example, the length of the upper side and the lower side of the polygon detected by the polygon detection unit are significantly different.

上記歪み補正手段は、例えば、画像読取装置に設けてもよいし、画像読取装置に接続されるコンピュータ(スマートフォンやタブレット等の情報処理端末を含む)に設けてもよいし、画像読取装置及びコンピュータのそれぞれに機能分割して設けてもよいし、画像読取装置及びコンピュータが一体となったシステム内に設けてもよい。   For example, the distortion correction unit may be provided in the image reading apparatus, or may be provided in a computer (including an information processing terminal such as a smartphone or a tablet) connected to the image reading apparatus, or the image reading apparatus and the computer. Each of these may be divided into functions, or may be provided in a system in which the image reading apparatus and the computer are integrated.

なお、本発明について画像処理システムとする場合は、画像の濃度分布を作成する濃度分布手段と、濃度分布をもとにガンマ曲線を作成するガンマ曲線作成手段と、ガンマ曲線を画像に適用するガンマ処理手段と、を持ち、画像読取部によって、画像読取部の対向面の画像を読み取り、濃度分布作成手段によって、画像読取部の対向面の画像の濃度分布を作成し、ガンマ曲線作成手段によって、濃度分布をもとにガンマ曲線を作成し、ガンマ処理手段によって、画像読取部によって読み取ったシートの画像に対してガンマ曲線を適用したのちに、輪郭検出手段によって輪郭を検出するのがよい。   In the case of an image processing system according to the present invention, a density distribution unit that creates a density distribution of an image, a gamma curve creation unit that creates a gamma curve based on the density distribution, and a gamma that applies the gamma curve to an image. A processing unit, and an image reading unit reads an image on the opposite surface of the image reading unit, a density distribution creating unit creates a density distribution of the image on the opposite surface of the image reading unit, and a gamma curve creating unit It is preferable that a gamma curve is created based on the density distribution, the gamma processing unit applies the gamma curve to the sheet image read by the image reading unit, and then the contour is detected by the contour detection unit.

本発明は、原稿から画像を読み取る画像読取装置、その制御方法、及びプログラに関するものである。
The present invention relates to an image reading apparatus for reading an image from a document, to a control method thereof, and program.

本発明は、上述の問題に鑑みて成されたものであり、搬送により原稿の傾きが変化したことによる読取画像の歪みを補正して好適に成形する仕組みを提供することを目的とする。
The present invention has been made in view of the above-described problems, and an object of the present invention is to provide a mechanism that corrects a distortion of a read image due to a change in the inclination of a document due to conveyance and forms the image appropriately.

本発明は、例えば、画像読取手段によって読み取られた画像の濃度分布から得られた輪郭データから多角形を抽出する多角形抽出手段と、前記多角形抽出手段によって抽出された多角形の上辺と下辺を抽出する辺抽出手段と、前記多角形に含まれる前記上辺及び前記下辺を繋ぐ一方の側辺を構成する一方側の頂点に対して対となる他方の側辺に含まれる頂点を作成し、前記多角形に含まれる前記上辺及び前記下辺を繋ぐ他方の側辺を構成する他方側の頂点に対して対となる一方の側辺に含まれる頂点を作成する頂点作成手段と、前記多角形抽出手段によって抽出された多角形を複数の四角形に分割する分割手段と、前記分割手段によって分割された複数の四角形のそれぞれを、長方形に変形する変形手段と、前記変形手段によって変形された複数の長方形を結合する結合手段と、を備え、前記分割手段は、前記上辺と、前記多角形抽出手段によって抽出された多角形の頂点のうち、前記上辺に最も近い頂点と、を有する四角形と、前記一方側の頂点に対して対となる他方の側辺に含まれる頂点と、前記他方側の頂点に対して対となる一方の側辺を構成する頂点と、が対頂角となる四角形と、前記下辺と、前記多角形抽出手段によって抽出された多角形の頂点のうち、前記下辺に最も近い頂点と、を有する四角形と、に分割することを特徴とする画像読取装置。ことを特徴とする。
The present invention includes, for example, a polygon extracting unit that extracts a polygon from contour data obtained from a density distribution of an image read by the image reading unit, and an upper side and a lower side of the polygon extracted by the polygon extracting unit. Creating a vertex included in the other side to be paired with a vertex on one side constituting one side connecting the upper side and the lower side included in the polygon; Vertex creating means for creating a vertex included in one side that is paired with respect to the other vertex constituting the other side connecting the upper side and the lower side included in the polygon, and the polygon extraction Dividing means for dividing the polygon extracted by the means into a plurality of quadrilaterals, deforming means for transforming each of the plurality of quadrilaterals divided by the dividing means into rectangles, and deforming by the deforming means Combining means for combining a number of rectangles, wherein the dividing means is a quadrilateral having the upper side and a vertex closest to the upper side among the vertices of the polygon extracted by the polygon extracting means; A quadrangle in which a vertex included in the other side that is paired with respect to the vertex on the one side and a vertex that constitutes one side that is paired with respect to the other side of the vertex is a vertical angle; An image reading apparatus, wherein the image reading apparatus is divided into quadrilaterals having the lower side and a vertex closest to the lower side among the vertexes of the polygon extracted by the polygon extracting means. It is characterized by that.

本発明によれば、搬送により原稿の傾きが変化したことによる読取画像の歪みを補正して好適に成形することができる。

According to the present invention, the distortion of the read image due to the change in the inclination of the document due to the conveyance can be corrected and the image can be suitably formed.

Claims (12)

画像読取装置であって、
原稿から画像を読み取る読取手段と、
前記読取手段によって読み取った画像データの濃度分布からガンマ曲線を作成するガンマ曲線作成手段と、
前記ガンマ曲線を用いて、前記画像データが示す画像の輪郭を示す多角形を抽出する多角形抽出手段と、
前記多角形抽出手段によって抽出された多角形を複数の四角形に分割する分割手段と、
前記分割手段によって分割された複数の四角形のそれぞれを、長方形に変形する変形手段と、
前記変形手段によって変形された複数の長方形を結合する結合手段と
を備えることを特徴とする画像読取装置。
An image reading device,
Reading means for reading an image from a document;
Gamma curve creating means for creating a gamma curve from the density distribution of the image data read by the reading means;
Using the gamma curve, a polygon extracting means for extracting a polygon indicating the contour of the image indicated by the image data;
Dividing means for dividing the polygon extracted by the polygon extracting means into a plurality of quadrilaterals;
Deformation means for transforming each of the plurality of quadrilaterals divided by the dividing means into rectangles;
An image reading apparatus comprising: a combining unit configured to combine a plurality of rectangles deformed by the deforming unit.
前記分割手段は、
前記多角形抽出手段によって抽出された多角形の上辺と下辺を抽出する辺抽出手段と、
前記上辺及び前記下辺を繋ぐ側辺のうち、一方の側辺に含まれる頂点に対して対となる他方の側辺に含まれる頂点を作成し、他方の側辺に含まれる頂点に対して対となる一方の側辺に含まれる頂点を作成する頂点作成手段とを備え、
前記多角形抽出手段によって抽出された多角形の頂点と、作成された頂点とで囲まれる複数の四角形を、それぞれの四角形が他の四角形と重ならないように分割することを特徴とする請求項1に記載の画像読取装置。
The dividing means includes
Edge extracting means for extracting the upper and lower sides of the polygon extracted by the polygon extracting means;
Among the side edges connecting the upper side and the lower side, a vertex included in the other side that is paired with the vertex included in one side is created, and the pair is paired with the vertex included in the other side. Vertices creating means for creating vertices included on one side of
2. A plurality of rectangles surrounded by polygon vertices extracted by the polygon extraction means and the created vertices are divided so that the respective rectangles do not overlap with other rectangles. The image reading apparatus described in 1.
前記分割手段は、
前記一方の側辺に含まれる頂点と、前記他方の側辺に含まれる頂点とを、上辺側から順に結んでできた直線に従って前記複数の四角形に分割することを特徴とする請求項2に記載の画像読取装置。
The dividing means includes
The vertex contained in the said one side and the vertex contained in the said other side are divided | segmented into these squares according to the straight line formed by connecting in an order from the upper side. Image reading apparatus.
前記変形手段は、
前記分割手段によって分割された前記複数の四角形のそれぞれにおいて、長方形へ変形後の各辺の長さを決定する決定手段を備え、
前記決定手段によって決定された各辺の長さに合わせて前記複数の四角形を長方形へ変形することを特徴とする請求項2又は3に記載の画像読取装置。
The deformation means includes
In each of the plurality of quadrilaterals divided by the dividing means, comprising a determining means for determining the length of each side after being transformed into a rectangle,
4. The image reading apparatus according to claim 2, wherein the plurality of quadrangles are transformed into rectangles according to the length of each side determined by the determining unit.
前記決定手段は、前記分割手段によって分割された前記複数の四角形のそれぞれにおいて、
前記上辺と前記下辺のうち、長い方の辺の長さ、短い方の辺の長さ、又は、平均の辺の長さを、変形後の上辺及び下辺の長さに決定し、
前記一方の側辺と前記他方の側辺のうち、長い方の辺の長さ、短い方の辺の長さ、又は、平均の辺の長さを、変形後の一方の側辺及び他方の側辺の長さに決定することを特徴とする請求項4に記載の画像読取装置。
The determining means includes a plurality of squares divided by the dividing means.
Of the upper side and the lower side, the length of the longer side, the length of the shorter side, or the average side length is determined as the length of the upper side and the lower side after deformation,
Of the one side and the other side, the length of the longer side, the length of the shorter side, or the length of the average side is calculated by changing the length of one side and the other side after deformation. The image reading apparatus according to claim 4, wherein the length of the side is determined.
前記変形手段は、
原稿の定型サイズのリストから、前記多角形抽出手段によって抽出された多角形のサイズに最も近い定型サイズを選択し、前記結合手段によって結合した際に、前記選択した定型サイズになるように、前記複数の四角形を変形することを特徴とする請求項1乃至3の何れか1項に記載の画像読取装置。
The deformation means includes
The standard size closest to the size of the polygon extracted by the polygon extraction unit is selected from the list of standard sizes of the original, and when combined by the combining unit, the selected standard size is selected. The image reading apparatus according to claim 1, wherein a plurality of quadrangles are deformed.
前記作成手段は、前記読取手段が読み取った画像データの濃度分布を示すヒストグラムを作成し、当該濃度分布の頂点が最も暗く、該頂点から遠ざかるにつれて明るくなるガンマ曲線を作成することを特徴とする請求項1乃至6の何れか1項に記載の画像読取装置。   The creation means creates a histogram showing the density distribution of the image data read by the reading means, and creates a gamma curve in which the vertex of the density distribution is the darkest and becomes brighter as the distance from the vertex increases. Item 7. The image reading apparatus according to any one of Items 1 to 6. 前記作成手段は、前記読取手段が読み取った画像データの濃度分布を示すヒストグラムを作成し、当該濃度分布の頂点が最も明るく、該頂点から遠ざかるにつれて暗くなるガンマ曲線を作成することを特徴とする請求項1乃至6の何れか1項に記載の画像読取装置。   The creation means creates a histogram showing the density distribution of the image data read by the reading means, and creates a gamma curve in which the vertex of the density distribution is brightest and becomes darker as the distance from the vertex increases. Item 7. The image reading apparatus according to any one of Items 1 to 6. 原稿を搬送する搬送手段をさらに備え、
前記読取手段は、前記搬送手段によって搬送されている原稿をの画像を読み取ることを特徴とする請求項1乃至8の何れか1項に記載の画像読取装置。
The apparatus further comprises conveying means for conveying the document,
The image reading apparatus according to claim 1, wherein the reading unit reads an image of a document conveyed by the conveying unit.
原稿から画像を読み取る画像読取装置と、該画像読取装置によって読み取られた画像データを処理する画像処理装置とを含む画像読取システムであって、
前記画像読取装置は、
原稿から画像を読み取る読取手段と、
前記読取手段によって読み取った画像データの濃度分布からガンマ曲線を作成する作成手段と、
前記読取手段によって読み取った画像データと、前記作成手段によって作成したガンマ曲線を前記画像処理装置へ送信する送信手段と
を備え、
前記画像処理装置は、
前記ガンマ曲線を用いて、前記画像データが示す画像の輪郭を示す多角形を抽出する多角形抽出手段と、
前記多角形抽出手段によって抽出された多角形を複数の四角形に分割する分割手段と、
前記分割手段によって分割された複数の四角形のそれぞれを、長方形に変形する変形手段と、
前記変形手段によって変形された複数の長方形を結合する結合手段と
を備えることを特徴とする画像読取システム。
An image reading system including an image reading device that reads an image from a document and an image processing device that processes image data read by the image reading device,
The image reading device includes:
Reading means for reading an image from a document;
Creating means for creating a gamma curve from the density distribution of the image data read by the reading means;
Image data read by the reading means, and a transmission means for transmitting the gamma curve created by the creating means to the image processing apparatus,
The image processing apparatus includes:
Using the gamma curve, a polygon extracting means for extracting a polygon indicating the contour of the image indicated by the image data;
Dividing means for dividing the polygon extracted by the polygon extracting means into a plurality of quadrilaterals;
Deformation means for transforming each of the plurality of quadrilaterals divided by the dividing means into rectangles;
An image reading system comprising: a combining unit configured to combine a plurality of rectangles deformed by the deforming unit.
画像読取装置の制御方法であって、
原稿から画像を読み取る読取工程と、
前記読取工程において読み取った画像データの濃度分布からガンマ曲線を作成するガンマ曲線作成工程と、
前記ガンマ曲線を用いて、前記画像データが示す画像の輪郭を示す多角形を抽出する多角形抽出工程と、
前記多角形抽出工程において抽出された多角形を複数の四角形に分割する分割工程と、
前記分割工程において分割された複数の四角形のそれぞれを、長方形に変形する変形工程と、
前記変形工程において変形された複数の長方形を結合する結合工程と
を備えることを特徴とする画像読取装置の制御方法。
A method for controlling an image reading apparatus, comprising:
A reading process for reading an image from a document;
A gamma curve creating step of creating a gamma curve from the density distribution of the image data read in the reading step;
Using the gamma curve, a polygon extraction step of extracting a polygon indicating the contour of the image indicated by the image data;
A dividing step of dividing the polygon extracted in the polygon extracting step into a plurality of quadrilaterals;
A deformation step of deforming each of the plurality of quadrangles divided in the division step into a rectangle,
And a combining step of combining a plurality of rectangles deformed in the deformation step.
請求項1乃至9の何れか1項の画像読取装置としてコンピュータを機能させるための該コンピュータで読み取り可能なプログラム。   A computer-readable program for causing a computer to function as the image reading apparatus according to claim 1.
JP2019168710A 2019-09-17 2019-09-17 Image reading apparatus, control method of the same, and program Pending JP2019208290A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019168710A JP2019208290A (en) 2019-09-17 2019-09-17 Image reading apparatus, control method of the same, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019168710A JP2019208290A (en) 2019-09-17 2019-09-17 Image reading apparatus, control method of the same, and program

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2014263311A Division JP6630041B2 (en) 2014-12-25 2014-12-25 Image reading device, control method thereof, program, image reading system, and image processing device

Publications (1)

Publication Number Publication Date
JP2019208290A true JP2019208290A (en) 2019-12-05

Family

ID=68768697

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019168710A Pending JP2019208290A (en) 2019-09-17 2019-09-17 Image reading apparatus, control method of the same, and program

Country Status (1)

Country Link
JP (1) JP2019208290A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020049222A (en) * 2019-11-18 2020-04-02 株式会社大都技研 Game board
JP2020049221A (en) * 2019-11-18 2020-04-02 株式会社大都技研 Game board

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020049222A (en) * 2019-11-18 2020-04-02 株式会社大都技研 Game board
JP2020049221A (en) * 2019-11-18 2020-04-02 株式会社大都技研 Game board

Similar Documents

Publication Publication Date Title
US9525868B2 (en) Mobile terminal apparatus which displays captured images
US20170001821A1 (en) Sheet size specification system, sheet size specification method, computer-readable storage medium storing sheet size specification program, and image forming device
US8139897B2 (en) Detecting tilt in an image having different resolutions in different directions
JP6200040B1 (en) Image processing apparatus, image processing method, and program
US8427714B2 (en) Image-reading device
JP2019208290A (en) Image reading apparatus, control method of the same, and program
JP6630041B2 (en) Image reading device, control method thereof, program, image reading system, and image processing device
US11816830B2 (en) Image processing apparatus, image processing method, and storage medium
US9451126B2 (en) Technique for image processing
US9628649B2 (en) Scanning apparatus and computer-readable medium storing program therefor
US9143653B2 (en) Image processing apparatus, method, and computer program product identifying show-through position based on back side image and expanded front side image
US8731336B2 (en) Multi-perpendicular line-based deskew with affine and perspective distortion correction
US11436733B2 (en) Image processing apparatus, image processing method and storage medium
JP7199511B2 (en) Information processing device, method and program
JP6217191B2 (en) Inclination angle detection apparatus, image reading apparatus, image forming apparatus, and program
JP2015018328A (en) Image reading apparatus, image processing apparatus, and program
US8553239B2 (en) Image forming apparatus to correct misaligned scanned document and method of controlling the same
JP2016072833A (en) Image reader
JP7047568B2 (en) Image processing device, image processing method and image processing program
US9628666B2 (en) Image processing device generating combined imaged data by using first image data and second image data
JP6953372B2 (en) Image processing device, control method and control program
JP2009284190A (en) Image reading apparatus and image reading system
US11979540B2 (en) Image reading system, image reading method, non-transitory computer-readable storage medium for correcting a size and position of an image to be displayed
US20160224854A1 (en) Information processing apparatus, information processing method, and storage medium
JP2020039093A (en) Reading device and program

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190917

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190917

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20201009

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20201016

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20210409