JP2010130277A - Image processing apparatus and image forming apparatus - Google Patents

Image processing apparatus and image forming apparatus Download PDF

Info

Publication number
JP2010130277A
JP2010130277A JP2008302089A JP2008302089A JP2010130277A JP 2010130277 A JP2010130277 A JP 2010130277A JP 2008302089 A JP2008302089 A JP 2008302089A JP 2008302089 A JP2008302089 A JP 2008302089A JP 2010130277 A JP2010130277 A JP 2010130277A
Authority
JP
Japan
Prior art keywords
image data
image
document
unit
inclination
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
JP2008302089A
Other languages
Japanese (ja)
Inventor
Rin Den
琳 傅
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Data 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 Oki Data Corp filed Critical Oki Data Corp
Priority to JP2008302089A priority Critical patent/JP2010130277A/en
Publication of JP2010130277A publication Critical patent/JP2010130277A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image processing apparatus and an image forming apparatus, which can correct the inclination of a manuscript image on each page even if reading a double-page spread. <P>SOLUTION: An image processing apparatus includes: an image data storing unit 102 for storing image data; an edge detection unit 104 for detecting edges of a manuscript and a back margin of each page from the stored image data; a page data storing unit 105 which divides a manuscript image on a page-by-page basis and stores image data of each page based on the detected back margin of each page; an inclination detection unit 106 for detecting an amount of inclination in the main-scanning direction of each divided image data of the manuscript image; an inclination correction unit 107 for correcting each divided image data for inclination based on the detected amount of inclination; and a manuscript integration unit 108 for integrating the corrected image data of each page into one page. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、スキャナ等の画像読取装置で読み取られた画像データを処理する画像処理装置、および画像形成装置に関し、特に、読み取り画像の傾きを補正可能とした画像処理装置および画像形成装置に関するものである。   The present invention relates to an image processing apparatus and an image forming apparatus that process image data read by an image reading apparatus such as a scanner, and more particularly to an image processing apparatus and an image forming apparatus that can correct the inclination of a read image. is there.

スキャナ等の画像読取装置を用いて原稿の読み取りを行う場合、ユーザのちょっとしたセットミスや静電気等により、原稿が読み取り面の基準位置からずれて配置されることがあり、このような場合は、得られる原稿画像が傾斜し、印刷画像が見づらいものとなる。
係る不都合に鑑み、原稿が傾いた状態で読み取られた場合に、傾斜した原稿画像の傾きを補正する技術として、例えば、特許文献1が開示されている。
When reading an original using an image reading device such as a scanner, the original may be displaced from the reference position on the reading surface due to a slight setting error or static electricity from the user. The original image is tilted, and the printed image is difficult to see.
In view of such inconvenience, for example, Patent Document 1 discloses a technique for correcting the inclination of an inclined original image when the original is read in an inclined state.

特許文献1は、読み取った原稿の画像データから、走査線毎に走査線方向に対する画素毎のズレ量を検出し、ズレのある画素の位置を走査線毎に元の位置に移動することで画像の傾きを補正するという技術である。
特開2006−94099号公報
Japanese Patent Application Laid-Open No. 2005-133867 detects an amount of deviation for each pixel in a scanning line direction for each scanning line from image data of a read original, and moves the position of the pixel with deviation to the original position for each scanning line. This technique corrects the inclination of the image.
JP 2006-94099 A

ところが、特許文献1の技術では、1枚の原稿を読み取る場合のように、原稿画像の傾きが一方向(右傾斜、或いは左傾斜)に生じている場合は、補正可能であるが、例えば、見開き原稿のように、同一読み取り面に複数ページ(2ページ)が存在し、各ページの画像の傾きが異なる場合は、ページ毎に異なる方向へ補正する必要があるため、補正が困難、或いは補正処理が極めて複雑化するという問題があった。
本発明は、見開き原稿のように、同一読み取り面に複数のページが存在する場合でも、各ページの画像の傾きを個々に補正できる画像処理装置、および画像形成装置を提供することを目的としている。
However, in the technique of Patent Document 1, correction can be made when the inclination of the original image occurs in one direction (right inclination or left inclination) as in the case of reading one original. If there are multiple pages (2 pages) on the same reading surface as in a double-page spread and the image inclination of each page is different, it is necessary to correct each page in a different direction. There was a problem that the processing was extremely complicated.
An object of the present invention is to provide an image processing apparatus and an image forming apparatus capable of individually correcting the inclination of an image of each page even when a plurality of pages exist on the same reading surface as in a spread document. .

すなわち、本発明の画像処理装置は、複数ページの原稿を読み取り、得られた画像データを処理する画像処理装置において、上記画像データを記憶する画像データ記憶部と、記憶された上記画像データから上記原稿のエッジと各ページののど部を検出するエッジ検出部と、検出された上記のど部に基づき、原稿画像をページ毎に分割してその画像データを記憶するページデータ記憶部と、分割された各原稿画像の主走査方向に対する傾き量を検出する傾き検出部と、検出された傾き量に基づき、上記分割された各原稿画像の画像データを傾き補正する傾き補正部と、補正された各ページの画像データを1ページに統合する原稿統合部とを備えることを特徴としている。   That is, the image processing apparatus of the present invention is an image processing apparatus that reads a plurality of pages of a document and processes the obtained image data. The image data storage unit that stores the image data and the stored image data An edge detection unit that detects an edge of a document and a throat portion of each page, a page data storage unit that divides a document image into pages based on the detected throat portion, and stores the image data An inclination detection unit that detects an inclination amount of each original image with respect to the main scanning direction, an inclination correction unit that corrects an inclination of the image data of each divided original image based on the detected inclination amount, and each corrected page And a document integration unit that integrates the image data into one page.

さらに、本発明の画像形成装置は、原稿を読み取り、画像データを生成する画像読取装置と、上記構成の画像処理装置と、上記原稿統合部で統合された画像データを印刷するプリンタとを備えることを特徴としている。   Furthermore, an image forming apparatus of the present invention includes an image reading device that reads a document and generates image data, the image processing device having the above-described configuration, and a printer that prints the image data integrated by the document integration unit. It is characterized by.

また、本発明の別の画像処理装置は、見開き原稿を読み取り、得られた画像データを処理する画像処理装置において、上記画像データを記憶する画像データ記憶部と、記憶された上記画像データから上記原稿の片面の長辺と短辺を検出する長短辺検出部と、検出された長短辺に基づき、片面の印刷領域を設定し、当該印刷領域に片面の画像データを記憶する印刷領域コピー部と、上記印刷領域における原稿画像の主走査方向に対する傾き量を検出する傾き検出部と、検出された傾き量に基づき、上記印刷領域における画像データを傾き補正する傾き補正部と、補正された上記印刷領域の画像データを1ページに編集する原稿形成部とを備えることを特徴としている。   Another image processing apparatus of the present invention is an image processing apparatus that reads a spread original and processes the obtained image data. The image data storage unit that stores the image data and the stored image data A long and short side detecting unit for detecting a long side and a short side of one side of an original; a printing region copying unit for setting a single side printing area based on the detected long and short sides and storing image data on one side in the printing area; , An inclination detection unit that detects an inclination amount of the original image in the main scanning direction in the print area, an inclination correction unit that corrects an inclination of image data in the print area based on the detected inclination amount, and the corrected print And a document forming unit that edits image data of the region into one page.

さらに、本発明の別の画像形成装置は、原稿を読み取り、画像データを生成する画像読取装置と、上記構成の画像処理装置と、上記原稿形成部で編集された画像データを印刷するプリンタとを備えることを特徴としている。   Furthermore, another image forming apparatus of the present invention includes an image reading apparatus that reads an original and generates image data, an image processing apparatus having the above-described configuration, and a printer that prints image data edited by the original forming unit. It is characterized by providing.

