JPH11177773A - Detector for original - Google Patents

Detector for original

Info

Publication number
JPH11177773A
JPH11177773A JP9345224A JP34522497A JPH11177773A JP H11177773 A JPH11177773 A JP H11177773A JP 9345224 A JP9345224 A JP 9345224A JP 34522497 A JP34522497 A JP 34522497A JP H11177773 A JPH11177773 A JP H11177773A
Authority
JP
Japan
Prior art keywords
document
edge
original
inclination
area
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
JP9345224A
Other languages
Japanese (ja)
Inventor
Kazuhiro Ueda
和弘 上田
Nobuhiro Mishima
信広 三縞
So Hirota
創 廣田
Taisetsu Tooyama
大雪 遠山
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.)
Minolta Co Ltd
Original Assignee
Minolta Co Ltd
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 Minolta Co Ltd filed Critical Minolta Co Ltd
Priority to JP9345224A priority Critical patent/JPH11177773A/en
Priority to US09/095,311 priority patent/US6433896B1/en
Publication of JPH11177773A publication Critical patent/JPH11177773A/en
Pending legal-status Critical Current

Links

Landscapes

  • Facsimile Scanning Arrangements (AREA)

Abstract

PROBLEM TO BE SOLVED: To allow a detector to detect the position and inclination of an original with high accuracy and few midsections, even when the original is a non- rectangular original or an inclined original by detecting the appropriate area and inclination of the original, based on plural edge charge points extracted from detected edge data in the detection of an original size. SOLUTION: A CPU 314 detects changes in a tilt between coordinate data of each edge of an original based on coordinate data stored in a stack memory 308 to obtain points (edge change points), where the inclination is changed and to extract line segment tying the edge change points. Then, the CPU 314 seeks a longest line segment among the extracted line segments and obtains a line including a line segment facing opposite to and to parallel with the longest line segment and a line, including a line segment orthogonal to the longest line segment. Thus, four straight lines surrounding the area of the original area decided. That is, a rectangular area including all apexes is sought. Thus, an optimum rectangular area surrounding the original is obtained based on the longest side, even with on original with a heading or the like and originals other than a rectangular original.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】この発明は、デジタル複写機
などのデジタル画像形成装置に関するものであり、特
に、画像データに基づいて原稿の載置位置や画像領域を
検出する画像検出装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a digital image forming apparatus such as a digital copying machine, and more particularly, to an image detecting apparatus for detecting a document placement position and an image area based on image data.

【0002】[0002]

【従来の技術】デジタル複写機などのデジタル画像形成
装置は、デジタル画像データの画像処理の後に、用紙上
に画像を形成する。画素毎のデジタル画像データは、原
稿台に載置された原稿の画像をCCD等の読取手段によ
り読み取って生成される。原稿の載置位置や画像領域
は、デジタル画像データに基づいて検出することができ
る。例えば、特開昭62−166651号公報に記載さ
れた原稿読取装置は、原稿の各軸方向に最大最小をとる
4点の座標を検出し、その4点を結んだ辺の隣り合う辺
の基準に対する角度を検出することが開示されている。
また、特開平7−298031号公報に記載された画像
処理装置は、原稿の4つの頂点の座標を検出し、1番目
と2番目に検出した頂点の座標より傾きを算出し、1番
目に検出した頂点の座標より原稿の移動量を算出する点
について開示されている。
2. Description of the Related Art A digital image forming apparatus such as a digital copying machine forms an image on a sheet after image processing of digital image data. Digital image data for each pixel is generated by reading an image of a document placed on a document table by a reading unit such as a CCD. The placement position and image area of the document can be detected based on the digital image data. For example, a document reading apparatus described in Japanese Patent Application Laid-Open No. 62-166652 detects the coordinates of four points that take the maximum and minimum values in each axis direction of a document, and determines the reference of the adjacent side of the side connecting the four points. It is disclosed to detect an angle with respect to.
The image processing apparatus described in Japanese Patent Application Laid-Open No. 7-298031 detects coordinates of four vertices of a document, calculates an inclination from the coordinates of the first and second detected vertices, and detects the first. It discloses that the movement amount of the document is calculated from the coordinates of the vertex.

【0003】[0003]

【発明が解決しようとする課題】特開昭62−1666
51号公報や特開平7−298031号公報に記載され
た装置によれば、矩形原稿の原稿領域と傾きを検出する
には問題はない。しかし、見出し等がついた原稿や矩形
以外の原稿の場合には、見出し等の部分を誤検出し、適
切な原稿領域や原稿の傾きを検出することができなかっ
た。また、特開昭62−166651号公報や特開平7
−298031号公報に記載された方法では、原稿の各
軸方向に最大最小をとる4点の座標、または、矩形原稿
の各頂点の検出により、原稿の傾きを検出しており、こ
の場合、原稿が矩形以外の場合には原稿の各頂点の位置
を誤検出する可能性があり、正確な原稿位置を検出する
ことができなかった。
Problems to be Solved by the Invention Japanese Patent Laid-Open No. 62-1666
According to the apparatuses described in Japanese Patent Application Laid-Open No. 51-210 and Japanese Patent Application Laid-Open No. 7-298031, there is no problem in detecting the document area and the inclination of a rectangular document. However, in the case of a document having a heading or the like or a document other than a rectangle, a part such as a heading is erroneously detected, and an appropriate document area or inclination of the document cannot be detected. Also, Japanese Patent Application Laid-Open No.
In the method described in Japanese Patent Application Laid-Open No. 298031, the inclination of the document is detected by detecting the coordinates of four points that take the maximum and minimum values in each axis direction of the document, or detecting each vertex of the rectangular document. If is not a rectangle, the position of each vertex of the document may be erroneously detected, and an accurate document position cannot be detected.

【0004】本発明の目的は、非矩形原稿についても、
傾いた原稿についても、原稿の位置や傾きを、より高精
度で誤検出が少なく検出できる原稿検出装置を提供する
ことである。
An object of the present invention is to provide a non-rectangular document as well.
An object of the present invention is to provide a document detection device capable of detecting the position and inclination of a document with higher accuracy and less erroneous detection even for a skewed document.

【0005】[0005]

【課題を解決するための手段】本発明に係る原稿検出装
置は、原稿台に載置された原縞を読み取り、前記原稿台
上の原稿のエッジを検出するエッジ検出手段と、前記エ
ッジ検出手段により検出されたエッジを基に、隣接する
エッジを結ぶ線分の傾きが変化するエッジ変化点を抽出
するエッジ変化点抽出手段と、前記エッジ変化点抽出手
段により抽出されたエッジ変化点に基づいて原稿領域を
検出する原稿領域検出手段とを備える。すなわち、見出
しがついた原稿などの矩形以外の原稿が、原稿台に載置
された場合、原稿サイズ検出において、検出されたエッ
ジデータから抽出される複数のエッジ変化点より適切な
原稿領域及び原稿の傾きを検出する。これにより、適切
な原稿領域と傾きが設定される。その原稿領域を基に、
傾いた原稿について補正処理をすると、非矩形原稿にお
いても、画像を欠損することなく、傾きのない画像が形
成される。好ましくは、さらに前記エッジ変化点抽出手
段により抽出されたエッジ変化点を結ぶ線分に基づい
て、原稿の傾きを検出する原稿傾き検出手段を備え、原
稿領域検出手段は、エッジ変化点抽出手段により抽出さ
れたエッジ変化点と原稿傾き検出手段により検出された
原稿の傾きに基づいて、前記の原稿の傾きを有し、か
つ、全てのエッジ変化点を含む矩形領域を原稿領域とす
る。すなわち、見出しがついた原稿などの矩形以外の原
稿が、原稿台に載置された場合、原稿サイズ検出におい
て、エッジ変化点と原稿の傾きとに応じて原稿領域を設
定する。
According to the present invention, there is provided an original detecting apparatus which reads an original fringe placed on an original table and detects an edge of the original on the original table, and the edge detecting means. Edge change point extracting means for extracting an edge change point at which the inclination of a line segment connecting adjacent edges changes, based on the edge detected by the edge change point, and based on the edge change point extracted by the edge change point extraction means. Document area detection means for detecting a document area; That is, when a non-rectangular document such as a document with a heading is placed on the platen, a document area and a document that are more appropriate than a plurality of edge change points extracted from the detected edge data in document size detection. The inclination of is detected. As a result, an appropriate document area and inclination are set. Based on that manuscript area,
When the correction process is performed on a skewed document, an image without skew is formed even on a non-rectangular document without losing the image. Preferably, the apparatus further includes document inclination detection means for detecting the inclination of the document based on a line segment connecting the edge change points extracted by the edge change point extraction means, and the document area detection means includes an edge change point extraction means. On the basis of the extracted edge change point and the original inclination detected by the original inclination detecting means, a rectangular area having the original inclination and including all edge change points is defined as an original area. That is, when a non-rectangular document such as a document with a heading is placed on the document table, a document area is set in the document size detection according to the edge change point and the document inclination.

【0006】[0006]

【発明の実施の形態】以下、本発明の実施の形態を、添
付の図面を参照して説明する。なお、これらの図におい
て、同じ参照番号は、同一または同様なものを表す。ま
ず、図1は、本発明の実施形態に係るデジタル複写機の
全体構成を示す。複写機本体は、原稿を読み取って画像
信号に変換する走査系10、走査系10から送られる画
像信号を処理する画像処理ユニット20、画像処理ユニ
ット20から入力される画像データをそのままプリンタ
装置に出力するか、または画像データを処理してからプ
リンタ装置に出力するか等の制御を行う回転メモリユニ
ット30、回転メモリユニット30から出力される画像
データに基づいて半導体レーザー61を駆動する印字処
理ユニット40、半導体レーザー61からのレーザー光
を感光体ドラム71上の露光位置に導くレーザー光学
系、露光による潜像を現像し、記録紙上に転写し、定着
して画像を形成する作像系、複写紙を供給し排出する用
紙搬送系、及び、複写機本体の上面に設けられた操作パ
ネル90(図示しない)を備える。画像読取部100
は、走査系10及び画像処理ユニット20などから構成
され、プリンタ部200は、印字処理部40、レーザー
光学系60及び作像系などから構成される。さらに、複
写機本体の上に、原稿を搬送する原稿搬送部500が取
り付けられる。
Embodiments of the present invention will be described below with reference to the accompanying drawings. In these drawings, the same reference numerals indicate the same or similar items. First, FIG. 1 shows an overall configuration of a digital copying machine according to an embodiment of the present invention. The copier main body includes a scanning system 10 for reading a document and converting it into an image signal, an image processing unit 20 for processing an image signal sent from the scanning system 10, and outputting image data input from the image processing unit 20 to a printer device as it is. Memory unit 30 for controlling whether to process the image data and then output the image data to a printer device, and a print processing unit 40 for driving a semiconductor laser 61 based on the image data output from the rotary memory unit 30 A laser optical system for guiding a laser beam from the semiconductor laser 61 to an exposure position on the photosensitive drum 71; an image forming system for developing a latent image by exposure, transferring the image onto recording paper, and fixing to form an image; And an operation panel 90 (not shown) provided on the upper surface of the main body of the copying machine. Image reading unit 100
The printer unit 200 includes a scanning system 10, an image processing unit 20, and the like. The printer unit 200 includes a print processing unit 40, a laser optical system 60, an image forming system, and the like. Further, a document transport section 500 for transporting the document is mounted on the main body of the copying machine.

