JPH11177775A - Detector for original - Google Patents

Detector for original

Info

Publication number
JPH11177775A
JPH11177775A JP9345225A JP34522597A JPH11177775A JP H11177775 A JPH11177775 A JP H11177775A JP 9345225 A JP9345225 A JP 9345225A JP 34522597 A JP34522597 A JP 34522597A JP H11177775 A JPH11177775 A JP H11177775A
Authority
JP
Japan
Prior art keywords
document
inclination
line segment
original
edge
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP9345225A
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 JP9345225A priority Critical patent/JPH11177775A/en
Priority to US09/095,311 priority patent/US6433896B1/en
Publication of JPH11177775A publication Critical patent/JPH11177775A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Input (AREA)
  • 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 in the case of presence of read pitch unevenness by deciding the inclination of a line segment with the inclination of a specific angle or below in a subscanning direction among line segments extracted by a line segment extract means as the inclination of the original. SOLUTION: An original inclination detection means decides the inclination of a line segment, less than 45 degrees with respect to a subscanning direction from among line segment extracted by a line segment extract means. Furthermore, an original area decision means decides an original area with the inclination decided by the original tilt detection means and inclin ding the line segments extracted by the line segment extract means. A CPU 314 of the detector detects the change in the indication between coordinate data of each original edge, based on coordinate data stored in a stack memory 308 obtain points (edge change points) at which the inclination is changed and the extract line segments connecting the edge change points. Then line segments less than 45 degrees with respect to a direction X area selected from among the line segments extracted by the line segment extract means.

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, and more particularly, to a digital image forming apparatus that detects a document placement position and an image area based on image data.

【0002】[0002]

【従来の技術】デジタル複写機などのデジタル画像形成
装置は、デジタル画像データの画像処理の後に、用紙上
に画像を形成する。画素毎のデジタル画像データは、原
稿台に載置された原稿の画像をCCD等の読取手段によ
り読み取って生成される。原稿の載置位置や画像領域
は、デジタル画像データに基づいて検出することができ
る。例えば、特開昭62−166651号公報に記載さ
れた原稿読取装置は、原稿の各軸方向に最大最小をとる
4点の座標を検出し、その4点を結んだ辺の隣り合う辺
の基準に対する角度を検出する。また、特開平7−29
8031号公報に記載された画像処理装置は、原稿の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. The angle with respect to. Also, JP-A-7-29
The image processing apparatus described in Japanese Patent Application Laid-Open No.
The coordinates of one vertex are detected, the inclination is calculated from the coordinates of the first and second detected vertices, and the movement amount of the document is calculated from the coordinates of the first detected vertex.

【0003】[0003]

【発明が解決しようとする課題】通常のデジタル画像形
成装置では、CCD素子などのセンサの副走査方向への
移動により原稿の画像データを得る。しかし、特開昭6
2−166651号公報や特開平7−298031号公
報に記載された装置によれば、原稿の各頂点の検出によ
り原稿の傾きを検出しており、この場合、副走査方向の
読み取りピッチのむらなどの影響により、原稿の各頂点
の位置を誤検出する可能性があり、正確な原稿の傾きや
原稿領域を検出できなかった。また、複数の原稿画像の
エッジの検出結果から原稿の傾きを検出する場合におい
ても、副走査方向に対し45°以上の線分の傾きを検出
する場合には、読み取りのピッチむらが各エッジ検出結
果のばらつく要因となり、正確な傾きや原稿領域を検出
できなかった。
In a general digital image forming apparatus, image data of a document is obtained by moving a sensor such as a CCD element in a sub-scanning direction. However, JP
According to the apparatus described in Japanese Patent Application Laid-Open No. 2-166651 or Japanese Patent Application Laid-Open No. 7-298031, the inclination of the document is detected by detecting each vertex of the document. In this case, unevenness of the reading pitch in the sub-scanning direction is detected. Due to the influence, there is a possibility that the position of each vertex of the document is erroneously detected, and it is not possible to accurately detect the inclination of the document or the document area. Also, when detecting the inclination of a document from the detection results of the edges of a plurality of document images, if the inclination of a line segment of 45 ° or more with respect to the sub-scanning direction is detected, unevenness in the read pitch may be detected at each edge. As a result, the inclination and the original area could not be detected accurately.

【0004】本発明の目的は、読み取りのピッチむらが
あっても、原稿の位置や傾きを、より高精度で誤検出が
少なく検出できる原稿検出装置を提供することである。
It is an object of the present invention to provide a document detecting apparatus capable of detecting the position and inclination of a document with higher accuracy and less erroneous detection even if the reading pitch is uneven.

【0005】[0005]

【課題を解決するための手段】本発明に係る原稿検出装
置は、原稿台に載置された原稿を読み取り、前記原稿台
上の原稿のエッジを検出するエッジ検出手段と、前記エ
ッジ検出手段により検出された連続したエッジからなる
線分を抽出する線分抽出手段と、前記線分抽出手段によ
り抽出された線分の中の、副走査方向に対して45°以
下の傾きを有する線分の傾きを原稿の傾きと決定する原
稿傾き検出手段と、前記原稿傾き検出手段により決定さ
れた傾きを備え、前記線分抽出手段により抽出された線
分を含む原稿領域を決定する原稿領域決定手段とを備え
る。原稿読み取りのピッチむらがある場合も、副走査方
向に対して45°以下の傾きを有する線分の傾きを原稿
の傾きと決定するので、適切な原稿領域及び傾きが検出
される。好ましくは、前記の原稿傾き検出手段は、副走
査方向に対して45°以下の線分のうち、一番長い線分
の傾きを原稿の傾きとする。これにより、矩形でない原
稿について、最長の辺を検出でき、それを基に適切な原
稿領域及び傾きが検出される。また、たとえば、前記の
原稿傾き検出手段は、副走査方向に対して45°以下の
線分のうち、一番長く、かつ、直交する線分の存在する
線分の傾きを原稿の傾きとする。
According to the present invention, there is provided an original detecting apparatus for reading an original placed on an original platen, detecting an edge of the original on the original platen, and an edge detecting unit. A line segment extracting unit for extracting a line segment composed of the detected continuous edges; and a line segment having an inclination of 45 ° or less with respect to the sub-scanning direction among the line segments extracted by the line segment extracting unit. Document tilt detecting means for determining the tilt as the tilt of the document; document area determining means for determining a document area including the line segment extracted by the line segment extracting means, comprising a tilt determined by the document tilt detecting means; Is provided. Even when there is unevenness in the original reading pitch, the inclination of the line segment having an inclination of 45 ° or less with respect to the sub-scanning direction is determined as the original inclination, so that an appropriate original area and inclination can be detected. Preferably, the document inclination detecting means sets the inclination of the longest line segment among the line segments of 45 ° or less with respect to the sub-scanning direction as the document inclination. Thus, the longest side of a non-rectangular document can be detected, and an appropriate document area and inclination can be detected based on the longest side. Further, for example, the document inclination detecting means sets the inclination of the longest and orthogonal line segment among the line segments of 45 ° or less with respect to the sub-scanning direction as the document inclination. .