本発明によれば、読み取った原稿の画像データを「のど」の部分から左右に分割し、分割された各画像データについて傾き補正を行うと共に、補正された各画像データを1ページに統合するように構成したので、例えば、傾いてセットされた見開き原稿を読み取った場合も、左右両ページともに傾きのない原稿画像の画像データを得ることができ、この補正された画像データを印刷することにより、ユーザが見易い印刷画像を得ることができる。   According to the present invention, the image data of the read original is divided into left and right from the “throat” portion, the inclination of each divided image data is corrected, and each corrected image data is integrated into one page. Thus, for example, even when a two-page spread original is read, the image data of the original image with no inclination can be obtained on both the left and right pages, and by printing this corrected image data, A print image easy for the user to view can be obtained.

また、別の発明によれば、読み込んだ見開き原稿の画像データから原稿の片面の長短辺を検出して印刷領域を設定し、片面の画像データを記憶すると共に、印刷領域の画像データから傾きを検出して、画像データの傾き補正を行い、補正された片面の画像データを1ページに編集するように構成したので、見開き原稿の片面のみを読み取って印刷する際に、原稿のセットミスで、原稿が傾いていたり、他の片面の画像の一部が読み取られていたりしても、ユーザが所望する原稿面の画像たけを見易く印刷することができる。   According to another invention, the printing area is set by detecting the long and short sides of one side of the original from the image data of the read facing original, and the single-sided image data is stored, and the inclination is determined from the image data of the printing area. Since it is configured to detect and correct the inclination of the image data and edit the corrected single-sided image data into one page, when reading and printing only one side of a two-page spread document, Even if the document is inclined or a part of the image on the other side is read, it is possible to print the image on the document surface desired by the user in an easy-to-see manner.

以下、図1〜図14に基づいて本発明の実施形態を説明する。
図2は、本発明による画像形成装置200(コピー機200)の概観を示す図である。
コピー機200は、図2に示すように、スキャナ201、本発明に係る画像処理装置100、プリンタ202、ユーザインターフェースとしてのオペレーションパネル206とで構成されている。
Hereinafter, embodiments of the present invention will be described with reference to FIGS.
FIG. 2 is a diagram showing an overview of the image forming apparatus 200 (copier 200) according to the present invention.
As shown in FIG. 2, the copier 200 includes a scanner 201, an image processing apparatus 100 according to the present invention, a printer 202, and an operation panel 206 as a user interface.

スキャナ201は、載置台カバー205、載置台203、イメージセンサ204、図示しない光源等を備え、載置台203にセットされた原稿に光源からの光を照射し、その反射光をイメージセンサ204にて受光することで、画像データを生成する。
載置台カバー205は、載置台203にセットされた原稿を固定すると共に、イメージセンサ204が外乱光(原稿からの反射光以外の外部からの光)を受光するのを防止する。
The scanner 201 includes a mounting table cover 205, a mounting table 203, an image sensor 204, a light source (not shown), and the like. The scanner 201 irradiates a document set on the mounting table 203 with light from the light source, and the reflected light is reflected by the image sensor 204. Image data is generated by receiving light.
The mounting table cover 205 fixes the document set on the mounting table 203 and prevents the image sensor 204 from receiving disturbance light (light from the outside other than reflected light from the document).

画像処理装置100は、スキャナ201で生成された画像データを入力して画像処理を行い、処理された画像データをプリンタ202に出力する。   The image processing apparatus 100 inputs image data generated by the scanner 201 to perform image processing, and outputs the processed image data to the printer 202.

プリンタ202は、例えば、電子写真方式のプリンタが用いられ、画像処理装置より入力された画像データに応じたトナー像を形成して紙面に定着させることで、画像を形成する。   For example, an electrophotographic printer is used as the printer 202, and an image is formed by forming a toner image corresponding to image data input from the image processing apparatus and fixing the toner image on a paper surface.

オペレーションパネル206は、テンキー208、読み取り開始ボタン207、液晶ディスプレイやタッチパネル等で構成される傾き補正指定インターフェース400(1200)等を備え、ユーザのボタン操作により、原稿の読み取り指示、および各種パラメータの設定や表示を行う。   The operation panel 206 includes a numeric keypad 208, a reading start button 207, an inclination correction designation interface 400 (1200) composed of a liquid crystal display, a touch panel, and the like, and an original reading instruction and various parameter settings by user button operations. And display.

また、上記画像処理装置100は、図示しないCPUと、このCPUに接続された図示しないRAMとROM等を備えている。
RAMは、揮発性のメモリで、スキャナ201から取得した画像データや、画像処理制御に必要な画像データ等を一時的に保存する。ROMは、読み込み専用のメモリで、後述する画像の傾き補正のための各種制御プログラムを格納する。
CPUは、ROMに格納された制御プログラムをRAM上に展開して制御プログラムを実行することで、画像処理装置100による画像処理動作を実行する。
The image processing apparatus 100 includes a CPU (not shown) and a RAM and a ROM (not shown) connected to the CPU.
The RAM is a volatile memory, and temporarily stores image data acquired from the scanner 201, image data necessary for image processing control, and the like. The ROM is a read-only memory, and stores various control programs for image tilt correction, which will be described later.
The CPU executes an image processing operation by the image processing apparatus 100 by developing a control program stored in the ROM on the RAM and executing the control program.

図1は、実施例1による画像処理装置100の機能ブロック図である。
本実施例の画像処理装置100は、画像データ入力部101、データ記憶部102(画像データ記憶部)、傾き補正モード設定部103、原稿のエッジとのど検出部104(エッジ検出部)、原稿の片面記憶部105(ページデータ記憶部)、傾き検出部106、傾き補正部107、原稿統合部108、画像形成部109等を備える。これらは、上記したCPUがRAM上に展開された傾き補正処理のための各種制御プログラムを実行することにより実現される機能部である。
FIG. 1 is a functional block diagram of an image processing apparatus 100 according to the first embodiment.
The image processing apparatus 100 according to the present exemplary embodiment includes an image data input unit 101, a data storage unit 102 (image data storage unit), an inclination correction mode setting unit 103, a document edge / throat detection unit 104 (edge detection unit), and a document document. A single-side storage unit 105 (page data storage unit), an inclination detection unit 106, an inclination correction unit 107, an original integration unit 108, an image forming unit 109, and the like are provided. These are functional units realized by the CPU executing various control programs for tilt correction processing developed on the RAM.

画像データ入力部101は、スキャナ201にて読み取られた原稿の画像データを入力する機能部である。   The image data input unit 101 is a functional unit that inputs image data of a document read by the scanner 201.

データ記憶部102は、画像データ入力部101を介して入力された画像データを、一時に保存する機能部である。この画像データは、RAMに保存される。   The data storage unit 102 is a functional unit that temporarily stores image data input via the image data input unit 101. This image data is stored in the RAM.

傾き補正モード設定部103は、見開き原稿の読み取りの際に、ユーザにて設定された傾き補正の指示コマンドを取得する機能部である。補正の指示は、オペレーションパネル206の傾き補正指定インターフェース400より成されるものであり、その詳細は後述する。   The tilt correction mode setting unit 103 is a functional unit that acquires a tilt correction instruction command set by the user when reading a double-page spread document. The correction instruction is issued from the inclination correction designation interface 400 of the operation panel 206, and details thereof will be described later.

原稿のエッジとのど検出部104は、傾き補正の際に、データ記憶部102に保存されている画像データを取得して、原稿のエッジとのど部を検出すると共に、傾き補正のための回転基準点を算出する機能部である。
ここで、「のど部」とは、読み取られた複数の原稿と原稿の間の繋ぎ部分を指し、見開き原稿(例えば、製本)の場合は、「とじめ」の部分に相当する。
The document edge / throat detection unit 104 acquires image data stored in the data storage unit 102 during tilt correction, detects the document edge / throat portion, and rotates the rotation reference for tilt correction. It is a functional unit that calculates points.
Here, the “throat portion” refers to a connecting portion between a plurality of read originals and originals, and in the case of a double-page original (for example, bookbinding), corresponds to a “closing” portion.