【0007】原稿搬送部500は、画像読取部100の
プラテンガラス(原稿台)19上に、開閉可能に取り付
けられる。原稿搬送部500は、給紙トレイ510上に
セットされた原稿を自動的にプラテンガラス19上に搬
送し、また、走査系10によって読取られた原稿を排紙
トレイ511に排出する。通常モードにおいては、1枚
または複数枚の原稿を、読み取るべき面を上に向けて給
紙トレイ510にセットし、サイド規制板513を原稿
の幅に合せる。そして、エンプティセンサ(図示しな
い)により原稿の有無が検知される。搬送動作が開始さ
れると、トレイ511上の最下部の原稿から順に給紙ロ
ーラ501によって用紙が搬送され、捌きローラ502
と捌きパッド503によって捌かれて、1枚づつ給紙さ
れる。搬送される原稿は中間ローラ504を通り、レジ
ストセンサ551及び幅サイズセンサ553により原稿
が検出された後、レジストローラ505によって斜行を
補正される。その後、原稿は、レジストローラ505と
搬送ベルト506により、プラテンガラス19上を搬送
され、原稿の先端が原稿スケール512に突き当たった
直後に、搬送ベルト506及びレジストローラ505は
停止する。これにより、原稿の左端は原稿スケール51
2の端縁に当接し、原稿はプラテンガラス19上の正確
な位置に設定される。このとき、次の原稿の先端はレジ
ストローラ505に達しており、次の原稿の搬送時間を
短縮するようになっている。
The document transport section 500 is mounted on a platen glass (document table) 19 of the image reading section 100 so as to be openable and closable. The document conveying section 500 automatically conveys the document set on the paper feed tray 510 onto the platen glass 19 and discharges the document read by the scanning system 10 to the discharge tray 511. In the normal mode, one or a plurality of documents are set on the paper feed tray 510 with the surface to be read facing upward, and the side regulating plate 513 is adjusted to the width of the document. Then, the presence or absence of a document is detected by an empty sensor (not shown). When the transport operation is started, the paper is transported by the paper feed roller 501 sequentially from the lowermost document on the tray 511, and the separation roller 502
The sheets are separated by the separation pad 503 and fed one by one. The conveyed document passes through the intermediate roller 504, and after the registration sensor 551 and the width size sensor 553 detect the document, the skew of the document is corrected by the registration roller 505. Thereafter, the document is conveyed on the platen glass 19 by the registration roller 505 and the conveyance belt 506, and the conveyance belt 506 and the registration roller 505 stop immediately after the leading edge of the document abuts on the document scale 512. As a result, the left end of the original is placed on the original scale 51.
2, the original is set at an accurate position on the platen glass 19. At this time, the leading edge of the next document has reached the registration roller 505, so that the transport time of the next document is reduced.

【0008】原稿がプラテンガラス19上の正確な読み
取り位置に設定されると、走査系10による原稿の読み
取り走査が行われる。原稿の読み取りが終了すると、ま
ず、原稿スケール512が、図示しないソレノイドによ
ってプラテンガラス19の上面の高さよりも下方に押し
下げられる。その後、原稿は搬送ベルト506により左
方に搬送され、反転ローラ507で搬送方向が変更さ
れ、切換爪508の上方を通過して排紙トレイ511上
に排出される。
When the original is set at an accurate reading position on the platen glass 19, the scanning of the original by the scanning system 10 is performed. When the reading of the document is completed, first, the document scale 512 is pushed down below the height of the upper surface of the platen glass 19 by a solenoid (not shown). Thereafter, the document is conveyed to the left by the conveyance belt 506, the conveyance direction is changed by the reversing roller 507, and the document is discharged above the switching claw 508 onto the discharge tray 511.

【0009】ここで、ステップ送りモードが選択されて
いる場合において、原稿サイズが露光基準位置からレジ
ストローラ505のニップ位置までの半分以下のサイズ
である時、先の原稿を露光基準位置で停止させると共
に、次の原稿を露光基準位置とレジストローラ505の
中間位置まで搬送しておき、更に次の原稿(3枚目)を
先端がレジストローラ505に当接するまで先出し給紙
が行なわれる。そうすることにより、原稿は露光基準位
置とレジストローラ間の距離の半分ずつステップ送りさ
れるために、原稿交換時間が短くて済み、露光終了後走
査系10がホームポジションへリターンする時間内に原
稿を交換でき、コピー生産性が向上する。しかも、後続
の原稿(3枚目)はその先端がレジストローラ505に
当接するまで先出して給紙される。この先出し給紙は先
の原稿の露光中に行なわれ、コピー生産性の向上に寄与
する。
In the case where the step feed mode is selected, when the document size is less than half the size from the exposure reference position to the nip position of the registration roller 505, the preceding document is stopped at the exposure reference position. At the same time, the next original is transported to the intermediate position between the exposure reference position and the registration roller 505, and the next original (third sheet) is fed in advance until the leading end of the original comes into contact with the registration roller 505. By doing so, since the original is stepped by half the distance between the exposure reference position and the registration roller, the original replacement time is short, and the original is returned within the time when the scanning system 10 returns to the home position after the exposure is completed. Can be replaced, and copy productivity is improved. In addition, the succeeding original (third sheet) is advanced and fed until its leading end contacts the registration roller 505. This advance feeding is performed during the exposure of the original, which contributes to the improvement of copy productivity.

【0010】なお、両面原稿の場合は、第1面の読み取
りが終了すると搬送ベルト506により左方に搬送さ
れ、反転ローラ507で搬送方向が変更された後、切換
爪508により再びプラテンガラス19上に送り出さ
れ、原稿も第2面が読み取り位置に設定される。第2面
の読み取りが終了した原稿は、搬送ベルト506により
左方に搬送され、反転ローラ507、切換爪508、排
出ローラ509を経て排紙トレイ511上に排出され
る。更に、ステップ送りモード、両面モード等のモード
が選択された場合は、通常の場合と違い、原稿の先端が
原稿スケール512の右端に突き当たる直前で、搬送ベ
ルト506の搬送は停止し、原稿スケール512から少
し離れた位置に原稿が設定される。
In the case of a double-sided original, when reading of the first side is completed, the original is conveyed to the left by the conveying belt 506, the conveying direction is changed by the reversing roller 507, and then the platen glass 19 is again moved by the switching claw 508. And the original is also set to the reading position on the second side. The document whose second surface has been read is conveyed leftward by the conveyance belt 506, and is discharged onto the discharge tray 511 via the reversing roller 507, the switching claw 508, and the discharge roller 509. Further, when a mode such as the step feed mode or the duplex mode is selected, the conveyance of the conveyance belt 506 stops immediately before the leading edge of the document abuts on the right end of the document scale 512, and the document scale 512 The document is set at a position slightly away from the document.

【0011】また、搬送ベルト506のプラテンガラス
19側の面は、橙色に着色されている。これにより、露
光ランプ12の光の原稿搬送ベルト506による反射光
が、ラインセンサ17にとっては分光感度が小さい色に
なる。即ち、ラインセンサ17にとって、搬送ベルト5
06が黒色であるのと同じである。従って、原稿の地肌
は通常白色であるので、搬送ベルト506を閉じた状態
においても、ラインセンサ17は原稿と搬送ベルト50
6の下面とを識別することができる。また、原稿搬送部
500を閉じない状態であっても、露光ランプ12によ
る搬送ベルト506の反射光がラインセンサ17に届か
ないので、原稿領域が識別可能である。
The surface of the conveyor belt 506 on the platen glass 19 side is colored orange. As a result, the reflected light of the light of the exposure lamp 12 by the document conveying belt 506 becomes a color having a small spectral sensitivity for the line sensor 17. That is, for the line sensor 17, the transport belt 5
06 is the same as black. Therefore, the background of the document is usually white, so that even when the transport belt 506 is closed, the line sensor 17 detects the original and the transport belt 50.
6 can be identified. Further, even when the document conveying unit 500 is not closed, the reflected light of the conveying belt 506 by the exposure lamp 12 does not reach the line sensor 17, so that the document area can be identified.

【0012】画像読取部100は、プラテンガラス19
上に載置された原稿の画像を読み取り、その原稿の画像
の各画素に対応する画像データを生成する。原稿読み取
り部100において、露光ランプ12及び第1ミラー1
3aを有する第1スキャナ11と第2、第3ミラー13
b,13cを有する第2スキャナ14とは、スキャンモ
ータM2の駆動により矢印b,b’方向(副走査方向)
に移動される。露光ランプ12の光はプラテンガラス1
9上の原稿によって反射され、ミラー13a,13b,
13c、レンズ15を介してラインセンサ17に照射さ
れる。ラインセンサ17は図1の紙面に直交する方向
(主走査方向)に多数の光電変換素子(CCD)を配列
したものであり、400DPIで画像を読み取り、各画
素に対応する画像データを出力する。また、上述のよう
に第1スキャナ14が矢印b,b'方向に移動すること
により、ラインセンサ17は原稿画像を副走査方向に走
査することができる。スキャナ11,14が矢印b方向
に移動した時のラインセンサ17による画像の走査が予
備走査であり、この時ラインセンサ17から出力される
画像データに基づいて、原稿台上の原稿の位置が検出さ
れる。一方、スキャナ11,14が矢印b'方向に移動
した時のラインセンサ17による画像の走査が本走査で
あり、この時ラインセンサ17から出力される画像デー
タに基づいて、原稿画像の複写が行われる。ラインセン
サ17から出力された画像データは、画像処理ユニット
20にて処理された後、回転メモリユニット30へ送信
される。回転メモリユニット30は、画像処理ユニット
20から受信した画像データをー旦記憶し、回転編集処
理後に、または、直接に、プリント部200へ送信す
る。
The image reading section 100 includes a platen glass 19
The image of the document placed on the document is read, and image data corresponding to each pixel of the image of the document is generated. In the document reading unit 100, the exposure lamp 12 and the first mirror 1
First scanner 11 having 3a and second and third mirrors 13
The second scanner 14 having b and 13c is driven by the scan motor M2 in the directions of arrows b and b '(sub-scanning direction).
Moved to The light of the exposure lamp 12 is the platen glass 1
9, the mirrors 13a, 13b,
13 c, the light is irradiated to the line sensor 17 via the lens 15. The line sensor 17 has a large number of photoelectric conversion elements (CCDs) arranged in a direction (main scanning direction) orthogonal to the paper surface of FIG. 1, reads an image at 400 DPI, and outputs image data corresponding to each pixel. Further, as described above, when the first scanner 14 moves in the directions of the arrows b and b ′, the line sensor 17 can scan the document image in the sub-scanning direction. The scanning of the image by the line sensor 17 when the scanners 11 and 14 move in the direction of arrow b is the preliminary scanning. At this time, the position of the document on the document table is detected based on the image data output from the line sensor 17. Is done. On the other hand, the scanning of the image by the line sensor 17 when the scanners 11 and 14 move in the direction of the arrow b 'is the main scanning. At this time, the original image is copied based on the image data output from the line sensor 17. Will be The image data output from the line sensor 17 is processed by the image processing unit 20 and then transmitted to the rotating memory unit 30. The rotation memory unit 30 stores the image data received from the image processing unit 20 and transmits the image data to the printing unit 200 after the rotation editing process or directly.

【0013】次に、プリント部200を説明する。プリ
ント部200において、印字処理ユニット40は、回転
処理メモリ部30から受信した画像データに基づいてレ
ーザ光学系を制御する。レーザ光学系は、印字処理ユニ
ット40によって変調(オン、オフ)制御されるレーザ
ビームを放射する半導体レーザー61と、この半導体レ
ーザー61から放射されたレーザービームを感光体ドラ
ム71上で走査させるためのポリコンミラー62、fθ
レンズ63、ミラー64a、64b、64cとを備え
る。矢印c方向に回転駆動される感光体ドラム71の周
囲には、その回転方向(矢印c方向)に沿って、帯電チ
ャージャ72、現像器73、転写チャージャ74、分離
チャージャ75、クリーナ76、イレーサランプ77が
配置されており、周知の電子写真プロセスによってトナ
ー画像を形成し、用紙上に転写する。用紙は、給紙カセ
ット81a、81bから給紙ローラ82a,82bによ
って供給され、用紙搬送通路83、タイミングローラ8
4によって転写チャージャ74の方へ送り込まれる。転
写チャージャ74の位置でトナー像が転写された用紙
は、搬送ベルト85、定着器86、排出ローラ87を介
して、排紙トレイ88上へ排出される。
Next, the printing section 200 will be described. In the printing unit 200, the print processing unit 40 controls the laser optical system based on the image data received from the rotation processing memory unit 30. The laser optical system emits a laser beam modulated (on / off) by the print processing unit 40, and a laser beam emitted from the semiconductor laser 61 scans the photosensitive drum 71 on the photosensitive drum 71. Polycon mirror 62, fθ
A lens 63 and mirrors 64a, 64b, 64c are provided. Around the photosensitive drum 71 that is driven to rotate in the direction of arrow c, the charger 72, the developing device 73, the transfer charger 74, the separation charger 75, the cleaner 76, and the eraser lamp along the direction of rotation (direction of arrow c). A toner image 77 is formed by a well-known electrophotographic process, and is transferred onto a sheet. The paper is supplied from paper cassettes 81a and 81b by paper feed rollers 82a and 82b, and is supplied to a paper conveyance path 83 and a timing roller 8a.
4 to the transfer charger 74. The sheet on which the toner image has been transferred at the position of the transfer charger 74 is discharged onto a discharge tray 88 via a conveyor belt 85, a fixing device 86, and a discharge roller 87.