【0006】[0006]

【発明の実施の形態】以下、本発明の実施の形態を、添
付の図面を参照して説明する。なお、これらの図面にお
いて、同じ参照番号は同一または同様なものを表す。ま
ず、図1は、本発明の実施形態に係るデジタル複写機の
全体構成を示す。複写機は、原稿を読み取って画像信号
に変換する走査系10、走査系10から送られる画像信
号を処理する画像処理ユニット20、画像処理ユニット
20から入力される画像データをそのままプリンタ装置
に出力するか、または画像データを処理してからプリン
タ装置に出力するか等の制御を行う回転メモリユニット
30、回転メモリユニット30から出力される画像デー
タに基づいて半導体レーザー61を駆動する印字処理ユ
ニット40、半導体レーザー61からのレーザー光を感
光体ドラム71上の露光位置に導くレーザー光学系、露
光による潜像を現像し、記録紙上に転写し、定着して画
像を形成する作像系、複写紙を供給し排出する用紙搬送
系、複写機本体の上面に設けられた操作パネル90(図
示しない)、原稿を搬送する原稿搬送部500から構成
されている。なお、画像読取部100は、走査系10及
び画像処理ユニット20などによって、また、プリンタ
部200は、印字処理部40、レーザー光学系60及び
作像系などによって、それぞれ構成される。
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 elements. First, FIG. 1 shows an overall configuration of a digital copying machine according to an embodiment of the present invention. The copier reads a document and converts it into an image signal, a scanning system 10, an image processing unit 20 that processes an image signal sent from the scanning system 10, and directly outputs image data input from the image processing unit 20 to a printer device. A rotation memory unit 30 for controlling whether or not image data is processed and then output to a printer device; a print processing unit 40 for driving a semiconductor laser 61 based on image data output from the rotation memory unit 30; A laser optical system for guiding laser light 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; A paper transport system for feeding and discharging, an operation panel 90 (not shown) provided on the upper surface of the copying machine main body, a document transport for transporting a document And a section 500. The image reading unit 100 includes the scanning system 10 and the image processing unit 20, and the printer unit 200 includes the print processing unit 40, the laser optical system 60, the image forming system, and the like.

【0007】原稿搬送部500は、画像読取部100の
プラテンガラス19上に、開閉可能に取り付けられる。
原稿搬送部500は、給紙トレイ510上にセットされ
た原稿を自動的にプラテンガラス19上に搬送し、ま
た、走査系10によって読取られた原稿を排紙トレイ5
11に排出する。通常モードにおいては、1枚または複
数枚の原稿を、読み取るべき面を上に向けて給紙トレイ
510にセットし、サイド規制板513を原稿の幅に合
せる。そして、エンプティセンサ(図示しない)により
原稿の有無が検知される。搬送動作が開始されると、ト
レイ511上の最下部の原稿から順に給紙ローラ501
によって用紙が搬送され、捌きローラ502と捌きパッ
ド503によって捌かれて、1枚づつ給紙される。搬送
される原稿は中間ローラ504を通り、レジストセンサ
551及び幅サイズセンサ553により原稿が検出され
た後、レジストローラ505によって斜行を補正され
る。その後、原稿は、レジストローラ505と搬送ベル
ト506により、プラテンガラス19上を搬送され、原
稿の先端が原稿スケール512に突き当たった直後に、
搬送ベルト506及びレジストローラ505は停止す
る。これにより、原稿の左端は原稿スケール512の端
縁に当接し、原稿はプラテンガラス19上の正確な位置
に設定される。このとき、次の原稿の先端はレジストロ
ーラ505に達しており、次の原稿の搬送時間を短縮す
るようになっている。
The document transport section 500 is mounted on the platen glass 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 transfers the document read by the scanning system 10 to the discharge tray 5.
Discharge to 11 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 conveyance operation is started, the sheet feeding rollers 501 are sequentially arranged from the lowermost document on the tray 511.
The paper is conveyed by the separating roller 502 and separated by the separating 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 immediately after the front end of the document abuts on the document scale 512,
The transport belt 506 and the registration roller 505 stop. As a result, the left end of the document comes into contact with the edge of the document scale 512, and the document 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, 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が図15に示すX軸(副走査)方向へ移動
しながらCCDセンサ17により画像がライン単位で検
出される(図15の破線位置)。ここで、ただし、スキ
ャナ11による実際の読み取りにおいては、図15に示
したような、X方向のサンプリングピッチが均等である
理想的状態ではなく、図16に示すように、スキャナ1
1のピッチむらにより、副走査方向のサンプリングピッ
チがばらつくのが通常である。これは、サンプリング
が、図8、図9に示すようにハードウエア回路のタイミ
ング信号(SYNCK_IR)により、すなわち、一定
時間間隔で処理されるためである。しかし、画像読取部
100におけるスキャナ11の動作は、副走査方向への
振動(ピッチむら)を伴うため、理想的なサンプリング
ピッチ位置ではサンプリングがされない。したがって、
原稿(のエッジ)は、このサンプリングピッチのばらつ
きの影響がないように検出することが望ましい。
Next, document detection using the above-described system will be described. In this system, even for 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 erroneous detections. The original placed on the platen glass is read. In FIG. 14, an image reading area indicated by a hatched portion (platen glass 19)
The area other than (white part) represents the original. In this example, the original is placed at an angle. In the image reading unit 100,
While the scanner 11 moves in the X-axis (sub-scanning) direction shown in FIG. 15, an image is detected by the CCD sensor 17 on a line-by-line basis (broken line position in FIG. 15). Here, the actual reading by the scanner 11 is not an ideal state in which the sampling pitch in the X direction is uniform as shown in FIG.
Normally, the sampling pitch in the sub-scanning direction varies due to the one pitch unevenness. This is because the sampling is processed by the timing signal (SYNCK_IR) of the hardware circuit as shown in FIGS. 8 and 9, that is, at a fixed time interval. However, since the operation of the scanner 11 in the image reading unit 100 involves vibration (pitch unevenness) in the sub-scanning direction, sampling is not performed at an ideal sampling pitch position. Therefore,
It is desirable to detect (the edge of) the document so as not to be affected by the variation in the sampling pitch.