原稿の片面記憶部105は、原稿のエッジとのど検出部104にて検出されたのど部を基準として分割された各面(左面と右面)の画像データを保存する機能部である。これらの画像データは、RAMに保存される。   A single-sided document storage unit 105 is a functional unit that stores image data of each side (left side and right side) divided on the basis of the throat detected by the throat detection unit 104 of the original. These image data are stored in the RAM.

傾き検出部106は、原稿の片面記憶部105に記憶されている各面の画像データについて、その画像の傾き角度を算出する機能部である。   The tilt detection unit 106 is a functional unit that calculates the tilt angle of the image data of each side stored in the single-sided storage unit 105 of the document.

傾き補正部107は、傾き検出部106にて算出された傾き角度に基づき、上記基準点を原点として各面の画像データを回転させて、原稿画像の傾きを補正する機能部である。   The tilt correction unit 107 is a functional unit that corrects the tilt of the document image by rotating the image data of each surface based on the tilt angle calculated by the tilt detection unit 106 with the reference point as the origin.

原稿統合部108は、傾き補正部107で補正された各面の画像データを1ページに統合する機能部である。   The document integration unit 108 is a functional unit that integrates image data of each surface corrected by the inclination correction unit 107 into one page.

画像形成部109は、原稿統合部108にて統合された画像データをプリンタ202に出力する機能部である。   The image forming unit 109 is a functional unit that outputs the image data integrated by the document integration unit 108 to the printer 202.

次に、図4に基づき、上述した傾き補正指定インターフェース400について説明する。
図4は、オペレーションパネル206上に表示される傾き補正指定インターフェース400を示す図である。
傾き補正指定インターフェース400は、図4に示すように、傾き補正を指定する傾き補正指定ボタン401、傾き補正を解除する傾き補正解除ボタン402、印刷設定確認ボタン403、用紙サイズ指定ボタン404、印刷方向指定ボタン405、液晶表示部406等を有する。これらの操作ボタンは、タッチパネル形式にて構成されている。
用紙サイズ指定ボタン404と印刷方向指定ボタン405を押下して用紙サイズと印刷方向を設定し、傾き補正指定ボタン401を押下し、印刷設定確認ボタン403を押下することにより、印刷原稿の傾き補正を指示するコマンドや、用紙サイズや印刷方向を指定する情報が画像処理装置100に入力されると共に、液晶表示部406には、原稿画像の傾き補正が指示された旨が絵文字にて表示される。
Next, the above-described tilt correction designation interface 400 will be described with reference to FIG.
FIG. 4 is a diagram showing an inclination correction designation interface 400 displayed on the operation panel 206.
As shown in FIG. 4, the tilt correction designation interface 400 includes a tilt correction designation button 401 for designating tilt correction, a tilt correction release button 402 for canceling tilt correction, a print setting confirmation button 403, a paper size designation button 404, a print direction. A designation button 405, a liquid crystal display unit 406, and the like are included. These operation buttons are configured in a touch panel format.
The paper size designation button 404 and the print direction designation button 405 are pressed to set the paper size and the print direction, the skew correction designation button 401 is pushed, and the print setting confirmation button 403 is pushed, thereby correcting the skew of the printed document. A command to be instructed and information for designating the paper size and printing direction are input to the image processing apparatus 100, and a message indicating that the inclination correction of the document image has been instructed is displayed on the liquid crystal display unit 406.

次に、上述した各機能部で構成される画像処理装置100の動作を図3に基づいて説明する。図3は、実施例1による画像処理装置100の動作を示すフローチャートである。本実施例の動作では、スキャナ201により見開き原稿の読み取りが行われる場合を説明する。   Next, the operation of the image processing apparatus 100 including the above-described functional units will be described with reference to FIG. FIG. 3 is a flowchart illustrating the operation of the image processing apparatus 100 according to the first embodiment. In the operation of this embodiment, a case where a spread original is read by the scanner 201 will be described.

先ず、S301では、ユーザがオペレーションパネル206にて設定した、見開き原稿の傾き補正指示、用紙サイズ、印刷方向等のコマンドや情報が傾き補正モード設定部103に入力される。   First, in step S <b> 301, commands and information such as a spread document tilt correction instruction, a paper size, and a printing direction set by the user on the operation panel 206 are input to the tilt correction mode setting unit 103.

次に、S302では、ユーザがオペレーションパネル206の読み取り開始ボタン207を押下することにより、スキャナ201による見開き原稿の読み取りが開始され、生成された画像データが、画像データ入力部101を介してデータ記憶部102に保存される。   In step S <b> 302, when the user presses the reading start button 207 of the operation panel 206, reading of the spread original is started by the scanner 201, and the generated image data is stored in the data via the image data input unit 101. Stored in the unit 102.

次に、S303では、データ記憶部102に保存された画像データに基づき、原稿のエッジとのど検出部104において、原稿のエッジとのど部が検出されると共に、傾き補正(画像データの回転)を行う際の基準点が算出される。これら、エッジ、のど部、基準点の算出処理の詳細は、後述する。   In step S303, based on the image data stored in the data storage unit 102, the document edge and throat detection unit 104 detects the document edge and throat, and performs tilt correction (rotation of image data). A reference point for performing is calculated. Details of the edge, throat, and reference point calculation processes will be described later.

次に、S304では、S303にて算出された原稿ののど部を基準に、データ記憶部102に保存されている画像データが左右のページに分割され、各ページの画像データが原稿の片面記憶部105に保存される。この際、図6(c−1)(c−2)に示すように、原稿画像と同じサイズの各メモリ領域に、片面ページの画像データが保存されるが、もう一方の片面ページとのど部分の画像データは白に設定される。   In step S304, the image data stored in the data storage unit 102 is divided into left and right pages based on the throat portion of the document calculated in step S303. 105 is stored. At this time, as shown in FIGS. 6C-1 and 6C-2, the image data of the single-sided page is stored in each memory area having the same size as the original image, but the throat portion with the other single-sided page. Is set to white.

次に、S305では、傾き検出部106において、原稿の片面記憶部105に保存された原稿の片面の画像データに基づき、原稿画像の傾き角度が算出されると共に、算出された傾き角度に基づき、傾き補正部107において、回転処理により、各画像データの傾き補正が行われる。この傾き角度の算出と傾き補正の詳細は、後述する。   Next, in S305, the tilt detection unit 106 calculates the tilt angle of the document image based on the image data of one side of the document stored in the single-sided storage unit 105 of the document, and based on the calculated tilt angle. In the tilt correction unit 107, tilt correction of each image data is performed by rotation processing. Details of the tilt angle calculation and tilt correction will be described later.

次に、S306では、S305で傾き補正された右片面ページと左片面ページの画像データが1ページの見開き原稿サイズに統合される。この画像データの統合の詳細は、後述する。   Next, in S306, the image data of the right single-sided page and the left single-sided page corrected in inclination in S305 are integrated into a single-page spread original document size. Details of the integration of the image data will be described later.

次に、S307では、1ページに統合された画像データが画像形成部109を介してプリンタ202に出力され、プリンタ202において傾きのない見開き原稿として印刷される。   In step S <b> 307, the image data integrated into one page is output to the printer 202 via the image forming unit 109, and is printed as a spread original with no inclination by the printer 202.

ここで、上述したS303におけるエッジ、のど部、基準点の算出処理の詳細を、図6を用い、図5に基づいて説明する。図5は、原稿のエッジとのど部の検出処理を示すフローチャート、図6は、原稿のエッジ検出処理の説明図である。   Here, the details of the calculation processing of the edge, throat, and reference point in S303 described above will be described based on FIG. 5 using FIG. FIG. 5 is a flowchart showing processing for detecting a throat portion of a document, and FIG. 6 is an explanatory diagram of document edge detection processing.