【0014】次に、図2は、デジタル複写機を制御する
制御系の全体ブロック図を示す。画像読取部100の制
御部102、回転メモリユニット30の制御部300、
プリンタ200の制御部202、原稿搬送部500の制
御部520から構成され、全体制御部400と通信ライ
ンで接続されている。全体制御部400は、各制御部1
02、300、202、520とのデータのやり取りを
行うと同時に、操作パネル90も制御する。図3は、操
作パネル90を示す。操作パネル90は、傾き補正モー
ドを設定する傾き補正モードキー99と、傾き補正モー
ドであることを表示する表示部99aが設けられる。さ
らに、操作パネル90は、通常の複写機におけるよう
に、液晶タッチパネル91、原稿のページ番号順や複写
枚数などの置数や複写倍率などを入力するテンキー9
2、置数等を標準値「1」に戻すクリアキー93、複写
機内部に設定された設定値を標準値に戻すパネルリセッ
トキー94、コピー動作を中止させるストップキー9
5、コピー動作を開始させるスタートキー96が設けら
れている。さらに、コピーモードとしてコピー片面モー
ド、片面2in1モード、片面4in1モードのいずれ
か1つを選択設定するコピーモード設定キー97、原稿
モードとして原稿片面モード、原稿両面モードのいずれ
か1つを選択設定する原稿モード設定キー98、選択設
定されたコピーモードがコピー片面モードであることを
表示する表示部97a、片面2in1モードであること
を表示する表示部97b、片面4in1モードであるこ
とを表示する表示部97c、選択設定された原稿モード
が原稿片面モードであることを表示する表示部98a、
原稿両面モードであることを表示する表示部98b等が
設けられる。また、 液晶タッチパネル91は、露光レ
ベル、複写倍率、記録紙サイズなどの複写機の動作状
態、ジャムの発生などの複写機の各種の異常状態、その
他の情報を表示すると共に、濃度、複写倍率、記録紙等
の自動選択モードを指定する入力ができる。
FIG. 2 is an overall block diagram of a control system for controlling the digital copying machine. A control unit 102 of the image reading unit 100, a control unit 300 of the rotary memory unit 30,
The control unit 202 includes a control unit 202 of the printer 200 and a control unit 520 of the document conveyance unit 500, and is connected to the overall control unit 400 via a communication line. The overall control unit 400 includes each control unit 1
02, 300, 202, and 520, and also controls the operation panel 90. FIG. 3 shows the operation panel 90. The operation panel 90 is provided with a tilt correction mode key 99 for setting a tilt correction mode and a display unit 99a for displaying that the mode is the tilt correction mode. Further, the operation panel 90 is provided with a liquid crystal touch panel 91 and a numeric keypad 9 for inputting the number of copies, such as the order of page numbers and the number of copies, and the copy magnification as in a normal copying machine.
2, a clear key 93 for returning the set value to the standard value "1", a panel reset key 94 for returning the set value set in the copying machine to the standard value, and a stop key 9 for stopping the copying operation.
5. A start key 96 for starting a copy operation is provided. Further, a copy mode setting key 97 for selecting and setting any one of a copy single-sided mode, a single-sided 2-in-1 mode, and a single-sided 4-in-1 mode as a copy mode, and selecting and setting one of a document single-sided mode and a document double-sided mode as a document mode. Original mode setting key 98, display portion 97a for displaying that the selected and set copy mode is the copy one-sided mode, display portion 97b for displaying the one-sided 2in1 mode, and display portion for displaying the one-sided 4in1 mode 97c, a display section 98a for displaying that the selected and set original mode is the original simplex mode,
A display unit 98b for displaying that the original is in the both-sided document mode is provided. The liquid crystal touch panel 91 displays the operation state of the copier such as an exposure level, a copy magnification, a recording paper size, various abnormal states of the copier such as occurrence of a jam, and other information. An input for designating an automatic selection mode for recording paper or the like can be made.

【0015】次に、回転メモリユニット30における画
像の回転を説明する。図4は、回転メモリユニット30
の制御部300の画像データ入出力インターフェースの
構成を示し、図5は、画像読取制御部102から回転メ
モリユニット制御部300へのタイミングシーケンスを
示し、図6は、回転メモリユニット制御部300からプ
リンタ制御部202へのタイミングシーケンスを示す。
図4に示すように、画像データ入出力インターフェース
は、画像読取制御部102から、信号VD_IR、HD_
IR、SYNCK_IR、VIDEO0〜7_IRを受信す
る。図5は、画像読取制御部102より転送される画像
データのシーケンスである。ここで、VD_IR信号
は、ページデータ出力を示し、低レベルの間にアクティ
ブとなる。HD_IR信号は、ラインデータ出力を示
し、低レベルの間にアクティブとなる。VD_IR、H
D_IRともにアクティブであるとき、SYNCK_IR
信号に同期して有効画像データVIDEO0〜7_IRが
転送される。ここでは、1画素8ビットの多値データと
する。
Next, rotation of an image in the rotation memory unit 30 will be described. FIG. 4 shows the rotating memory unit 30.
5 shows a timing sequence from the image reading control unit 102 to the rotating memory unit control unit 300, and FIG. 6 shows a timing sequence from the rotating memory unit controlling unit 300 to the printer. 4 shows a timing sequence to the control unit 202.
As shown in FIG. 4, the image data input / output interface sends signals VD_IR, HD_
To receive IR, SYNCK_IR, the VIDEO 0~7 _IR. FIG. 5 shows a sequence of image data transferred from the image reading control unit 102. Here, the VD_IR signal indicates page data output, and becomes active during a low level. The HD_IR signal indicates line data output and is active during the low level. VD_IR, H
When both D_IR are active, SYNCK_IR
Valid image data VIDEO 0~7 _IR is transferred in synchronization with the signal. Here, multi-value data of 8 bits per pixel is used.

【0016】図4に示すように、画像データ入出力イン
ターフェースは、プリンタ制御部202へ、信号IDR
EQ、VD_PR、LSYNC、HD_PR、SYNCK
_PR、VIDEO0〜7_PRを受信する。図6は、プリ
ンタ制御部202へ転送される画像データのシーケンス
である。ここに、IDREQ信号は、プリンタからのペ
ージデータ転送スタート信号を示し、LLSYNCは、
プリンタからの1ライン開始基準信号であり、これらに
同期して回転メモリユニット30から画像信号を転送す
る。VD_PRは、低レベルでページデータ出力アクテ
ィブを示し、HD_PR信号は、低レベルでラインデー
タ出力アクティブとなる。VD_PR、HD_PRともに
アクティブであるとき、SYNCK_PR信号に同期し
て有効画像データVIDEO0〜7_PRが転送される。
As shown in FIG. 4, the image data input / output interface sends a signal IDR to the printer control unit 202.
EQ, VD_PR, LSYNC, HD_PR, SYNCK
_PR, VIDEO 0 to 7 Receive _PR. FIG. 6 shows a sequence of image data transferred to the printer control unit 202. Here, the IDREQ signal indicates a page data transfer start signal from the printer, and LLSYNC indicates
This is a one-line start reference signal from the printer, and transfers an image signal from the rotating memory unit 30 in synchronization with these signals. The VD_PR indicates a page data output active at a low level, and the HD_PR signal becomes a line data output active at a low level. VD_PR, when HD_PR are both active, valid image data VIDEO 0~7 _PR is transferred in synchronization with SYNCK_PR signal.

【0017】図7は、回転メモリユニット制御部300
のブロック図を示す。画像読取部100より転送された
画像データは、バッファである入力ページメモリ302
へ格納されるとともに、原稿エッジ検出部304へ入力
される。これより原稿エッジの座標データが座標データ
発生部306にて発生され、得られた座標データが順に
スタックメモリ308に書き込まれる。入力ページメモ
リ302は、2次元座標で管理され、格納された画像デ
ータは、スタックメモリ308内の原稿エッジデータを
元に回転処理部310にて編集され、出力ページメモリ
312へ転送される。なお、編集処理のためのデータの
入出力、コマンド設定などは、全体制御部400からの
信号に基づいてCPU314により行われる。また、出
力ページメモリ312も2次元座標にて管理されてお
り、プリントアウト時に内部画像データが順次出力され
る。
FIG. 7 shows a rotary memory unit controller 300.
FIG. The image data transferred from the image reading unit 100 is stored in an input page memory 302 serving as a buffer.
And input to the document edge detection unit 304. As a result, the coordinate data of the document edge is generated by the coordinate data generator 306, and the obtained coordinate data is sequentially written to the stack memory 308. The input page memory 302 is managed by two-dimensional coordinates, and the stored image data is edited by the rotation processing unit 310 based on the document edge data in the stack memory 308 and transferred to the output page memory 312. Note that input / output of data for editing processing, command setting, and the like are performed by the CPU 314 based on a signal from the overall control unit 400. The output page memory 312 is also managed by two-dimensional coordinates, and internal image data is sequentially output at the time of printout.

【0018】図8は、原稿エッジ検出回路304を示
す。画像読取部100より送られる画像データVIDE
0〜7_IRを、原稿の地肌の濃度と原稿搬送ベルト5
06、またはプラテンガラス19上に何もない状態の濃
度とを比較する比較器320に入力する。画像データV
IDEO0〜7_IR(1画素8ビットの多値データ)
は、ラインデータが出力されているとき(HD_IRが
アクティブ)、SYNCK_IR信号に同期して転送さ
れる。それぞれの画像データに対し、マージンを考慮し
たリファレンスデータrefと比較することにより、確
実に原稿の有無を判定し、2値のデータに変換する。次
段のシフトレジスタ322では、8画素単位での処理を
してノイズを除去する。シフトレジスタ322の出力信
号は、ANDゲート324及びNANDゲート326に
入力され、両ゲート324、326の出力は、次にJ−
Kフリップフロップ328のJ入力とK入力に入力され
る。J−Kフリップフロップ328の出力信号は、AN
Dゲート320の負論理入力と、もう1つのANDゲー
ト322に入力される。このJ−Kフリップフロップ3
28の出力信号は、Dフリップフロップ334にも入力
される。Dフリップフロップ334の出力信号は、AN
Dゲート320と、もう1つのANDゲート322の負
論理入力に入力される。負論理ANDゲート336に
は、HD_IR信号とSYNCK_IR信号が入力され、
その出力信号は、シフトレジスタ320、J−Kフリッ
プフロップ328及びDフリップフロップ334のT端
子に供給される。この終段の構成より、ANDゲート3
30、332は、それぞれ、原稿の無→有のエッジ(+
EDGE)、原稿の有→無のエッジ(−EDGE)を検
出し、1ショットパルスを出力する。
FIG. 8 shows the document edge detection circuit 304. Image data VIDE sent from image reading unit 100
O 0-7 _IR is calculated based on the density of the background of the original and the original transport belt 5.
06 or a comparator 320 that compares the density with nothing on the platen glass 19. Image data V
IDEO 0-7 _IR (8-bit multi-valued data per pixel)
Is transferred in synchronization with the SYNCK_IR signal when line data is being output (HD_IR is active). By comparing each image data with reference data ref in consideration of a margin, the presence / absence of a document is reliably determined and converted into binary data. The shift register 322 at the next stage removes noise by performing processing in units of eight pixels. The output signal of the shift register 322 is input to an AND gate 324 and a NAND gate 326, and the output of both gates 324, 326 is then J-
It is input to the J and K inputs of the K flip-flop 328. The output signal of JK flip-flop 328 is
The negative logic input of the D gate 320 and another AND gate 322 are input. This JK flip-flop 3
28 is also input to the D flip-flop 334. The output signal of D flip-flop 334 is
The signal is input to a negative logic input of a D gate 320 and another AND gate 322. The HD_IR signal and the SYNCK_IR signal are input to the negative logic AND gate 336,
The output signal is supplied to the T terminal of the shift register 320, the JK flip-flop 328, and the D flip-flop 334. Due to this final stage configuration, the AND gate 3
Reference numerals 30 and 332 denote the non-existent edges (+
EDGE), the presence / absence edge of the document (−EDGE) is detected, and a one-shot pulse is output.

