JP3584658B2 - Document size detector - Google Patents
Document size detector Download PDFInfo
- Publication number
- JP3584658B2 JP3584658B2 JP03854397A JP3854397A JP3584658B2 JP 3584658 B2 JP3584658 B2 JP 3584658B2 JP 03854397 A JP03854397 A JP 03854397A JP 3854397 A JP3854397 A JP 3854397A JP 3584658 B2 JP3584658 B2 JP 3584658B2
- Authority
- JP
- Japan
- Prior art keywords
- document
- edge
- pixel
- difference
- detecting
- 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
Links
- 238000003708 edge detection Methods 0.000 claims description 24
- 238000001514 detection method Methods 0.000 claims description 19
- 238000004364 calculation method Methods 0.000 claims description 4
- 239000003990 capacitor Substances 0.000 claims 1
- 238000010586 diagram Methods 0.000 description 7
- 239000000428 dust Substances 0.000 description 6
- 238000000034 method Methods 0.000 description 4
- 238000007796 conventional method Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 230000001678 irradiating effect Effects 0.000 description 1
Images
Landscapes
- Holders For Sensitive Materials And Originals (AREA)
- Image Input (AREA)
- Facsimile Scanning Arrangements (AREA)
- Image Analysis (AREA)
Description
【0001】
【発明の属する技術分野】
本発明はデジタル複写機等の原稿サイズ検知装置に関する。
【0002】
【従来の技術】
従来複写機等における原稿サイズ検知では特開平2−277038号公報にあるようにノイズやごみの影響による誤検知を防ぐために、注目画素と所定画素先の画素との差分をとり、その差分が閾値を越えていたかを判定する。そして、前記判定を次の画素が来るたびに行い、閾値を越えていることが連続して所定回数発生した場合にその位置を原稿エッジとする。その結果をもとに原稿サイズ検知を行っている。即ち、原稿の白画素と数画素先の原稿外の黒画素との差分をとり、閾値を越えていることが確認され、その状態が所定回数連続して発生した場合にその位置を原稿エッジとするアルゴリズムとなっている。ここで、上記方法で原稿エッジを検出されるためには、原稿端部に白画素、原稿外に黒画素が連続してなければならない。
【0003】
【発明が解決しようとする課題】
上記従来の方法では、ノイズやごみなどの影響を受けにくくするためには閾値を連続して越えなければならない回数をふやすことが考えられる。しかしながら、閾値を連続して越えなければならない回数をふやと、その増えた分連続して閾値を越えていなければならない画素数が増えてしまう。即ち原稿端部になければならない白画素数が増えてしまう。そうすると、連続して閾値を越えていなければならない画素中に文字や線などがあった場合、即ち原稿端部に文字や線などがあるような 原稿に対してはエッジ検出できないという問題があった。
【0004】
本発明は、原稿エッジを検出する際に、ノイズやごみなどの影響を受けて誤検出してしまうことのないような原稿サイズ検知装置を得ることを課題とする。
また、本発明は、原稿端部に文字や線などがあるような原稿に対してしも原稿エッジを正しく検出することのできる原稿サイズ検知装置を得ることを課題とする。
【0005】
【課題を解決するための手段および作用】
本発明(請求項1)は、注目画素(図6の6−1)と、注目画素から所定画素数(M画素)前の画素(図6の6−2)およびその画素から等間隔(L画素間隔)おいて順次位置する複数の画素(図6の6−3、6−4、…)とのそれぞれの差分をとる演算手段(図4の4−2、図6の6−6〜6−9)と、その演算手段により得られた各差分を閾値と比較し、すべての差分が閾値を越える場合を検出する比較手段(図4の4−3、図6の6−10〜6−13、6−14)と、その比較手段の比較の結果すべての差分が閾値を越えていた場合にその注目画素位置を仮エッジとし、主走査方向に注目画素の位置を移しつつ前記演算手段と前記比較手段により得られた前記すべての差分が閾値を越えた場合が所定回数続いたときに前記仮エッジ位置を原稿エッジとして検出するエッジ検出手段(図4の4−6)とを備えたことを特徴とする。
本発明によれば、演算手段により注目画素と差分をとる画素が複数かつ広範囲にあるため、閾値を越えた画素が連続してあらわれる前記所定回数(図7中のN)を増やすことなくノイズやごみの影響を受けにくくすることができる。また、注目画素と差分をとる複数の画素が等間隔おきにあることにより、差分をとる画素が存在する範囲内にあるすべての画素が連続して同じデータである必要がないため、その範囲内に線などの原稿下地とは違った画素が含まれてもその画素が濃度比較を行わない区間に来たときに原稿エッジを検出することができる。
【0006】
また、本発明(請求項2)は、注目画素と前画素との差分をとる演算手段(図5の5−2)と、その演算手段により得られた差分が閾値を越える場合を検出する比較手段(図5の5−3)と、主走査方向における注目画素の位置を表すアドレスカウンタ(図5の5−4)と、差分が閾値を越えたとき、アドレスカウンタの値を保持する、所定数の蓄積容量を持つシフトレジスタ(図5の5−5)と、前記シフトレジスタに保持された所定数のアドレスの内、最大のアドレスと最小のアドレスの差分が所定範囲内に入っていたとき、最新のアドレスを原稿エッジとするエッジ検出手段(図5の5−6)とを備えたことを特徴とする。
本発明によれば、所定範囲内に閾値を越えるような濃度変化が所定回数以上あればその部分を原稿エッジとするエッジ検出手段で検出することによって、前記発明(請求項1)のエッジ検出手段では検出しにくいような原稿端部に線が多くあるものや細かい文字が多くあるような原稿の原稿エッジを検出することができる。
【0007】
また、本発明(請求項3)は、前記2つの発明(請求項1、請求項2)を組み合わせた構成を有する原稿サイズ検出装置である。即ち、本発明は、(1)注目画素と所定画素数前の画素から等間隔おいた複数の画素とのそれぞれの差分をとる第1の演算手段と、その第1の演算手段により得られた各差分と閾値とを比較し、すべての差分が閾値を越える場合を検出する第1の比較手段と、その第1の比較手段の比較の結果すべての差分が閾値を越えていた場合にその注目画素位置を仮エッジとし、主走査方向に注目画素の位置を移しつつ前記演算手段と前記比較手段により得られた前記すべての差分が閾値を越えた場合が所定回数続いたときに前記仮エッジ位置を原稿エッジとして検出する第1のエッジ検出手段とを有する第1の原稿エッジ検出手段と、(2)注目画素と前画素との差分をとる第2の演算手段と、その第2の演算手段により得られた差分が閾値を越える場合を検出する第2の比較手段と、主走査方向における注目画素の位置を表すアドレスカウンタと、差分が閾値を越えたとき、アドレスカウンタの値を保持する、所定数の蓄積容量を持つシフトレジスタと、前記シフトレジスタに保持された所定数のアドレスの内、最大のアドレスと最小のアドレスの差分が所定範囲内に入っていたとき、最新のアドレスを原稿エッジとする第2のエッジ検出手段とを有する第2の原稿エッジ検出手段と、(3)前記第1および第2の原稿エッジ検出手段により検出された2つの原稿エッジ位置の内大きいほうを原稿エッジとしてサイズ検出を行うサイズ判別手段とを備えたことを特徴とする。
本発明によれば、上記第1の原稿エッジ検出手段、第2の原稿エッジ検出手段で検出した2つの原稿エッジの大きい方をサイズ判別手段により原稿エッジと判定することにより、種々の原稿に対して正確に原稿サイズ検出を行うことができる。
【0008】
【発明の実施の態様】
図2は本発明を実現する複写機の画像読取部の側面図である。
この画像読取部は、原稿を置くための原稿台1と白色の原稿覆い面を持つ原稿押さえ2および、原稿押さえ2の開閉により閉じかけの状態でオン/オフするようなスイッチからなるセンサ10、原稿押さえ2が閉じたときにオンとなる開閉状態検知センサ11が取り付けられている。
更に画像読取部の内部には、矢印Aで示す副走査方向に移動しながら原稿9の画像面に光を照射する光源3と前記画像面で反射された光をミラー4、5、6およびレンズ7を介して受光し電気信号に変換するCCDイメージセンサ8とが設けられている。
またCCDイメージセンサ8の後段には図3により後で説明する原稿サイズ検知部が設けられており、光源3で走査して得られた画像信号に基づいて原稿の有無、サイズを検出する。
【0009】
原稿台1上に原稿を置き原稿押さえを閉めようとするとき、ある所定の角度になると原稿押さえの取り付け部に付けられたアクチュエータが押されセンサ(PH1)10がオンする。このセンサ10がオンすることにより原稿押さえの閉じかけ状態の原稿の読み取りを行う。この閉じかけの状態では原稿押さえ2の白色の原稿覆い面からの光りの反射はCCDイメージセンサ8には到達しない。従って、原稿9の面をはずれた部分は黒として検出され、原稿面の印刷のない部分は原稿の地肌の濃度に応じた検出値が得られる。通常の地肌が白の紙に印刷された原稿の場合、原稿面の印刷のない部分は白として検出される。原稿押さえの閉じかけ状態の原稿の読み取りは、地肌が白である原稿のサイズを求めるために行われる。
【0010】
原稿押さえ2が完全に閉じると、センサ(PH2)11がオンになる。このセンサ11がオンになってから、2度目の原稿サイズ検知のための原稿読み取りを行う。この場合は、原稿9の面をはずれた部分は白として検出され、原稿面の印刷のない部分は原稿の地肌の濃度に応じた検出値が得られる。原稿押さえの全閉状態の原稿の読み取りは、地肌が有色の紙を用いた原稿のサイズを求めるために行われる。
原稿サイズ検知部では、第1回目および第2回目の原稿サイズ検知のための原稿読み取り走査の各過程において得られるそれぞれの画像データにより、原稿エッジの抽出をする。
【0011】
次に、前述の原稿押さえ2の閉じかけの状態および全閉の状態においてそれぞれ読み取っられる画像データから原稿サイズ検出を行う構成および動作を図1、図4、図5をもとに説明する。図1に示すように原稿サイズ検出装置は第1の原稿エッジ検出部1−1と第2の原稿エッジ検出部1−2の2つの検出装置によってエッジ検出される。第1の原稿エッジ検出部1−1は、原稿面の周辺の印刷されていない余白部分を読み取った画像データと原稿面の外側の部分から読み取った画像データの差からエッジ部分を検出しようとするものであり、第2の原稿エッジ検出部1−2は、原稿面の周辺の余白部分に文字や線が描かれていたりごみが付着していたりして、余白部分と原稿面の外側の部分からはエッジを検出できないような場合にも、検出を可能とするためのものである。
【0012】
まず、第1の原稿エッジ検出部1−1は、図4に示すように、入力された画像データを注目画素と差分をとるために必要なデータを保持しておくためのDフリップフロップにより構成されたデータディレイ部4−1、注目画素と所定画素数前の画素から等間隔おいた複数の画素とのそれぞれの差分をとるための減算器4−2、それぞれの減算結果を閾値と比較し、すべての差分が閾値を越えているかを判定する比較器4−3、その比較器4−3においてすべての差分が閾値をこえていることが連続して何回発生したかをカウントするカウンタ4−4、注目画素が主走査同期信号が立ち上がってから何画素のデータであるかをカウントするアドレスカウンタ4−5、前記カウンタ4−4において所定回数発生した場合は、その注目画素の位置をエッジとするエッジ検出部4−6で構成されている。
【0013】
注目画素6−1と差分をとる画素6−2、6−3、6−4、…のデータは、図6に示すように注目画素6−1のM画素前の画素6−2とその画素6−2からL画素間隔でQ−1画素、計Q画素のデータである。これらの画素はデータディレイ部4−1に設けた所定の遅延出力端子から抽出する。図4の減算器4−2は、図6に示すように、Q画素それぞれに対応して注目画素との差分をとるための減算器6−6〜6−9からなっている。また、図4の比較器4−3は、図6の比較器6−10〜6−13とAND回路6−14によって構成されている。
減算器6−6〜6−9の各出力は、比較器6−10〜6−13の入力へそれぞれ与えられ、閾値と比較される。比較器6−10〜6−13は減算器の出力が閾値を越えていたときは「H」を出力する。各比較器6−10〜6−13の出力はAND回路6−14へ与えられ、比較器の出力がすべて「H」のときに「H」が出力される。即ち、比較器4−3は、Q個のデータと注目画素の差分がすべて閾値を越えていた場合に「H」を出力し、ひとつでも閾値を越えていなかったら「L」を出力する。
【0014】
カウンタ4−4では比較器4−3の出力が連続して「H」となっている数をカウントする。カウンタ4−4の値が所定値になったら、カウンタ4−4は「H」を出力し、それ以外は「L」を出力している。エッジ検出部4−6ではカウンタ4−4の出力が「H」になったときのアドレスカウンタ4−5の値を保持しておく。保持しているアドレスカウンタ4−5の値は、カウンタ4−4の出力が「H」になったときに随時更新され、主走査同期信号が「L」になった時点で原稿エッジとして決定される仕組みになっている。
【0015】
以上に説明したエッジの検出は、前述のように原稿押さえの閉じかけの状態と原稿押さえ全閉の状態での2回行われる。原稿押さえの閉じかけの状態での検出では、地肌が白の原稿のエッジを検出でき、原稿押さえ全閉の状態での検出では地肌が黒っぽい原稿のエッジを検出できる。エッジ検出部4−6において、これらの1回目および2回目の検出で得られた2つの原稿エッジの内大きい方を原稿エッジとすることによって1方では検出できなかった原稿エッジを検出できる。従って、本実施の態様では原稿の地肌の濃度にかかわらずエッジの検出が可能となる。
【0016】
また、第1の原稿エッジ検出部1−1によれば、図7に示すように注目画素と差分をとる画素が複数かつ広範囲にあるため、閾値を越えた画素が連続してあらわれる回数(図7中のN)を増やすことなくノイズやごみの影響を受けにくくできる。また、注目画素と差分をとる複数の画素が等間隔おきにあることにより、差分をとる画素が存在する範囲内にあるすべての画素が連続して同じデータである必要がないため、その範囲内に線などの原稿下地とは違った画素が含まれてもその画素が図7の濃度比較を行わない区間に来たときに原稿エッジを検出することができる。
【0017】
次に、第2の原稿エッジ検出部1−2は図5に示すように、注目画素の1つ前の画素のデータを保持しておくデータディレイ部5−1、注目画素とその前の画素との差分をとる減算器5−2、その差分と閾値を比較する比較器5−3、注目画素が主走査同期信号が立ち上がってから何画素のデータであるかをカウントするアドレスカウンタ5−4、差分が閾値を越えていたらアドレスカウンタ5−4の値を保持しておき、差分が閾値を越えていた最新の所定数のアドレスを保持するようにするシフトレジスタ5−5、前記シフトレジスタ5−5の所定数のアドレスの内、最大のアドレスと最小のアドレスの差分が所定範囲内に入っていたら最新のアドレスを原稿エッジとするエッジ検出手段5−6で構成されている。
【0018】
データディレイ部5−1では注目画素とその前画素を取り出し、減算器5−2により両者の差を求め、得られた差分を比較器5−3により所定の閾値と比較して、閾値以上の差があるときに、その比較出力によりアドレスカウンタ5−4の値(これは主走査同期信号をカウントすることにより主走査方向の位置を表すことになる)をシフトレジスタ5−5に入力する。シフトレジスタ5−5は適宜の同期信号によりシフト動作が行われ、比較器5−3からの閾値以上の差を示す比較器出力が頻繁に生ずると、多数のアドレスカウンタの値が保持され、比較器出力があまり生じないところではシフトレジスタ5−5にはアドレスカウンタの値の数は少なくなる。エッジ検出部5−6は、シフトレジスタ5−5に保持されているアドレスカウンタ値のうち最大のものと最小のものとの差分を求め、その差分が所定範囲内に入っていたら最新のアドレスを原稿エッジとして保持する。このような動作を繰り返すことにより原稿エッジの更新を行いながら主走査同期信号が「L」になった時点で原稿エッジが決定される。
【0019】
最大のアドレスと最小のアドレスの差分が所定範囲内に入っているというのは、図8に示すように、所定区間S画素内に閾値を越えるような黒から白へ、または白から黒への変化が所定回数以上発生するということである。原稿における文字の印刷されているような部分において、そのような所定回数以上の発生がある。即ち、第2のエッジ検出部3−2では、文字の印刷されている部分を検出しながら、文字の印刷されている部分の最も外側の部分を見つけ、その近傍点を原稿エッジとみなす処理を行っていることになる。原稿端部に線が多くあるものや細かい文字が多くあるような原稿に関しては、所定範囲内に閾値を越えるような濃度変化が所定回数以上あればその部分を原稿エッジとする第2の検出装置で検出することによって、文字や線に着目しながら原稿エッジを探すので、第1の検出装置では検出しにくい原稿エッジを検出することができる。
【0020】
図1のサイズ判別部1−3では、上記第1のエッジ検出部1−1、第2のエッジ検出部1−2から出力される2つの原稿エッジの内大きい方を原稿エッジとすることによって1方では検出できなかった原稿エッジを検出することができる。
【0021】
【発明の効果】
本発明(請求項1)によれば、演算手段により注目画素と差分をとる画素が複数かつ広範囲にあるため、閾値を越えた画素が連続してあらわれる前記所定回数Nを増やすことなくノイズやごみの影響を受けにくくすることができる。また、注目画素と差分をとる複数の画素が等間隔おきにあることにより、差分をとる画素が存在する範囲内にあるすべての画素が連続して同じデータである必要がないため、その範囲内に線などの原稿下地とは違った画素が含まれてもその画素が濃度比較を行わない区間に来たときに原稿エッジを検出することができる。
【0022】
また、本発明(請求項2)によれば、所定範囲内に閾値を越えるような濃度変化が所定回数以上あればその部分を原稿エッジとして検出することによって、原稿端部に線が多くあるものや細かい文字が多くあるような原稿エッジを検出することができる。
【0023】
また、本発明(請求項3)によれば、第1の原稿エッジ検出手段と、第2の原稿エッジ検出手段の2つの異なるエッジ検出法を用い、検出した2つの原稿エッジの大きい方を原稿エッジとすることにより、いずれか一方のみでは検出できないような原稿エッジも検出することができ、正確に原稿サイズ検出を行うことができる。
【図面の簡単な説明】
【図1】本発明の実施の態様による原稿サイズ検知装置の概略の構成を示す図
【図2】複写機の画像読取部の要部の構成を示す図
【図3】複写機の画像読取部の要部の構成を示す図
【図4】第1の原稿エッジ検出部の構成を示す図
【図5】第2の原稿エッジ検出部の構成を示す図
【図6】第1の原稿エッジ検出部の動作を説明するための図
【図7】第1の原稿エッジ検出部の効果を説明するための図
【図8】第2の原稿エッジ検出部の動作を説明するための図
【符号の説明】
1−1…第1原稿エッジ検出部、1−2…第2原稿エッジ検出部、1−3…サイズ判別部、4−1…データディレイ部、4−2…減算器、4−3…比較器、4−4…カウンタ、4−5…アドレスカウンタ、4−6…エッジ検出部、5−1…データディレイ部、5−2…減算器、5−3…比較器、5−4…アドレスカウンタ、5−5…シフトレジスタ、5−6…エッジ検出部。[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a document size detecting device such as a digital copying machine.
[0002]
[Prior art]
In document size detection in a conventional copying machine or the like, a difference between a pixel of interest and a pixel ahead of a predetermined pixel is calculated in order to prevent erroneous detection due to the influence of noise or dust as disclosed in Japanese Patent Application Laid-Open No. 2-277038. Is determined. The above-described determination is performed each time the next pixel comes, and when the number of times exceeding the threshold value has continuously occurred a predetermined number of times, the position is set as the document edge. The document size is detected based on the result. That is, the difference between the white pixel of the document and the black pixel outside the document several pixels ahead is determined, and it is confirmed that the threshold value is exceeded. If the state occurs a predetermined number of times in a row, the position is defined as the document edge. Algorithm. Here, in order to detect a document edge by the above method, white pixels must be continuous at the edge of the document and black pixels must be continuous outside the document.
[0003]
[Problems to be solved by the invention]
In the above-mentioned conventional method, it is conceivable to increase the number of times that the threshold value must be continuously exceeded in order to reduce the influence of noise and dust. However, if the number of times that the threshold must be continuously exceeded is increased, the number of pixels that must continuously exceed the threshold increases by the increased number. That is, the number of white pixels that must be at the edge of the document increases. In this case, when characters or lines are present in pixels that must continuously exceed the threshold value, that is, there is a problem that an edge cannot be detected for a document having characters or lines at the edge of the document. .
[0004]
SUMMARY OF THE INVENTION It is an object of the present invention to provide a document size detecting device that does not cause erroneous detection due to noise or dust when detecting a document edge.
It is another object of the present invention to provide a document size detecting device capable of correctly detecting a document edge even for a document having characters, lines, or the like at the document end.
[0005]
Means and action for solving the problem
According to the present invention (claim 1), a pixel of interest (6-1 in FIG. 6), a pixel (6-2 in FIG. 6) a predetermined number of pixels (M pixels) before the pixel of interest, and an equal interval (L Calculation means (4-2 in FIG. 4, 6-6 to 6 in FIG. 6) for calculating respective differences from a plurality of pixels (6-3, 6-4,... In FIG. 6) sequentially positioned at pixel intervals). -9) and comparing means (4-3 in FIG. 4 and 6-10 to 6--6 in FIG. 6) for comparing each difference obtained by the arithmetic means with a threshold and detecting a case where all the differences exceed the threshold. 13, 6-14) and when all the differences exceed the threshold value as a result of the comparison by the comparing means, the target pixel position is set as a temporary edge, and the position of the target pixel is shifted in the main scanning direction and the temporary edge position when if the all the difference obtained by the comparing means exceeds the threshold value has continued for a predetermined number of times Characterized by comprising an edge detection means for detecting a document edge (4-6 of FIG. 4).
According to the present invention, since there are a plurality of pixels that have a difference from the pixel of interest by the calculating means and a wide range, noises and noises can be increased without increasing the predetermined number of times (N in FIG. 7) in which pixels exceeding the threshold value appear continuously. It can be less susceptible to garbage. In addition, since a plurality of pixels that take the difference from the target pixel are arranged at equal intervals, all the pixels within the range where the pixel that takes the difference exists need not have the same data continuously. When a pixel different from the original background such as a line is included, the original edge can be detected when the pixel comes to a section where the density comparison is not performed.
[0006]
Further, the present invention (claim 2) provides a calculation means (5-2 in FIG. 5) for obtaining a difference between a target pixel and a previous pixel, and a comparison for detecting a case where the difference obtained by the calculation means exceeds a threshold value. Means (5-3 in FIG. 5) , an address counter (5-4 in FIG. 5) indicating the position of the target pixel in the main scanning direction, and a predetermined value for holding the value of the address counter when the difference exceeds a threshold value. A shift register (5-5 in FIG. 5) having a number of storage capacities, and a difference between a maximum address and a minimum address among a predetermined number of addresses held in the shift register is within a predetermined range. And edge detecting means (5-6 in FIG. 5) for setting the latest address to the document edge .
According to the present invention, when a density change exceeding a threshold value within a predetermined range is more than a predetermined number of times, the portion is detected by the edge detection means as the document edge, whereby the edge detection means of the invention (claim 1) is detected. It is possible to detect a document edge having many lines or many fine characters at the document end which is difficult to detect.
[0007]
Further, the present invention (claim 3) is a document size detecting device having a configuration in which the two inventions (claims 1 and 2) are combined. That is, the present invention is obtained by (1) first arithmetic means for calculating respective differences between a pixel of interest and a plurality of pixels equidistant from a pixel preceding by a predetermined number of pixels, and the first arithmetic means. A first comparing means for comparing each difference with a threshold value and detecting a case where all the differences exceed the threshold value; the temporary edge position when if the pixel position is a temporary edge, all of said difference obtained by said comparing means and said calculating means being transferred to the position of the pixel of interest in the main scanning direction exceeds a threshold value has continued for a predetermined number of times A first document edge detecting means having a first edge detecting means for detecting an image as a document edge, (2) a second calculating means for calculating a difference between a target pixel and a previous pixel, and a second calculating means thereof Exceeds the threshold Second comparison means for detecting a case, the address counter indicating the position of the target pixel in the main scanning direction, when the difference exceeds a threshold value, holds the value of the address counter, a shift register having a storage capacity of a predetermined number And a second edge detecting means for setting the latest address to a document edge when a difference between a maximum address and a minimum address among a predetermined number of addresses held in the shift register falls within a predetermined range. And (3) size discriminating means for performing size detection using the larger one of the two document edge positions detected by the first and second document edge detecting means as a document edge. It is characterized by having.
According to the present invention, the larger one of the two document edges detected by the first document edge detecting means and the second document edge detecting means is determined as the document edge by the size determining means, so that various types of documents can be processed. Document size can be accurately detected.
[0008]
DESCRIPTION OF THE PREFERRED EMBODIMENTS
FIG. 2 is a side view of an image reading unit of a copying machine that realizes the present invention.
The image reading unit includes a document table 1 for placing a document, a
Further, inside the image reading unit, a
A document size detection unit, which will be described later with reference to FIG. 3, is provided at a stage subsequent to the
[0009]
When a document is to be placed on the document table 1 and the document press is to be closed, at a predetermined angle, the actuator attached to the mounting portion of the document press is pressed and the sensor (PH1) 10 is turned on. When the
[0010]
When the
The document size detection unit extracts a document edge from each image data obtained in each process of document reading scanning for the first and second document size detections.
[0011]
Next, a configuration and an operation for detecting the document size from the image data read in the closed state and the fully closed state of the above-described
[0012]
First, as shown in FIG. 4, the first document edge detection unit 1-1 is configured by a D flip-flop for holding data necessary for obtaining a difference between input image data and a target pixel. The subtracted data delay unit 4-1 calculates a difference between each pixel of interest and a plurality of pixels equally spaced from the pixel before the predetermined number of pixels, and compares each subtraction result with a threshold value. A comparator 4-3 for judging whether all the differences exceed the threshold value, and a
[0013]
The data of the pixels 6-2, 6-3, 6-4,... Taking the difference from the target pixel 6-1 include the pixel 6-2 before the target pixel 6-1 and the pixel 6-2, as shown in FIG. Data of Q-1 pixels at intervals of L pixels from 6-2, ie, a total of Q pixels. These pixels are extracted from a predetermined delay output terminal provided in the data delay section 4-1. As shown in FIG. 6, the subtractor 4-2 in FIG. 4 includes subtractors 6-6 to 6-9 for calculating a difference between the Q pixel and the target pixel. The comparator 4-3 in FIG. 4 includes the comparators 6-10 to 6-13 and the AND circuit 6-14 in FIG.
Outputs of the subtractors 6-6 to 6-9 are supplied to inputs of the comparators 6-10 to 6-13, respectively, and are compared with threshold values. The comparators 6-10 to 6-13 output "H" when the output of the subtractor exceeds the threshold. The output of each of the comparators 6-10 to 6-13 is applied to an AND circuit 6-14, and when all the outputs of the comparators are at "H", "H" is output. That is, the comparator 4-3 outputs “H” when all the differences between the Q data and the target pixel exceed the threshold value, and outputs “L” when at least one of the differences does not exceed the threshold value.
[0014]
The counter 4-4 counts the number of times the output of the comparator 4-3 is continuously "H". When the value of the counter 4-4 reaches a predetermined value, the counter 4-4 outputs "H", and otherwise outputs "L". The edge detection unit 4-6 holds the value of the address counter 4-5 when the output of the counter 4-4 becomes "H". The held value of the address counter 4-5 is updated as needed when the output of the counter 4-4 becomes "H", and is determined as a document edge when the main scanning synchronization signal becomes "L". It is a mechanism that works.
[0015]
The edge detection described above is performed twice, as described above, in a state in which the document press is almost closed and a state in which the document press is fully closed. In the state where the original is closed, the edge of the original with white background can be detected, and in the state where the original is fully closed, the edge of the original with black background can be detected. The edge detection unit 4-6 can detect a document edge that could not be detected by using the larger one of the two document edges obtained in the first and second detections as the document edge. Therefore, in this embodiment, the edge can be detected regardless of the density of the background of the document.
[0016]
Further, according to the first document edge detection unit 1-1, as shown in FIG. 7, since there are a plurality of pixels that take a difference from the pixel of interest and in a wide range, the number of times pixels exceeding the threshold value appear continuously (see FIG. 7). 7) can be made less susceptible to noise and dust without increasing N). In addition, since a plurality of pixels that take the difference from the target pixel are arranged at equal intervals, all the pixels within the range where the pixel that takes the difference exists need not have the same data continuously. Even if a pixel different from the original background, such as a line, is included, the original edge can be detected when the pixel comes to the section where the density comparison is not performed in FIG.
[0017]
Next, as shown in FIG. 5, the second document edge detection unit 1-2 includes a data delay unit 5-1 for holding data of a pixel immediately before the pixel of interest, a pixel of interest and a pixel preceding the pixel. Subtractor 5-2 which takes the difference from the data, a comparator 5-3 which compares the difference with a threshold, and an address counter 5-4 which counts the number of pixels of the pixel of interest since the rise of the main scanning synchronization signal. If the difference exceeds the threshold value, the value of the address counter 5-4 is held, and the shift register 5-5 and the
[0018]
The data delay unit 5-1 takes out the target pixel and the preceding pixel, obtains the difference between them by the subtracter 5-2, compares the obtained difference with a predetermined threshold by the comparator 5-3, When there is a difference, the value of the address counter 5-4 (which indicates the position in the main scanning direction by counting the main scanning synchronization signal) is input to the shift register 5-5 by the comparison output. The shift register 5-5 performs a shift operation by an appropriate synchronizing signal, and when a comparator output indicating a difference equal to or larger than a threshold value from the comparator 5-3 frequently occurs, the values of a large number of address counters are held and compared. Where the output of the device is not so large, the number of values of the address counter in the shift register 5-5 is reduced. The edge detection unit 5-6 calculates the difference between the maximum and minimum address counter values held in the shift register 5-5, and if the difference falls within a predetermined range, the latest address is determined. It is held as a document edge. By repeating such an operation, the document edge is determined when the main scanning synchronization signal becomes "L" while updating the document edge.
[0019]
The fact that the difference between the maximum address and the minimum address falls within the predetermined range means that, as shown in FIG. That is, the change occurs more than a predetermined number of times. Such an occurrence occurs more than a predetermined number of times in a portion of a document where characters are printed. In other words, the second edge detection unit 3-2 performs a process of finding the outermost portion of the printed portion of the character while detecting the printed portion of the character, and determining a nearby point as the document edge. You are doing it. For an original having many lines or fine characters at the end of the original, if a density change exceeding a threshold value within a predetermined range is more than a predetermined number of times, a second detection device using that portion as the document edge Since the document edge is searched while paying attention to characters and lines, the document edge that is difficult to be detected by the first detection device can be detected.
[0020]
The size discriminating section 1-3 in FIG. 1 determines the larger one of the two document edges output from the first edge detecting section 1-1 and the second edge detecting section 1-2 as the document edge. A document edge that could not be detected by one can be detected.
[0021]
【The invention's effect】
According to the present invention (claim 1), since there are a plurality of pixels that have a difference from the pixel of interest by the arithmetic means and in a wide range, noise and dust are not increased without increasing the predetermined number N in which pixels exceeding the threshold value appear continuously. Can be hardly affected. In addition, since a plurality of pixels that take the difference from the target pixel are arranged at equal intervals, all the pixels within the range where the pixel that takes the difference exists need not have the same data continuously. When a pixel different from the original background such as a line is included, the original edge can be detected when the pixel comes to a section where the density comparison is not performed.
[0022]
Further, according to the present invention (claim 2), when a density change exceeding a threshold value within a predetermined range is more than a predetermined number of times, the portion is detected as a document edge, so that there are many lines at the document end. A document edge having many small characters can be detected.
[0023]
Further, according to the present invention (claim 3), the two different edge detection methods of the first document edge detecting means and the second document edge detecting means are used, and the larger of the two detected document edges is used as the document edge. By using the edge, a document edge that cannot be detected by only one of them can be detected, and the document size can be accurately detected.
[Brief description of the drawings]
FIG. 1 is a diagram showing a schematic configuration of a document size detecting device according to an embodiment of the present invention; FIG. 2 is a diagram showing a configuration of a main part of an image reading unit of a copying machine; FIG. FIG. 4 is a diagram showing a configuration of a first document edge detection unit. FIG. 5 is a diagram showing a configuration of a second document edge detection unit. FIG. 6 is a diagram showing a first document edge detection. FIG. 7 is a diagram for explaining the operation of the first document edge detector. FIG. 8 is a diagram for explaining the operation of the second document edge detector. Description】
1-1: First document edge detecting section, 1-2: Second document edge detecting section, 1-3: Size discriminating section, 4-1: Data delay section, 4-2: Subtractor, 4-3: Comparison 4-4 counter, 4-5 address counter, 4-6 edge detector, 5-1 data delay unit, 5-2 subtractor, 5-3 comparator, 5-4 address Counter, 5-5... Shift register, 5-6.
Claims (3)
前記演算手段により得られた各差分を閾値と比較し、すべての差分が閾値を越える場合を検出する比較手段と、
前記比較手段の比較の結果すべての差分が閾値を越えていた場合にその注目画素位置を仮エッジとし、主走査方向に注目画素の位置を移しつつ前記演算手段と前記比較手段により得られた前記すべての差分が閾値を越えた場合が所定回数続いたときに前記仮エッジ位置を原稿エッジとして検出するエッジ検出手段と
を備えたことを特徴とする原稿サイズ検出装置。Calculating means for calculating a difference between the pixel of interest and a pixel which is a predetermined number of pixels before the pixel of interest and a plurality of pixels sequentially positioned at equal intervals from the pixel;
A comparing unit that compares each difference obtained by the arithmetic unit with a threshold, and detects a case where all the differences exceed the threshold;
When all the differences exceed the threshold value as a result of the comparison by the comparing unit, the target pixel position is set as a temporary edge, and the position of the target pixel is shifted in the main scanning direction, and the position obtained by the arithmetic unit and the comparing unit is obtained. A document size detection device comprising: edge detection means for detecting the temporary edge position as a document edge when a predetermined number of times when all the differences exceed the threshold value .
前記演算手段により得られた差分が閾値を 越える場合を検出する比較手段と、
主走査方向における注目画素の位置を表すアドレスカウンタと、
差分が閾値を越えたとき、アドレスカウンタの値を保持する、所定数の蓄積容量を持つシフトレジスタと、
前記シフトレジスタに保持された所定数のアドレスの内、最大のアドレスと最小のアドレスの差分が所定範囲内に入っていたとき、最新のアドレスを原稿エッジとするエッジ検出手段と
を備えたことを特徴とする原稿サイズ検出装置。Calculating means for calculating the difference between the target pixel and the previous pixel;
Comparing means for detecting a case where the difference obtained by the calculating means exceeds a threshold value;
An address counter representing the position of the pixel of interest in the main scanning direction;
A shift register that holds a value of an address counter when the difference exceeds a threshold and has a predetermined number of storage capacitors;
Edge detection means for setting the latest address to a document edge when a difference between a maximum address and a minimum address of a predetermined number of addresses held in the shift register is within a predetermined range. An original size detecting device, comprising:
注目画素と前画素との差分をとる第2の演算手段と、その第2の演算手段により得られた差分が閾値を越える場合を検出する第2の比較手段と、主走査方向における注目画素の位置を表すアドレスカウンタと、差分が閾値を越えたとき、アドレスカウンタの値を保持する、所定数の蓄積容量を持つシフトレジスタと、前記シフトレジスタに保持された所定数のアドレスの内、最大のアドレスと最小のアドレスの差分が所定範囲内に入っていたとき、最新のアドレスを原稿エッジとする第2のエッジ検出手段とを有する第2の原稿エッジ検出手段と、
前記第1および第2の原稿エッジ検出手段により検出された2つの原稿エッジ位置の内大きいほうを原稿エッジとしてサイズ検出を行うサイズ判別手段と
を備えたことを特徴とする原稿サイズ検出装置。First arithmetic means for calculating respective differences between the target pixel and a plurality of pixels spaced at equal intervals from the pixel before the predetermined number of pixels, and comparing each difference obtained by the first arithmetic means with a threshold value; A first comparing means for detecting a case where all the differences exceed the threshold value; and a case where all the differences exceed the threshold value as a result of the comparison by the first comparing means, the target pixel position is set as a temporary edge, and the main scanning is performed. Detecting the temporary edge position as a document edge when a predetermined number of times that all of the differences obtained by the calculation means and the comparison means exceed a threshold while moving the position of the pixel of interest in the direction, First document edge detecting means having edge detecting means;
A second calculating means for calculating a difference between the target pixel and the previous pixel; a second comparing means for detecting a case where the difference obtained by the second calculating means exceeds a threshold value; An address counter that indicates the position, a shift register that holds a value of the address counter when the difference exceeds a threshold, and has a predetermined number of storage capacities; and a maximum number of addresses of a predetermined number of addresses held in the shift register. When the difference between the address and the smallest address falls within a predetermined range, a second document edge detecting means having second edge detecting means using the latest address as a document edge ;
Before SL document size detection apparatus characterized by comprising a size determining means for performing the size detected as should the original edge larger of the two document edge position detected by the first and second document edge detection means.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP03854397A JP3584658B2 (en) | 1997-02-07 | 1997-02-07 | Document size detector |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP03854397A JP3584658B2 (en) | 1997-02-07 | 1997-02-07 | Document size detector |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH10224563A JPH10224563A (en) | 1998-08-21 |
| JP3584658B2 true JP3584658B2 (en) | 2004-11-04 |
Family
ID=12528209
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP03854397A Expired - Fee Related JP3584658B2 (en) | 1997-02-07 | 1997-02-07 | Document size detector |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3584658B2 (en) |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP4662807B2 (en) * | 2004-08-06 | 2011-03-30 | 株式会社リコー | Document reading apparatus, image processing apparatus, image forming apparatus, and copying apparatus |
| JP4718250B2 (en) * | 2005-06-15 | 2011-07-06 | 株式会社創発システム研究所 | Image processing device |
| JP4745949B2 (en) | 2006-12-11 | 2011-08-10 | キヤノン株式会社 | Image processing apparatus and control method thereof |
| JP5755089B2 (en) | 2011-09-08 | 2015-07-29 | 株式会社Pfu | Image processing apparatus, image processing method, image processing program, and image processing system |
-
1997
- 1997-02-07 JP JP03854397A patent/JP3584658B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH10224563A (en) | 1998-08-21 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4929844A (en) | Apparatus for detecting the presence and size of a document | |
| US10764461B2 (en) | Image reading apparatus with determination of original size, and image forming apparatus, reading method, and image forming system therewith | |
| JP3584658B2 (en) | Document size detector | |
| CN100431332C (en) | Device and method for detecting security documents | |
| JPS6247026B2 (en) | ||
| JP3614122B2 (en) | Reading surface dust detection device for sheet-through document reading system | |
| JP2947126B2 (en) | Original image capture device | |
| JPH08265563A (en) | Image reader | |
| JPH03230683A (en) | Copying machine | |
| JP2000078409A (en) | Device and method for reading image | |
| JP2797957B2 (en) | Flatbed scanner with document size detection function | |
| JP3779741B2 (en) | Character image binarization method | |
| JPS639270B2 (en) | ||
| JP2551383B2 (en) | Straight line detection and correction device | |
| JP4157251B2 (en) | Image processing apparatus and image processing method | |
| KR100213024B1 (en) | Digital Noise Reduction Device Using Interpolation | |
| JP2823886B2 (en) | Document size detection method | |
| JPH09244162A (en) | Document size detector | |
| JPH0414067B2 (en) | ||
| JPH09243331A (en) | Document size detector | |
| JPS63296461A (en) | Image area discrimination device | |
| JP3060490B2 (en) | Document reading device | |
| JP2000278466A (en) | Image reader | |
| JPH03121472A (en) | Original size detection device | |
| JPH085468Y2 (en) | Document size detector |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| TRDD | Decision of grant or rejection written | ||
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20040713 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20040726 |
|
| R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20070813 Year of fee payment: 3 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080813 Year of fee payment: 4 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090813 Year of fee payment: 5 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100813 Year of fee payment: 6 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110813 Year of fee payment: 7 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120813 Year of fee payment: 8 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120813 Year of fee payment: 8 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130813 Year of fee payment: 9 |
|
| LAPS | Cancellation because of no payment of annual fees |