先ず、図5のS501では、原稿のエッジとのど検出部104において、読み込まれた見開き原稿の画像を、例えば、縦方向と横方向に6等分する仮想走査線が引かれ(図6(a−1)、(b−1)参照)、この仮想走査線上の画素の輝度分布図が作成される(図6(a−2)、(b−2)参照)。図6(a−2)、(b−2)において、横軸は仮想走査線上の画素の位置を示し、縦軸は、画素の輝度を示す。分割数(走査線数)を多くすることにより、エッジの検出精度を向上させることができる。   First, in step S501 in FIG. 5, a virtual scanning line is drawn in the document edge / throat detection unit 104 to divide the read spread original image into, for example, six equal parts in the vertical and horizontal directions (FIG. 6A). -1) and (b-1)), a luminance distribution diagram of pixels on the virtual scanning line is created (see FIGS. 6A-2 and 6B-2). 6A and 6B, the horizontal axis indicates the position of the pixel on the virtual scanning line, and the vertical axis indicates the luminance of the pixel. By increasing the number of divisions (number of scanning lines), the edge detection accuracy can be improved.

次に、S502では、作成された輝度分布図から原稿の長辺と短辺が判断される。輝度分布図において、横軸方向の両端に存在する大きな谷は、その前後の画素の輝度が大きく変化する部分であり、この部分が原稿のエッジであると判断される。
この輝度の谷と谷の間の距離が求められ、距離の長い方が長辺、短い方が短辺と判断される。
In step S502, the long side and the short side of the document are determined from the created luminance distribution diagram. In the luminance distribution diagram, large valleys present at both ends in the horizontal axis direction are portions where the luminance of the pixels before and after that changes greatly, and this portion is determined to be the edge of the document.
The distance between the valleys of the luminance is obtained, and the longer side is determined as the long side and the shorter side is determined as the short side.

次に、S503では、S502で求めた長辺上の任意の点と短辺上の任意の点が選択され、これらの点を結ぶことで、図6(a−1)に示す長辺のエッジIy1、Iy2と、図6(b−1)に示す短辺のエッジIx11、Ix12、Ix21、Ix22が検出される。
また、図6(a−2)の横軸方向中央の大きな谷は、見開き原稿のページとページの境界部分における輝度変化によるものであり、この部分から、図6(a−1)に示す、のど部Iyが検出される。
Next, in S503, an arbitrary point on the long side and an arbitrary point on the short side obtained in S502 are selected, and by connecting these points, the long side edge shown in FIG. Iy1, Iy2 and short-side edges Ix11, Ix12, Ix21, Ix22 shown in FIG. 6B-1 are detected.
Further, a large valley at the center in the horizontal axis direction in FIG. 6A-2 is due to a change in luminance at the boundary between the pages of the spread original, and from this portion, as shown in FIG. A throat Iy is detected.

次に、S504では、S503で検出された長辺のエッジIy1、Iy2と、短辺のエッジIx11、Ix12、Ix21、Ix22と、のど部Iyとがそれぞれ交差する点から、図6(b−1)に示す、エッジの端点p1、p2、p3、p4と、のど部の端点m1、m2が求められる。
そして、図6(b−1)において、左片面では、線分(m1−p1)と線分(m2−p2)の長さが、また、右片面では、線分(m1−p3)と線分(m2−p2)の長さが下式(1)(2)の条件を満足する場合は、のど部Iyの端点m1が回転の基準点(x1、y1)となる。また、下式(1)、(2)で、各線分の長さの大小関係が逆となる場合は、のど部Iyの端点m2が回転の基準点(x2、y2)となる。
線分(m1−p1)>線分(m2−p2)・・・・(1)
線分(m1−p3)>線分(m2−p4)・・・・(2)
Next, in S504, from the point where the long side edges Iy1, Iy2 detected in S503, the short side edges Ix11, Ix12, Ix21, Ix22, and the throat portion Iy intersect, respectively, FIG. ), End points p1, p2, p3, and p4 of the edge and end points m1 and m2 of the throat are obtained.
In FIG. 6 (b-1), the length of the line segment (m1-p1) and the line segment (m2-p2) is on the left side, and the line segment (m1-p3) and the line on the right side. When the length of the minute (m2-p2) satisfies the conditions of the following expressions (1) and (2), the end point m1 of the throat Iy becomes the rotation reference point (x1, y1). Further, in the following formulas (1) and (2), when the magnitude relations of the lengths of the respective line segments are reversed, the end point m2 of the throat Iy becomes the rotation reference point (x2, y2).
Line segment (m1-p1)> Line segment (m2-p2) (1)
Line segment (m1-p3)> Line segment (m2-p4) (2)

次に、上述したS305における傾き補正処理の詳細を、図8を用い、図7に基づいて説明する。図7は傾き補正処理を示すフローチャート、図8はブロック領域選択処理の説明図である。   Next, details of the inclination correction processing in S305 described above will be described with reference to FIG. FIG. 7 is a flowchart showing the inclination correction process, and FIG. 8 is an explanatory diagram of the block area selection process.

先ず、図7のS701では、S304にて原稿の片面記憶部105に保存された各片面ページの画像データに対し、Sobelフィルタによるエッジ領域の抽出処理が行われると共に、抽出されたエッジデータ(中間調データ)が所定の閾値にて2値化処理されることにより、画像の輪郭特徴点が抽出される。図8(a)は、斜めに読み取られた元の原稿画像を示し、図8(b)は、エッジ抽出された原稿画像を示している。図8(b)では、輪郭特徴点の画素が黒で、背景の画素が白で示されている。   First, in S701 of FIG. 7, edge region extraction processing by a Sobel filter is performed on the image data of each single-sided page stored in the single-sided storage unit 105 of the original in S304, and the extracted edge data (intermediate) Tone data) is binarized at a predetermined threshold value, so that outline feature points of the image are extracted. FIG. 8A shows an original document image read obliquely, and FIG. 8B shows an edge-extracted document image. In FIG. 8B, the pixel of the contour feature point is shown in black and the background pixel is shown in white.

次に、S702では、S701にて抽出された輪郭特徴点の近接特徴点(閾値との関係で、2値化の際に生じる輪郭特徴点中の白画素のこと)が求められる。
すなわち、背景画素(白画素)に対して、その縦、或いは横方向の所定の範囲内(連結間隔内)に輪郭特徴点(すなわち、黒画素)が存在するか否かを判断し、黒画素が存在する場合は、その白画素は輪郭特徴点であると判定される。また、上記背景画素(白画素)に対して、所定の範囲内に黒画素が存在しない場合は、その白画素は背景であると判定される。
Next, in S702, the proximity feature points of the contour feature points extracted in S701 (the white pixels in the contour feature points generated during binarization in relation to the threshold value) are obtained.
That is, with respect to the background pixel (white pixel), it is determined whether or not a contour feature point (that is, a black pixel) exists within a predetermined range in the vertical or horizontal direction (within the connection interval). Is present, it is determined that the white pixel is a contour feature point. If no black pixel exists within a predetermined range with respect to the background pixel (white pixel), it is determined that the white pixel is the background.