【0019】図9は、座標データ発生回路306を示
す。カウンタ340に、HD_IR(CLK端子)とV
D_IR(CLEAR端子)を入力することにより、副
走査側のX座標を発生する。同様に、SYNCK_IR
(CLK端子)とHD_IR(CLEAR端子)を入力
したカウンタ342より、主走査側のY座標を発生す
る。ラッチ344において、+EDGEでのY座標を一
旦ラッチし、加算器346で16減算し、−EDGEで
のX及びY座標データと共にスタックメモリ308に格
納する。書き込みアドレスは、CLKカウンタ348に
おいて−EDGEにより順次更新され、VD_IRによ
り初期化される。
FIG. 9 shows the coordinate data generation circuit 306. HD_IR (CLK terminal) and V
By inputting D_IR (CLEAR terminal), an X coordinate on the sub-scanning side is generated. Similarly, SYNCK_IR
(CLK terminal) and the counter 342 to which HD_IR (CLEAR terminal) is input, the Y coordinate on the main scanning side is generated. The latch 344 temporarily latches the Y coordinate at + EDGE, subtracts 16 from it at the adder 346, and stores it in the stack memory 308 together with the X and Y coordinate data at -EDGE. The write address is sequentially updated by -EDGE in the CLK counter 348, and is initialized by VD_IR.

【0020】図10は、回転処理部310のブロック図
を示し、図11は、その動作を説明するための図であ
る。画像の回転処理には、アフィン変換処理を用いてい
る。これは、座標間の幾何学的変換手法で次式で表され
る。
FIG. 10 is a block diagram of the rotation processing unit 310, and FIG. 11 is a diagram for explaining its operation. An affine transformation process is used for the image rotation process. This is expressed by the following equation using a geometric conversion method between coordinates.

【数1】 アフィン変換部350は、式(1)によりx−y座標系
のデータ(画像)をu−v座標系に変換するものであ
り、画像の平行移動、拡大、縮小、回転などを行うもの
である。本実施形態では、平行移動及び回転のみの処理
を行う。図10に示すアフィン変換部350では、4点
座標による矩形領域を設定することにより、入力ページ
メモリ302内の回転処理対象領域を指定し(図11の
左側参照)、さらに、編集原点座標(U0,V0)、回転
処理するための座標の原点(x,y)及び回転角度θを
指定して、回転処理を行う(図11の中央参照)。次
に、編集処理としてはu−v座標に対して回転ずみの画
像領域の原点(回転座標)を割り付ける(Uo,Vo
(図11の右側参照)。式で表すと次のようになる。
(Equation 1) The affine transformation unit 350 transforms the data (image) in the xy coordinate system into the uv coordinate system according to equation (1), and performs parallel movement, enlargement, reduction, rotation, and the like of the image. . In the present embodiment, only processing of translation and rotation is performed. The affine transformation unit 350 shown in FIG. 10 specifies a rotation processing target area in the input page memory 302 by setting a rectangular area using four-point coordinates (see the left side of FIG. 11), and further edits the origin coordinates (U 0 , V 0 ), the origin (x, y) of the coordinates for the rotation processing and the rotation angle θ are designated (see the center of FIG. 11). Next, assign the origin (rotation coordinate) of the rotary Zumi image area relative to u-v coordinate the editing process (U o, V o)
(See the right side of FIG. 11). This can be expressed as follows.

【数2】 また、回転及び編集の後の領域のmax座標(Umax
max)が出力される。アフィン変換で得られた座標
(u,v)は、整数とはならないのが普通であるため、
出力濃度値f(u,v)を原画像の濃度データf(Xn,Y
n)を用いて補間する必要がある。濃度補間処理部352
は、この補間を行なう。補間の手法としては、最近傍
法、線形補間法、3次元スプライン補間法などが提案さ
れているが、ここでは詳細な説明を省略する。濃度補間
処理部352で補完されたデータは、出力ページメモリ
312へ送られ2次元の座標軸(u−v座標)に従って
格納される。データは、プリントタイミングに従い、ラ
イン単位で出力される。
(Equation 2) Also, the max coordinates (U max ,
V max ) is output. Since the coordinates (u, v) obtained by the affine transformation are not usually integers,
The output density value f (u, v) is converted to the density data f (X n , Y
It is necessary to interpolate using n ). Density interpolation processing unit 352
Performs this interpolation. As an interpolation method, a nearest neighbor method, a linear interpolation method, a three-dimensional spline interpolation method, and the like have been proposed, but a detailed description thereof will be omitted here. The data complemented by the density interpolation processing unit 352 is sent to the output page memory 312 and stored according to the two-dimensional coordinate axes (uv coordinates). Data is output in line units according to the print timing.

【0021】図12に、出力ページメモリ312を示
し、図13に、その動作説明のための図を示す。出力ペ
ージメモリ312ヘデータが格納された後、画像の不要
な部分のイレース処理をすることができる。方法として
は、2点のイレース領域座標(Uerase0,Verase0)、
(Uerase1,Verase1)を設定することにより、それを
対角線とする座標軸に平行な矩形領域が白データに変換
される(図13の左側参照)。また、ペーパーサイズ座
標(Upaper,Vpaper)を設定することにより、ペーパ
ーサイズが、原点座標とペーパーサイズ座標の2点を対
角線とする矩形領域がデータ出力領域となる(図13の
右側参照)。ここで、V軸が主走査方向、U軸が副走査
方向となる。出力ページメモリ312に出力イネーブル
信号を入力することにより、信号VIDEOが出力され
る。
FIG. 12 shows the output page memory 312, and FIG. 13 is a diagram for explaining its operation. After the data is stored in the output page memory 312, an unnecessary portion of the image can be erased. As a method, two erase area coordinates (U erase0 , V erase0 ),
By setting (U erase1 , V erase1 ), a rectangular area parallel to the coordinate axis which is a diagonal is converted into white data (see the left side of FIG. 13). Further, by setting the paper size coordinates (U paper , V paper ), the paper size becomes a data output area in a rectangular area having two points of origin coordinate and paper size coordinate as diagonal lines (see the right side of FIG. 13). . Here, the V axis is the main scanning direction, and the U axis is the sub scanning direction. By inputting an output enable signal to the output page memory 312, a signal VIDEO is output.

【0022】次に、以上に述べたシステムを用いた原稿
検出について説明する。見出し等がついた原稿や矩形以
外の原稿でも、原稿の傾きや原稿領域を精度よく誤検出
を少なく決定できる。プラテンガラスに載置された原稿
が読み取られるが、図14において、斜線部で表す画像
読取領域(プラテンガラス19)以外の領域(白い部
分)が原稿を表す。この例では、原稿は傾いて置かれて
いる。画像読取部100において、スキャナ11が図1
5に示すX軸(副走査)方向へ移動しながらCCDセン
サ17により画像がライン単位で検出される(図15の
破線位置)。編集処理は回転メモリユニット部30にお
いて行われる。CCDセンサ17からのデータは、図5
に示すシーケンスに従いライン単位で送信され、回転メ
モリユニット30内の入力ページメモリ302へ格納さ
れる。同時に原稿エッジ検出部304により原稿エッジ
を検出する。図15において、白点部が黒から白へ変化
するエッジ(+EDGE)、黒点部が白から黒へ変化す
るエッジ(−EDGE)を示す。これら2つの座標デー
タがペアでスタックメモリ308へ順番に書込まれるこ
とになる。スタックメモリ308内には、ライン番号X
n、+EDGEのカウント値YWm、−EDGEのカウン
ト値YBmがセットで格納されており、格納された順番
にピックアップされ処理される。
Next, document detection using the above-described system will be described. Even with a document having a heading or the like or a document other than a rectangle, the inclination of the document and the document area can be determined with high accuracy and with few false detections. The document placed on the platen glass is read. In FIG. 14, the region (white portion) other than the image reading region (platen glass 19) indicated by the hatched portion represents the document. In this example, the original is placed at an angle. In the image reading unit 100, the scanner 11
The image is detected line by line by the CCD sensor 17 while moving in the X-axis (sub-scanning) direction shown in FIG. 5 (broken line position in FIG. 15). The editing process is performed in the rotating memory unit 30. The data from the CCD sensor 17 is shown in FIG.
Are transmitted in units of lines according to the sequence shown in FIG. At the same time, the document edge detection unit 304 detects the document edge. FIG. 15 shows an edge (+ EDGE) at which a white point changes from black to white, and an edge (-EDGE) at which a black point changes from white to black. These two sets of coordinate data are sequentially written to the stack memory 308 as a pair. The stack memory 308 has a line number X
n, + EDGE count value YW m, and the count value YB m of -EDGE are stored in a set, which is picked up to the storage order is processed.

【0023】その後、CPU314は、図16に示すよ
うに、スタックメモリ308内に格納された座標データ
より、各原稿エッジの座標データ間の傾きの変化を検出
し、傾きの変化する点(エッジ変化点)を求め、それら
エッジ変化点を結ぶ線分を抽出する(図16では、線分
a、b、d、c)。図17において、小さな丸がエッジ
変化点を示し、太い線が検出された線分を示す。抽出さ
れた線分より、一番長い線分を決定する。図17の例で
は、8個の線分のうち右側の辺520aが一番長い線分
として決定される。さらに、検出された全頂点を囲むよ
うに、一番長い線分に対向する平行な線分520eを含
む直線と、これに直交する線分520b、520hを含
む直線を求める。これにより、原稿領域を取り囲む4直
線が決定される。すなわち、すべての頂点(エッジ変化
点)を含む矩形領域が求められる。したがって、見出し
などがついた原稿や矩形以外の原稿でも、最長辺を基
に、原稿を取り囲む最適な矩形領域が求められる。次
に、これらの直線の交点から、原稿の領域を定義するた
めの4点の座標(図中の大きな丸)を決定する。また、
一番長い線分の傾きより、原稿の傾き方向及び回転角度
を決定する。図18は、X1−Xmin<Y1−Yminの場合
の原稿の位置を示し、図19は、この原稿の回転角度の
設定を示す。回転は、(X1,Ymin)を原点とし、回転
角度θは−tan-1{(Y1−Ymin)/(Xmin−X1)}で
ある。また、図20は、X1−Xmin>Y1−Yminの場合
の原稿の位置を示し、図21は、この原稿の回転角度の
設定を示す。回転は、(Xmin,Y1)を原点とし、回転
角度θは−tan-1{(Ymax−Y1)/(X2−Xmin)}で
ある。以上の結果により、回転処理と平行移動のための
各設定が行われ、その設定に基づいて、回転処理部31
0において回転処理および平行移動処理が行われる。そ
して、得られた画像データが出力ページメモリ312に
記憶される。この画像データに基づいて画像形成部20
0において画像形成がおこわれる。
Thereafter, as shown in FIG. 16, the CPU 314 detects a change in the inclination between the coordinate data of each document edge from the coordinate data stored in the stack memory 308, and detects a point at which the inclination changes (edge change). ) And extract line segments connecting these edge change points (in FIG. 16, line segments a, b, d, and c). In FIG. 17, a small circle indicates an edge change point, and a thick line indicates a detected line segment. The longest line segment is determined from the extracted line segments. In the example of FIG. 17, the right side 520a of the eight line segments is determined as the longest line segment. Further, a straight line including a parallel line segment 520e facing the longest line segment and a straight line including line segments 520b and 520h orthogonal to the longest line segment are obtained so as to surround all the detected vertices. Thus, four straight lines surrounding the document area are determined. That is, a rectangular area including all vertices (edge change points) is obtained. Therefore, even for a document having a heading or the like and a document other than a rectangle, an optimum rectangular area surrounding the document is obtained based on the longest side. Next, from the intersections of these straight lines, the coordinates of four points (large circles in the figure) for defining the area of the document are determined. Also,
The inclination direction and rotation angle of the document are determined from the inclination of the longest line segment. FIG. 18 shows the position of the document when X 1 −X min <Y 1 −Y min , and FIG. 19 shows the setting of the rotation angle of this document. The rotation is (X 1 , Y min ) as the origin, and the rotation angle θ is −tan −1 {(Y 1 −Y min ) / (X min −X 1 )}. FIG. 20 shows the position of the document when X 1 −X min > Y 1 −Y min , and FIG. 21 shows the setting of the rotation angle of this document. The rotation is made with (X min , Y 1 ) as the origin, and the rotation angle θ is −tan −1 {(Y max −Y 1 ) / (X 2 −X min )}. Based on the above results, each setting for the rotation processing and the parallel movement is performed, and the rotation processing unit 31 is set based on the settings.
At 0, a rotation process and a translation process are performed. Then, the obtained image data is stored in the output page memory 312. Based on this image data, the image forming unit 20
At 0, image formation occurs.