【0023】読み取りデータに基づく編集処理は回転メ
モリユニット部30において行われる。CCDセンサ1
7からのデータは、図5に示すシーケンスに従いライン
単位で送信され、回転メモリユニット30内の入力ペー
ジメモリ302へ格納される。同時に原稿エッジ検出部
304により原稿エッジを検出する。図15、図16に
おいて、白点部が黒から白へ変化するエッジ(+EDG
E)、黒点部が白から黒へ変化するエッジ(−EDG
E)を示す。これら2つの座標データがペアでスタック
メモリ308へ順番に書込まれることになる。スタック
メモリ308内には、ライン番号Xn、+EDGEのカ
ウント値YWm、−EDGEのカウント値YBmがセット
で格納されており、格納された順番にピックアップされ
処理される。
The editing process based on the read data is performed in the rotating memory unit 30. CCD sensor 1
7 is transmitted in line units according to the sequence shown in FIG. 5 and stored in the input page memory 302 in the rotating memory unit 30. At the same time, the document edge detection unit 304 detects the document edge. 15 and 16, an edge (+ EDG) at which a white point changes from black to white
E), an edge at which the black spot changes from white to black (−EDG
E) is shown. These two sets of coordinate data are sequentially written to the stack memory 308 as a pair. In the stack memory 308, the line number X n, + EDGE count value YW m, is stored in the count value YB m is set -EDGE, are picked up in the stored order is processed.

【0024】その後、CPU314は、図17に示すよ
うに、スタックメモリ308内に格納された座標データ
より、各原稿エッジの座標データ間の傾きの変化を検出
し、傾きの変化する点(エッジ変化点)を求め、それら
エッジ変化点を結ぶ線分を抽出する(図16では、線分
a、b、d、c)。図18において、小さな丸がエッジ
変化点を示し、太い線が検出された線分を示す。スタッ
クメモリ内に格納された座標データより、各原稿エッジ
の座標データの間の傾きの変化を検出し、検出された変
化点を結ぶ線分が抽出される。そして、抽出された線分
の中で、X方向(副走査方向)に対して45゜以下の線
分(図18の例では線分520a、520c、520
e、520g)が選択される。X方向(副走査方向)に
対して45゜以下の線分を選択することにより、副走査
方向の読み取りピッチがばらついても、正確な傾きが検
出できる。好ましくは、抽出された線分の中で、X方向
(副走査方向)に対して45゜以下の線分で、かつ、一
番長い線分(図18の例では線分520a)が選択され
る。これにより、矩形でない原稿でも、原稿領域設定の
基となる最適の原稿辺が選択される。または、好ましく
は、抽出された線分の中で、X方向(副走査方向)に対
して45゜以下の線分で、かつ、直交する線分を有する
線分(図18の例では線分520a)が選択される。こ
れにより、原稿領域の誤検出が避けられる。
Thereafter, as shown in FIG. 17, the CPU 314 detects a change in 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. 18, a small circle indicates an edge change point, and a thick line indicates a detected line segment. From the coordinate data stored in the stack memory, a change in inclination between the coordinate data of each document edge is detected, and a line segment connecting the detected change points is extracted. Then, of the extracted line segments, a line segment of 45 ° or less with respect to the X direction (sub-scanning direction) (in the example of FIG. 18, the line segments 520a, 520c, and 520).
e, 520 g) are selected. By selecting a line segment of 45 ° or less with respect to the X direction (sub-scanning direction), an accurate inclination can be detected even if the reading pitch in the sub-scanning direction varies. Preferably, among the extracted line segments, the longest line segment (line segment 520a in the example of FIG. 18) that is 45 ° or less with respect to the X direction (sub-scanning direction) is selected. You. As a result, even for a non-rectangular document, an optimum document side serving as a basis for setting a document area is selected. Alternatively, preferably, among the extracted line segments, a line segment that is 45 ° or less with respect to the X direction (sub-scanning direction) and has a line segment that is orthogonal to the line segment (the line segment in the example of FIG. 18). 520a) is selected. Thereby, erroneous detection of the document area can be avoided.

【0025】ここで、抽出された線分の中で副走査方向
に対して所定角度(ここでは45゜)以下の線分を選択
する理由は以下のとおりである。1ライン上の原稿のエ
ッジは2点で検出されるので、副走査方向に対して45
゜を越える(主走査方向に対して45°以下の)角度を
持つ辺におけるエッジの検出は、図15と図16に示さ
れるように、非常に粗くなる。したがって、上述のサン
プリングピッチのばらつきの影響が非常にでやすい状態
である。逆に、副走査方向にほぼ平行な辺のサンプリン
グにおいては、多少理想的な位置からずれても、検出さ
れるエッジのアドレスの変化量は非常に小さい。そこ
で、所定角度以下か否かにより異なった取り扱いをし、
副走査方向に対して所定角度以下の線分を選択する。
Here, the reason for selecting a line segment having a predetermined angle (45 ° here) with respect to the sub-scanning direction among the extracted line segments is as follows. Since the edge of the original on one line is detected at two points, 45
Edge detection on a side having an angle exceeding ゜ (45 ° or less with respect to the main scanning direction) becomes very coarse as shown in FIGS. Therefore, the influence of the above-described variation in the sampling pitch is very likely to occur. Conversely, in sampling of a side substantially parallel to the sub-scanning direction, the amount of change in the address of the detected edge is very small even if the position slightly deviates from the ideal position. Therefore, different handling depending on whether it is below a predetermined angle,
A line segment having a predetermined angle or less with respect to the sub-scanning direction is selected.