図9は、近接特徴点の判定処理を示す説明図である。図9に示すように、先ず、S901で画素の判別回数(Count)が0に初期化され、或る背景画素(白画素)の横方向について、右側の画素から判定される。
S902で、右側の直近の画素が文字(黒画素)でないと判断されると、S903で、さらにその画素の右側の画素が判定され、判別回数が1つ更新される。
S904で、判定回数(Count)と連結間隔とが比較され、判定回数が予め設定された連結間隔より小さい場合は、S902に戻り、同様の処理(画素の判定)が行われる。判定回数が予め設定された連結間隔より大きくなると、S909で、この画素は近接特徴点ではないと判定される。この処理(S902〜S904)は、画素の判定位置が画像右側のエッジに達するまで繰り返し行われる。
FIG. 9 is an explanatory diagram illustrating the proximity feature point determination process. As shown in FIG. 9, first, in S901, the pixel discrimination count (Count) is initialized to 0, and the horizontal direction of a certain background pixel (white pixel) is determined from the right pixel.
If it is determined in S902 that the rightmost pixel on the right side is not a character (black pixel), in S903, the pixel on the right side of that pixel is further determined, and the number of determinations is updated by one.
In S904, the number of determinations (Count) is compared with the connection interval, and if the number of determinations is smaller than the predetermined connection interval, the process returns to S902 and the same processing (pixel determination) is performed. If the number of times of determination becomes larger than a preset connection interval, it is determined in S909 that this pixel is not a proximity feature point. This process (S902 to S904) is repeated until the pixel determination position reaches the right edge of the image.

一方、S902で、右側の画素が文字(黒画素)と判断されると、S905で、その画素の左側の画素が判定される。
S906で、左側の直近の画素が文字(黒画素)でないと判断されると、S907で、さらにその左側の画素が判定され、判定回数が1つ更新される。
S908で判定回数(Count)と連結間隔とが比較され、判定回数が予め設定された連結間隔より小さい場合は、S906に戻り、同様の処理が行われる。判定回数が予め設定された連結間隔より大きくなると、S909で、この画素は近接特徴点ではないと判定される。この処理(S906〜S908)は、画素の判定位置が画像左側のエッジに達するまで繰り返し行われる。
On the other hand, if it is determined in S902 that the right pixel is a character (black pixel), the pixel on the left side of the pixel is determined in S905.
If it is determined in S906 that the nearest pixel on the left is not a character (black pixel), in S907, the pixel on the left is further determined, and the determination count is updated by one.
In S908, the number of determinations (Count) is compared with the connection interval. If the number of determinations is smaller than the predetermined connection interval, the process returns to S906 and the same processing is performed. If the number of times of determination becomes larger than a preset connection interval, it is determined in S909 that this pixel is not a proximity feature point. This process (S906 to S908) is repeated until the pixel determination position reaches the left edge of the image.

ここで、上記連結間隔の単位は画素数(pixel)で設定する。   Here, the unit of the connection interval is set by the number of pixels.

S906で、判定された画素が文字(黒画素)であると判断されると、S910で、この背景画素は横方向において近接特徴点であると判定される。   If it is determined in S906 that the determined pixel is a character (black pixel), it is determined in S910 that this background pixel is a proximity feature point in the horizontal direction.

次に、図7に戻り、S703では、S701で抽出された輪郭特徴点とS702で検出された近接特徴点が領域特徴点として認識されると共に、図8(c)に示すように、画像データ中の全て画素に対して、隣接する領域特徴点を含む一番小さい単位の複数の矩形領域(ブロック領域B1、B2、B3)が作成される。   Next, returning to FIG. 7, in step S703, the contour feature points extracted in step S701 and the proximity feature points detected in step S702 are recognized as region feature points, and as shown in FIG. A plurality of rectangular regions (block regions B1, B2, B3) of the smallest unit including adjacent region feature points are created for all the pixels in the inside.

次に、S704では、S703で作成されたブロック領域B1、B2、B3から、当ブロック領域内の文字列の傾き角度が算出される。尚、本実施例では、傾き角度の算出精度を向上するため、作成されたブロック領域の内、幅と高さが極端に大きいブロック領域と極端に小さいブロック領域は除くようにしている。   In step S704, the inclination angle of the character string in the block area is calculated from the block areas B1, B2, and B3 created in step S703. In this embodiment, in order to improve the calculation accuracy of the tilt angle, the block area having an extremely large width and height and an extremely small block area are excluded from the created block areas.

ここで、傾き角度の算出手順の詳細を、図8を用いて説明する。   Here, the details of the calculation procedure of the tilt angle will be described with reference to FIG.

図8(c)は、S703で作成された複数のブロック領域を示し、図8(d)は、その内の任意のブロック領域から傾き角を算出する手順を示し、図中、斜線の画素は文字画素を示し、それ以外は背景の画素である。   FIG. 8 (c) shows a plurality of block areas created in S703, FIG. 8 (d) shows a procedure for calculating an inclination angle from an arbitrary block area, and in FIG. Indicates a character pixel, and the others are background pixels.

図8(d)において、選択されたブロック領域の上辺から1画素下がった文字画素を判別する。小さな正方形の領域は、判別された文字画素である。文字画素の位置を判定して、文字画素が矩形領域の右上側に集中している場合は、ブロック領域内の文字列が右上がりに傾いていると判断され、逆に、矩形領域の左上側に集中している場合は、文字列が左上がりに傾いている判定される。
図8(d)の例は、右上がりの文字列である。右上がりの場合、判別された文字画素から一番左側の画素(中黒の正方形で示す)が選択され、その画素位置が記録される。この操作がブロック領域内の全ての文字列に対し、その都度、1画素下りながら繰り返し実行される。そして、選択された文字画素(中黒の正方形)を直線で結ぶことで、文字列の上端の直線Laが求められ、直線Laは、右肩上がりとなる。他方、文字列が左上がりの場合は、判別された文字画素から一番右側の画素が選択される。
In FIG. 8D, a character pixel that is one pixel lower than the upper side of the selected block area is determined. The small square area is the identified character pixel. When the position of the character pixel is determined and the character pixel is concentrated on the upper right side of the rectangular area, it is determined that the character string in the block area is inclined upward, and conversely, the upper left side of the rectangular area If the character string is concentrated on the character string, it is determined that the character string is inclined upward.
The example in FIG. 8D is a character string that rises to the right. In the case of rising to the right, the leftmost pixel (indicated by a solid black square) is selected from the determined character pixels, and the pixel position is recorded. This operation is repeated for every character string in the block area while descending one pixel each time. Then, by connecting the selected character pixels (solid black squares) with a straight line, a straight line La at the upper end of the character string is obtained, and the straight line La rises to the right. On the other hand, when the character string rises to the left, the rightmost pixel is selected from the determined character pixels.

同様に、ブロック領域の下辺から画素単位に上がって文字画素が判別され、判別された文字画素から一番右側の画素位置が記録され、この操作が、その都度、1画素上がりながら繰り返し実行される。そして、選択された文字画素(中黒の正方形)を直線で結ぶことで、文字列の下端の直線Lbが求められ、直線Lbは、右肩上がりとなる。他方、文字列が左上がりの場合は、判別された文字画素から一番左側の画素が選択される。   Similarly, character pixels are discriminated from the lower side of the block area in units of pixels, the rightmost pixel position from the discriminated character pixel is recorded, and this operation is repeatedly executed while increasing by one pixel each time. . Then, by connecting the selected character pixels (solid black squares) with a straight line, a straight line Lb at the lower end of the character string is obtained, and the straight line Lb rises to the right. On the other hand, when the character string goes up to the left, the leftmost pixel is selected from the determined character pixels.

次に、上下端の直線La、Lbの中央を通る直線を文字列の傾き直線Lcとし、この傾き直線Lcとブロック領域の水平方向の直線(下辺)との成す角度θ(傾き角度θ)が算出される。   Next, a straight line passing through the center of the upper and lower straight lines La and Lb is defined as a character line inclination straight line Lc, and an angle θ (inclination angle θ) formed by the inclination straight line Lc and a horizontal straight line (lower side) of the block area is obtained. Calculated.

上記した傾き角度θの算出処理が、複数のブロック領域について行われ、算出された各ブロック領域の傾き角度θの平均値が原稿の片面における画像データの傾き角度となる。   The calculation processing of the inclination angle θ described above is performed for a plurality of block areas, and the average value of the calculated inclination angles θ of the block areas is the inclination angle of the image data on one side of the document.