【0024】次に、画像形成の動作の詳細を、図22〜
図32のフローチャートに従って説明する。なお、エッ
ジ変化点の検出による各線分の抽出及び原稿領域の大き
さ、傾き角度、ずれ量の算出は、画像読取制御部102
の制御の下で、画像処理ユニット20により行われ、任
意角回転を含む編集処理は回転メモリユニット30にて
行われ、パラメータの設定などは、メモリユニット制御
部300によりなされる。ここでは、説明の簡単のた
め、1つの流れのフローで制御を説明している。図22
は、本システムの全体フローチャートを示す。まず、初
期化を行い(ステップS11)、操作パネル90からの
各種スイッチ類の入力信号の制御処理(ステップS1
2、図23、図24参照)、原稿搬送装置500による
原稿の搬送処理(ステップS13)、原稿読取部100
による画像入力処理(ステップS14)を行う。そし
て、画像データの入力が終了したか否かを判定し(ステ
ップS15)、終了した場合は、原稿の排紙処理を行う
(ステップ16)。次に、傾き補正モードか否かを判定
する(ステップS17)。傾き補正モードでない場合
は、スルー処理(ステップS18、図32参照)で回転
処理を実行し、画像データ出力処理を行い(ステップS
19)、ステップS12に戻る。ステップS17の判定
で、傾き補正モードである場台は、原稿頂点検出処理
(ステップS20、図25〜図27参照)、領域アドレ
ス設定処理(ステップS21、図28〜図29参照)お
よび編集処理(ステップS22、図30参照)を行い、
画像データ出力処理を行って(ステップS19、図31
参照)、ステップS12に戻る。
Next, details of the image forming operation will be described with reference to FIGS.
This will be described with reference to the flowchart of FIG. The extraction of each line segment by detecting the edge change point and the calculation of the size, the tilt angle, and the shift amount of the document area are performed by the image reading control unit 102.
Is performed by the image processing unit 20, the editing processing including the arbitrary angle rotation is performed by the rotation memory unit 30, and the parameter setting and the like are performed by the memory unit control unit 300. Here, for simplicity of the description, the control is described with one flow. FIG.
Shows an overall flowchart of the present system. First, initialization is performed (step S11), and control processing of input signals of various switches from the operation panel 90 (step S1).
2, FIG. 23 and FIG. 24), a document conveying process by the document conveying device 500 (step S13), the document reading unit 100
(Step S14). Then, it is determined whether or not the input of the image data has been completed (step S15). When the input has been completed, the document is discharged (step 16). Next, it is determined whether or not the mode is the tilt correction mode (step S17). If the mode is not the skew correction mode, a rotation process is performed in a through process (step S18, see FIG. 32), and an image data output process is performed (step S18).
19), and return to step S12. In the determination in step S17, the platform in the inclination correction mode determines whether the document apex is detected (step S20, see FIGS. 25 to 27), the area address setting process (step S21, see FIGS. 28 to 29), and the editing process ( Step S22, see FIG. 30), and
An image data output process is performed (step S19, FIG. 31).
Reference), and return to step S12.

【0025】図23と図24は、入力信号処理(図2
2、ステップS12)の詳細を示すフローチャートであ
る。まず、原稿モードの選択設定状態を原稿モード設定
キー98のオンエッジ(オフレベルからオンレベルにな
ったこと)で判定し(ステップS101)、オンエッジ
の場合は原稿片面モードの選択を示す表示部98aの点
灯状態を判定する(ステップS102)。点灯の場合は
表示部98aを消灯し、原稿両面モードの選択を示す表
示部98bを点灯し、原稿両面モードを設定する(ステ
ップS103)。ステップS102の判定で表示部98
aが消灯の場合は、表示部98bは点灯状態であるの
で、表示部98bを消灯し、原稿片面モードの選択を示
す表示部98aを点灯し、原稿片面モードを設定する
(ステップS104)。次に、コピーモードの選択設定
状態をコピーモード設定キー97のオンエッジで判定し
(ステップS105)、オンエッジの場合はコピー片面
モードの選択を示す表示部98aの点灯状態を判定する
(ステップS106)。点灯の場合は表示部97aを消
灯し、片面2in1モードの選択を示す表示部97bを
点灯し、片面2in1モードを設定する(ステップS1
07)。ステップS108の判定で表示部97aが消灯
の場合は、表示部97bの点灯状態を判定する(ステッ
プS108)。点灯の場合は表示部97bを消灯し、片
面4in1モードの選択を示す表示部97cを点灯し、
片面4in1モードを設定する(ステップS109)。
ステップS108の判定で表示部97bが消灯の場合
は、表示部97cは点灯状態であるので、表示部97c
を消灯し、コピー片面モードの選択を示す表示部97a
を点灯し、コピー片面モードを設定する(ステップS1
10)。
FIGS. 23 and 24 show input signal processing (FIG. 2).
2 is a flowchart showing details of step S12). First, the selection setting state of the document mode is determined by the ON edge of the document mode setting key 98 (change from the OFF level to the ON level) (step S101). The lighting state is determined (step S102). If it is turned on, the display unit 98a is turned off, the display unit 98b indicating selection of the document duplex mode is turned on, and the document duplex mode is set (step S103). The display unit 98 is determined in step S102.
If a is turned off, the display unit 98b is turned on, so that the display unit 98b is turned off, the display unit 98a indicating selection of the single-sided document mode is turned on, and the single-sided document mode is set (step S104). Next, the selection setting state of the copy mode is determined by the on-edge of the copy mode setting key 97 (step S105), and in the case of the on-edge, the lighting state of the display unit 98a indicating selection of the copy one-sided mode is determined (step S106). In the case of lighting, the display unit 97a is turned off, the display unit 97b indicating selection of the single-sided 2in1 mode is turned on, and the single-sided 2in1 mode is set (step S1).
07). If the display unit 97a is turned off in the determination of step S108, the lighting state of the display unit 97b is determined (step S108). In the case of lighting, the display unit 97b is turned off, the display unit 97c indicating selection of the single-sided 4in1 mode is turned on,
The single-sided 4-in-1 mode is set (step S109).
If the display unit 97b is turned off in the determination of step S108, the display unit 97c is turned on.
Is turned off, and a display section 97a indicating selection of the copy one-sided mode is displayed.
Is turned on to set the copy one-sided mode (step S1).
10).

【0026】次に、傾き補正モードの選択設定状態を傾
き補正モード設定キー99のオンエッジで判定し(ステ
ップS111)、オンエッジの場合は傾き補正モードの
選択を示す表示部99aの点灯状態を判定する(ステッ
プS112)。点灯の場合は表示部99aを消灯し、傾
き補正モードを解除する(ステップS113)。ステッ
プS112の判定で表示部99aが消灯の場合は、傾き
補正モードの選択を示す表示部99aを点灯し、傾き補
正モードを設定する(ステップS114)。次に、複写
開始を指示する操作パネル上のスタートキー96が押さ
れたか否かをスタートキー96のオンエッジで判定し
(ステップS119)、オンエッジの場合は、原稿搬送
部500のエンプティセンサ(図示しない)がオフか否
かを判定し(ステップS120)、オフの場合は、スキ
ャンスタート要求を出力する(ステップS121)。ス
テップS120の判定でエンプティセンサがオフでない
場合は、原稿搬送装置(ADF)500の給紙トレイ5
10に原稿がセットされている状態であるので、ADF
スタート要求を出力する(ステップS122)。
Next, the selection setting state of the inclination correction mode is determined by the on-edge of the inclination correction mode setting key 99 (step S111), and in the case of the on-edge, the lighting state of the display section 99a indicating the selection of the inclination correction mode is determined. (Step S112). If it is turned on, the display unit 99a is turned off, and the tilt correction mode is released (step S113). If the display unit 99a is turned off in the determination in step S112, the display unit 99a indicating selection of the tilt correction mode is turned on to set the tilt correction mode (step S114). Next, it is determined whether or not the start key 96 on the operation panel for instructing the start of copying has been pressed based on the on-edge of the start key 96 (step S119), and in the case of the on-edge, an empty sensor (not shown) of the document feeding unit 500 is determined. ) Is turned off (step S120), and if it is off, a scan start request is output (step S121). If it is determined in step S120 that the empty sensor is not off, the paper feed tray 5 of the document feeder (ADF) 500
Since the original is set in the ADF 10, the ADF
A start request is output (step S122).

【0027】図25〜図27は、原稿のエッジアドレス
の変化による頂点の検出処理を行う原稿頂点検出(図2
2、ステップS20)のフローチャートである。まず、
+EDGE座標と−EDGE座標でペアになっていた座
標データを分解する(ステップS301)。 (Xn,YWm,YBm)→edge_first_adr(Xn)、edge_l
ast_adr(Xn) ここに、edge_first_adr(Xn)はXnラインの+EDGE
座標であり、edge_last_adr(Xn)はXnラインの−ED
GE座標である。
FIGS. 25 to 27 show original vertex detection (FIG. 2) for detecting a vertex based on a change in the edge address of the original.
2 is a flowchart of step S20). First,
The coordinate data paired by the + EDGE coordinates and the -EDGE coordinates is decomposed (step S301). (X n , YW m , YB m ) → edge_first_adr (X n ), edge_l
ast_adr (X n ) Here, edge_first_adr (X n ) is + EDGE of X n line
Edge_last_adr (X n ) is -ED of X n line
GE coordinates.

【0028】次に、エッジ未検出ラインを抽出する。ま
ず、変数及びフラグを初期化する(ステップS30
2)。そして、x=1のラインからチェックを開始す
る。ステップS303では、注目する1ラインにおける
先端エッジアドレスedge_first_adr(x)及び後端エッジ
アドレスedge_last_adr(x)が、共にε1以上かどうか
を判定する。なお、ε1の値は、原稿スケールの位置の
Y方向のアドレスが適当である。edge_first_adr(x)と
edge_last_adr(x)の両方がε1よりも大きい場合は、
原稿のエッジを検出したと判断し、ステップS306へ
進む。各エッジアドレスのいずれかが、ε1よりも小さ
い場合には、エッジ未検出のラインであると判断し、次
に、原稿の先端を検出しているかどうかのフラグである
flag_doc_topをチェックする(ステップS304)。原
稿の先端を検出していない場合(ステップS304でN
O)は、注目ラインの各エッジアドレスが両方ともε1
より大きくなるまで、xをインクリメントしつつ(ステ
ップS305)、ステップS303〜S304の処理を
繰り返す。原稿の先端を検出している場合には、原稿頂
点検出終了と判断し、処理を終了する。
Next, an edge-undetected line is extracted. First, variables and flags are initialized (step S30).
2). Then, the check is started from the line of x = 1. In step S303, it is determined whether both the leading edge address edge_first_adr (x) and the trailing edge address edge_last_adr (x) in one line of interest are greater than or equal to ε1. Note that the value of ε1 is appropriately the address in the Y direction of the position of the original scale. edge_first_adr (x) and
If both edge_last_adr (x) are larger than ε1,
It is determined that the edge of the document has been detected, and the process proceeds to step S306. If any one of the edge addresses is smaller than ε1, it is determined that the line is a line for which no edge has been detected, and then a flag indicating whether or not the leading edge of the document has been detected.
Check flag_doc_top (step S304). If the leading edge of the document has not been detected (N in step S304)
O) indicates that each edge address of the line of interest is ε1
The process of steps S303 to S304 is repeated while incrementing x (step S305) until it becomes larger. If the leading edge of the document has been detected, it is determined that document vertex detection has been completed, and the process ends.