【0026】ここで、45゜は、主走査方向に平行か副
走査方向に平行かを切り分けるしきい値であり、これに
より、ある直線(辺)の角度(傾き)が直交する2直線
(主走査方向と副走査方向)に対してどちらに近いかを
切り分ける。通常の原稿は長方形であるので、各辺は互
いに直交している。原稿が副走査方向に対して45゜傾
くと、すべての辺が副走査方向に対して45゜の角度を
持つ。原稿の1辺が副走査方向に対して45゜の角度を
持つと、すべての辺が副走査方向に対して45゜の角度
を持つ。また、副走査方向に対して45゜を越える角度
を持つ辺は、主走査方向に対して45゜以下の角度を持
つ辺である。また、その辺に隣合う辺は、副走査方向に
対して45゜以下の角度を持つ辺であり、その辺に対向
する辺は、副走査方向に対して45゜を越える角度を持
つ辺である。したがって、副走査方向にほぼ平行な辺を
注目する場合は、副走査方向に対して45゜以下の角度
を持つ辺を探せばよい。
Here, 45 ° is a threshold value for discriminating whether parallel to the main scanning direction or parallel to the sub-scanning direction, whereby two straight lines (main lines) in which the angle (inclination) of a certain straight line (side) is orthogonal. (The scanning direction and the sub-scanning direction). Since a normal document is rectangular, each side is orthogonal to each other. When the document is inclined by 45 ° with respect to the sub-scanning direction, all sides have an angle of 45 ° with respect to the sub-scanning direction. If one side of the document has an angle of 45 ° with respect to the sub-scanning direction, all sides have an angle of 45 ° with respect to the sub-scanning direction. A side having an angle exceeding 45 ° with respect to the sub-scanning direction is a side having an angle of 45 ° or less with respect to the main scanning direction. Further, a side adjacent to the side is a side having an angle of 45 ° or less with respect to the sub-scanning direction, and a side facing the side is a side having an angle exceeding 45 ° with respect to the sub-scanning direction. is there. Therefore, when attention is paid to a side substantially parallel to the sub-scanning direction, a side having an angle of 45 ° or less with respect to the sub-scanning direction may be searched for.

【0027】こうして選択された線分を基に、原稿の傾
きが決定される。また、検出された全頂点を含む原稿領
域を定義するための4点の座標(図中の大きな丸)決定
する。また、一番長い線分の傾きより、原稿の傾き方向
及び回転角度を検出する。図19は、X1−Xmin<Y1
−Yminの場合の原稿の位置を示し、図20は、この原
稿の回転角度の設定を示す。回転は、(X1,Ymin)を
原点とし、回転角度θは−tan-1{(Y1−Ymin)/
(Xmin−X1)}である。また、図21は、X1−Xmin
1−Yminの場合の原稿の位置を示し、図22は、この
原稿の回転角度の設定を示す。回転は、(Xmin,Y1
を原点とし、回転角度θは−tan-1{(Ymax−Y1)/
(X2−Xmin)}である。以上の結果により、回転処理部
310において回転処理と平行移動のための各設定が行
われ、その設定に基づいて回転処理および平行移動処理
が行われる。そして、得られた画像データが出力ページ
メモリ312に記憶される。この画像データに基づいて
画像形成部200において画像形成がおこなわれる。
The inclination of the document is determined based on the line segment thus selected. Further, four coordinates (large circles in the figure) for defining a document area including all detected vertexes are determined. Further, the inclination direction and the rotation angle of the document are detected from the inclination of the longest line segment. FIG. 19 shows that X 1 −X min <Y 1
The position of the document in the case of −Y min is shown, and FIG. 20 shows the setting of the rotation angle of the document. The rotation is based on (X 1 , Y min ) as the origin, and the rotation angle θ is −tan −1 {(Y 1 −Y min ) /
(X min −X 1 )}. FIG. 21 shows that X 1 −X min >
FIG. 22 shows the position of the document in the case of Y 1 −Y min , and FIG. 22 shows the setting of the rotation angle of the document. The rotation is (X min , Y 1 )
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 in the rotation processing unit 310, and the rotation processing and the parallel movement processing are performed based on the settings. Then, the obtained image data is stored in the output page memory 312. The image forming section 200 forms an image based on the image data.

【0028】次に、画像形成の動作の詳細を、図23〜
図33のフローチャートに従って説明する。なお、エッ
ジ変化点の検出による各線分の抽出および原稿領域の大
きさ、傾き角度、ずれ量の算出は、画像読取制御部10
2の制御の下で、画像信号処理部20により行われ、任
意角回転を含む編集処理は、回転メモリユニット30に
て行われ、パラメータの設定などは、メモリユニット制
御部300によりなされる。ここでは説明の簡単のた
め、1つの流れの全体フローで制御を説明している。図
23は、本システムの全体フローチャートを示す。ま
ず、初期化を行い(ステップS11)、操作パネル90
からの各種スイッチ類の入力信号の制御処理(ステップ
S12、図24、図25参照)、原稿搬送装置500に
よる原稿の搬送処理(ステップS13)、原稿読取部1
00による画像入力処理(ステップS14)を行う。そ
して、画像データの入力が終了したか否かを判定し(ス
テップS15)、終了した場合は、原稿の排紙処理を行
う(ステップS16)。次に、傾き補正モードか否かを
判定する(ステップS17)。傾き補正モードでない場
合は、スルー処理(ステップS18、図34参照)で回
転処理を実行し、画像データ出力処理を行い(ステップ
S19)、ステップS12に戻る。ステップS17の判
定で、傾き補正モードである場台は、原稿頂点検出処理
(ステップS20、図26〜図28参照)、領域アドレ
ス設定処理(ステップS21、図29〜図30参照)お
よび編集処理を行い(ステップS22、図32参照)、
画像データ出力処理を行って(ステップS19、図33
参照)、ステップS12に戻る。
Next, the 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, inclination angle, and shift amount of the document area are performed by the image reading control unit 10.
The editing process including the arbitrary angle rotation is performed by the rotation memory unit 30 under the control of 2, and the setting of parameters is performed by the memory unit control unit 300. Here, for the sake of simplicity, the control is described in the entire flow of one flow. FIG. 23 shows an overall flowchart of the present system. First, initialization is performed (step S11), and the operation panel 90
(Steps S12, see FIGS. 24 and 25), document transport by the document transport device 500 (step S13), and the document reading unit 1.
Then, an image input process (Step S14) is performed. Then, it is determined whether or not the input of the image data has been completed (step S15). If the input has been completed, the document is discharged (step S16). Next, it is determined whether or not the mode is the tilt correction mode (step S17). If the mode is not the tilt correction mode, a rotation process is executed in a through process (step S18, see FIG. 34), an image data output process is performed (step S19), and the process returns to step S12. In the determination in step S17, the platform in the inclination correction mode performs the document vertex detection process (step S20, see FIGS. 26 to 28), the area address setting process (step S21, see FIGS. 29 to 30), and the editing process. (Step S22, see FIG. 32)
An image data output process is performed (step S19, FIG. 33)
Reference), and return to step S12.