次に、図7に戻り、S705では、S704で算出された傾き角度θに基づき、下式(3)、(4)により、基準点(x1、y1)を基準とする画像データの回転処理が行われる。
x’=(x−x1)cosθ−(y−y1)sinθ+x1・・・・(3)
y’=(x−x1)sinθ+(y−y1)cosθ+y1・・・・(4)
ここで、(x’、y’)は、回転補正された画像の画素の位置、(x、y)は原稿の片面記憶部105に保存されている片面画像の画素の位置、(x1、y1)は、S504で求めた基準点を示す。
Next, returning to FIG. 7, in S705, based on the inclination angle θ calculated in S704, the rotation processing of the image data based on the reference point (x1, y1) is performed by the following equations (3) and (4). Done.
x ′ = (x−x1) cos θ− (y−y1) sin θ + x1 (3)
y ′ = (x−x1) sin θ + (y−y1) cos θ + y1 (4)
Here, (x ′, y ′) is the pixel position of the rotation-corrected image, (x, y) is the pixel position of the single-sided image stored in the single-sided storage unit 105 of the document, and (x1, y1) ) Indicates the reference point obtained in S504.

次に、図10に基づき、上述したS306による画像データの統合の詳細を説明する。図10は、傾き補正された領域の統合処理を示すフローチャートである。   Next, details of the integration of the image data in S306 described above will be described with reference to FIG. FIG. 10 is a flowchart showing the integration process of the tilt-corrected area.

先ず、S1001では、S705において傾き補正された右片面ページと左片面ページの画像データが1ページの見開き原稿サイズに統合され、保存される。統合の際、右片面と左片面の各ページにおいて、回転基準点(x1、y1)から横方向のエッジ外にはみ出した双方の画素部分が重なる場合が生じるが、この重なった画素部分は原稿画像ではないものとして、白に設定される。   First, in S1001, the image data of the right single-sided page and the left single-sided page whose inclination has been corrected in S705 is integrated into a single-page spread original document size and stored. At the time of integration, on each page of the right side and the left side, there may occur a case where both pixel portions that protrude from the rotation reference point (x1, y1) to the outside of the horizontal edge overlap each other. Not set as white.

次に、S1002では、回転の基準点(x1、y1)より、原稿画像の長辺と垂直に図示しない直線(のど)が引かれる。   In step S1002, a straight line (throat) (not shown) is drawn perpendicularly to the long side of the document image from the rotation reference point (x1, y1).

以上、実施例1によれば、読み取った原稿画像を「のど」の部分から左右に分割し、分割された各画像データについて傾き補正を行うと共に、補正された各画像データを1ページに統合するように構成したので、例えば、傾いてセットされた見開き原稿を読み取った場合も、左右両ページともに傾きのない画像データを得ることができ、この補正された画像データを印刷することにより、ユーザが見易い見開き原稿の印刷画像を得ることができる。
尚、実施例1では、読み取り原稿として、見開き原稿を例に説明したが、本発明は、例えば、スキャナ201の載置台203に2枚の原稿が同時にセットされた場合も、勿論適用可能であり、これら2枚の原稿が傾いてセットされていても、上記同様に、傾き補正された原稿の印刷画像が得られる。
As described above, according to the first embodiment, the read original image is divided into the left and right from the “throat” portion, the inclination of each divided image data is corrected, and the corrected image data are integrated into one page. Thus, for example, even when a two-page spread original set with an inclination is read, image data without inclination can be obtained on both the left and right pages. By printing this corrected image data, the user can It is possible to obtain a print image of an easy-to-read spread original.
In the first embodiment, the spread original is described as an example of the original to be read. However, the present invention is naturally applicable to, for example, a case where two originals are simultaneously set on the mounting table 203 of the scanner 201. Even if these two originals are set to be inclined, a print image of the original whose inclination is corrected is obtained in the same manner as described above.

図11は、実施例2による画像処理装置100の機能ブロック図である。
本実施例の画像処理装置100は、画像データ入力部101、データ記憶部102、傾き補正モード設定部1103、原稿の長短辺検出部1104、印刷領域コピー部1105、原稿形成部1108、傾き補正部107、傾き検出部106、画像形成部109等を備える。これらの機能部は、実施例1と同様に、図示しないCPUが図示しないRAM上に展開された傾き補正処理のための各種制御プログラムを実行することにより実現されるものである。
尚、上記機能部の内、画像データ入力部101、データ記憶部102、傾き補正部107、傾き検出部106、画像形成部109については、実施例1(図1)と同様であり、同じ符号を付して説明は省略する。
FIG. 11 is a functional block diagram of the image processing apparatus 100 according to the second embodiment.
The image processing apparatus 100 according to the present exemplary embodiment includes an image data input unit 101, a data storage unit 102, an inclination correction mode setting unit 1103, a document long / short side detection unit 1104, a print area copy unit 1105, a document forming unit 1108, and an inclination correction unit. 107, an inclination detecting unit 106, an image forming unit 109, and the like. Similar to the first embodiment, these functional units are realized by a CPU (not shown) executing various control programs for tilt correction processing developed on a RAM (not shown).
Of the above functional units, the image data input unit 101, the data storage unit 102, the tilt correction unit 107, the tilt detection unit 106, and the image forming unit 109 are the same as those in the first embodiment (FIG. 1), and are denoted by the same reference numerals. The description is omitted.

傾き補正モード設定部1103は、見開き原稿の読み取りの際に、ユーザにより設定された傾き補正の指示コマンドと片面印刷の指示コマンドを取得する機能部である。これらの指示は、図2に示すオペレーションパネル206の傾き補正指定インターフェース1200より設定されるものである。   The inclination correction mode setting unit 1103 is a functional unit that acquires an inclination correction instruction command and a single-sided printing instruction command set by the user when reading a spread original. These instructions are set from the tilt correction designation interface 1200 of the operation panel 206 shown in FIG.

本実施例による傾き補正指定インターフェース1200は、図12に示すように、実施例1(図4)の構成に、新たに片面印刷ボタン1203が追加されたものである。見開き原稿の片面を印刷する場合は、この片面印刷ボタン1203を押下する。また、傾き補正指定ボタン401を押下することで、この原稿片面の傾き補正が可能となる。その他の各種ボタン類や表示部については図4と同様であり、説明は省略する。   As shown in FIG. 12, an inclination correction designation interface 1200 according to this embodiment is obtained by adding a single-sided print button 1203 to the configuration of the first embodiment (FIG. 4). When printing one side of a spread original, this single-sided print button 1203 is pressed. Further, when the tilt correction designation button 401 is pressed, the tilt correction of one side of the original can be performed. The other various buttons and the display unit are the same as those in FIG.

原稿の長短辺検出部1104は、データ記憶部102に保存されている画像データを取得して原稿のエッジを検出し、検出されたエッジの長さより印刷片面における長辺と短辺を判断する機能部である。   A document long / short side detection unit 1104 obtains image data stored in the data storage unit 102 to detect an edge of the document, and determines a long side and a short side on one side of the print from the detected edge length. Part.

印刷領域コピー部1105は、原稿の長短辺検出部1104にて検出された長辺と短辺に基づく印刷領域を設定し、設定された印刷領域に片面ページの画像データを保存する機能部である。   The print area copy unit 1105 is a functional unit that sets a print area based on the long side and the short side detected by the long and short side detection unit 1104 of the document, and stores image data of a single-sided page in the set print area. .

原稿形成部1108は、傾き補正部107で補正された画像データを印刷サイズに編集する機能部である。   The document forming unit 1108 is a functional unit that edits the image data corrected by the inclination correcting unit 107 into a print size.