【0029】次に、 原稿先端の処理を説明する。まず、
原稿の先端を検出しているかどうかのフラグであるflg_
doc_topをチェックする(ステップS306)。原稿の
先端を検出していない場合(ステップS306でNO)
は、上記エッジ未検出ラインの処理において、チェック
されていないx−1ラインの各エッジアドレスが、共に
ε1よりも大きいかどうか判定し(ステップS30
7)、共にε1よりも大きければx−1ラインの値を各
エッジアドレスの線分検出の始点として、以下の値を各
頂点用の配列point_f、point_lに格納する(ステップS
308)。
Next, processing of the leading edge of the document will be described. First,
Flg_, which is a flag indicating whether the leading edge of the document has been detected
Check doc_top (step S306). When the leading edge of the document has not been detected (NO in step S306)
Determines whether or not each edge address of the unchecked x-1 line is larger than ε1 in the processing of the above-mentioned edge undetected line (step S30).
7) If both are greater than ε1, the value of the x-1 line is set as the start point of line segment detection of each edge address, and the following values are stored in the array of points_f and point_l for each vertex (step S).
308).

【数3】 point_f[0][0]=x−1 point_f[0][1]=edge_first_adr(x−1) (3) point_l[0][0]=x−1 point_l[0][1]=edge_last_adr(x−1) いずれかがεlよりも小さければ、xラインの値を各エ
ッジアドレスの線分検出の始点として、以下の値を各頂
点用の配列point_f、point_lに格納する(ステップS3
09)。
[Equation 3] point_f [0] [0] = x−1 point_f [0] [1] = edge_first_adr (x−1) (3) point_l [0] [0] = x−1 point_l [0] [1] = Edge_last_adr (x-1) If any is smaller than εl, the following values are stored in the array point_f and point_l for each vertex with the value of the x line as the starting point of line segment detection of each edge address (step S3)
09).

【数4】 point_f[0][1]=x point_f[0][1]=edge_first_adr(x) (4) point_l[0][0]=x point_l[0][1]=edge_last_adr(x) そして、原稿先端検出フラグflg_doc_topに1をセット
し(ステップS310)、ステップS311に進む。原
稿の先端を検出している場合(ステップS306でYE
S)は、ただちにステップS311に進む。
[Equation 4] point_f [0] [1] = x point_f [0] [1] = edge_first_adr (x) (4) point_l [0] [0] = x point_l [0] [1] = edge_last_adr (x) and Then, 1 is set to the document leading edge detection flag flg_doc_top (step S310), and the process proceeds to step S311. If the leading edge of the document is detected (YE in step S306)
S) proceeds immediately to step S311.

【0030】次に、傾きの変化の検出(線分(頂点)の
検出)を説明する。まず、以下の式(5)の通り、注目ラ
インの前後の連続する3ラインの各ラインにおける先端
エッジアドレスedge_first_adr(x−1)〜edge_first_a
dr(x+1)及び後端エッジアドレスedge_last_adr(x−
1)〜edge_last_adr(x+1)の注目ラインxとの差の絶
対値を算出する(ステップS311)。
Next, detection of a change in inclination (detection of a line segment (apex)) will be described. First, as shown in the following equation (5), leading edge addresses edge_first_adr (x−1) to edge_first_a in each of three consecutive lines before and after the line of interest.
dr (x + 1) and trailing edge address edge_last_adr (x−
1) The absolute value of the difference between the edge_last_adr (x + 1) and the line of interest x is calculated (step S311).

【数5】 cline_f(x−1)=|edge_first_adr(x−1)−edge_first_adr(x)| cline_f(x+1)=|edge_first_adr(x+1)−edge_first_adr(x)| cline_l(x−1)=|edge_last_adr(x−1)−edge_last_adr(x)| cline_l(x+1)=|edge_last_adr(x+1)−edge_last_adr(x)| (5) 次に、以下の式(6)の通り、注目ラインの前後の連続
する3ラインの各ライン間の傾きの差の絶対値を算出す
る(ステップS312)。
Cline_f (x−1) = | edge_first_adr (x−1) −edge_first_adr (x) | cline_f (x + 1) = | edge_first_adr (x + 1) −edge_first_adr (x) | cline_l (x−1) = | edge_last_adr ( x-1) −edge_last_adr (x) | cline_l (x + 1) = | edge_last_adr (x + 1) −edge_last_adr (x) | (5) Next, as shown in the following equation (6), three consecutive lines before and after the line of interest Then, the absolute value of the difference between the inclinations of the lines is calculated (step S312).

【数6】 sub_f=|cline_f(x−1)−cline_f(x+1)| sub_l=|cline_l(x−1)−cline_l(x+1)| (6)Sub_f = | cline_f (x−1) −cline_f (x + 1) | sub_l = | cline_l (x−1) −cline_l (x + 1) | (6)

【0031】次に、ステップS311で算出された先端
エッジアドレスの差の絶対値cline_f(x−1)、cline_f
(x+1)が、共にε2よりも小さいかどうかを判定する
(ステップS313)。なお、ε2の値は2mm程度が適
当である。cline_f(x−1)、cline_l(x+1)の内のい
ずれかがε2よりも大きい場合(ステップS313でN
O)は、主走査方向とほぼ平行な線分であると判断し、
ただちに後端エッジのためのステップS317に進む。
また、cline_f(x−1)、cline_f(x+1)の両方がε2
よりも小さい場合(ステップS313でYES)は、各
先端エッジアドレスは、急激なエッジアドレスの変化が
ないので、原稿の主走査方向とほぼ平行な辺ではないと
判断し、ステップS314へ進む。そして、同じ線分上
にあるかないかを判断するために、上記ステップS31
2で算出された先端エッジアドレスの傾きの差の絶対値
sub_fが、ε3よりも小さいかどうかを判定する(ステ
ップS314)。なお、ε3の値は8ドット程度が適当
である。sub_fがε3よりも大きい場合(ステップS3
14でNO)は、先端エッジアドレスの傾きの変化があ
ったと判断し、頂点の設定処理(ステップS315)へ
進み、注目ラインのライン数xと、注目ラインの先端エ
ッジアドレスedge_first_adr(x)を先端エッジ頂点用の
配列point_fに格納し、先端エッジの頂点のカウンタを
インクリメントする(ステップS316)。そして、ス
テップS316へ進む。また、sub_fがε3よりも小さ
い場合(ステップS314でYES)は、後端エッジア
ドレスの傾きは、急激な変化がないので、原稿の辺の頂
点ではないと判断し、ただちにステップS317へ進
む。
Next, the absolute values cline_f (x-1) and cline_f of the difference between the leading edge addresses calculated in step S311.
Determine whether (x + 1) are both smaller than ε2
(Step S313). The value of ε2 is suitably about 2 mm. If any of cline_f (x−1) and cline_l (x + 1) is larger than ε2 (N in step S313)
O) is determined to be a line segment substantially parallel to the main scanning direction,
The process immediately proceeds to step S317 for the trailing edge.
Also, both cline_f (x−1) and cline_f (x + 1) are ε2
If it is smaller than (YES in step S313), it is determined that each leading edge address is not substantially parallel to the main scanning direction of the document because there is no sharp change in the edge address, and the process proceeds to step S314. Then, in order to determine whether or not they are on the same line segment, the above-mentioned step S31 is performed.
Absolute value of the difference of the slope of the leading edge address calculated in 2
It is determined whether sub_f is smaller than ε3 (step S314). The value of ε3 is suitably about 8 dots. When sub_f is larger than ε3 (step S3
14 is NO), it is determined that the inclination of the leading edge address has changed, and the process proceeds to the vertex setting process (step S315), where the number of lines x of the line of interest and the leading edge address edge_first_adr (x) of the line of interest are set as the leading edge. It is stored in the array point_f for the edge vertex, and the counter of the vertex of the leading edge is incremented (step S316). Then, the process proceeds to step S316. If sub_f is smaller than ε3 (YES in step S314), it is determined that the inclination of the trailing edge address is not the vertex of the side of the document because there is no rapid change, and the process immediately proceeds to step S317.

【0032】同様に、ステップS317では、ステップ
S311で算出された後端エッジアドレスの差cline_l
(x−1)、cline_l(x+1)が、共にε2よりも小さい
かどうかを判定する。cline_l(x−1)、cline_l(x+
1)の内のいずれかがε2よりも大きい場合(ステップ
S316でNO)は、主走査方向とほぼ平行な線分であ
ると判断し、ただちにステップS321へ進む。また、
cline_l(x−1)、cline_l(x+1)の両方がε2よりも
小さい場合(ステップS316でYES)は、各後端エ
ッジアドレスは、急激なエッジアドレスの変化がないの
で、原稿の主走査方向とほぼ平行な辺ではないと判断
し、ステップS318へ進み、同じ線分上にあるかない
かを判断するために、ステップS312で算出された後
端エッジアドレスの傾きの差の絶対値sub_lが、ε3よ
りも小さいかどうかを判定する。sub_lがε3よりも大
きい場合(ステップS318でNO)は、後端エッジア
ドレスの傾きの変化があったと判断し、頂点の設定処理
(ステップS319)へ進む。そして、注目ラインのラ
イン数xと、注目ラインの後端エッジアドレスedge_las
t_adr(x)を後端エッジ頂点用の配列point_lに格納し
(ステップS319)、後端エッジの頂点のカウンタを
インクリメントする(ステップS320)。また、sub_
lがε3よりも小さい場合(ステップS318でYE
S)は、後端エッジアドレスの傾きは、急激な変化がな
いので、原稿の辺の頂点ではないと判断し、ただちにス
テップS320へ進む。ステップS320では、注目ラ
インxをインクリメントし、ステップS303以降の処
理を繰り返す。
Similarly, in step S317, the difference cline_l of the trailing edge address calculated in step S311 is determined.
It is determined whether both (x−1) and cline_l (x + 1) are smaller than ε2. cline_l (x-1), cline_l (x +
If any of 1) is larger than ε2 (NO in step S316), it is determined that the line segment is substantially parallel to the main scanning direction, and the process immediately proceeds to step S321. Also,
If both cline_l (x-1) and cline_l (x + 1) are smaller than ε2 (YES in step S316), the rear edge addresses do not change abruptly, so that the original main scanning direction and the main scanning direction do not change. It is determined that they are not substantially parallel sides, and the process proceeds to step S318. In order to determine whether or not they are on the same line segment, the absolute value sub_l of the difference between the inclinations of the trailing edge addresses calculated in step S312 is ε3 It is determined whether it is smaller than. If sub_l is larger than ε3 (NO in step S318), it is determined that the inclination of the trailing edge address has changed, and the process proceeds to the vertex setting process (step S319). Then, the number x of the line of interest and the trailing edge address edge_las of the line of interest
t_adr (x) is stored in the array point_l for the trailing edge vertex (step S319), and the counter of the trailing edge vertex is incremented (step S320). Also, sub_
l is smaller than ε3 (YE in step S318)
In S), it is determined that the inclination of the trailing edge address is not the vertex of the side of the document because there is no rapid change, and the process immediately proceeds to step S320. In step S320, the line of interest x is incremented, and the processing from step S303 is repeated.