【0029】図24と図25は、入力信号処理(図2
3、ステップ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)。
ステップS110の判定で表示部97bが消灯の場合
は、表示部97cは点灯状態であるので、表示部97c
を消灯し、コピー片面モードの選択を示す表示部97a
を点灯し、コピー片面モードを設定する(ステップS1
10)。
FIGS. 24 and 25 show input signal processing (FIG. 2).
3 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 S110, 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).

【0030】次に、傾き補正モードの選択設定状態を傾
き補正モード設定キー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 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).

【0031】図26〜図28は、原稿のエッジアドレス
の変化による頂点の検出処理を行う原稿頂点検出(図2
3、ステップ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. 26 to 28 show original vertex detection (FIG. 2) for detecting a vertex based on a change in the edge address of the original.
3 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 ( Xn ) where edge_first_adr ( Xn ) is + EDGE of xn line
Edge_last_adr (X n ) is -ED of X n line
GE coordinates.

【0032】次に、エッジ未検出ラインを抽出する。ま
ず、変数及びフラグを初期化する(ステップS30
2)。そして、x=1のラインからチェックを開始す
る。注目する1ラインにおける先端エッジアドレスedge
_first_adr(x)及び後端エッジアドレスedge_last_adr
(x)が、共にε1以上かどうかを判定する(ステップS
303)。なお、ε1の値は、原稿スケールの位置のY
方向のアドレスが適当である。edge_first_adr(x)とed
ge_last_adr(x)の両方がε1よりも大きい場合は、原
稿のエッジを検出したと判断し、ステップS306へ進
む。各エッジアドレスのいずれかが、ε1よりも小さい
場合には、エッジ未検出のラインであると判断し、次
に、原稿の先端を検出しているかどうかのフラグである
flg_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. Leading edge address edge in one line of interest
_first_adr (x) and trailing edge address edge_last_adr
(x) is determined to be both ε1 or more (step S
303). Note that the value of ε1 is Y at the position of the original scale.
The direction address is appropriate. edge_first_adr (x) and ed
If both ge_last_adr (x) are greater than ε1, it is determined that an 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 flg_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.

【0033】次に、 原稿先端の処理を説明する。まず、
原稿の先端を検出しているかどうかのフラグであるflg_
doc_topをチェックする(ステップS306)。原稿の
先端を検出していない場合(ステップS306でNO)
は、上記エッジ未検出ラインの処理において、チェック
されていないx−1ラインの各エッジアドレスが、共に
ε1よりも大きいかどうか判定し(ステップS30
7)、共にε1よりも大きければx−1ラインの値を各
エッジアドレスの線分検出の始点として、以下の値を各
頂点用の配列point_f、point_lに格納する(ステップS
308)。
Next, the 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に格納する(ステ
ップS309)。
[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 using the value of the x-line as the start point of line segment detection of each edge address (step S309) ).

【数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.

【0034】次に、傾きの変化の検出(線分(頂点)の
検出)を説明する。まず、以下の式(5)の通り、注目
ラインの前後の連続する3ラインの各ラインにおける先
端エッジアドレスedge_first_adr(x−1)〜edge_first
_adr(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 in each of three consecutive lines before and after the line of interest.
_adr (x + 1) and the trailing edge address edge_last_adr (x
-1) The absolute value of the difference between 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)

【0035】次に、ステップS311で算出された先端
エッジアドレスの差の絶対値cline_f(x−
1)、cline_f(x+1)が、共にε2よりも小さいかどう
かを判定する(ステップS313)。なお、ε2の値は2
mm程度が適当である。cline_f(x−1)、cline_l(x
+1)の内のいずれかがε2よりも大きい場合(ステッ
プS313でNO)は、主走査方向とほぼ平行な線分で
あると判断し、ただちに後端エッジのためのステップS
317に進む。また、cline_f(x−1)、cline_f(x+
1)の両方がε2よりも小さい場合(ステップS313
でYES)は、各先端エッジアドレスは、急激なエッジ
アドレスの変化がないので、原稿の主走査方向とほぼ平
行な辺ではないと判断し、ステップS314へ進む。そ
して、同じ線分上にあるかないかを判断するために、上
記ステップS312で算出された先端エッジアドレスの
傾きの差の絶対値sub_fが、ε3よりも小さいかどうか
を判定する(ステップS314)。なお、ε3の値は8
ドット程度が適当である。sub_fがε3よりも大きい場
合(ステップS314でNO)は、先端エッジアドレス
の傾きの変化があったと判断し、頂点の設定処理(ステ
ップS315)へ進み、注目ラインのライン数xと、注
目ラインの先端エッジアドレスedge_first_adr(x)を先
端エッジ頂点用の配列point_fに格納し、先端エッジの
頂点のカウンタをインクリメントする(ステップS31
6)。そして、ステップS316へ進む。また、sub_f
がε3よりも小さい場合(ステップS314でYES)
は、後端エッジアドレスの傾きは、急激な変化がないの
で、原稿の辺の頂点ではないと判断し、ただちにステッ
プS317へ進む。
Next, the absolute value of the difference between the leading edge addresses calculated in step S311, line_f (x−
1) It is determined whether both cline_f (x + 1) are smaller than ε2 (step S313). The value of ε2 is 2
mm is appropriate. cline_f (x-1), cline_l (x
If any one of +1) is larger than ε2 (NO in step S313), it is determined that the line segment is substantially parallel to the main scanning direction, and immediately the step S for the trailing edge is performed.
Proceed to 317. Also, cline_f (x-1), cline_f (x +
1) Both are smaller than ε2 (step S313)
YES), it is determined that each leading edge address is not substantially parallel to the main scanning direction of the document because there is no rapid 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, it is determined whether or not the absolute value sub_f of the difference between the inclinations of the leading edge addresses calculated in step S312 is smaller than ε3 (step S314). The value of ε3 is 8
Dots are appropriate. If sub_f is larger than ε3 (NO in step S314), 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 x of the target line and the number of the target line The leading edge address edge_first_adr (x) is stored in the leading edge vertex array point_f, and the leading edge vertex counter is incremented (step S31).
6). Then, the process proceeds to step S316. Also, sub_f
Is smaller than ε3 (YES in step S314)
Determines that the inclination of the trailing edge address is not a vertex of the side of the document because there is no rapid change, and the process immediately proceeds to step S317.