次に、上述した各機能部で構成される画像処理装置100の動作を、図14を用い、図13に基づいて説明する。図13は、実施例2による画像処理装置100の動作を示す図、図14は、原稿の片面印刷の説明図である。ここでは、ユーザが見開き原稿の片面だけを印刷する場合を説明する。   Next, the operation of the image processing apparatus 100 including the above-described functional units will be described with reference to FIG. 13 using FIG. FIG. 13 is a diagram illustrating the operation of the image processing apparatus 100 according to the second embodiment, and FIG. 14 is an explanatory diagram of single-sided printing of a document. Here, a case where the user prints only one side of a spread original will be described.

先ず、S1301では、ユーザがオペレーションパネル206にて設定した、見開き原稿の片面印刷指示、傾き補正指示、用紙サイズ、印刷方向等のコマンドや情報が傾き補正モード設定部1103に入力される。   First, in step S <b> 1301, commands and information, such as a single-sided printing instruction for single-page spread, an inclination correction instruction, a paper size, and a printing direction, set by the user on the operation panel 206 are input to the inclination correction mode setting unit 1103.

次に、S1302では、ユーザがオペレーションパネル206の読み取り開始ボタン207を押下することにより、スキャナ201による見開き原稿の読み取りが開始され、読み取られた画像データが画像データ入力部101を介してデータ記憶部102に保存される。
原稿の読み取りに際しては、図14(a)に示すように、見開き原稿の印刷される片面の全てが完全に読み取り可能で、他の片面は、その一部が読み取られるように、原稿が載置台203にセットされている。
図14(b)には、取得された画像データに基づき作成された横方向(原稿読み取り方向)の輝度分布図が示されている。この輝度分布図において、横軸方向の左側の大きな谷は見開き原稿ののど部と判断され、右側の大きな谷は原稿片面のエッジと判断される。
In step S <b> 1302, when the user presses the reading start button 207 of the operation panel 206, reading of the spread original by the scanner 201 is started, and the read image data is stored in the data storage unit via the image data input unit 101. 102.
When reading the original, as shown in FIG. 14 (a), the original is placed on the mounting table so that one side of the spread original can be completely read and a part of the other side can be read. 203.
FIG. 14B shows a luminance distribution diagram in the horizontal direction (document reading direction) created based on the acquired image data. In this luminance distribution diagram, the large valley on the left side in the horizontal axis direction is determined as the throat portion of the spread document, and the large valley on the right side is determined as the edge of one side of the document.

次に、S1303では、原稿の長短辺検出部1104において、上記のど部とエッジの位置より原稿片面の長辺と短辺が検出され、これら長辺と短辺に基づいて印刷領域が設定されると共に、印刷領域コピー部1105に、上記印刷領域に相当する原稿片面の画像データが保存される。   In step S1303, the document long and short side detection unit 1104 detects the long side and the short side of one side of the document from the positions of the throat and the edge, and sets the print area based on the long side and the short side. At the same time, image data on one side of the original corresponding to the print area is stored in the print area copy unit 1105.

次に、S1304では、傾き検出部106と傾き補正部107において、印刷領域コピー部1105に保存された画像データに基づいて、画像の傾き角度θが算出され、画像データの傾き補正が行われる。この傾き補正処理は、実施例1(図3)のS305の処理と同様であり、説明を省略する。   In step S <b> 1304, the tilt detection unit 106 and the tilt correction unit 107 calculate the tilt angle θ of the image based on the image data stored in the print area copy unit 1105, and perform tilt correction of the image data. This tilt correction process is the same as the process of S305 in the first embodiment (FIG. 3), and a description thereof will be omitted.

次に、S1305では、原稿形成部1108において、S1304にて補正された画像データが印刷サイズに合わせた原稿データに編集される。具体的には、補正された原稿画像が印刷ページの中央に位置するように移動される。   In step S1305, the document forming unit 1108 edits the image data corrected in step S1304 into document data that matches the print size. Specifically, the corrected document image is moved so as to be positioned at the center of the print page.

次に、S1306では、上記原稿データが画像形成部109を介してプリンタ202に出力され、プリンタ202において傾きのない原稿の片面画像が印刷される。   In step S <b> 1306, the document data is output to the printer 202 via the image forming unit 109, and a one-sided image of the document with no inclination is printed by the printer 202.

以上、実施例2によれば、読み込んだ見開き原稿の画像データから原稿の片面の長短辺を検出して印刷領域を設定し、画像データを保存すると共に、印刷領域の画像データから傾きを検出して、画像データの傾き補正を行い、補正された片面の画像データを1ページに編集するように構成したので、見開き原稿の片面のみを読み取り印刷する際に、原稿のセットミスで原稿が傾いたり、他の片面の画像の一部が読み取られたりしても、ユーザが所望する原稿面だけを、傾きのない見易い状態で印刷することができる。   As described above, according to the second embodiment, the printing area is set by detecting the long and short sides of one side of the original from the read spread original image data, the image data is stored, and the inclination is detected from the image data of the printing area. Since the image data is corrected and the corrected single-sided image data is edited into one page, when only one side of a two-page spread original is read and printed, Even if a part of the image on the other side is read, only the original surface desired by the user can be printed in an easy-to-view state without inclination.

本実施形態では、本発明の画像処理装置をコピー機に適用したが、複合機にも適用可能である。
また、画像データの入力装置として、スキャナを用いたが、ハードディスク等の記録媒体に保存された複数の画像データを、通信ネットワークを介して取得する形態にも適用可能である。
In this embodiment, the image processing apparatus of the present invention is applied to a copying machine. However, it can also be applied to a multifunction machine.
Further, although a scanner is used as an image data input device, the present invention can also be applied to a form in which a plurality of image data stored in a recording medium such as a hard disk is acquired via a communication network.

実施例1による画像処理装置の機能ブロック図である。1 is a functional block diagram of an image processing apparatus according to Embodiment 1. FIG. 本発明による画像形成装置の概観を示す図である。1 is a diagram showing an overview of an image forming apparatus according to the present invention. 実施例1による画像処理装置の動作を示すフローチャートである。3 is a flowchart illustrating an operation of the image processing apparatus according to the first embodiment. 実施例1による傾き補正指定インターフェースを示す図である。It is a figure which shows the inclination correction designation | designated interface by Example 1. FIG. 原稿のエッジとのど部の検出処理を示すフローチャートである。6 is a flowchart showing processing for detecting a throat portion of an original. 原稿のエッジ検出処理の説明図である。FIG. 11 is an explanatory diagram of document edge detection processing; 傾き補正処理を示すフローチャートである。It is a flowchart which shows an inclination correction process. ブロック領域選択処理、および文字列傾き算出処理の説明図である。It is explanatory drawing of a block area | region selection process and a character string inclination calculation process. 近接特徴点の判定処理を示す説明図である。It is explanatory drawing which shows the determination process of a proximity | contact feature point. 傾き補正された領域の統合処理を示すフローチャートである。It is a flowchart which shows the integration process of the area | region where inclination was corrected. 実施例2による画像処理装置の機能ブロック図である。6 is a functional block diagram of an image processing apparatus according to Embodiment 2. FIG. 実施例2による傾き補正指定インターフェースを示す図である。It is a figure which shows the inclination correction designation | designated interface by Example 2. FIG. 実施例2による画像処理装置の動作を示すフローチャートである。10 is a flowchart illustrating an operation of the image processing apparatus according to the second embodiment. 原稿の片面印刷の説明図である。It is explanatory drawing of single-sided printing of a document.

符号の説明Explanation of symbols