【0033】図28〜図29は、原稿頂点検出の処理
(図22、ステップS20)により検出された各頂点よ
り原稿の領域を定義付けするための4点座標の設定処理
を行う領域アドレス設定処理(図22、ステップS2
1)のフローチャートである。この領域アドレス設定に
おいて、エッジ変化点と原稿の傾きによって、原稿領域
を設定する。まず、各頂点間の距離の算出(線分の長さ
の算出)をする。はじめに、隣り合う各頂点間の距離を
算出する(ステップS330)。ここでは、各頂点間の
距離を比較することを目的とするため、下記の通り、
x,y方向のそれぞれの差の2乗の和を算出する。ま
た、隣り合う頂点とは、先端エッジの最初の頂点(poin
t_f[0][0],point_f[0][1])と、後端エッジの最初
の頂点(point_l[0][0],point_l[0][1])及び先端
エッジの最後の頂点(point_f[0][0],point_f[0]
[1])と、後端エッジの最後の頂点(point_l[0]
[0],point_l[0][1])とを含む各先端エッジ及び後
端エッジの隣り合う頂点とする。
FIGS. 28 to 29 show an area address setting process for setting four-point coordinates for defining an area of a document from each vertex detected by the document vertex detection process (FIG. 22, step S20). (FIG. 22, Step S2
It is a flowchart of 1). In this area address setting, a document area is set based on the edge change point and the inclination of the document. First, the distance between the vertices is calculated (the length of the line segment is calculated). First, the distance between adjacent vertices is calculated (step S330). Here, for the purpose of comparing the distance between each vertex, as follows:
The sum of the squares of the differences in the x and y directions is calculated. The adjacent vertices are the first vertex of the leading edge (point
t_f [0] [0], point_f [0] [1]), the first vertex of the trailing edge (point_l [0] [0], point_l [0] [1]) and the last vertex of the leading edge ( point_f [0] [0], point_f [0]
[1]) and the last vertex of the trailing edge (point_l [0]
[0], point_l [0] [1]) and adjacent vertices of the leading edge and trailing edge.

【数7】 length_f[line_count_f]= (point_f[point_f_count][0] − point_f[point_f_count+1][0])2 +(point_f[point_f_count][1] − point_f[point_f_count+1][1])2 length_l[line_count_l]= (point_l[point_l_count][0] − point_l[point_l_count+1][0])2 +(point_l[point_l_count][1] − point_l[point_l_count+1][1])2 length_f[0]= (point_l[0][0]−point_f[0][0])2 +(point_l[0][1]−point_f[0][1])2 length_l[0]= (point_l[point_l_count][0]−point_f[point_f_count][0])2 +(point_l[point_l_count][1]−point_f[point_f_count][1])2 (7)Length_f [line_count_f] = (point_f [point_f_count] [0] −point_f [point_f_count + 1] [0]) 2 + (point_f [point_f_count] [1] −point_f [point_f_count + 1] [1]) 2 length_l [line_count_l] = (Point_l [point_l_count] [0]-point_l [point_l_count + 1] [0]) 2 + (point_l [point_l_count] [1]-point_l [point_l_count + 1] [1]) 2 length_f [0] = (point_l [0] [0] ] −point_f [0] [0]) 2 + (point_l [0] [1] −point_f [0] [1]) 2 length_l [0] = (point_l [point_l_count] [0] −point_f [point_f_count] [0 ]) 2 + (point_l [point_l_count] [1] −point_f [point_f_count] [1]) 2 (7)

【0034】次に、各項点間の距離を比較し、一番長い
距離の2頂点(x1,y1)、(x2,y2)を選択する
(ステップS331)。さらに、選択された2頂点を通
る直線の方程式を下記の式に従って算出する(ステップ
S332)。
Next, the distances between the respective item points are compared, and the two vertices (x 1 , y 1 ) and (x 2 , y 2 ) having the longest distance are selected (step S331). Further, an equation of a straight line passing through the two selected vertices is calculated according to the following equation (step S332).

【数8】 Y=(y2−y1)/(x2−x1)*X−(x12−x21)/(x2−x1) (8) ここに、傾きは(y2−y1)/(x2−x1)であり、y切片
は−(x12−x21)/(x2−x1)である。これによ
り、原稿の最も長い線分(辺)が決定される。四角形で
ない原稿でも、その最も長い辺が決定される。
Y = (y 2 −y 1 ) / (x 2 −x 1 ) * X− (x 1 y 2 −x 2 y 1 ) / (x 2 −x 1 ) (8) Is (y 2 −y 1 ) / (x 2 −x 1 ), and the y intercept is − (x 1 y 2 −x 2 y 1 ) / (x 2 −x 1 ). Thereby, the longest line segment (side) of the document is determined. The longest side of a non-rectangular document is also determined.

【0035】次に、原稿の領域を決定するために、ステ
ップS332で算出された直線に直交する直線で、且
つ、原稿頂点検出処理により検出された頂点を通る直線
をすべて算出する(ステップS333)。直交する直線
の方程式は、下記のようになり、この方程式のX及びY
に各項点の座標を代入し、y切片であるbを求めること
になる。
Next, in order to determine the area of the document, all the straight lines that are orthogonal to the straight lines calculated in step S332 and pass through the vertices detected by the document vertex detection process are calculated (step S333). . The equation of the orthogonal line is:
Are substituted for the coordinates of each term, and b, which is the y-intercept, is obtained.

【数9】 Y=(x2−x1)/(y2−y1)*X−b (9) そして、上述のように算出された各頂点を通る直線のy
切片であるbの内、最大値Vbmaxと最小値Vbminを算
出する(ステップS334)。
Y = (x 2 −x 1 ) / (y 2 −y 1 ) * X−b (9) And y of the straight line passing through each vertex calculated as described above
Among b the intercept, and calculates the maximum value Vb max and the minimum value Vb min (step S334).

【0036】また、ステップS332で算出された直線
に平行な直線で、且つ、原稿頂点検出処理により検出さ
れた頂点を通る直線をすべて算出する(ステップS33
5)。平行な直線の方程式は、下記のようになり、この
方程式のX及びYに各頂点の座標を代入し、y切片であ
るbを求めることになる。
Further, all the straight lines parallel to the straight line calculated in step S332 and passing through the vertices detected by the document vertex detecting process are calculated (step S33).
5). The equation of the parallel straight line is as follows. The coordinates of each vertex are substituted into X and Y of this equation, and b which is a y-intercept is obtained.

【数10】 Y=(y2−y1)/(x2−x1)*X−b (10) そして、ステップS335により算出された各頂点を通
る平行な直線のy切片であるbの内、最大値Hbmax
最小値Hbminを算出する(ステップS336)。
Y = (y 2 −y 1 ) / (x 2 −x 1 ) * X−b (10) Then, b of the y-intercept of the parallel straight line passing through each vertex calculated in step S 335 is calculated. among calculates the maximum value Hb max and the minimum value Hb min (step S336).

【0037】以上の処理により、原稿領域を取り囲む以
下の4直線の方程式が算出されたことになる。直交する
直線は次のとおりである。
By the above processing, the following four straight line equations surrounding the document area are calculated. The orthogonal straight lines are as follows.

【数11】 Y=(x2−x1)/(y2−y1)*X−Vbmax (11) Y=(x2−x1)/(y2−y1)*X−Vbmin (12) また、平行な直線は次のとおりである。Y = (x 2 −x 1 ) / (y 2 −y 1 ) * X−Vb max (11) Y = (x 2 −x 1 ) / (y 2 −y 1 ) * X−Vb min (12) The parallel straight lines are as follows.

【数12】 Y=(y2−y1)/(x2−x1)*X−Hbmax (13) Y=(y2−y1)/(x2−x1)*X−Hbmin (14) 次に、上記の平行な直線及び直交する直線のそれぞれの
交点を算出することにより、原稿領域としての4点の座
標を決定する(ステップS337)。そして、算出され
た4点の座標から、X座標の最小のものと最大のもの、
Y座標の最小のものと最大のものを抽出し、それぞれ
(Xmin,Y1)、(Xmax,Y2)、(X1,Ymin)、
(X2,Ymax)と定義付ける(ステップS338〜S3
41)。このようにして、求まった直線(傾きを表す)
に対して直交および平行である直線をすべてのエッジ変
化点について求めることによって原稿領域が検出され
る。
Y = (y 2 −y 1 ) / (x 2 −x 1 ) * X−Hb max (13) Y = (y 2 −y 1 ) / (x 2 −x 1 ) * X−Hb min (14) Next, the coordinates of the four points as the document area are determined by calculating the respective intersections of the parallel straight line and the orthogonal straight line (step S337). Then, from the calculated coordinates of the four points, the minimum and maximum X coordinates are obtained,
The minimum and maximum Y coordinates are extracted, and (X min , Y 1 ), (X max , Y 2 ), (X 1 , Y min ),
(X 2 , Y max ) (Steps S338 to S3)
41). In this way, the straight line obtained (representing the slope)
A document area is detected by obtaining straight lines that are orthogonal and parallel with respect to all edge change points.

【0038】図30は、編集処理(図22、ステップS
22)のフローチャートである。ここでは、図10と図
11で説明した回転処理部310に対するCPUのデー
タ及びコマンド設定の実際の処理内容となる。まず、領
域アドレス設定処理(図22、ステップS21)で抽出
された4点の座標を、変換領域座標として設定する(ス
テップS401)。次に、特定の2つの座標間距離を比
較することにより、原稿の傾き方向を判断し、回転座標
変換及び回転角度の設定を行う。ここでは、図18〜図
21に示すルールに従って設定を行う。
FIG. 30 shows the editing process (FIG. 22, step S
It is a flowchart of 22). Here, the actual processing contents of CPU data and command setting for the rotation processing unit 310 described with reference to FIGS. First, the coordinates of the four points extracted in the area address setting process (FIG. 22, step S21) are set as conversion area coordinates (step S401). Next, by comparing the distance between two specific coordinates, the inclination direction of the document is determined, and the rotation coordinate conversion and the rotation angle are set. Here, the setting is performed according to the rules shown in FIGS.

【0039】X1−Xmin>Y1−Yminの場合(ステップ
S402でYES)、回転座標(x,y)の原点は、
(Xmin,Y1)、回転角度θは、tan-1((Ymax−Y
1)/(X2−Xmin))(回転方向は反時計回り方向)とす
る(ステップS403、S404)。また、X1−Xmin
<Y1−Yminの場合(ステップS402でNO)、回転
座標(x,y)の原点は、(X1,Ymin)、回転角度θ
は、−tan-1((Y1−Ymin)/(Xmin−X1))(回転
方向は時計回り方向)とする(ステップS405、S4
06)。以上の条件に従うことにより、小さい補正角度
(45°以下)で補正の基準となる辺の位置と基準座標
の位置が統ーされる。その後、編集原点座標(u0
0)を設定し(ステップS407)、準備ができたら
(ステップS408)、上述の設定を基に回転処理を実
行する(ステップS409)。
If X 1 −X min > Y 1 −Y min (YES in step S402), the origin of the rotational coordinates (x, y) is
(X min , Y 1 ) and the rotation angle θ are tan −1 ((Y max −Y
1 ) / (X 2 −X min )) (rotation direction is counterclockwise) (steps S403 and S404). X 1 −X min
In the case of <Y 1 −Y min (NO in step S402), the origin of the rotation coordinates (x, y) is (X 1 , Y min ) and the rotation angle θ
Is −tan −1 ((Y 1 −Y min ) / (X min −X 1 )) (the rotation direction is clockwise) (steps S 405 and S 4).
06). By following the above conditions, the position of the side serving as the reference for correction and the position of the reference coordinates are integrated at a small correction angle (45 ° or less). Then, edit origin coordinates (u 0 ,
v 0 ) is set (step S407), and when the preparation is completed (step S408), a rotation process is executed based on the above settings (step S409).

【0040】図31は、画像データ出力(図22、ステ
ップS19)のフローチャートである。まず、ペーパー
サイズの座標(Upaper,Vpaper)を設定する(ステッ
プS501)。次に、イレースする必要のある領域があ
るか否かを判定し(ステップS502)、イレースする
必要のある領域がある場合は、イレース領域座標の2点
(Uerase0,Verase0),(Uerase1,Verase1)を設
定する(ステップS503)。その後、イレース設定が
終了したかを判定し(ステップS504)、終了してい
なければステップS503に戻る。イレース設定が終了
し、準備ができたら(ステップS505でYES)、出
力イネーブルとし、プリンタへのデータ転送を許可する
(ステップS506)。
FIG. 31 is a flowchart of image data output (FIG. 22, step S19). First, the paper size coordinates (U paper , V paper ) are set (step S501). Next, it is determined whether there is an area that needs to be erased (step S502). If there is an area that needs to be erased , two points (U erase0 , V erase0 ) and (U erase1 ) of the erase area coordinates are determined. , V erase1 ) are set (step S503). Thereafter, it is determined whether the erase setting has been completed (step S504), and if not, the process returns to step S503. When the erase setting is completed and the preparation is completed (YES in step S505), the output is enabled and the data transfer to the printer is permitted (step S506).

