JP3312787B2 - Image processing system - Google Patents

Image processing system

Info

Publication number
JP3312787B2
JP3312787B2 JP20179193A JP20179193A JP3312787B2 JP 3312787 B2 JP3312787 B2 JP 3312787B2 JP 20179193 A JP20179193 A JP 20179193A JP 20179193 A JP20179193 A JP 20179193A JP 3312787 B2 JP3312787 B2 JP 3312787B2
Authority
JP
Japan
Prior art keywords
image
data
line
point
pixel
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.)
Expired - Fee Related
Application number
JP20179193A
Other languages
Japanese (ja)
Other versions
JPH0738731A (en
Inventor
水納  亨
はるか 中村
莞爾 金井
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.)
Ricoh Co Ltd
Original Assignee
Ricoh 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP20179193A priority Critical patent/JP3312787B2/en
Publication of JPH0738731A publication Critical patent/JPH0738731A/en
Application granted granted Critical
Publication of JP3312787B2 publication Critical patent/JP3312787B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Control Or Security For Electrophotography (AREA)
  • Facsimiles In General (AREA)
  • Facsimile Scanning Arrangements (AREA)
  • Editing Of Facsimile Originals (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明は複写機など、光源からの
光を反射させて原稿を読み取る画像読み取り手段を備え
た画像処理システムに係り、特に記録紙のサイズよりも
原稿の紙サイズが小さい場合に、記録紙上に形成される
原稿像周辺の黒画像部分を除去することが可能な画像処
理システムに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing system, such as a copier, provided with an image reading means for reading an original by reflecting light from a light source, and in particular, the size of the original is smaller than the size of the recording paper. The present invention relates to an image processing system capable of removing a black image portion around a document image formed on a recording sheet in some cases.

【0002】[0002]

【従来の技術】複写を行う際、原稿の紙サイズと記録紙
のサイズが一致していれば問題ないが、例えばコンタク
トガラスの上に本を載せて圧板を開いた状態、もしくは
圧板を閉じたとしても本の凹凸をそのままにして複写を
行なうと、しばしば記録された原稿像の周辺が図4のよ
うに黒くなることが多い。これは、図5に示すように画
像読み取り手段において、コンタクトガラス801上に
置いた原稿804の周辺では光源803から出た光が原
稿804の面で反射せず、しかも圧板からの反射もない
為、撮像デバイスあるいは感光体ドラム上に光が入射し
ないから当然のことである。即ち、図から明らかなよう
に、光線aは原稿面で反射して、撮像デバイス(図示し
ていない)等に反射光が入射するので原稿面上の画像に
応じた光量の信号が入力信号として得られるが、光線b
は反射することなく遠方へ進むので、入力信号は0にな
り、従って黒データとなる。そのため、書籍類等のよう
に凹凸の大きい原稿の上方を白色の紙等で覆い、その上
から必要に応じて圧板802 をかぶせて複写を行なってい
る。
2. Description of the Related Art When copying, there is no problem as long as the paper size of the original and the size of the recording paper match, but for example, a book is placed on a contact glass and the pressure plate is opened, or the pressure plate is closed. However, if the copy is performed while keeping the unevenness of the book as it is, the periphery of the recorded original image often becomes black as shown in FIG. This is because, as shown in FIG. 5, in the image reading means, light emitted from the light source 803 does not reflect on the surface of the document 804 around the document 804 placed on the contact glass 801 and there is no reflection from the pressure plate. Naturally, light does not enter the imaging device or the photosensitive drum. That is, as is apparent from the figure, the light ray a is reflected on the document surface, and the reflected light is incident on an image pickup device (not shown) or the like. Therefore, the signal of the light amount corresponding to the image on the document surface is used as the input signal. Can be obtained, ray b
Travels farther without reflection, the input signal becomes 0, and therefore becomes black data. For this reason, a document having a large unevenness such as a book is covered with white paper or the like, and a pressure plate 802 is placed over the document as needed to perform copying.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、本など
を複写する際、一々圧板802 と原稿間に白色紙を介挿す
るのはわずらわしいことであるし、圧板をかぶせる際に
原稿がずれたり、圧板で押えても本の中央部が浮き上っ
た状態で複写を行うことになる。そのため実際は圧板を
使用せず操作者が原稿を手で押し付けて複写を行ない、
周辺の黒画像はやむをえないものとしていた。
However, when copying a book or the like, it is troublesome to insert white paper between the pressure plate 802 and the document, and the document may be displaced when the pressure plate is put on the platen. Even if it is held down, copying is performed with the central part of the book raised. Therefore, the operator does not actually use the pressure plate and the operator presses the original by hand to make a copy,
The surrounding black image was unavoidable.

【0004】[0004]

【発明の目的】本発明は、上記のように凹凸の大きな原
稿を複写する際の問題を解決し、圧板を使用しなくても
出力された原稿像周辺に黒画像が記録されない画像処理
システムを提供することを目的としている。
SUMMARY OF THE INVENTION An object of the present invention is to provide an image processing system which solves the problem of copying an original having large irregularities as described above, and in which a black image is not recorded around the output original image without using a pressure plate. It is intended to provide.

【0005】[0005]

【課題を解決するための手段】この目的を達成する為、
本発明では光源からの光を反射させて原稿を読み取る画
像読み取り手段と、読み取られた画像データを基に画像
を形成する画像形成手段を備えた画像処理システムにお
いて、上記画像読み取り手段によって縁部が直線である
原稿を読み取ったそれぞれのラインデータ毎に、ライン
の最初の画素データから、所定数以上連続した白データ
の直前までの黒データと、ラインの最後に現われる所定
数以上連続した白データの次の黒データから最後の画素
までを白データに変換するようにし、上記白データに変
換する領域と変換しない領域の境界の画素番号の数列
中、等差数列の公差により異常値の画素を判断するよう
にし、上記異常値を数列がほぼ等差数列になるように修
正する構成にしたこと、表示装置を備え、記録紙上への
画像形成に先立ち、上記表示装置に矩形の原稿の全体画
像を表示することによって、上記矩形の4頂点の座標を
検出し、原稿の全体画像を表示した矩形の2辺上の点に
対応した点を始点として、二つの異なる始点計算式の一
方を使用してそれぞれのラインの始点を算出し、上記矩
形の他の2辺上の点を終点として、二つの異なる終点計
算式の一方を使用して、それぞれのラインの終点を算出
する構成にしたこと、始点計算式、終点計算式が等差数
列の公差を含む構成にしたこと、あらかじめ、それぞれ
の計算式の公差を算出しておき、画像形成のための画像
転送時、各ライン毎に上記公差を使用して、始点、終点
を計算する構成にしたことを特徴としている。
In order to achieve this object,
According to the present invention, in an image processing system including an image reading unit that reads an original by reflecting light from a light source and an image forming unit that forms an image based on the read image data, an edge is formed by the image reading unit. Is a straight line
For each line data read from the original, black data from the first pixel data of the line to immediately before white data continuous for a predetermined number or more, and black data next to white data continuous for a predetermined number or more appearing at the end of the line. A sequence of pixel numbers at a boundary between an area to be converted to white data and an area not to be converted so that the data to the last pixel are converted to white data.
Judgment of outlier pixels based on the tolerance of the arithmetic progression
To, it was configured to Fix <br/> positive as the abnormal value sequence is substantially an arithmetic progression, including the display device, prior to the image formation on the recording sheet, the rectangular document on the display device By displaying the whole image, the coordinates of the four vertices of the rectangle are detected, and one of two different start point calculation formulas is determined using a point corresponding to a point on two sides of the rectangle displaying the whole image of the document as a start point. The start point of each line is calculated using the two points on the other two sides of the rectangle as the end point, and the end point of each line is calculated using one of two different end point calculation formulas. That the start point calculation formula and the end point calculation formula are configured to include the tolerance of the arithmetic progression, the tolerances of the respective calculation formulas are calculated in advance, and at the time of image transfer for image formation, Use the tolerance to calculate the start and end points. It is characterized in the thing.

【0006】[0006]

【作用】画像読み取り手段によって読み取ったそれぞれ
の1ラインデータのうち、最初の画素データから、所定
数以上連続した白データの直前の黒データまで、及び最
後に現われた、所定数以上連続した白データの次の黒デ
ータから最後の画素までを白データに変換する構成にし
たので、原稿周辺の黒データが白データに変換される。
In the one-line data read by the image reading means, from the first pixel data to the black data immediately preceding the white data continuous for a predetermined number or more, and the white data continuous for a predetermined number or more that appeared last. Since the configuration from the next black data to the last pixel is converted into white data, the black data around the document is converted into white data.

【0007】[0007]

【実施例】以下、本発明の実施例を図面により詳細に説
明する。図1は本発明に係る画像処理システムの画像入
力装置1と画像出力装置2の制御部を中心にしたブロッ
ク図である。図1(a)は画像入力装置1のブロック図
であり、同図において、11は画像読み取り手段であり、
撮像デバイス112 は画像を読み取ってアナログ信号を出
力し、AD変換器116 はそれをディジタル画像データに
変換する。そのディジタル画像データはシェーディング
補正回路117 、サンプリング位置ずれ補正回路118 、基
本画像処理手段12を経て画像出力装置2に入力される。
上記基本画像処理手段12は様々な画像処理モジュールを
含み、様々な画像処理を行う。また、必要に応じて、拡
張画像処理手段13による画像処理も行われる。
Embodiments of the present invention will be described below in detail with reference to the drawings. FIG. 1 is a block diagram mainly showing a control unit of an image input device 1 and an image output device 2 of an image processing system according to the present invention. FIG. 1A is a block diagram of the image input device 1, in which 11 is an image reading unit.
The imaging device 112 reads an image and outputs an analog signal, and the AD converter 116 converts it into digital image data. The digital image data is input to the image output device 2 via the shading correction circuit 117, the sampling position shift correction circuit 118, and the basic image processing means 12.
The basic image processing means 12 includes various image processing modules and performs various image processing. Further, if necessary, image processing by the extended image processing means 13 is also performed.

【0008】図1(b)は画像出力装置2の制御系を中
心にしたブロック図であり、図において、23は記録制御
回路、21は画像形成手段である。画像形成手段21は電子
写真方式によっており、感光体ドラム、潜像形成手段、
現像手段、転写手段等を備える。上記撮像デバイス112
は1ライン毎に前記反射光による入射信号を各画素に対
応したアナログ電気信号に変換して出力する。ディジタ
ル化された画像データは例えば基本画像処理手段12の内
の2値化回路121 で‘黒’(以下‘0’と称す)または
‘白’(以下‘1’と称す)に2値化される。例えば、
前記図4に示すような画像が読み取られると、雑音が入
っていなければ、2値化回路121 の出力は最初の何ライ
ンかは1ライン全体について全ての画素データは‘0’
である。やがて原稿の上端に達すると1ライン中に
‘1’が現われる。もしも、原稿が傾いていて例えば右
側が上っていると1ラインデータの終りに近い位置に
‘1’が現われ、左側が上っていると1ラインデータの
始めに近い位置に‘1’が現われる。更に進むと原稿の
上端は全て白になり、左右が黒になる。つまり、1ライ
ンデータの始めの領域が‘0’、引き続く領域が
‘1’、終りの領域が‘0’である。原稿の文字部や画
像部に達すると、1ラインデータの始めの領域が
‘0’、続いて‘1’が何画素分か続き、以後、‘1’
の領域‘0’の領域をくり返し、最後(原稿の右端部
分)の‘1’の領域を経て、終りの領域が‘0’であ
る。原稿の下端は上端と類似である。
FIG. 1B is a block diagram mainly showing a control system of the image output apparatus 2. In the figure, reference numeral 23 denotes a recording control circuit, and reference numeral 21 denotes an image forming means. The image forming unit 21 is of an electrophotographic type, and includes a photosensitive drum, a latent image forming unit,
A developing unit, a transfer unit and the like are provided. The imaging device 112
Converts the incident signal due to the reflected light into an analog electric signal corresponding to each pixel for each line and outputs the analog electric signal. The digitized image data is binarized by a binarization circuit 121 of the basic image processing means 12 into 'black' (hereinafter referred to as '0') or 'white' (hereinafter referred to as '1'). You. For example,
When the image as shown in FIG. 4 is read, if there is no noise, the output of the binarization circuit 121 is that the first few lines are all one line and all the pixel data are "0".
It is. When it reaches the upper end of the document, "1" appears in one line. If the original is tilted and the right side is up, for example, “1” appears at a position near the end of one line data, and if the left side is up, “1” is at a position near the beginning of one line data. Appear. When the document is further advanced, the upper end of the document becomes all white, and the left and right become black. That is, the first area of one line data is “0”, the subsequent area is “1”, and the last area is “0”. When the character portion or the image portion of the document is reached, the first area of the one-line data is "0", followed by "1" for several pixels, and thereafter "1".
The area of area “0” is repeated, and the last area is “0” after the area of “1” at the end (right end of the document). The lower end of the document is similar to the upper end.

【0009】しかし、実際は雑音のために上記のように
ならない。原稿の上下左右の黒領域にも雑音のための
‘1’が現われる。そこで、この‘1’を原稿内部の画
像と判断しないために、1ラインの最初の画素から順に
‘1’か‘0’を判定していったとき、所定数以上の
‘1’が持続しなければ原稿内部と判断しないようにす
る。しかし、一度原稿内部と判断した後は、‘1’が所
定数未満しか持続しなくても原稿内部の画像と判断す
る。また、1ラインの終りの領域においても同様に、上
記所定数以上‘1’が連続した後、1ラインの最後まで
所定数以上連続して‘1’の領域が現われないとき、所
定数以上‘1’が連続した白領域の最後の画素までを原
稿内部と判断する。原稿が傾いているとき、原稿内部に
もかかわらず、4隅部で上記所定数未満の‘1’の領域
と判定され、原稿の外と判定されることがあり得るがこ
れは実用上問題にならない。このように、原稿の外と判
定した領域のデータ全てを‘1’に置換すれば、この
後、画像データが画像出力装置2に送られ、原稿の外と
判定された部分は全て白領域として画像が形成される。
従って、図4の上下左右の黒枠は全て白に変換されて複
写される。
However, the above does not actually occur due to noise. '1' due to noise also appears in the upper, lower, left and right black areas of the document. Therefore, in order not to judge this “1” as an image inside the document, when judging “1” or “0” in order from the first pixel of one line, a predetermined number or more of “1” continues. If not, it is not determined that the document is inside. However, once it is determined that the image is inside the document, it is determined that the image is inside the document even if “1” continues for less than a predetermined number. Similarly, in the area at the end of one line, after the predetermined number or more of “1” s continue, if the area of “1” does not appear continuously for the predetermined number or more until the end of one line, the predetermined number of “1” or more It is determined that the last pixel of the white area where 1 'is continuous is inside the document. When the document is tilted, the area may be determined to be less than the predetermined number of '1' areas at the four corners even though the document is inside, and may be determined to be outside the document, but this poses a practical problem. No. As described above, if all the data in the area determined to be outside the document is replaced with “1”, then the image data is sent to the image output device 2, and all the portions determined to be outside the document are set as white areas. An image is formed.
Therefore, all the upper, lower, left and right black frames in FIG. 4 are converted to white and copied.

【0010】図2は上記アルゴリズムを実現する装置の
回路の一実施例を示す図である。同図の画素カウンタ12
2 、白カウンタ123 、ラッチ126 、128 、フリップフロ
ップ127 は図示していないリセット信号により、1ライ
ンの画素データの読み込みに先立ってリセットされる。
また、所定数レジスタ124 には、原稿領域内においてあ
り得る’1’の最大の連続数があらかじめCPU(図示
していない)によってセットされている。
FIG. 2 is a diagram showing an embodiment of a circuit of an apparatus for realizing the above algorithm. Pixel counter 12 in FIG.
2. The white counter 123, the latches 126 and 128, and the flip-flop 127 are reset by a reset signal (not shown) before reading the pixel data of one line.
In the predetermined number register 124, the maximum continuous number of possible "1" s in the document area is set in advance by a CPU (not shown).

【0011】1ラインの画素データの読み込みが画素ク
ロックaに同期して始まると、2値化回路121 の出力に
は入力された画素データが‘白’(所定値以上の値)な
らば‘1’が現われ、そうでないなら‘1’か‘0’が
現われる(例えば画素クロックの後縁で出力が切変
る)。画素カウンタ122 は計数を開始し、画素クロック
が入力される毎に+1される。雑音でるか否かを問わず
2値化回路121 の出力に’1’が現われると、次の画素
クロックで白カウンタ123 はカウントアップされる。し
かし、2値化回路121 の出力に’0’が現われると、白
カウンタ123 はリセットされてしまう。2値化回路121
の出力に、所定数に達する‘1’が連続して現われる
と、白カウンタ123 の値は所定数レジスタ124 の値と一
致し、コンパレータ125 の出力が‘1’になり、それに
より、その時の画素カウンタの値α1がラッチ126 によ
りラッチされ、CPUによって読み込まれる。CPUは
‘α2=α1−所定数’を計算する。このα2は原稿領
域の直前の画素番号である。
When the reading of one line of pixel data starts in synchronization with the pixel clock a, the output of the binarization circuit 121 outputs "1" if the input pixel data is "white" (a value equal to or more than a predetermined value). 'Appears, otherwise' 1 'or' 0 'appears (eg, the output toggles on the trailing edge of the pixel clock). The pixel counter 122 starts counting and is incremented by one each time a pixel clock is input. When "1" appears at the output of the binarization circuit 121 regardless of whether noise occurs or not, the white counter 123 is counted up by the next pixel clock. However, when "0" appears in the output of the binarization circuit 121, the white counter 123 is reset. Binarization circuit 121
When the number of '1's reaching the predetermined number appears continuously in the output, the value of the white counter 123 matches the value of the predetermined number register 124, and the output of the comparator 125 becomes'1'. The value α1 of the pixel counter is latched by the latch 126 and read by the CPU. The CPU calculates “α2 = α1−predetermined number”. Α2 is the pixel number immediately before the document area.

【0012】フリップフロップ127 は上記のようにして
コンパレータ125 から一致信号が出た時セットされ, 以
後そのラインの読み取リ中、セットされた状態が持続さ
れるので、一致信号が出た後(つまり、原稿領域に入っ
た後)は‘黒’データが2値化回路121 の出力に表われ
る度にその時の画素カウンタの値がラッチ128 にセット
される。このラッチ128 は所定数以上連続する白が現わ
れるとコンパレータ125 の出力によりリセットされる
が、画素カウンタの値がセットされたまま、コンパレー
タ125 から一致信号が出ず1ラインの読み取りを完了す
ると、このラッチ128 にセットされたβ1が原稿領域の
直後の画素番号である。
The flip-flop 127 is set when the coincidence signal is output from the comparator 125 as described above. Since the flip-flop 127 remains set while reading the line thereafter, the flip-flop 127 is output after the coincidence signal is output (that is, (After entering the document area), the value of the pixel counter at that time is set in the latch 128 each time the 'black' data appears in the output of the binarization circuit 121. The latch 128 is reset by the output of the comparator 125 when a predetermined number or more of continuous white appears. When the comparator 125 does not output a match signal and completes reading of one line while the pixel counter value is set, the latch 128 is reset. Β1 set in the latch 128 is the pixel number immediately after the document area.

【0013】原稿領域を示すα2及びβ1を使用して原
稿領域外のデータを‘1’に置換するためにはα2、β
1を決定する時に使用した2値化回路121 の出力データ
を一時的に記憶しておく必要がある。この役割を果たす
のが図2に示す1ラインバッファ129 である。つまり、
タイミングを1ライン分遅らせて、セレクタ135 で原稿
領域外データを‘1’に置換する。JKフリップフロッ
プ134 が原稿領域内期間を示し、そのQ出力が‘1’の
時は1ラインバッファ129 の出力がセレクタ135 の出力
Dとして選択され、JKフリップフロップ134 のQ出力
が‘0’の時、つまり原稿領域外では+5V入力が選択
され、それによって‘1’に置換される。
In order to replace the data outside the original area with '1' using α2 and β1 indicating the original area, α2, β
It is necessary to temporarily store the output data of the binarization circuit 121 used for determining 1. The one-line buffer 129 shown in FIG. 2 plays this role. That is,
The timing is delayed by one line, and the selector 135 replaces the data outside the document area with “1”. The JK flip-flop 134 indicates the period in the document area. When the Q output is "1", the output of the one-line buffer 129 is selected as the output D of the selector 135, and the Q output of the JK flip-flop 134 is "0". At the time, that is, outside the manuscript area, + 5V input is selected and replaced with '1'.

【0014】JKフリップフロップ134 は、画素カウン
タ122 の値がα2、つまり原稿領域の直前の画素番号に
なった時、コンパレータ132 から一致信号が出て、その
次の画素クロックの前縁でセットされる。レジスタ130
、131 にはCPU(図示していない)によってそれぞ
れα2、β2がセットされているが、ここで(β2=β
1−1)である。つまりβ2は原稿領域の最後の画素番
号である。画素カウンタ122 がβ2になるとコンパレー
タ133 から一致信号が出て、次の画素クロックの前縁で
JKフリップフロップ134 がリセットされる。セレクタ
135 の出力信号は画像出力装置2へ転送される。
When the value of the pixel counter 122 becomes α2, that is, the pixel number immediately before the original area, the JK flip-flop 134 outputs a coincidence signal from the comparator 132 and is set at the leading edge of the next pixel clock. You. Register 130
, 131 are set by the CPU (not shown), respectively, where (β2 = β
1-1). That is, β2 is the last pixel number of the document area. When the pixel counter 122 becomes β2, a match signal is output from the comparator 133, and the JK flip-flop 134 is reset at the leading edge of the next pixel clock. selector
The output signal of 135 is transferred to the image output device 2.

【0015】原稿領域の前縁部及び後縁部に雑音が入る
と、上記α2、β2が真の値から数画素分ずれる可能性
がある。このずれは以下のようにして補正することが可
能である。その一つの方法は、原稿領域の前縁も後縁も
直線であることに注目し、連続する数ライン分のα2の
集合α2・1,α2・2,…α2・n及びβ2の集合β
2・1,β2・2,…β2・nはそれぞれ等差数列を成
す。従って、例えばα2の5個の数列が80,83,85,9
0,90であったとすると、4番目の値90は明らかに真の
値ではない。従ってこれを雑音によるものと判断し、90
を88(または87)に修正する。上記補正を実現するため
には図2に示す1ラインバッファ129 を例えば5ライン
バッファにし、5ライン分の上記α2を比較する。また
CPUは連続する5ライン分のα2、β2を取得した
後、等差数列の公差を求め、異常値の修正を行う。上記
例では、差はそれぞれ3,2,5,0であり、5,0を
異常と判定し、4番目のデータの修正を行う。
If noise enters the leading edge and trailing edge of the document area, the above α2 and β2 may deviate from the true values by several pixels. This shift can be corrected as follows. One method focuses on the fact that both the leading edge and the trailing edge of the document area are straight lines, and sets α2 · 1, α2 · 2,... Α2 · n of several consecutive lines and set β2 of β2.
... Β2 · n each form an arithmetic progression. Therefore, for example, five sequences of α2 are 80, 83, 85, 9
If it were 0,90, the fourth value 90 is obviously not the true value. Therefore, this was judged to be due to noise, and 90
To 88 (or 87). In order to realize the above correction, the one-line buffer 129 shown in FIG. 2 is replaced with, for example, a five-line buffer, and the above-mentioned α2 for five lines is compared. After acquiring α2 and β2 for five consecutive lines, the CPU obtains a tolerance of the arithmetic progression and corrects an abnormal value. In the above example, the differences are 3, 2, 5, and 0, respectively, and 5,0 is determined to be abnormal, and the fourth data is corrected.

【0016】原稿Pの中には、図3に示すように端部に
黒マークM等がついているようなものがある。画素密度
を16ライン/mmとすると、10mm長のマークでも160
ラインになるので、このような場合は真の境界を発見す
るためには500 〜1000ライン分程度のバッファを必要と
する。つまり、例えば原稿領域の後縁について云えば、
境界画素番号を500 〜1000ラインに渡って監視し、ある
範囲がB1であっても他の範囲がB2であり、B2>B
1であればB2を採用する。画像入力装置1に表示装置
を付加するか、画像入力装置1、画像出力装置2の他に
表示装置を備えた制御処理装置を追加し、画像入力装置
の所定場所に装填された原稿の画像を読み込み、上記表
示装置に原稿の画像全体を表示することにより、画面上
で原稿領域を指定できる。これは画像編集手段で公知の
表示された矩形の対角を成す2点を指定する方法、また
は矩形の4頂点を指定する方法である。但し前者は原稿
が傾いていると原稿周辺の黒画像が残る(原稿の少し内
側を指定すれば傾き具合によっては残らない)。また、
このとき上記表示装置の解像度を低いものとすれば、表
示装置を安価にすることができる。即ち、このように解
像度を低くすれば、画像バッファの容量を少なくするこ
とができ、表示目的が文字等を読むためでなく、原稿の
輪郭を認識するためであるからなんら問題はない。
Some originals P have a black mark M or the like at the end as shown in FIG. Assuming a pixel density of 16 lines / mm, even a 10 mm long mark is 160
In this case, a buffer of about 500 to 1000 lines is required to find the true boundary. That is, for example, regarding the trailing edge of the document area,
The boundary pixel number is monitored over 500 to 1000 lines. Even if a certain range is B1, the other range is B2, and B2> B
If 1, B2 is adopted. A display device is added to the image input device 1, or a control processing device having a display device in addition to the image input device 1 and the image output device 2 is added, and the image of the document loaded at a predetermined position of the image input device is deleted. By reading and displaying the entire image of the document on the display device, a document area can be designated on the screen. This is a method of designating two points forming a diagonal of a displayed rectangle known by the image editing means, or a method of designating four vertices of the rectangle. However, in the former case, if the original is skewed, a black image around the original remains (if a little inside of the original is specified, it will not remain depending on the degree of inclination). Also,
At this time, if the resolution of the display device is low, the display device can be made inexpensive. That is, if the resolution is reduced in this manner, the capacity of the image buffer can be reduced, and there is no problem because the display purpose is not for reading characters or the like but for recognizing the outline of the document.

【0017】以下、4点指定の場合を例に本発明を説明
する。図6は画面34上に原稿341が表示された図であ
る。上記4点とは図の原稿341 の四つの頂点A、B、
C、Dを意味する。これらの4点の指定には例えば、マ
ウス等のポインティングデバイスを使用し、公知の技術
により、4点のライン番号l、画素番号nを検出する。
このとき、真の(画像入力装置における)ライン番号は
kl、画素番号はknである(k=画像入力装置の解像
度/表示装置の解像度)。従って画像入力装置における
原稿の始点画素番号は、ライン番号klA〜klC(k
lA、klCはそれぞれA、C点のライン番号)におい
て、 knA+(knC−knA)N/(klC−klA) で表わされる(NはA点のラインを0としてライン毎に
1づつふえる整数)。同様にして、C−D間の各ライン
点画素番号、A−BおよびB−D間の各ラインの終
点画素番号を算出できる(少数点以下は4捨5入し、整
数にする)。
Hereinafter, the present invention will be described by taking the case of designating four points as an example. FIG. 6 is a diagram in which a document 341 is displayed on the screen 34. The above four points are the four vertices A, B,
C and D are meant. For specifying these four points, for example, a pointing device such as a mouse is used, and the line number 1 and the pixel number n of the four points are detected by a known technique.
At this time, the true line number (in the image input device) is kl and the pixel number is kn (k = resolution of the image input device / resolution of the display device). Therefore, the starting pixel numbers of the document in the image input device are line numbers klA to klC (k
IA and kIC are represented by knA + (knC-knA) N / (kIC-kIA) in the line numbers of points A and C, respectively (N is an integer that increases by one for each line with the line at point A being 0). Similarly, we calculate the C-D between the starting point pixel number for each line of, A-B and end pixel number of each line between B-D (decimal point Type 4 Discard 5 is an integer) .

【0018】上記は原稿が右下りに傾いた場合を示した
が、右上りの場合も同様にして算出できる。尚、上記に
おいて、(knC−knA)/(klC−klA)は等
差数列の公差、knAは数列の最初の数である。つまり
上記算出方法は、前記のように矩形の原稿領域の連続す
る各ラインの始点の数列及び終点の数列は等差数列を成
すということに依拠している。上記公差dは画像出力装
置2への画像データ転送のための画像読み出しに先立っ
て計算しておけるので、画像データ転送時は1ライン当
り、乗算d×N=eと、加算knA+eをそれぞれ1回
行なって始点を求め、同様に乗算1回、加算1回行なっ
て終点を求めればよいので、短時間の演算で済み時間的
に充分に間に合う。
Although the above description has been made on the case where the document is tilted downward to the right, the calculation can be similarly performed for the case where the original is tilted to the upper right. In the above, (knC-knA) / (klC-kIA) is the tolerance of the arithmetic progression, and knA is the first number of the progression. That is, the above calculation method relies on the fact that the sequence of the start point and the sequence of the end point of each continuous line of the rectangular document area form an arithmetic progression as described above. Since the above-mentioned tolerance d can be calculated before image reading for image data transfer to the image output device 2, multiplication d × N = e and addition knA + e are performed once per line at the time of image data transfer. Since the start point is obtained by performing the calculation once and the multiplication and the addition are performed once to obtain the end point, the calculation can be performed in a short time and the time can be sufficiently obtained.

【0019】上記方式を実現する回路は図2に示す点線
内の回路と同じでよい。CPU(図示していない)は、
あらかじめ4点の座標(n、l)を取得し、4点のライ
ン番号、画素番号(kn、kl)を算出すると共に、矩
形を構成する4辺に対応した4個の公差を算出してお
き、画像読み出し時に頂点(図6の例ではA)を含むラ
インに達すると、始点を求める二つの式の一方を使用し
てα2を計算して、レジスタ130 にセットし、終点を求
める二つの式の一方を使用してβ2を計算して、レジス
タ131 にセットする。図6の例でB点を含むラインに達
すると終点を求める式を他方の式に切り換え、C点を含
むラインに達すると始点を求める式を他方の式に切り換
え、D点を含むラインに達すると、α2を1ラインの画
素数を超える値にセットして、セレクタ135 が常に
‘1’入力(+5v入力)を選択するようにする(A点
に達するまでも同様)。図7は以上説明した処理手順を
フローチャートとして図示したものである。図において
(a)は画像出力装置2への画像データ転送のための画
像読み出し前の処理フロー、(b)は画像出力装置2へ
の画像データ転送時の処理フローである。なお、このフ
ロチャートの詳細は上述した通りであるので、説明を省
略する。
The circuit for realizing the above method may be the same as the circuit within the dotted line shown in FIG. The CPU (not shown)
The coordinates (n, l) of four points are obtained in advance, the line numbers and pixel numbers (kn, kl) of the four points are calculated, and the four tolerances corresponding to the four sides forming the rectangle are calculated. When a line including a vertex (A in the example of FIG. 6) is reached at the time of image reading, α2 is calculated using one of the two equations for finding the starting point, set in the register 130, and the two equations for finding the ending point. Is calculated using one of the two, and is set in the register 131. In the example of FIG. 6, when the line including the point B is reached, the equation for finding the end point is switched to the other equation. When the line including the point C is reached, the equation for finding the start point is switched to the other equation. Then, .alpha.2 is set to a value exceeding the number of pixels in one line, and the selector 135 always selects the "1" input (+ 5v input) (the same applies until the point A is reached). FIG. 7 is a flowchart illustrating the processing procedure described above. In the figure, (a) is a processing flow before image reading for transferring image data to the image output device 2, and (b) is a processing flow at the time of transferring image data to the image output device 2. Since the details of the flowchart are as described above, the description is omitted.

【0020】本システムでは上記解像度の粗い表示装置
に表示された原稿画像により、原稿の傾きを直すこと、
及び、正常な向き、正常な位置に原稿が置かれているか
どうか、また拡大、縮小が適切かどうかチェックするこ
とが可能である。このチェックは操作部の原稿表示ボタ
ンを押すことによって行われる。尚、表示手段は画像出
力装置の、選択されている給紙トレイ識別情報を取得
し、表示画面に記録紙外形を設定されている向きで表示
する。また、記録紙と原稿は、記録紙上にその原稿の画
像が記録されるときと同じように表示される。
In this system, the inclination of the original is corrected by the original image displayed on the display device having the coarse resolution.
In addition, it is possible to check whether the original is placed in a normal orientation and a normal position, and whether enlargement and reduction are appropriate. This check is performed by pressing a document display button on the operation unit. The display unit acquires the selected paper feed tray identification information of the image output device, and displays the outer shape of the recording paper on the display screen in the set direction. The recording paper and the original are displayed in the same manner as when the image of the original is recorded on the recording paper.

【0021】[0021]

【発明の効果】以上説明したように、本発明によれば、
画像読み取り手段によって読み取ったそれぞれの1ライ
ンデータのうち、最初の画素データから、所定数以上連
続した白データの直前の黒データまで、及び最後に現わ
れた、所定数以上連続した白データの次の黒データから
最後の画素までを白データに変換することにより、原稿
周辺の黒データを白データに変換するように構成したの
で、圧板を使用しない場合であっても出力された原稿像
の周辺に黒画像が記録されない。
As described above, according to the present invention,
Of the one-line data read by the image reading means, from the first pixel data to the black data immediately before the predetermined number or more of continuous white data, and next to the last and the predetermined number or more of continuous white data. By converting the black data around the original into white data by converting the black data to the last pixel into white data, even when the pressure plate is not used, the image around the output original image is No black image is recorded.

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

【図1】(a) 及び(b) は本発明による画像処理システム
の一実施例を示す機能ブロック図である。
FIGS. 1A and 1B are functional block diagrams showing an embodiment of an image processing system according to the present invention.

【図2】図1に示す実施例の要部回路図である。FIG. 2 is a main part circuit diagram of the embodiment shown in FIG. 1;

【図3】本発明の画像処理システムで使用する原稿の一
例を示す図である。
FIG. 3 is a diagram illustrating an example of a document used in the image processing system of the present invention.

【図4】従来の複写画像例を示す図である。FIG. 4 is a diagram showing an example of a conventional copy image.

【図5】圧板を使用できない状態での複写を示す図であ
る。
FIG. 5 is a diagram illustrating copying in a state where a pressure plate cannot be used.

【図6】本発明を説明するための図であって、原稿が傾
いた場合の対応を説明する為の図である。
FIG. 6 is a diagram for explaining the present invention, and is a diagram for explaining a case where a document is inclined.

【図7】(a) 及び(b) は本発明に基づいて実施する処理
手順一実施例を示すフローチャートである。
FIGS. 7 (a) and 7 (b) are flowcharts showing an embodiment of a processing procedure performed according to the present invention.

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

1 …画像入力装置、2 …画像出力装置、11…画像読み取
り手段、12…基本画像処理手段、13…拡張画像処理手
段、21…画像形成手段、23…記録制御回路、34…画面、
112 …撮像デバイス、116 …AD変換器、117 …シェー
デング補正回路、118 …サンプリング位置ずれ補償回
路、121 …2値化回路、122 …画素カウンタ、123 …白
カウンタ、124 …所定数レジスタ、125 …コンパレー
タ、129 …1ラインバッファ、132 、133 …コンパレー
タ、135 …セレクタ。
1 ... image input device, 2 ... image output device, 11 ... image reading means, 12 ... basic image processing means, 13 ... extended image processing means, 21 ... image forming means, 23 ... recording control circuit, 34 ... screen,
112: imaging device, 116: AD converter, 117: shading correction circuit, 118: sampling position shift compensation circuit, 121: binarization circuit, 122: pixel counter, 123: white counter, 124: predetermined number register, 125 ... Comparator, 129 ... 1 line buffer, 132, 133 ... Comparator, 135 ... selector.

フロントページの続き (56)参考文献 特開 昭62−144462(JP,A) 特開 平2−264566(JP,A) (58)調査した分野(Int.Cl.7,DB名) H04N 1/38 - 1/393 H04N 1/04 - 1/207 Continuation of the front page (56) References JP-A-62-144462 (JP, A) JP-A-2-264566 (JP, A) (58) Fields investigated (Int. Cl. 7 , DB name) H04N 1 / 38-1/393 H04N 1/04-1/207

Claims (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 光源からの光を反射させて原稿を読み取
る画像読み取り手段と、読み取られた画像データを基に
画像を形成する画像形成手段を備えた画像処理システム
において、上記画像読み取り手段によって縁部が直線で
ある原稿を読み取ったそれぞれのラインデータ毎に、ラ
インの最初の画素データから、所定数以上連続した白デ
ータの直前までの黒データと、ラインの最後に現われる
所定数以上連続した白データの次の黒データから最後の
画素までを白データに変換するようにし、上記白データ
に変換する領域と変換しない領域の境界の画素番号の数
中、等差数列の公差により異常値の画素を判断するよ
うにし、上記異常値を数列がほぼ等差数列になるよう
正する構成にしたことを特徴とする画像処理システ
ム。
And 1. A image reading means for reading an original by reflecting light from a light source, an image processing system including an image forming means for forming an image based on the image data read, the edges by the image reading means The part is straight
For each line data read from a certain document, from the first pixel data of the line to the black data immediately before a predetermined number or more of continuous white data and the next to the predetermined number or more of continuous white data appearing at the end of the line The process from the black data to the last pixel is converted into white data, and a pixel having an abnormal value is determined based on a tolerance of an arithmetic progression in a sequence of pixel numbers at a boundary between a region to be converted to white data and a region not to be converted .
Unishi, as the abnormal value sequence is substantially an arithmetic progression
The image processing system being characterized in that the arrangement of positive Fix.
【請求項2】 上記請求項1において、表示装置を備
え、記録紙上への画像形成に先立ち、上記表示装置に矩
形の原稿の全体画像を表示することによって、上記矩形
の4頂点の座標を検出し、原稿の全体画像を表示した矩
形の2辺上の点に対応した点を始点として、二つの異な
る始点計算式の一方を使用してそれぞれのラインの始点
を算出し、上記矩形の他の2辺上の点を終点として、二
つの異なる終点計算式の一方を使用して、それぞれのラ
インの終点を算出する構成にしたことを特徴とする画像
処理システム。
2. The method according to claim 1, further comprising the step of: displaying a whole image of the rectangular document on the display device prior to forming an image on recording paper, thereby detecting coordinates of four vertexes of the rectangle. To display the entire image of the original
Starting from the point corresponding to the point on the two sides of the shape, two different
Starting point of each line using one of the starting point formulas
Is calculated, and a point on the other two sides of the rectangle is set as an end point.
Using one of two different endpoint calculations,
An image processing system characterized in that an end point of an in is calculated.
【請求項3】 上記請求項において、始点計算式、終
点計算式が等差数列の公差を含む構成にしたことを特徴
とする画像処理システム。
3. The image processing system according to claim 2, wherein the start point calculation formula and the end point calculation formula include a tolerance of an arithmetic progression.
【請求項4】 上記請求項において、あらかじめ、そ
れぞれの計算式の公差を算出しておき、画像形成のため
の画像転送時、各ライン毎に上記公差を使用して、始
点、終点を計算する構成にしたことを特徴とする画像処
理システム。
4. A method according to claim 3, wherein the tolerances of the respective formulas are calculated in advance, and the starting point and the ending point are calculated by using the tolerances for each line when transferring an image for image formation. An image processing system characterized in that:
JP20179193A 1993-07-22 1993-07-22 Image processing system Expired - Fee Related JP3312787B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP20179193A JP3312787B2 (en) 1993-07-22 1993-07-22 Image processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP20179193A JP3312787B2 (en) 1993-07-22 1993-07-22 Image processing system

Publications (2)

Publication Number Publication Date
JPH0738731A JPH0738731A (en) 1995-02-07
JP3312787B2 true JP3312787B2 (en) 2002-08-12

Family

ID=16446997

Family Applications (1)

Application Number Title Priority Date Filing Date
JP20179193A Expired - Fee Related JP3312787B2 (en) 1993-07-22 1993-07-22 Image processing system

Country Status (1)

Country Link
JP (1) JP3312787B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100232846B1 (en) * 1997-08-19 1999-12-01 윤종용 Method for garbage data removal in scanner

Also Published As

Publication number Publication date
JPH0738731A (en) 1995-02-07

Similar Documents

Publication Publication Date Title
JPH1065877A (en) Picture processor
JPH11252351A (en) Image reader
JPH10210266A (en) Image reader
JP2000201270A (en) Picture processing method and picture processor
US6271935B1 (en) Method to remove edge artifacts from skewed originals
JP2002232654A (en) Device and method for image processing and computer readable recording medium with program for making computer perform the method recorded thereon
JP3582988B2 (en) Non-contact image reader
JP3312787B2 (en) Image processing system
JP3396006B2 (en) Digital copier
JP3852247B2 (en) Image forming apparatus and transfer image distortion correction method
JP2956377B2 (en) Image reading device
JP3430776B2 (en) Image reading device
JP3163703B2 (en) Document reading device
JP2004104662A (en) Image forming device
JP2608264B2 (en) Image reading device
JPH07170405A (en) Method for eliminating edge shadow signal of original, picture signal processing unit and copying machine
JP3332170B2 (en) Method and apparatus for detecting black frame of micro film reader
JP3164578B2 (en) Image recording device
JP2547748B2 (en) Image processing device
JP2001285606A (en) Image processing apparatus and image processing method
JPH06233112A (en) Black frame detecting method for microfilm reader
JPH04331563A (en) Image reader
JPH0343762A (en) Image forming device
JPH043655A (en) Picture processor
JPH10224615A (en) Picture reader

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080531

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090531

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100531

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110531

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120531

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120531

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130531

Year of fee payment: 11

LAPS Cancellation because of no payment of annual fees