【0036】同様に、ステップ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.

【0037】図29〜図30は、原稿頂点検出の処理
(図23、ステップS20)により検出された各頂点よ
り原稿の領域を定義付けするための4点座標の設定処理
を行う領域アドレス設定処理(図23、ステップS2
1)のフローチャートである。まず、各頂点間の距離の
算出(線分の長さの算出)をする。はじめに、隣り合う
各頂点間の距離を算出する(ステップS330)。ここ
では、各頂点間の距離を比較することを目的とするた
め、下記の通り、x,y方向のそれぞれの差の2乗の和
を算出する。また、隣り合う頂点とは、先端エッジの最
初の頂点(point_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. 29 and 30 show an area address setting process for setting four-point coordinates for defining an area of a document from each vertex detected in the document vertex detection process (FIG. 23, step S20). (FIG. 23, Step S2
It is a flowchart of 1). 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, since the purpose is to compare the distances between the vertices, the sum of the squares of the differences in the x and y directions is calculated as described below. The adjacent vertices are the first vertex of the leading edge (point_f [0] [0], point_f [0] [1]) and 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 edge of the trailing edge (point_l [0] [0], point_l [0] [1]). Vertices that match.

【数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)

【0038】次に、各項点間の距離を比較し、一番長い
距離の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切片をline[point_count][0]とline[point_coun
t][1]に格納する。
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 ). Line [point_count] [0] and line [point_coun
t] [1].

【0039】次に、求められた各線分の直線の方程式
(傾きとy切片)より、副走査方向に対して45゜以下
の線分か否かによってグループ分けを行う(ステップS
332)。ここで、傾き(line[point_count][0])が
"1”の場合が45゜の線分であり、副走査方向がY方
向にあたるため、傾きが "1”以上の線分(line[point
_count][0]>1)を抽出することにより、副走査方向
に対して45゜以下の線分であると判定できる。次に、
グループ化された副走査方向に対して45゜以下の線分
のうち、最も長い線分を抽出する(ステップS33
3)。次に、その線分の有効性を高めるために、その線
分にほぼ直交する線分が存在するか否かをチェックし
(ステップS334)、存在しなければ、今回抽出した
線分を、副走査方向に対して45゜以下の線分のグルー
プから削除し(ステップS325)、ステップS333
に戻り、処理を繰り返す。その線分にほぼ直交する線分
が存在すれば(ステップS334でYES)、その線分
の傾きline[point_count][0]を原稿の傾きdoc_clineと
する(ステップS336)。
Next, grouping is performed based on the obtained linear equation (slope and y-intercept) of each line segment based on whether or not the line segment is 45 ° or less with respect to the sub-scanning direction (step S).
332). Here, the slope (line [point_count] [0]) is
The case of “1” is a 45 ° line segment, and the sub-scanning direction corresponds to the Y direction, so that a line segment having a slope of “1” or more (line [point
By extracting _count] [0]> 1), it can be determined that the line segment is 45 ° or less with respect to the sub-scanning direction. next,
The longest line segment is extracted from the line segments of 45 ° or less with respect to the sub-scanning direction (step S33).
3). Next, in order to enhance the effectiveness of the line segment, it is checked whether or not a line segment substantially orthogonal to the line segment exists (step S334). It is deleted from the group of line segments of 45 ° or less with respect to the scanning direction (step S325), and step S333.
And repeat the process. If there is a line segment that is substantially perpendicular to the line segment (YES in step S334), the gradient line [point_count] [0] of the line segment is set as the document gradient doc_cline (step S336).

【0040】以上に説明したように、副走査方向に対し
て45゜以下の線分のうち、一番長く、かつ、直交する
線分を抽出し、後に説明するように、この抽出された線
分の傾きを基に原稿の傾きを決定することになる。たと
えば、図31に示す非矩形原稿の例を説明すると、副走
査方向に対して45゜以下の線分のグループは、辺Aと
Cである。ここで、副走査方向に対して45゜以下の線
分のうち一番長い線分は辺Cである。しかし、この原稿
の場合、図から明らかなように、辺Cを基に原稿の傾き
を決めるのは好ましくない。この辺には、直交する線分
が存在しない。そこで、辺Cを選択対象から除くと、次
に検討されるのは辺Aである。辺Aには、直交する線分
B、Dが存在する。そこで、辺Aを選択する。このよう
に、図に示すような非矩形原稿の場合、直交する線分が
存在するか否かを検討することにより正しい辺が選択で
きる。
As described above, the longest and orthogonal line segment is extracted from the line segments of 45 ° or less with respect to the sub-scanning direction, and as will be described later, the extracted line segment is extracted. The inclination of the document is determined based on the minute inclination. For example, to explain an example of a non-rectangular document shown in FIG. 31, a group of line segments of 45 ° or less with respect to the sub-scanning direction is sides A and C. Here, the longest line segment among the line segments of 45 ° or less with respect to the sub-scanning direction is the side C. However, in the case of this original, it is not preferable to determine the inclination of the original based on the side C, as is apparent from the drawing. There are no orthogonal line segments on this side. Therefore, if the side C is excluded from the selection targets, the side A is considered next. Side A has orthogonal line segments B and D. Therefore, the side A is selected. As described above, in the case of a non-rectangular document as shown in the drawing, a correct side can be selected by examining whether an orthogonal line segment exists.