100 画像処理装置
102 データ記憶部(画像データ記憶部)
103 傾き補正モード設定部
104 原稿のエッジとのど検出部(エッジ検出部)
105 原稿の片面記憶部(ページデータ記憶部)
106 傾き検出部
107 傾き補正部
108 原稿統合部
200 コピー機(画像形成装置)
201 スキャナ(画像読取装置)
202 プリンタ
1103 傾き補正モード設定部
1104 原稿の長短辺検出部(長短辺検出部)
1105 印刷領域コピー部
1108 原稿形成部
DESCRIPTION OF SYMBOLS 100 Image processing apparatus 102 Data storage part (image data storage part)
103 Tilt correction mode setting unit 104 Document edge / throat detection unit (edge detection unit)
105 Document single-sided storage (page data storage)
106 Inclination Detection Unit 107 Inclination Correction Unit 108 Original Integration Unit 200 Copier (Image Forming Apparatus)
201 Scanner (image reading device)
202 Printer 1103 Inclination Correction Mode Setting Unit 1104 Long / Short Side Detection Unit of Document (Long / Short Side Detection Unit)
1105 Print area copy unit 1108 Document forming unit

Claims (7)

複数ページの原稿を読み取り、得られた画像データを処理する画像処理装置において、
前記画像データを記憶する画像データ記憶部と、
記憶された前記画像データから前記原稿のエッジと各ページののど部を検出するエッジ検出部と、
検出された前記のど部に基づき、原稿画像をページ毎に分割してその画像データを記憶するページデータ記憶部と、
分割された各原稿画像の主走査方向に対する傾き量を検出する傾き検出部と、
検出された傾き量に基づき、前記分割された各原稿画像の画像データを傾き補正する傾き補正部と、
補正された各ページの画像データを1ページに統合する原稿統合部と
を備えることを特徴とする画像処理装置。
In an image processing apparatus that reads a multi-page document and processes the obtained image data,
An image data storage unit for storing the image data;
An edge detection unit for detecting an edge of the document and a throat portion of each page from the stored image data;
A page data storage unit for dividing the document image into pages and storing the image data based on the detected throat portion;
An inclination detection unit that detects an inclination amount of each divided document image with respect to the main scanning direction;
An inclination correction unit for correcting the inclination of the image data of each of the divided document images based on the detected inclination amount;
An image processing apparatus comprising: a document integration unit that integrates corrected image data of each page into one page.
読み取った画像データの傾き補正を指示する傾き補正モード設定部を備えることを特徴とする請求項1に記載の画像処理装置。   The image processing apparatus according to claim 1, further comprising a tilt correction mode setting unit that instructs tilt correction of the read image data. 前記原稿が見開き原稿であることを特徴とする請求項1または請求項2に記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the document is a facing document. 原稿を読み取り、画像データを生成する画像読取装置と、請求項1から請求項3までの何れかに記載の画像処理装置と、前記原稿統合部で統合された画像データを印刷するプリンタとを備えることを特徴とする画像形成装置。   An image reading device that reads a document and generates image data, an image processing device according to claim 1, and a printer that prints image data integrated by the document integration unit. An image forming apparatus. 見開き原稿を読み取り、得られた画像データを処理する画像処理装置において、
前記画像データを記憶する画像データ記憶部と、
記憶された前記画像データから前記原稿の片面の長辺と短辺を検出する長短辺検出部と、
検出された長短辺に基づき、片面の印刷領域を設定し、当該印刷領域に片面の画像データを記憶する印刷領域コピー部と、
前記印刷領域における原稿画像の主走査方向に対する傾き量を検出する傾き検出部と、
検出された傾き量に基づき、前記印刷領域における画像データを傾き補正する傾き補正部と、
補正された前記印刷領域の画像データを1ページに編集する原稿形成部と
を備えることを特徴とする画像処理装置。
In an image processing apparatus that reads a spread document and processes the obtained image data,
An image data storage unit for storing the image data;
A long and short side detecting unit for detecting a long side and a short side of one side of the document from the stored image data;
Based on the detected long and short sides, a print area copy unit that sets a single-sided print area and stores single-sided image data in the print area;
An inclination detection unit for detecting an inclination amount of the original image in the print region with respect to the main scanning direction;
A tilt correction unit that corrects the tilt of the image data in the print area based on the detected tilt amount;
An image processing apparatus comprising: a document forming unit that edits the corrected image data of the print area into one page.
読み取った画像データの片面に対して傾き補正を指示する傾き補正モード設定部を備えることを特徴とする請求項5に記載の画像処理装置。   The image processing apparatus according to claim 5, further comprising an inclination correction mode setting unit that instructs inclination correction on one side of the read image data. 原稿を読み取り、画像データを生成する画像読取装置と、請求項5または請求項6に記載の画像処理装置と、前記原稿形成部で編集された画像データを印刷するプリンタとを備えることを特徴とする画像形成装置。   An image reading apparatus that reads an original and generates image data, an image processing apparatus according to claim 5, and a printer that prints image data edited by the original forming unit. Image forming apparatus.
JP2008302089A 2008-11-27 2008-11-27 Image processing apparatus and image forming apparatus Pending JP2010130277A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008302089A JP2010130277A (en) 2008-11-27 2008-11-27 Image processing apparatus and image forming apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008302089A JP2010130277A (en) 2008-11-27 2008-11-27 Image processing apparatus and image forming apparatus

Publications (1)

Publication Number Publication Date
JP2010130277A true JP2010130277A (en) 2010-06-10

Family

ID=42330352

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008302089A Pending JP2010130277A (en) 2008-11-27 2008-11-27 Image processing apparatus and image forming apparatus

Country Status (1)

Country Link
JP (1) JP2010130277A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016009996A (en) * 2014-06-24 2016-01-18 京セラドキュメントソリューションズ株式会社 Image processing apparatus, program, and image forming apparatus

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000244729A (en) * 1999-02-23 2000-09-08 Riso Kagaku Corp Image processor
JP2003189027A (en) * 2001-12-20 2003-07-04 Fuji Xerox Co Ltd Copying machine
JP2005269095A (en) * 2004-03-17 2005-09-29 Fuji Xerox Co Ltd Image processing method and image processor

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000244729A (en) * 1999-02-23 2000-09-08 Riso Kagaku Corp Image processor
JP2003189027A (en) * 2001-12-20 2003-07-04 Fuji Xerox Co Ltd Copying machine
JP2005269095A (en) * 2004-03-17 2005-09-29 Fuji Xerox Co Ltd Image processing method and image processor

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016009996A (en) * 2014-06-24 2016-01-18 京セラドキュメントソリューションズ株式会社 Image processing apparatus, program, and image forming apparatus

Similar Documents

Publication Publication Date Title
JP5273133B2 (en) Image processing apparatus and image processing program
JP5834866B2 (en) Image processing apparatus, image generation method, and computer program
JP2008283494A (en) Image processing system
US20190286383A1 (en) Image processing apparatus, image processing method, and storage medium
JP5366699B2 (en) Image processing apparatus, image processing method, and image processing program
US8681385B2 (en) Image processing apparatus
JP2019205128A5 (en)
JP2019205128A (en) Image processing apparatus and image forming apparatus
JP7171235B2 (en) Image processing device, program, image processing method
JP2010130277A (en) Image processing apparatus and image forming apparatus
JP2010147719A (en) Image joining apparatus and method of controlling the same
JP2007219429A (en) Image processor
JP2010183484A (en) Image forming apparatus with copying function
JP5304546B2 (en) Image forming apparatus, image composition method, and program
JP2010136085A (en) Image processor
JP4168957B2 (en) Image processing program and apparatus
US11140276B2 (en) Image processing apparatus, non-transitory storage medium, and image processing method
JP2006260398A (en) Printing controller and its control method
JP2008124895A (en) Image reading apparatus and image forming apparatus
JP3919185B2 (en) Image forming apparatus
US20070002394A1 (en) Image reading apparatus and computer readable medium storing computer program
JP2018085677A (en) Image processing device
JP2011199398A (en) Image processor, image processing method, and image processing system
JP2005212460A (en) Image forming apparatus
JP2012186765A (en) Image processing apparatus, image processing apparatus control method and image processing apparatus control program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20110624

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120409

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120417

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120614

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20120918