【0041】図32は、傾き補正モードでない場合に実
行されるスルー処理(図22、ステップS18)のフロ
ーチャートである。まず、最大サイズの4点の座標を、
変換領域座標として設定する(ステップS601)。そ
して、回転座標は、原画像原点とし(ステップS60
2)、回転角度は0°(ステップS603)、編集原点
座標(u0,v0)は、(α,β)として設定する(ステ
ップS604)。準備ができたら(ステップS60
5)、上記の設定を基に回転処理を実行する(ステップ
S606)。
FIG. 32 is a flowchart of a through process (FIG. 22, step S18) executed when the mode is not the tilt correction mode. First, the coordinates of the four points of the maximum size are
The coordinates are set as conversion area coordinates (step S601). Then, the rotation coordinates are set to the original image origin (step S60).
2), the rotation angle is set to 0 ° (step S603), and the editing origin coordinates (u 0 , v 0 ) are set as (α, β) (step S604). When ready (Step S60
5) A rotation process is executed based on the above settings (step S606).

【0042】[0042]

【発明の効果】この発明によれば、原稿検出において、
矩形以外の原稿の場合でも、原稿が傾いて置かれても、
全エッジ変化点を含む適切な原稿領域及び原稿の傾きが
検出され、その結果に応じて、原稿画像の任意角補正が
される。これにより、原稿台上の位置、原稿の傾き、原
稿の形状を気にすることなく、原稿を原稿台に載置する
だけで、所望の複写物を簡単に得ることができる。
According to the present invention, in document detection,
Even if the document is not rectangular,
An appropriate document area including all the edge change points and the inclination of the document are detected, and an arbitrary angle correction of the document image is performed according to the result. Thus, a desired copy can be easily obtained simply by placing the document on the document table without concern for the position on the document table, the inclination of the document, and the shape of the document.

【図面の簡単な説明】[Brief description of the drawings]

【図1】複写機の内部構成の概略を示す正面図。FIG. 1 is a front view schematically showing the internal configuration of a copying machine.

【図2】制御系の全体ブロックを示すブロック図。FIG. 2 is a block diagram showing entire blocks of a control system.

【図3】操作パネルの構成を示す平面図。FIG. 3 is a plan view showing a configuration of an operation panel.

【図4】回転メモリユニット制御部の画像入出カインタ
ーフェースの構成を示すブロック図。
FIG. 4 is a block diagram illustrating a configuration of an image input / output interface of a rotating memory unit control unit.

【図5】画像読取制御部より転送される画像データのシ
ーケンスを示す図。
FIG. 5 is a diagram showing a sequence of image data transferred from the image reading control unit.

【図6】画像形成制御部へ転送する画像データのシーケ
ンスを示す図。
FIG. 6 is a diagram showing a sequence of image data to be transferred to an image forming control unit.

【図7】回転メモリユニット制御部のブロック図。FIG. 7 is a block diagram of a rotary memory unit control unit.

【図8】原稿エッジ検出回路の回路図。FIG. 8 is a circuit diagram of a document edge detection circuit.

【図9】座標データ発生回路の回路図。FIG. 9 is a circuit diagram of a coordinate data generation circuit.

【図10】回転処理部のブロック図。FIG. 10 is a block diagram of a rotation processing unit.

【図11】回転処理部の動作を説明する図。FIG. 11 is a diagram illustrating the operation of a rotation processing unit.

【図12】出力ページメモリ部のブロック図。FIG. 12 is a block diagram of an output page memory unit.

【図13】出力ページメモリ部の動作を説明する図。FIG. 13 is a diagram illustrating an operation of an output page memory unit.

【図14】プラテンガラス上にセットされた原稿を示す
図。
FIG. 14 is a view showing a document set on a platen glass.

【図15】原稿を読み取る様子を説明する図。FIG. 15 is a view for explaining how a document is read.

【図16】エッジの変化点及び線分を説明する図。FIG. 16 is a diagram illustrating a change point and a line segment of an edge.

【図17】原稿領域設定を説明する図。FIG. 17 is a view for explaining document area setting.

【図18】原稿の傾き方向を説明する図。FIG. 18 is a view for explaining the inclination direction of a document.

【図19】回転角度の設定を説明する図。FIG. 19 is a diagram illustrating setting of a rotation angle.

【図20】原稿の傾き方向を説明する図。FIG. 20 is a diagram illustrating the direction of inclination of a document.

【図21】回転角度の設定を説明する図。FIG. 21 is a diagram illustrating setting of a rotation angle.

【図22】全体の流れを示すフローチャート。FIG. 22 is a flowchart showing the overall flow.

【図23】入力処理の一部のフローチャート。FIG. 23 is a partial flowchart of an input process.

【図24】入力処理の一部のフローチャート。FIG. 24 is a flowchart of a part of an input process.

【図25】原稿頂点検出の一部のフローチャート。FIG. 25 is a flowchart of a part of document vertex detection.

【図26】原稿頂点検出の一部のフローチャート。FIG. 26 is a flowchart of a part of document vertex detection.

【図27】原稿頂点検出の一部のフローチャート。FIG. 27 is a flowchart of a part of document vertex detection.

【図28】領域アドレス設定処理の一部のフローチャー
ト。
FIG. 28 is a flowchart of a part of an area address setting process;

【図29】領域アドレス設定処理の一部のフローチャー
ト。
FIG. 29 is a flowchart of a part of an area address setting process;

【図30】編集処理のフローチャート。FIG. 30 is a flowchart of an editing process.

【図31】画像データ出力のフローチャート。FIG. 31 is a flowchart of image data output.

【図32】スルー処理の詳細を示すフローチャート。FIG. 32 is a flowchart showing details of a through process.

【符号の説明】 10 走査系、 20 画像信号処理部、 30 回転
メモリユニット部、40 印字処理部、 60 レーザ
ー光学系、 70 作像系、 500 原稿搬送部,
302 入力ページメモリ、 304 原稿エッジ検出
部、 308スタックメモリ、 310 回転処理部、
312 出力ページメモリ、 314 CPU。
[Description of Signs] 10 scanning system, 20 image signal processing unit, 30 rotation memory unit unit, 40 print processing unit, 60 laser optical system, 70 image forming system, 500 document transport unit,
302 input page memory, 304 original edge detection unit, 308 stack memory, 310 rotation processing unit,
312 output page memory, 314 CPU.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 廣田 創 大阪府大阪市中央区安土町二丁目3番13号 大阪国際ビル ミノルタ株式会社内 (72)発明者 遠山 大雪 大阪府大阪市中央区安土町二丁目3番13号 大阪国際ビル ミノルタ株式会社内 ──────────────────────────────────────────────────続 き Continued on the front page (72) Inventor Sou Hirota 2-3-13 Azuchicho, Chuo-ku, Osaka-shi, Osaka Inside Osaka International Building Minolta Co., Ltd. (72) Daisetsu Toyama Azuchi-cho, Chuo-ku, Osaka-shi, Osaka 2-3-13 Osaka International Building Minolta Co., Ltd.

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 原稿台に載置された原縞を読み取り、前
記原稿台上の原稿のエッジを検出するエッジ検出手段
と、 前記エッジ検出手段により検出されたエッジを基に、隣
接するエッジを結ぶ線分の傾きが変化するエッジ変化点
を抽出するエッジ変化点抽出手段と、 前記エッジ変化点抽出手段により抽出されたエッジ変化
点に基づいて原稿領域を検出する原稿領域検出手段とを
備える原稿領域検出装置。
1. An edge detecting means for reading an original fringe placed on a document table and detecting an edge of the document on the document table, and detecting an adjacent edge based on the edge detected by the edge detecting means. A document comprising: edge change point extraction means for extracting an edge change point at which the inclination of a connected line segment changes; and document area detection means for detecting a document area based on the edge change point extracted by the edge change point extraction means. Area detection device.
【請求項2】 さらに、 前記エッジ変化点抽出手段に
より抽出されたエッジ変化点を結ぶ線分に基づいて、原
稿の傾きを検出する原稿傾き検出手段を備え、 前記原稿領域検出手段は、前記エッジ変化点抽出手段に
より抽出されたエッジ変化点と前記原稿傾き検出手段に
より検出された原稿の傾きに基づいて、前記の原稿の傾
きを有し、かつ、全てのエッジ変化点を含む矩形領域を
原稿領域とすることを特徴とする請求項1に記載された
原稿領域検出装置。
2. The apparatus according to claim 1, further comprising: document inclination detecting means for detecting a document inclination based on a line segment connecting the edge change points extracted by the edge change point extracting means. Based on the edge change point extracted by the change point extraction unit and the inclination of the original detected by the original inclination detection unit, a rectangular area having the original inclination and including all the edge change points is extracted from the original. 2. The document area detecting device according to claim 1, wherein the document area is an area.
JP9345224A 1997-06-10 1997-12-15 Detector for original Pending JPH11177773A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP9345224A JPH11177773A (en) 1997-12-15 1997-12-15 Detector for original
US09/095,311 US6433896B1 (en) 1997-06-10 1998-06-10 Image processing apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9345224A JPH11177773A (en) 1997-12-15 1997-12-15 Detector for original

Publications (1)

Publication Number Publication Date
JPH11177773A true JPH11177773A (en) 1999-07-02

Family

ID=18375146

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9345224A Pending JPH11177773A (en) 1997-06-10 1997-12-15 Detector for original

Country Status (1)

Country Link
JP (1) JPH11177773A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008147976A (en) * 2006-12-08 2008-06-26 Nec Corp Image inclination correction device and image inclination correcting method
JP2009017409A (en) * 2007-07-06 2009-01-22 Pfu Ltd Image reading processor, image reader and image reading processing method
JP2009267652A (en) * 2008-04-23 2009-11-12 Murata Mach Ltd Image processing apparatus, image reading apparatus, and image processing method
US8077349B2 (en) 2006-06-12 2011-12-13 Fuji Xerox Co., Ltd Image processing apparatus and computer readable medium storing image processing program

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8077349B2 (en) 2006-06-12 2011-12-13 Fuji Xerox Co., Ltd Image processing apparatus and computer readable medium storing image processing program
JP2008147976A (en) * 2006-12-08 2008-06-26 Nec Corp Image inclination correction device and image inclination correcting method
JP2009017409A (en) * 2007-07-06 2009-01-22 Pfu Ltd Image reading processor, image reader and image reading processing method
JP2009267652A (en) * 2008-04-23 2009-11-12 Murata Mach Ltd Image processing apparatus, image reading apparatus, and image processing method

Similar Documents

Publication Publication Date Title
US5649033A (en) Image processing apparatus outputting desired image irrespective of directions of original and output paper
JP2007124523A (en) Device for simultaneously reading both side, copying device, image processor, and image processing method
JPH11177774A (en) Detector for original
JP3641935B2 (en) Document detection device
GB2178923A (en) Image processing apparatus
JP2000036907A (en) Image reader
US5892844A (en) Image processing apparatus
JPH11177775A (en) Detector for original
JPH11177773A (en) Detector for original
JPH06103410A (en) Picture processor
JPH07245682A (en) Image reader and copying machine incorporating it
JPH1169096A (en) Image forming device
JPH04150560A (en) Image processor
JP2010028682A (en) Image reading apparatus and image forming apparatus
JP3142428B2 (en) Image forming device
JPH08274970A (en) Image forming device
JP3313748B2 (en) Copying apparatus having additional information synthesizing function and additional information synthesizing method
JPH07245680A (en) Image reader and copying machine incorporating it
JP3562329B2 (en) Image forming device
JPH06311334A (en) Image forming device
JP3399716B2 (en) Image editing device
JP3151729B2 (en) Image reading device and image forming device
JPH07240835A (en) Digital copying machine
JP3563908B2 (en) Image forming apparatus and method, and method of controlling image forming apparatus
JPH06152862A (en) Copying machine