【0041】次に、原稿の領域を決定するために、ステ
ップS336で算出された直線に直交する直線で、且
つ、原稿頂点検出処理により検出された頂点を通る直線
をすべて算出する(ステップS337)。直交する直線
の方程式は、下記のようになり、この方程式のX及びY
に各項点の座標を代入し、y切片であるbを求めること
になる。
Next, in order to determine the area of the document, all the straight lines orthogonal to the straight line calculated in step S336 and passing through the vertices detected by the document vertex detection process are calculated (step S337). . 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=−1/doc_cline*X−b (9) そして、上述のように算出された各頂点を通る直線のy
切片であるbの内、最大値Vbmaxと最小値Vbminを算
出する(ステップS338)。また、ステップS336
で算出された直線に平行な直線で、且つ、原稿頂点検出
処理により検出された頂点を通る直線をすべて算出する
(ステップS339)。平行な直線の方程式は、下記の
ようになり、この方程式のX及びYに各頂点の座標を代
入し、y切片であるbを求めることになる。
Y = −1 / doc_cline * 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 S338). Step S336
Then, all the straight lines parallel to the straight line calculated in and passing through the vertices detected by the document vertex detection process are calculated (step S339). 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=doc_cline*X−b (10) そして、ステップS339により算出された各頂点を通
る平行な直線のy切片であるbの内、最大値Hbmax
最小値Hbminを算出する(ステップS340)。
Equation 10] Y = doc_cline * X-b ( 10) Of the b is the y intercept of a straight line parallel through each vertex calculated in the step S339, and calculates the maximum value Hb max and the minimum value Hb min (Step S340).

【0042】以上の処理により、原稿領域を取り囲む以
下の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=−1/doc_cline*X−Vbmax (11) Y=−1/doc_cline*X−Vbmin (12) また、 平行な直線は次のとおりである。Y = −1 / doc_cline * X−Vb max (11) Y = −1 / doc_cline * X−Vb min (12) The parallel straight lines are as follows.

【数12】 Y=doc_cline*X−Hbmax (13) Y=doc_cline*X−Hbmin (14) そこで、y切片が最大値及び最小値である上記の平行な
直線及び直交する直線のそれぞれの交点を算出すること
により、原稿領域としての4点の座標を決定する(ステ
ップS341)。次に,決定された4点の座標から、X
座標の最小のものと最大のもの、Y座標の最小のものと
最大のものを抽出し、それぞれ(Xmin,Y1)、(X
max,Y2)、(X1,Ymin)、(X2,Ymax)と定義付
ける(ステップS341〜S345)。こうして、原稿
領域が検出される。
Y = doc_cline * X−Hb max (13) Y = doc_cline * X−Hb min (14) Then, each of the above-mentioned parallel straight line and the orthogonal straight line whose y-intercept is the maximum value and the minimum value is By calculating the intersection, the coordinates of four points as the document area are determined (step S341). Next, from the coordinates of the determined four points, X
The minimum and maximum coordinates and the minimum and maximum Y coordinates are extracted, and (X min , Y 1 ), (X
max , Y 2 ), (X 1 , Y min ), and (X 2 , Y max ) (Steps S341 to S345). Thus, the document area is detected.

【0043】図32は、編集処理(図23、ステップS
22)のフローチャートである。ここでは、図10と図
11で説明した回転処理部310に対するCPUのデー
タ及びコマンド設定の実際の処理内容となる。まず、領
域アドレス設定処理(図23、ステップS21)で抽出
された4点の座標を、変換領域座標として設定する(ス
テップS401)。次に、特定の2つの座標間距離を比
較することにより、原稿の傾き方向を判断し、回転座標
変換及び回転角度の設定を行う。ここでは、図19〜図
22に示すルールに従って設定を行う。
FIG. 32 shows the editing process (FIG. 23, 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. 23, 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.

【0044】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
If ≦ 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).

【0045】図33は、画像データ出力(図23、ステ
ップS19)のフローチャートである。まず、ペーパー
サイズの座標(Upaper,Vpaper)を設定する(ステッ
プS501)。次に、イレースする必要のある領域があ
るか否かを判定し(ステップS502)、イレースする
必要のある領域がある場合は、イレース領域座標の2点
(Uerase0,Verase0),(Uerase1,Verase1)を設
定する(ステップS503)。その後、イレース設定が
終了したかを判定し(ステップS504)、終了してい
なければステップS503に戻る。イレース設定が終了
し、準備ができたら(ステップS505でYES)、出
力をイネーブルとし、フリンタへのデータ転送を許可す
る(ステップS506)。
FIG. 33 is a flowchart of the image data output (FIG. 23, 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).

