JP2018014614A - Image processing apparatus and image processing method - Google Patents
Image processing apparatus and image processing method Download PDFInfo
- Publication number
- JP2018014614A JP2018014614A JP2016142962A JP2016142962A JP2018014614A JP 2018014614 A JP2018014614 A JP 2018014614A JP 2016142962 A JP2016142962 A JP 2016142962A JP 2016142962 A JP2016142962 A JP 2016142962A JP 2018014614 A JP2018014614 A JP 2018014614A
- Authority
- JP
- Japan
- Prior art keywords
- image data
- document
- unit
- inclination
- edge
- 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.)
- Granted
Links
- 238000012545 processing Methods 0.000 title claims abstract description 72
- 238000003672 processing method Methods 0.000 title claims abstract description 7
- 238000012937 correction Methods 0.000 claims abstract description 58
- 238000000605 extraction Methods 0.000 claims abstract description 23
- 239000000284 extract Substances 0.000 claims abstract description 11
- 238000000034 method Methods 0.000 claims description 62
- 238000001514 detection method Methods 0.000 claims description 20
- 238000009966 trimming Methods 0.000 claims description 7
- 238000010586 diagram Methods 0.000 description 9
- 238000004891 communication Methods 0.000 description 6
- 230000007423 decrease Effects 0.000 description 6
- 230000006870 function Effects 0.000 description 6
- 238000003702 image correction Methods 0.000 description 4
- 238000003708 edge detection Methods 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Landscapes
- Image Processing (AREA)
- Editing Of Facsimile Originals (AREA)
Abstract
Description
本発明は、画像読取部により読み取られた原稿の画像を示す原稿画像データに対して傾き補正処理を行う画像処理装置及び画像処理方法に関する。 The present invention relates to an image processing apparatus and an image processing method for performing an inclination correction process on document image data indicating an image of a document read by an image reading unit.
原稿の画像が画像読取部により読み取られる際に、原稿台の上に載置された原稿の向きが傾いていると、読み取られた原稿画像データが示す原稿の画像も斜めに傾いてしまう。 When the image of the document is read by the image reading unit, if the orientation of the document placed on the document table is tilted, the image of the document indicated by the read document image data is also tilted.
そこで、このような原稿画像データに対して傾き補正処理を行うことが可能な傾斜画像補正装置が知られている(例えば、特許文献1参照)。当該傾斜画像補正装置では、原稿の縁部が検出された場合には、原稿の縁部の傾きを検出して傾き補正処理が行われる。一方、原稿の縁部が検出されなかった場合には、文字の傾きを検出して傾き補正処理が行われる。 Therefore, an inclination image correction apparatus capable of performing an inclination correction process on such document image data is known (see, for example, Patent Document 1). In the tilt image correction apparatus, when the edge of the document is detected, the tilt of the document edge is detected and the tilt correction process is performed. On the other hand, when the edge of the document is not detected, the inclination of the character is detected and the inclination correction process is performed.
ところで、原稿画像データに基づいて原稿の傾きを検出するのに要する時間は、原稿画像データのサイズに依存するため、通常は、原稿のサイズが小さいほど処理時間は短くなる。しかしながら、上記のように原稿の縁部が検出されなかった場合のように、原稿のサイズが不明である場合には、画像読取部による読み取り範囲の全体に対応する画像データに基づいて原稿の傾きが検出されるため、原稿のサイズに関わらず処理時間が長くなってしまう。 By the way, since the time required to detect the inclination of the document based on the document image data depends on the size of the document image data, the processing time usually decreases as the document size decreases. However, when the size of the document is unknown as in the case where the edge of the document is not detected as described above, the inclination of the document is based on the image data corresponding to the entire reading range by the image reading unit. Therefore, the processing time becomes long regardless of the size of the document.
本発明の目的は、原稿のサイズが不明であっても原稿のサイズに応じた処理時間で原稿画像データに基づいて原稿の傾きを検出することが可能な画像処理装置及び画像処理方法を提供することにある。 An object of the present invention is to provide an image processing apparatus and an image processing method capable of detecting the inclination of a document based on document image data in a processing time corresponding to the document size even if the document size is unknown. There is.
本発明の一の局面に係る画像処理装置は、エッジ画像生成部と、抽出部と、傾き検出部と、傾き補正部と、を備える。前記エッジ画像生成部は、画像読取部により原稿から読み取られた原稿画像データに基づいて、原稿の画像に含まれるエッジを示すエッジ画像データを生成する。前記抽出部は、前記エッジ画像データにおいて全ての前記エッジを包含する最小の矩形領域を抽出する。前記傾き検出部は、前記矩形領域内の前記エッジ画像データに基づいて原稿の傾き角を検出する。前記傾き補正部は、前記傾き検出部により検出される原稿の傾き角に応じて前記原稿画像データに対して傾き補正処理を行う。 An image processing apparatus according to one aspect of the present invention includes an edge image generation unit, an extraction unit, a tilt detection unit, and a tilt correction unit. The edge image generation unit generates edge image data indicating an edge included in an image of a document based on document image data read from the document by the image reading unit. The extraction unit extracts a minimum rectangular area including all the edges in the edge image data. The inclination detection unit detects an inclination angle of the document based on the edge image data in the rectangular area. The inclination correction unit performs an inclination correction process on the document image data in accordance with the document inclination angle detected by the inclination detection unit.
本発明の他の局面に係る画像処理方法は、エッジ画像生成ステップと、抽出ステップと、傾き検出ステップと、傾き補正ステップと、を含む。前記エッジ画像生成ステップでは、画像読取部により原稿から読み取られた原稿画像データに基づいて、原稿の画像に含まれるエッジを示すエッジ画像データが生成される。前記抽出ステップでは、前記エッジ画像データにおいて全ての前記エッジを包含する最小の矩形領域が抽出される。前記傾き検出ステップでは、前記矩形領域内の前記エッジ画像データに基づいて原稿の傾き角が検出される。前記傾き補正ステップでは、前記傾き検出ステップにおいて検出される原稿の傾き角に応じて前記原稿画像データに対して傾き補正処理が行われる。 An image processing method according to another aspect of the present invention includes an edge image generation step, an extraction step, an inclination detection step, and an inclination correction step. In the edge image generation step, edge image data indicating edges included in the image of the document is generated based on the document image data read from the document by the image reading unit. In the extraction step, a minimum rectangular region including all the edges is extracted from the edge image data. In the tilt detection step, the tilt angle of the document is detected based on the edge image data in the rectangular area. In the tilt correction step, tilt correction processing is performed on the document image data in accordance with the tilt angle of the document detected in the tilt detection step.
本発明によれば、原稿のサイズが不明であっても原稿のサイズに応じた処理時間で原稿画像データに基づいて原稿の傾きを検出することが可能な画像処理装置及び画像処理方法が提供される。 According to the present invention, there is provided an image processing apparatus and an image processing method capable of detecting the inclination of a document based on document image data in a processing time corresponding to the document size even if the document size is unknown. The
以下添付図面を参照しながら、本発明の実施形態について説明し、本発明の理解に供する。なお、以下の実施形態は、本発明を具体化した一例であって、本発明の技術的範囲を限定するものではない。 Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings for understanding of the present invention. The following embodiment is an example embodying the present invention, and does not limit the technical scope of the present invention.
図1に示されるように、本発明の実施形態に係る画像処理装置1は、操作表示部10、ADF(Auto Document Feeder)11、画像読取部12、画像形成部13、通信I/F14、記憶部15、及び制御部16などを備える。具体的には、画像処理装置1は、プリンター機能、スキャナー機能、コピー機能、及びファクシミリ機能などを有する複合機である。なお、本発明は、複合機に限らず、原稿20(図2参照)から読み取られた原稿画像データ30(図3参照)を処理することが可能な任意の画像処理装置に適用可能である。
As shown in FIG. 1, an
操作表示部10は、情報を表示する液晶ディスプレーなどの表示部と、ユーザー操作を受け付けるタッチパネル及び操作ボタンなどの操作部とを備える。前記タッチパネルは、前記表示部の表示面上に設けられている。
The
ADF11は、原稿セット部、搬送ローラー、原稿押さえ、及び排紙部を備え、画像読取部12の読み取り対象となる原稿20を搬送する自動原稿搬送装置である。
The ADF 11 is an automatic document conveyance device that includes a document setting unit, a conveyance roller, a document pressing unit, and a paper discharge unit, and conveys a
画像読取部12は、原稿台121(図2参照)、光源、ミラー、光学レンズ、及びCCD(Charge Coupled Device)を備える。画像読取部12は、原稿台121に載置された原稿20又はADF11によって搬送される原稿20の画像を読み取って原稿画像データ30として出力することが可能である。
The
画像形成部13は、電子写真方式又はインクジェット方式で画像データに基づく印刷処理を実行することが可能であり、前記画像データに基づいてシート上に画像を形成する。例えば、画像形成部13が電子写真方式の画像形成部である場合、画像形成部13は感光体ドラム、帯電器、露光装置、現像装置、転写装置、及び定着装置などを備える。
The
通信I/F14は、電話回線、インターネット、又はLANなどの通信網を介して、外部のファクシミリ装置又はパーソナルコンピューターなどの情報処理装置との間で所定の通信プロトコルに従った通信処理を実行することが可能な通信インターフェイスである。
The communication I /
記憶部15は、ハードディスク又はEEPROM(登録商標)などの不揮発性の記憶部である。記憶部15には、制御部16によって実行される後述する画像読取処理などを実行するための各種の制御プログラム、及び原稿20から読み取られた原稿画像データ30などが記憶される。
The
制御部16は、CPU、ROM、及びRAMなどの制御機器を備える。前記CPUは、各種の演算処理を実行するプロセッサーである。前記ROMは、前記CPUに各種の処理を実行させるための制御プログラムなどの情報が予め記憶される不揮発性の記憶部である。前記RAMは、前記CPUが実行する各種の処理の一時記憶メモリー(作業領域)として使用される揮発性又は不揮発性の記憶部である。
The
ところで、原稿20の画像が画像読取部12により読み取られる際に、図2に示されるように原稿台121の上に載置された原稿20の向きが傾いていると、図3に示されるように、読み取られた原稿画像データ30が示す原稿20の画像も斜めに傾いてしまう。そこで、このような原稿画像データ30に対して傾き補正処理を行うことが可能な傾斜画像補正装置が知られている。前記傾斜画像補正装置では、原稿20の縁部が検出された場合には、原稿20の縁部の傾きを検出して傾き補正処理が行われる。一方、原稿20の縁部が検出されなかった場合には、文字の傾きを検出して傾き補正処理が行われる。
By the way, when the image of the
ところで、原稿画像データ30に基づいて原稿20の傾きを検出するのに要する時間は、原稿画像データ30のサイズに依存するため、通常は、原稿20のサイズが小さいほど処理時間は短くなる。しかしながら、上記のように原稿20の縁部が検出されなかった場合のように、原稿20のサイズが不明である場合には、画像読取部12による読み取り範囲の全体(例えば、原稿台121の全体)に対応する原稿画像データ30に基づいて原稿20の傾きが検出されるため、原稿20のサイズに関わらず処理時間が長くなってしまう。
Incidentally, since the time required to detect the inclination of the
これに対して、本実施形態の画像処理装置1では、以下で説明するような制御部16の構成及び動作によって、原稿20のサイズが不明であっても原稿20のサイズに応じた処理時間で原稿画像データ30に基づいて原稿20の傾きを検出することが可能である。
On the other hand, in the
具体的には、制御部16は、第1エッジ画像生成部161、第1抽出部162、傾き検出部163、傾き補正部164、第2エッジ画像生成部165、第2抽出部166、及びトリミング部167を含む。なお、制御部16は、前記制御プログラムに従って各種の処理を実行することによりこれらの各処理部として機能する。また、制御部16は、これらの各処理部の一部又は複数の処理機能を実現する電子回路を備えるものであってもよい。
Specifically, the
第1エッジ画像生成部161は、画像読取部12により原稿20から読み取られた原稿画像データ30に基づいて、原稿20の画像に含まれるエッジを示す第1エッジ画像データ40(図4参照)を生成する。なお、前記エッジは、原稿20の画像において濃度が不連続に変化している箇所を意味する。第1エッジ画像データ40は、例えば、白黒2値画像データである。なお、第1エッジ画像データ40の生成方法としては、種々の方法を採用することができる。例えば、第1エッジ画像生成部161は、ソーベルフィルター又はラプラシアンフィルターなどのエッジ検出フィルターを用いて、原稿画像データ30から第1エッジ画像データ40を生成することができる。
Based on the
第1抽出部162は、第1エッジ画像データ40において全ての前記エッジを包含する最小の矩形領域を第1矩形領域A1(図4参照)として抽出する。具体的には、第1抽出部162は、第1エッジ画像データ40における全ての前記エッジのX座標値の最小値及び最大値と、全ての前記エッジのY座標値の最小値及び最大値を求める。そして、第1抽出部162は、最小のX座標値と最小のY座標値との組み合わせに対応する第1頂点と、最大のX座標値と最小のY座標値との組み合わせに対応する第2頂点と、最大のX座標値と最大のY座標値との組み合わせに対応する第3頂点と、最小のX座標値と最大のY座標値との組み合わせに対応する第4頂点との4つの頂点を有する矩形領域を、第1矩形領域A1として抽出する。
The
傾き検出部163は、第1矩形領域A1内の第1エッジ画像データ40(例えば、図5に示されるエッジ画像データ41)に基づいて原稿20の傾き角θを検出する。例えば、傾き検出部163は、第1矩形領域A1内の第1エッジ画像データ40(エッジ画像データ41)に含まれる文字21又は罫線22を抽出し、当該文字21又は罫線22の傾きに基づいて原稿20の傾き角θを検出する。なお、文字21又は罫線22の抽出には、公知の文字認識処理又はパターンマッチング処理を用いることができる。また、エッジ画像データ41における文字21又は罫線22の傾きは、例えば、記憶部15等に予め記憶されている文字又は罫線の基準パターンの傾きを所定角度ずつ変えながら、エッジ画像データ41における文字21又は罫線22との形状の一致度(類似度)を順次算出することによって検出することができる。
The
傾き補正部164は、傾き検出部163により検出される原稿20の傾き角θに応じて原稿画像データ30に対して傾き補正処理(画像回転処理)を行う。具体的には、傾き補正部164は、傾き検出部163により検出される原稿20の傾き角θと同じ傾き角を有し、且つ第1矩形領域A1に外接する矩形領域を、処理対象領域B1として決定する。そして、傾き補正部164は、当該処理対象領域B1内の原稿画像データ30(例えば、図7に示される画像データ31)に対して前記傾き補正処理を行う。なお、処理対象領域B1は、傾き検出部163により検出される原稿20の傾き角θと同じ傾き角を有し、且つ第1矩形領域A1を包含する最小の矩形領域でもある。なお、傾き補正部164は、第1矩形領域A1内の原稿画像データ30に対して前記傾き補正処理を行ってもよい。
The
第2エッジ画像生成部165は、傾き補正部164による前記傾き補正処理後の原稿画像データ30(例えば、図7に示される画像データ32)に基づいて、原稿20の画像に含まれるエッジを示す第2エッジ画像データ50(図8参照)を生成する。第2エッジ画像生成部165は、例えば、第1エッジ画像生成部161による第1エッジ画像データ40の生成方法と同じ方法で、第2エッジ画像データ50を生成する。
The second edge
第2抽出部166は、第2エッジ画像データ50において全ての前記エッジを包含する最小の矩形領域である第2矩形領域A2(図8参照)を抽出する。第2抽出部166は、例えば、第1抽出部162による第1矩形領域A1の抽出方法と同じ方法で、第2矩形領域A2を抽出する。
The
トリミング部167は、傾き補正部164による前記傾き補正処理後の原稿画像データ30(例えば、図7に示される画像データ32)から、第2抽出部166により抽出される第2矩形領域A2に対応する領域を切り出す。
The
次に、図9を参照しつつ、制御部16によって実行される画像読取処理の手順の一例について説明する。ここで、ステップS1,S2,・・・は、制御部16により実行される処理手順(ステップ)の番号を表している。なお、前記画像読取処理は、例えば、操作表示部10に対する所定の画像読取開始操作が検知されたことに応じて開始される。
Next, an example of the procedure of image reading processing executed by the
<ステップS1>
まず、ステップS1において、制御部16は、画像読取部12を制御して、原稿台121に載置された原稿20又はADF11によって搬送される原稿20の画像を読み取る。その結果、例えば、図2に示されるように原稿台121に載置された原稿20の画像が読み取られて、図3に示されるような原稿画像データ30が生成される。なお、図2は、原稿台121を下方から見た図である。
<Step S1>
First, in step S <b> 1, the
<ステップS2>
ステップS2(本発明の「エッジ画像生成ステップ」の一例)において、制御部16は、前記ステップS1で生成された原稿画像データ30(図3参照)に基づいて、原稿20の画像に含まれるエッジを示す第1エッジ画像データ40(図4参照)を生成する。
<Step S2>
In step S2 (an example of the “edge image generation step” of the present invention), the
<ステップS3>
ステップS3(本発明の「抽出ステップ」の一例)において、制御部16は、前記ステップS2で生成された第1エッジ画像データ40(図4参照)において全ての前記エッジを包含する最小の矩形領域を第1矩形領域A1(図4参照)として抽出する。
<Step S3>
In step S3 (an example of the “extraction step” of the present invention), the
<ステップS4>
ステップS4(本発明の「傾き検出ステップ」の一例)において、制御部16は、前記ステップS3で抽出された第1矩形領域A1内の第1エッジ画像データ40、すなわち、図5に示されるエッジ画像データ41に基づいて原稿20の傾き角θを検出する。例えば、制御部16は、図5に示されるエッジ画像データ41に含まれる文字21又は罫線22を抽出し、当該文字21又は罫線22の傾きに基づいて原稿20の傾き角θを検出する。なお、図5に示されるエッジ画像データ41のサイズは、原稿20のサイズが小さいほど小さくなる。よって、当該ステップS4において原稿20の傾き角θを検出するのに要する処理時間は、原稿20のサイズが小さいほど小さくなる。よって、図2に示されるように原稿20のサイズが画像読取部12による読み取り範囲(例えば、原稿台121の全体)に対して十分に小さい場合には、画像読取部12による読み取り範囲の全体に対応する原稿画像データ30に基づいて原稿20の傾きθを検出する場合と比べて、処理時間が大幅に短縮される。したがって、本実施形態の画像処理装置1では、原稿20のサイズが不明であっても、原稿20のサイズに応じた処理時間で原稿20の傾きθを検出することが可能である。
<Step S4>
In step S4 (an example of the “inclination detection step” of the present invention), the
<ステップS5>
ステップS5において、制御部16は、前記ステップS4で検出された原稿20の傾き角θ(図5参照)と同じ傾き角を有し、且つ第1矩形領域A1に外接する矩形領域を、処理対象領域B1(図6参照)として決定する。
<Step S5>
In step S5, the
<ステップS6>
ステップS6(本発明の「傾き補正ステップ」の一例)において、制御部16は、前記ステップS5で決定された処理対象領域B1内の原稿画像データ30、すなわち、図7に示される画像データ31に対して傾き補正処理(画像回転処理)を行う。この結果、図7に示されるように、原稿20の傾きが補正された画像データ32が得られる。このように、本実施形態の画像処理装置1では、処理対象領域B1内の原稿画像データ30に対して傾き補正処理が行われるので、画像読取部12による読み取り範囲の全体(例えば、原稿台121の全体)に対応する原稿画像データ30に対して傾き補正処理が行われる場合と比べて、傾き補正処理に要する処理時間が短縮される。
<Step S6>
In step S6 (an example of the “inclination correction step” of the present invention), the
<ステップS7>
ステップS7において、制御部16は、前記ステップS6で生成された前記傾き補正処理後の画像データ32に基づいて、原稿20の画像に含まれるエッジを示す第2エッジ画像データ50(図8参照)を生成する。
<Step S7>
In step S7, the
<ステップS8>
ステップS8において、制御部16は、前記ステップS7で生成された第2エッジ画像データ50において全ての前記エッジを包含する最小の矩形領域である第2矩形領域A2(図8参照)を抽出する。
<Step S8>
In step S8, the
<ステップS9>
ステップS9において、制御部16は、前記ステップS6で生成された前記傾き補正処理後の画像データ32から、前記ステップS8で抽出された第2矩形領域A2に対応する領域を切り出す。こうして切り出された画像データ33(図8参照)は、原稿20の画像を示す画像データとして、記憶部15に記憶される。このように、本実施形態の画像処理装置1では、前記傾き補正処理後の画像データ32が、余白部分を除去するトリミング処理が施されてから記憶部15に記憶される。よって、原稿20の画像を示す画像データを必要最小限のサイズで記憶することができる。
<Step S9>
In step S9, the
なお、前記ステップS2の処理は、制御部16の第1エッジ画像生成部161によって実行される。前記ステップS3の処理は、制御部16の第1抽出部162によって実行される。前記ステップS4の処理は、制御部16の傾き検出部163によって実行される。前記ステップS6の処理は、制御部16の傾き補正部164によって実行される。前記ステップS7の処理は、制御部16の第2エッジ画像生成部165によって実行される。前記ステップS8の処理は、制御部16の第2抽出部166によって実行される。前記ステップS9の処理は、制御部16のトリミング部167によって実行される。
Note that the processing in step S2 is executed by the first edge
以上のように、本実施形態によれば、第1矩形領域A1内の第1エッジ画像データ40に基づいて原稿20の傾き角θが検出されるので、原稿20のサイズが不明であっても原稿20のサイズに応じた処理時間で原稿画像データ30に基づいて原稿20の傾きを検出することが可能である。
As described above, according to the present embodiment, since the inclination angle θ of the
なお、本実施形態では、図6に示される処理対象領域B1内の原稿画像データ30に対して傾き補正処理が行われるが、本発明はこれに限定されない。他の実施形態では、図6に示される第1矩形領域A1内の原稿画像データ30に対して前記傾き補正処理が行われてもよい。これにより、前記傾き補正処理の対象となる画像データのサイズがより小さくなるため、前記傾き補正処理に要する処理時間をさらに短縮することができる。ただし、第1矩形領域A1内の原稿画像データ30(例えば、図10に示される画像データ34)に対して前記傾き補正処理(画像回転処理)が行われた場合には、図10に示されるように、前記傾き補正処理後の画像データ32には元の画像データ34には存在しない領域(図10における斜線領域)が含まれてしまう。よって、この場合には、例えば、当該斜線領域の画素値を予め定められた値(例えば、白を示す値)にセットする必要がある。この場合、仮に、原稿20の地色が白以外の色(例えば、ほとんど白に近いグレー)である場合には、前記傾き補正処理後の画像データ32において、前記斜線領域とその他の領域とで下地の色が異なってしまうことになる。これに対して、前述した実施形態では、このような問題は生じないので、原稿20の地色が白以外の色である場合に有利である。
In the present embodiment, the inclination correction process is performed on the
なお、本実施形態では、図8に示される画像データ33が、原稿20の画像を示す画像データとして最終的に記憶部15に記憶されるが、本発明はこれに限定されない。他の実施形態では、図7に示される画像データ32(すなわち、トリミング処理前の画像データ)が、原稿20の画像を示す画像データとして記憶部15に記憶されてもよい。さらに他の実施形態では、図7に示される画像データ32と図8に示される画像データ33とのいずれの画像データを原稿20の画像を示す画像データとして記憶部15に記憶すべきかを、ユーザーが任意に設定可能であってもよい。
In the present embodiment, the
1 画像処理装置
20 原稿
21 文字
22 罫線
30 原稿画像データ
31,32,33 画像データ
40 第1エッジ画像データ
41 エッジ画像データ
50 第2エッジ画像データ
121 原稿台
A1 第1矩形領域
A2 第2矩形領域
B1 処理対象領域
DESCRIPTION OF
Claims (7)
前記エッジ画像データにおいて全ての前記エッジを包含する最小の矩形領域を抽出する抽出部と、
前記矩形領域内の前記エッジ画像データに基づいて原稿の傾き角を検出する傾き検出部と、
前記傾き検出部により検出される原稿の傾き角に応じて前記原稿画像データに対して傾き補正処理を行う傾き補正部と、
を備える画像処理装置。 An edge image generation unit that generates edge image data indicating an edge included in an image of a document based on document image data read from the document by the image reading unit;
An extraction unit that extracts a minimum rectangular area including all the edges in the edge image data;
An inclination detection unit that detects an inclination angle of the document based on the edge image data in the rectangular area;
An inclination correction unit that performs an inclination correction process on the original image data in accordance with an inclination angle of the original detected by the inclination detection unit;
An image processing apparatus comprising:
請求項1に記載の画像処理装置。 The inclination correction unit determines a rectangular area having the same inclination angle as that of the document detected by the inclination detection unit and circumscribing the rectangular area as a processing target area, Performing the tilt correction process on the document image data;
The image processing apparatus according to claim 1.
請求項1に記載の画像処理装置。 The inclination correction unit performs the inclination correction process on the document image data in the rectangular area.
The image processing apparatus according to claim 1.
請求項1〜3のいずれかに記載の画像処理装置。 The edge image data is monochrome binary image data.
The image processing apparatus according to claim 1.
請求項1〜4のいずれかに記載の画像処理装置。 The inclination detection unit extracts a character or ruled line included in the edge image data in the rectangular area, and detects an inclination angle of the document based on the inclination of the character or ruled line;
The image processing apparatus according to claim 1.
前記傾き補正部による前記傾き補正処理後の原稿画像データに基づいて、原稿の画像に含まれるエッジを示す第2エッジ画像データを生成する第2エッジ画像生成部と、
前記第2エッジ画像データにおいて全ての前記エッジを包含する最小の矩形領域である第2矩形領域を抽出する第2抽出部と、
前記傾き補正部による前記傾き補正処理後の原稿画像データから、前記第2抽出部により抽出される前記第2矩形領域に対応する領域を切り出すトリミング部と、
を更に備える、請求項1〜5のいずれかに記載の画像処理装置。 The edge image data is first edge image data, the edge image generation unit is a first edge image generation unit, the rectangular region is a first rectangular region, and the extraction unit is a first extraction unit.
A second edge image generation unit that generates second edge image data indicating an edge included in an image of the document based on the document image data after the tilt correction processing by the tilt correction unit;
A second extraction unit that extracts a second rectangular region that is a minimum rectangular region including all the edges in the second edge image data;
A trimming unit that cuts out a region corresponding to the second rectangular region extracted by the second extraction unit from the document image data after the tilt correction processing by the tilt correction unit;
The image processing apparatus according to claim 1, further comprising:
前記エッジ画像データにおいて全ての前記エッジを包含する最小の矩形領域を抽出する抽出ステップと、
前記矩形領域内の前記エッジ画像データに基づいて原稿の傾き角を検出する傾き検出ステップと、
前記傾き検出ステップにおいて検出される原稿の傾き角に応じて前記原稿画像データに対して傾き補正処理を行う傾き補正ステップと、
を含む画像処理方法。 An edge image generation step for generating edge image data indicating an edge included in an image of the document based on the document image data read from the document by the image reading unit;
An extraction step of extracting a minimum rectangular area including all the edges in the edge image data;
An inclination detecting step for detecting an inclination angle of the document based on the edge image data in the rectangular area;
An inclination correction step for performing an inclination correction process on the original image data in accordance with an inclination angle of the original detected in the inclination detection step;
An image processing method including:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2016142962A JP6520853B2 (en) | 2016-07-21 | 2016-07-21 | Image processing apparatus and image processing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2016142962A JP6520853B2 (en) | 2016-07-21 | 2016-07-21 | Image processing apparatus and image processing method |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2018014614A true JP2018014614A (en) | 2018-01-25 |
JP6520853B2 JP6520853B2 (en) | 2019-05-29 |
Family
ID=61020487
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2016142962A Expired - Fee Related JP6520853B2 (en) | 2016-07-21 | 2016-07-21 | Image processing apparatus and image processing method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP6520853B2 (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004165969A (en) * | 2002-11-13 | 2004-06-10 | Minolta Co Ltd | Image processing apparatus and program thereof |
JP2010003087A (en) * | 2008-06-19 | 2010-01-07 | Canon Inc | Image processor and image processing method |
JP2012005062A (en) * | 2010-06-21 | 2012-01-05 | Sharp Corp | Image processing apparatus, image reading apparatus, image forming apparatus, image processing method, computer program and recording medium |
-
2016
- 2016-07-21 JP JP2016142962A patent/JP6520853B2/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004165969A (en) * | 2002-11-13 | 2004-06-10 | Minolta Co Ltd | Image processing apparatus and program thereof |
JP2010003087A (en) * | 2008-06-19 | 2010-01-07 | Canon Inc | Image processor and image processing method |
JP2012005062A (en) * | 2010-06-21 | 2012-01-05 | Sharp Corp | Image processing apparatus, image reading apparatus, image forming apparatus, image processing method, computer program and recording medium |
Also Published As
Publication number | Publication date |
---|---|
JP6520853B2 (en) | 2019-05-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6288521B2 (en) | Image processing device | |
CN104954612A (en) | Image processing system, image processing apparatus, information processing apparatus and image processing method | |
JP5502042B2 (en) | Image data processing system | |
JP2018046360A (en) | Image processing device, method and program | |
JP2001218045A (en) | Picture processor and picture processing method | |
JP6049531B2 (en) | Image processing apparatus and image forming apparatus | |
JP2023144065A (en) | Image processing apparatus and image processing method | |
JP4502001B2 (en) | Image processing apparatus and image processing method | |
EP3731174A2 (en) | Image processing apparatus, and method for controlling image processing apparatus | |
JP6520853B2 (en) | Image processing apparatus and image processing method | |
JP2005316550A (en) | Image processor, image reader, image inspection device and program | |
JP2008141683A (en) | Image processor, method and program, and storage medium | |
US20200021713A1 (en) | Image processing apparatus and image forming apparatus | |
JP2010011359A (en) | Image processing apparatus, image forming apparatus, method of controlling the image processing apparatus, control program, and recording medium | |
JP6639257B2 (en) | Information processing apparatus and control method therefor | |
US9438766B2 (en) | Information processing apparatus, information processing method | |
JP2004104662A (en) | Image forming device | |
JP2020068474A (en) | Image processing apparatus and image correction method | |
JP6524942B2 (en) | Image processing apparatus and image processing method | |
JP2019121852A (en) | Image processing apparatus, image processing program, image processing method, and image forming apparatus including the image processing apparatus | |
JP6105521B2 (en) | Image processing apparatus, program, and image forming apparatus | |
JP6623979B2 (en) | Image processing apparatus and image processing method | |
JP6801612B2 (en) | Map presentation device and map presentation method | |
JP6708118B2 (en) | Image processing device | |
JP2020120359A (en) | Image forming apparatus and image forming method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20180425 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20181228 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20190115 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20190305 |
|
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: 20190402 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20190415 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 6520853 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
LAPS | Cancellation because of no payment of annual fees |