【0046】図34は、傾き補正モードでない場合に実
行されるスルー処理(図23、ステップS18)のフロ
ーチャートである。まず、最大サイズの4点の座標を、
変換領域座標として設定する(ステップS601)。そ
して、回転座標は、原画像原点とし(ステップS60
2)、回転角度は0°(ステップS603)、編集原点
座標(u0,v0)は、(α,β)(ステップS604)
として設定する。準備ができたら(ステップS60
5)、上記の設定を基に回転処理を実行する(ステップ
S606)。
FIG. 34 is a flowchart of the through processing (FIG. 23, 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 0 ° (step S603), and the editing origin coordinates (u 0 , v 0 ) are (α, β) (step S604).
Set as When ready (Step S60
5) A rotation process is executed based on the above settings (step S606).

【0047】[0047]

【発明の効果】この発明によれば、原稿が傾いて置かれ
たとき、原稿読み取りにおいて副走査方向に読み取りピ
ッチがばらついても、適切な原稿領域及び原稿の傾きが
精度よく、誤検出が少なく検出され、その結果に応じ
て、原稿画像の任意角回転補正がされる。また、原稿の
形が矩形でなくても、適切な原稿領域及び原稿の傾きが
検出される。これにより、原稿を原稿台上の位置、原稿
の傾き、原稿の形状を気にすることなく、原稿台に載置
するだけで、所望の複写物を簡単に得ることができる。
According to the present invention, when the original is placed at an angle, even if the reading pitch varies in the sub-scanning direction in reading the original, an appropriate original area and the inclination of the original are accurate and the number of erroneous detections is small. Detected, and according to the result, the arbitrary angle rotation correction of the document image is performed. Further, even if the shape of the original is not rectangular, an appropriate original area and the inclination of the original are detected. Thus, a desired copy can be easily obtained simply by placing the original on the platen without regard to the position on the platen, the inclination of the original, and the shape of the original.

【図面の簡単な説明】[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 showing a configuration of an image input / output interface of a rotary 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 view for explaining a state in which a document is read when the sampling pitch for reading the document varies.

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

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

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

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

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

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

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

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

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

【図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 document vertex detection.

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

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

【図31】原稿の傾きの読み取りの1例を説明する図。FIG. 31 is a view for explaining an example of reading the inclination of a document.

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

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

【図34】スルー処理のフローチャート。FIG. 34 is a flowchart of a through process.

【符号の説明】[Explanation of symbols]

10 走査系、 20 画像信号処理部、 30 回転
メモリユニット部、40 印字処理部、 60 レーザ
ー光学系、 70 作像系、 500 原稿搬送部,
302 入力ページメモリ、 304 原稿エッジ検出
部、 308スタックメモリ、 310 回転処理部、
312 出力ページメモリ、 314 CPU。
Reference Signs List 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 (3)

【特許請求の範囲】[Claims] 【請求項1】 原稿台に載置された原稿を読み取り、前
記原稿台上の原稿のエッジを検出するエッジ検出手段
と、 前記エッジ検出手段により検出された連続したエッジか
らなる線分を抽出する線分抽出手段と、 前記線分抽出手段により抽出された線分の中の、副走査
方向に対して45°以下の傾きを有する線分の傾きを原
稿の傾きと決定する原稿傾き検出手段と、 前記原稿傾き検出手段により決定された傾きを備え、前
記線分抽出手段により抽出された線分を含む原稿領域を
決定する原稿領域決定手段とを備える原稿検出装置。
An edge detecting unit that reads an original placed on a platen and detects an edge of the original on the platen; and extracts a line segment composed of continuous edges detected by the edge detecting unit. A line segment extraction unit, a document inclination detection unit that determines the inclination of a line segment having an inclination of 45 ° or less with respect to the sub-scanning direction among the line segments extracted by the line segment extraction unit as a document inclination. And a document area determining means for determining a document area having a tilt determined by the document tilt detecting means and including a line segment extracted by the line segment extracting means.
【請求項2】 前記の原稿傾き検出手段は、副走査方向
に対して45°以下の線分のうち、一番長い線分の傾き
を原稿の傾きとすることを特徴とする請求項1に記載さ
れた原稿検出装置。
2. The original document inclination detecting device according to claim 1, wherein the inclination of the longest line segment among the line segments at 45 ° or less with respect to the sub-scanning direction is set as the original document inclination. Document detection device described.
【請求項3】 前記の原稿傾き検出手段は、副走査方向
に対して45°以下の線分のうち、一番長く、かつ、直
交する線分の存在する線分の傾きを原稿の傾きとするこ
とを特徴とする請求項1に記載された原稿検出装置。
3. The document inclination detecting means according to claim 1, wherein the inclination of the longest and orthogonal line segment among the line segments at 45 ° or less with respect to the sub-scanning direction is defined as the inclination of the document. 2. The document detecting apparatus according to claim 1, wherein:
JP9345225A 1997-06-10 1997-12-15 Detector for original Pending JPH11177775A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP9345225A JPH11177775A (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
JP9345225A JPH11177775A (en) 1997-12-15 1997-12-15 Detector for original

Publications (1)

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

Family

ID=18375153

Family Applications (1)

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

Country Status (1)

Country Link
JP (1) JPH11177775A (en)

Cited By (5)

* 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
JP2008252385A (en) * 2007-03-29 2008-10-16 Canon Electronics Inc Sheet conveying device and image reader
JP2009171218A (en) * 2008-01-16 2009-07-30 Brother Ind Ltd Image analyzer and image reader
JP2009171217A (en) * 2008-01-16 2009-07-30 Brother Ind Ltd Image analyzer and image reader
JP2012249165A (en) * 2011-05-30 2012-12-13 Brother Ind Ltd Image reading apparatus and read image data correction method

Cited By (5)

* 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
JP2008252385A (en) * 2007-03-29 2008-10-16 Canon Electronics Inc Sheet conveying device and image reader
JP2009171218A (en) * 2008-01-16 2009-07-30 Brother Ind Ltd Image analyzer and image reader
JP2009171217A (en) * 2008-01-16 2009-07-30 Brother Ind Ltd Image analyzer and image reader
JP2012249165A (en) * 2011-05-30 2012-12-13 Brother Ind Ltd Image reading apparatus and read image data correction method

Similar Documents

Publication Publication Date Title
JP4678278B2 (en) Double-sided simultaneous reading device
JPH11177774A (en) Detector for original
US8576420B2 (en) Image processing apparatus that can maintain security
JP3641935B2 (en) Document detection device
US6535706B1 (en) Image editing system and image forming system
JPH09146428A (en) Image forming device
JPH11177775A (en) Detector for original
JP3671682B2 (en) Image recognition device
JP3814995B2 (en) Image forming apparatus
JPH06103410A (en) Picture processor
JPH11177773A (en) Detector for original
JPH07245682A (en) Image reader and copying machine incorporating it
JPH1169096A (en) Image forming device
JP2010028682A (en) Image reading apparatus and image forming apparatus
JPH08251387A (en) Digital copying machine
JP3142428B2 (en) Image forming device
JP3225681B2 (en) Image forming device
JPH07245680A (en) Image reader and copying machine incorporating it
JP3562329B2 (en) Image forming device
JP3399716B2 (en) Image editing device
JPH06152862A (en) Copying machine
JP3151729B2 (en) Image reading device and image forming device
JPH07240835A (en) Digital copying machine
JP3052618B2 (en) Digital copier
JPH09200493A (en) Image forming device