JP3480401B2 - Document reading apparatus and black streak detection method - Google Patents

Document reading apparatus and black streak detection method

Info

Publication number
JP3480401B2
JP3480401B2 JP33350299A JP33350299A JP3480401B2 JP 3480401 B2 JP3480401 B2 JP 3480401B2 JP 33350299 A JP33350299 A JP 33350299A JP 33350299 A JP33350299 A JP 33350299A JP 3480401 B2 JP3480401 B2 JP 3480401B2
Authority
JP
Japan
Prior art keywords
black
pixel
pixels
white
run length
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
JP33350299A
Other languages
Japanese (ja)
Other versions
JP2001157046A (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.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP33350299A priority Critical patent/JP3480401B2/en
Publication of JP2001157046A publication Critical patent/JP2001157046A/en
Application granted granted Critical
Publication of JP3480401B2 publication Critical patent/JP3480401B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、ファクシミリ装
置、スキャナ、複写機等に適用され、ステージガラス等
に付着した不純物による黒すじを検出する機能を有する
画像読取装置、および不純物による黒すじを検出する黒
すじ検出方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention is applied to a facsimile machine, a scanner, a copying machine, and the like, and has an image reading device having a function of detecting black stripes due to impurities adhering to a stage glass or the like, and a black stripe due to impurities. The present invention relates to a black streak detection method.

【0002】[0002]

【従来の技術】一般にファクシミリ装置等では、原稿を
搬送しつつ光によって走査し、各走査ラインから画像情
報を読み取る方法が採用されている。このようなファク
シミリ装置等に適用される画像読取装置では、光源と原
稿との間の光学経路上にごみやほこり等の不純物が存在
すると光が遮られることとなる。この結果、文字等が何
も書かれていない部分を走査した場合であっても不純物
の存在する位置に対応する画素は黒として読み取られ、
搬送された原稿を読み取った画像には黒すじが発生す
る。
2. Description of the Related Art Generally, a facsimile apparatus or the like employs a method in which an original is conveyed and scanned by light to read image information from each scanning line. In an image reading apparatus applied to such a facsimile apparatus, light is blocked when impurities such as dust and dust are present on the optical path between the light source and the original. As a result, even when scanning a portion where no characters or the like are written, the pixel corresponding to the position where the impurity exists is read as black,
Black streaks occur in the image read from the conveyed document.

【0003】そこで、オペレータが不純物を清掃して除
去できるように黒すじを検出する原稿読取装置が種々提
案されている。例えば、特開平6−303428号公報
には、1ページ内の各走査ライン上で同一の位置にある
画素毎に2値化された情報の論理演算を行い、この論理
演算の結果が1ページ内の全ラインにおいて黒画素を読
み取ったことを示す場合に、その画素に対応する位置に
黒すじが発生したことを検出する画像読取装置が記載さ
れている。
Therefore, various document reading apparatuses have been proposed which detect black streaks so that an operator can clean and remove impurities. For example, in Japanese Unexamined Patent Publication No. 6-303428, a logical operation of binarized information is performed for each pixel at the same position on each scanning line within one page, and the result of this logical operation is within one page. In the case where it is indicated that a black pixel has been read in all the lines, an image reading device that detects that a black streak has occurred at a position corresponding to the pixel is described.

【0004】また、複数ページにわたって、各走査ライ
ン上で同一の位置にある画素毎に2値化された情報の論
理演算を行い、この論理演算の結果が各ページで黒画素
を読み取ったことを示す場合に、その画素に対応する位
置に黒すじが発生したことを検出する画像読取装置も記
載されている。このような画像読取装置によれば、原稿
の中に罫線等を含むページがある場合でも、罫線等を黒
すじとして誤検出することを防ぐことができる。
Further, over a plurality of pages, a logical operation of binarized information is performed for each pixel at the same position on each scanning line, and the result of this logical operation indicates that a black pixel is read on each page. In the case shown, there is also described an image reading apparatus that detects the occurrence of black streaks at the position corresponding to the pixel. According to such an image reading apparatus, even if there is a page including ruled lines or the like in the document, it is possible to prevent erroneous detection of the ruled lines or the like as black streaks.

【0005】[0005]

【発明が解決しようとする課題】しかし、そのような画
像読取装置は、大量のメモリを必要とする。複数の走査
ライン上の各画素について論理演算を行うために、読み
取った走査ラインにおける各画素の2値データを格納す
るラインバッファ、既に読み取った各ラインにおける各
画素の論理演算の結果を格納するラインバッファ、これ
ら二つのラインバッファに格納された各画素の論理演算
の結果を格納するラインバッファを必要とするからであ
る。
However, such an image reading apparatus requires a large amount of memory. A line buffer for storing binary data of each pixel in the read scanning line to perform a logical operation for each pixel on the plurality of scanning lines, and a line for storing the result of the logical operation of each pixel in each already read line This is because a buffer and a line buffer that stores the result of the logical operation of each pixel stored in these two line buffers are required.

【0006】また、罫線等を黒すじとして誤検出しない
ようにするために、複数ページにわたって原稿を読み取
る場合、黒すじの検出に時間がかかってしまう。さら
に、原稿を読み取りつつ黒すじを検出する構成なので、
黒すじを解消して原稿を読み取る場合には、黒すじ検出
のための原稿読み取りと黒すじを解消した画像を得るた
めの原稿読み取りを行わねばならず、手間がかかる。
In order to prevent erroneous detection of ruled lines and the like as black streaks, it takes time to detect black streaks when reading an original over a plurality of pages. Furthermore, because it is configured to detect black streaks while reading the original,
When the original is read while eliminating the black streaks, it is necessary to read the original for detecting the black streaks and the original for obtaining the image in which the black streaks are eliminated, which is troublesome.

【0007】本発明は、大量のメモリを必要とせず、原
稿を読み取らなくても黒すじを検出することができる画
像処理装置および黒すじ検出方法を提供することを目的
とする。
It is an object of the present invention to provide an image processing apparatus and a black streak detecting method which can detect a black streak without reading a document without requiring a large amount of memory.

【0008】[0008]

【課題を解決するための手段】本発明による画像処理装
置は、走査位置に原稿を搬送させるローラを備え光によ
る走査で走査ライン毎に画像情報を読み取る光学式情報
読取手段と、各走査ラインの画像情報を画素単位に黒画
素と白画素とに2値化する2値化手段と、各走査ライン
上で白画素が連続する数である白画素のラン長および黒
画素が連続する数である黒画素のラン長を求めるラン長
演算手段と、白画素のラン長および黒画素のラン長から
各走査ライン上で黒すじの候補となる位置を算出する候
補位置算出手段と、各走査ラインにおける黒すじの候補
となる位置が一定のライン数以上にわたって特定の位置
関係にある場合に黒すじが発生したと判断して黒すじを
検出する黒すじ検出手段とを備え、候補位置算出手段
は、白画素のラン長および黒画素のラン長から各走査ラ
イン上で白画素が黒画素に変化する位置を黒すじの候補
となる位置として算出し、黒すじ検出手段は、白画素が
黒画素に変化する位置が次の走査ラインにおいても同じ
位置であるという関係が一定のライン数以上連続して成
立する場合にその白画素から変化した黒画素の位置に黒
すじが発生したと判断して黒すじを検出することを特徴
とする。
An image processing apparatus according to the present invention is provided with a roller for conveying a document to a scanning position, an optical information reading means for reading image information for each scanning line by scanning with light, and an optical information reading means for each scanning line. The binarizing means for binarizing the image information into black pixels and white pixels on a pixel-by-pixel basis, and the run length of white pixels, which is the number of consecutive white pixels on each scanning line, and the number of consecutive black pixels. A run length calculating means for obtaining a run length of a black pixel, a candidate position calculating means for calculating a position which is a candidate for a black streak on each scan line from a run length of a white pixel and a run length of a black pixel, and a scan position for each scan line When a position that is a candidate for a black streak has a specific positional relationship for a certain number of lines or more, it is determined that a black streak has occurred, and a black streak detection unit that detects the black streak is provided , and the candidate position calculation unit is provided .
Is the scan length from the white pixel run length and the black pixel run length.
The position where the white pixel changes to a black pixel on the in
Is calculated as the position where the white pixel is
The position where the black pixel changes is the same on the next scanning line
The relationship of position is established continuously for a certain number of lines or more.
When it stands, black is changed from the white pixel to the position of the black pixel.
It is characterized in that it is determined that streaks have occurred and black streaks are detected .

【0009】 本発明による画像処理装置は、走査位置
に原稿を搬送させるローラを備え光による走査で走査ラ
イン毎に画像情報を読み取る光学式情報読取手段と、各
走査ラインの画像情報を画素単位に黒画素と白画素とに
2値化する2値化手段と、各走査ライン上で白画素が連
続する数である白画素のラン長および黒画素が連続する
数である黒画素のラン長を求めるラン長演算手段と、白
画素のラン長および黒画素のラン長から各走査ライン上
で黒すじの候補となる位置を算出する候補位置算出手段
と、各走査ラインにおける黒すじの候補となる位置が一
定のライン数以上にわたって特定の位置関係にある場合
に黒すじが発生したと判断して黒すじを検出する黒すじ
検出手段とを備え、候補位置算出手段は、白画素のラン
長と黒画素のラン長とから算出される白画素から黒画素
への変化位置であって、走査ラインの先頭からの画素数
として表される位置をXとし、黒画素のラン長をYとし
たときに、Yが奇数の場合にはX+(Y+1)/2によ
って、走査ライン上で連続する黒画素の中心位置を黒す
じの候補となる位置として算出し、Yが偶数の場合には
X+Y/2によって、走査ライン上で連続する黒画素の
中心位置を黒すじの候補となる位置として算出し、黒す
じ検出手段は、連続する黒画素の中心位置が次の走査ラ
インにおいて黒画素であるという関係が一定のライン数
以上連続して成立する場合に黒画素の中心位置に黒すじ
が発生したと判断して黒すじを検出することを特徴とす
る。
The image processing apparatus according to the present invention has a scanning position.
It is equipped with a roller that conveys the original on the
Optical information reading means for reading image information for each
The image information of the scanning line is divided into black pixels and white pixels in pixel units.
Binarization means for binarization and white pixels are connected on each scan line.
The run length of white pixels and the number of black pixels that are consecutive numbers are consecutive
A run length calculation means for obtaining the run length of the black pixel
On each scan line from the pixel run length and the black pixel run length
Position calculation means for calculating the position that is a candidate for black streaks
And the positions that are candidates for black streaks in each scan line are
When there is a specific positional relationship over a certain number of lines
Black streaks that detect black streaks by determining that black streaks have occurred
And a candidate position calculation means for detecting the white pixel run.
White pixel to black pixel calculated from the length and run length of black pixel
Number of pixels from the beginning of the scan line
Is defined as X, and the run length of the black pixel is defined as Y.
If Y is odd, then X + (Y + 1) / 2
Black the center position of consecutive black pixels on the scan line.
If the Y is an even number,
By X + Y / 2, the continuous black pixels on the scan line
The center position is calculated as the position that is
The edge detection means determines that the center position of consecutive black pixels is the next scan line.
The number of lines with a constant relationship of black pixels in
If the above conditions are continuously satisfied, the black streak is displayed at the center position of the black pixel.
Is characterized by detecting black streaks when it is determined that
It

【0010】 また、光学式情報読取手段は、走査する
位置に白色のローラを備え原稿が走査位置にない場合に
前記ローラを回転しつつ走査ライン毎に画像情報を読み
取る構成であってもよい。このような構成によれば、回
転する白色のローラの画像を読み取ることにより、走査
位置に原稿がない場合であっても、不純物による黒すじ
を検出することができる。
The optical information reading means scans.
If there is a white roller in the position and the document is not in the scanning position,
Image information is read for each scanning line while rotating the roller.
It may be configured to take. With this configuration,
Scan by scanning the image of the rolling white roller
Black streaks due to impurities even when there is no document in the position
Can be detected.

【0011】 また、黒すじ検出手段は、黒画素が連続
する数である黒画素のラン長が一定の長さ以上である場
合にその黒画素に関する黒すじの候補となる位置を特定
の位置関係にあるか否かの判断対象から除外する構成で
あってもよい。このような構成によれば、黒すじと原稿
の文字等とが交差したため黒すじの候補となる位置が大
きく変化する走査ラインが生じても、黒すじを検出する
ことができる。
Further , the black streak detecting means has a continuous black pixel.
If the run length of black pixels, which is the number of
In that case, specify the position that is a candidate for the black streak for that black pixel
With the configuration that excludes from the judgment target of whether or not there is a positional relationship
It may be. With such a configuration, black lines and originals
Because of the intersection with the characters such as
Detects black streaks even if there are scan lines that change sharply
be able to.

【0012】 また、黒すじを検出した場合に黒すじの
位置を出力する黒すじ情報出力手段を備えていてもよ
い。このような構成によれば、オペレータが除去すべき
不純物の位置を知ることができ、清掃して不純物を除去
することで黒すじを解消することができる。
Further , when the black streak is detected, the black streak is detected.
It may have a black streak information output means for outputting the position.
Yes. With such a configuration, the operator should remove
You can know the position of impurities and clean them to remove impurities
By doing so, it is possible to eliminate black streaks.

【0013】 また、光学式情報読取手段は、原稿搬送
経路の一部として目盛ゲージを有し光を透過させるガラ
ス面を備え、黒すじ情報出力手段は、前記ガラス面が有
する目盛ゲージに応じた黒すじの位置を表示する構成で
あってもよい。このような構成によれば、オペレータが
不純物の位置をより簡単に知ることができる。
Further , the optical information reading means is used to convey a document.
A glass that has a scale gauge as part of the path and transmits light.
The glass surface is provided in the black streak information output means.
With a configuration that displays the position of the black streak according to the scale gauge
It may be. With this configuration, the operator
The position of impurities can be known more easily.

【0014】 本発明による黒すじ検出方法は、光によ
る走査で走査ライン毎に回転する白色のローラの画像情
報を読み取り、各走査ラインの画像情報を画素単位に黒
画素と白画素とに2値化し、各走査ライン上で白画素が
連続する数である白画素のラン長および黒画素が連続す
る数である黒画素のラン長を求め、白画素のラン長およ
び黒画素のラン長から各走査ライン上で白画素が黒画素
に変化する位置を黒すじの候補となる位置として算出
し、黒すじの候補となる位置として算出した位置が次の
走査ラインにおいても同じ位置であるという関係が一定
のライン数以上連続して成立する場合にその白画素から
変化した黒画素の位置に黒すじが発生したと判断して黒
すじを検出することを特徴とする。
The black streak detection method according to the present invention uses light.
Image information of a white roller that rotates every scan line
Information is read and the image information of each scan line is blacked in pixel units.
Binarization into pixels and white pixels, white pixels on each scan line
The run length of white pixels and the number of black pixels
The run length of black pixels, which is the number of
From the run length of black and white pixels, white pixels are black pixels on each scan line
Calculate the position that changes to as a position that is a candidate for black streaks
However, the position calculated as the position that is a candidate for black streaks is
The relationship of being at the same position on the scan line is constant
From the white pixel when the number of lines of
It is judged that a black streak has occurred at the changed black pixel position and black
It is characterized by detecting streaks.

【0015】 また、本発明による黒すじ検出方法は、
光による走査で走査ライン毎に回転する白色のローラの
画像情報を読み取り、各走査ラインの画像情報を画素単
位に黒画素と白画素とに2値化し、各走査ライン上で白
画素が連続する数である白画素のラン長および黒画素が
連続する数である黒画素のラン長を求め、白画素のラン
長と黒画素のラン長とから算出される白画素から黒画素
への変化位置であって、走査ラインの先頭からの画素数
として表される位置をXとし、黒画素のラン長をYとし
たときに、Yが奇数の場合にはX+(Y+1)/2によ
って、走査ライン上で連続する黒画素の中心位置を黒す
じの候補となる位置として算出し、Yが偶数の場合には
X+Y/2によって、走査ライン上で連続する黒画素の
中心位置を黒すじの候補となる位置として算出し、黒す
じの候補となる位置として算出した連続する黒画素の中
心位置が次の走査ラインにおいて黒画素であるという関
係が一定のライン数以上連続して成立する場合に黒画素
の中心位置に黒すじが発生したと判断して黒すじを検出
することを特徴とする。
Further, the black streak detection method according to the present invention is
Image information of a white roller that rotates for each scanning line is read by scanning with light, the image information of each scanning line is binarized into black pixels and white pixels in pixel units, and white pixels are continuous on each scanning line. obtains the run length of black pixels is the number of run length and the black pixels of white pixels are continuous is the number, the run of white pixels
White pixel to black pixel calculated from the length and run length of black pixel
Number of pixels from the beginning of the scan line
Is defined as X, and the run length of the black pixel is defined as Y.
If Y is odd, then X + (Y + 1) / 2
Black the center position of consecutive black pixels on the scan line.
If the Y is an even number,
By X + Y / 2, the continuous black pixels on the scan line
The center position is calculated as the position that is
Among consecutive black pixels calculated as the same candidate position
If the center position is a black pixel in the next scan line,
Black pixel when the relationship is established continuously for a certain number of lines or more
Detects black streaks by determining that black streaks have occurred at the center position of
It is characterized by doing.

【0016】[0016]

【発明の実施の形態】以下、本発明の実施の形態を図面
を参照して説明する。図1は、本発明による画像読取装
置の実施の一形態を示すブロック図である。ここでは、
画像読取装置がファクシミリ装置に適用された場合につ
いて示す。制御部7は、CPUおよびプログラムを記憶
するROM、RAM等によって構成され、所定のプログ
ラムにしたがい画像読取装置およびファクシミリ装置を
制御する。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing an embodiment of an image reading apparatus according to the present invention. here,
The case where the image reading apparatus is applied to a facsimile apparatus will be described. The control unit 7 is composed of a CPU, a ROM that stores a program, a RAM, and the like, and controls the image reading apparatus and the facsimile apparatus according to a predetermined program.

【0017】ユーザインタフェース部8は、例えば、キ
ー入力部およびLCD等によって構成され、オペレータ
による黒すじ検出の指示や各種設定を入力し、入力され
た設定を表示する。また、ユーザインタフェース部8を
構成するLCD等は、検出した黒すじの位置情報を表示
する。
The user interface section 8 is composed of, for example, a key input section, an LCD, etc., and inputs an instruction for black streak detection by an operator and various settings, and displays the input settings. Further, the LCD or the like which constitutes the user interface unit 8 displays the position information of the detected black streak.

【0018】原稿読取部1は、モータ等を制御してロー
ラにより原稿を搬送し、搬送経路上に存在する読取走査
ライン位置を通過させる。読取走査ライン位置とは、原
稿読取装置が光で原稿を走査して1ライン分の画像情報
を読み取る位置であり、この位置は固定されている。原
稿読取部1は、走査ライン毎に原稿の画像情報を読み取
り、読み取った情報を光電変換してアナログ信号として
A−D変換部2に出力する。
The document reading unit 1 controls the motor and the like to convey the document by the rollers, and passes the reading scanning line position existing on the conveyance path. The reading scanning line position is a position where the document reading device scans the document with light to read one line of image information, and this position is fixed. The document reading unit 1 reads the image information of the document for each scanning line, photoelectrically converts the read information, and outputs it as an analog signal to the AD conversion unit 2.

【0019】図2は、原稿読取部1を横側から見た様子
を示す説明図である。原稿11は、原稿読取装置が読み
取っている原稿の1ページ分である。送り込みローラ1
2は、二つのローラによって構成され、オペレータにセ
ットされた原稿を白色ローラ13まで送る。白色ローラ
13は、白い材質のゴム等を用いたローラであり、読取
走査ライン位置の上に位置する。白色ローラ13は、搬
送される原稿11を読取走査ライン位置に導く。排出ロ
ーラ14は、二つのローラによって構成され、読み取っ
た原稿11を排出する。ガイド15は、原稿搬送経路に
設けられ、原稿をスムーズに搬送させる。
FIG. 2 is an explanatory view showing a state in which the document reading section 1 is viewed from the side. The document 11 is one page of the document read by the document reading device. Feeding roller 1
2 is composed of two rollers, and sends the document set by the operator to the white roller 13. The white roller 13 is a roller made of white rubber or the like, and is located above the reading / scanning line position. The white roller 13 guides the conveyed document 11 to the reading scanning line position. The discharge roller 14 is composed of two rollers and discharges the read document 11. The guide 15 is provided in the document conveyance path and conveys the document smoothly.

【0020】ランプ16は、読取走査ライン位置に存在
する原稿11を走査する光を照射する。ランプ16が照
射する光は、移動する原稿11の画像を1ライン毎に走
査する。ステージガラス17は、原稿11の搬送経路の
一部を構成し、また、ランプ16が照射した光および原
稿11からの反射光を透過させる。ミラー18は、原稿
11からの反射光をレンズ19に導く。レンズ19は、
反射光を集光してCCD20に導く。CCD20は、入
射した光をアナログの電気信号に変換し、この電気信号
をA−D変換部2に出力する。
The lamp 16 irradiates light for scanning the document 11 existing at the reading scan line position. The light emitted by the lamp 16 scans the moving image of the document 11 line by line. The stage glass 17 constitutes a part of the conveyance path of the document 11 and also transmits the light emitted by the lamp 16 and the reflected light from the document 11. The mirror 18 guides the reflected light from the document 11 to the lens 19. The lens 19 is
The reflected light is condensed and guided to the CCD 20. The CCD 20 converts the incident light into an analog electric signal, and outputs this electric signal to the AD converter 2.

【0021】A−D変換部2は、アナログの電気信号に
変換された1走査ライン分の画像情報を、さらにデジタ
ルの多値データに変換し、画像処理部3に出力する。画
像処理部3は、デジタルの多値データに変換された画像
情報を、画素単位に黒画素と白画素とに2値化し、エッ
ジ強調処理や孤立点除去等の各種画像処理を行う。画像
処理部3は、2値化した画像情報を蓄積符号化部5およ
び黒すじ検出部4に出力する。
The A / D converter 2 further converts the image information of one scanning line converted into an analog electric signal into digital multi-valued data and outputs it to the image processor 3. The image processing unit 3 binarizes the image information converted into digital multi-valued data into black pixels and white pixels in pixel units, and performs various image processing such as edge enhancement processing and isolated point removal. The image processing unit 3 outputs the binarized image information to the storage coding unit 5 and the black streak detection unit 4.

【0022】蓄積符号化部5は、2値化した画像情報を
圧縮する。2値化した画像情報はデータ量が多いため、
圧縮して蓄積される。蓄積符号化部5は、例えば、IT
U−T勧告によるMH(Modified Huffman)符号、MR(M
odified Read )符号、またはMMR(Modified Modified
Read)符号による符号化を行う。また、ITU−T勧告
による符号化でなく、他の符号化方式を採用してもよ
い。蓄積符号化部5は、メモリ部6に圧縮した画像情報
を出力し、メモリ部6はこの画像情報を蓄積する。
The storage coding unit 5 compresses the binarized image information. Since the amount of data in the binarized image information is large,
It is compressed and accumulated. The storage encoding unit 5 uses, for example, IT
MH (Modified Huffman) code and MR (M
odified Read) code or MMR (Modified Modified)
Read) Encode by code. Also, other than the encoding according to the ITU-T recommendation, another encoding method may be adopted. The storage encoding unit 5 outputs the compressed image information to the memory unit 6, and the memory unit 6 stores this image information.

【0023】一方、黒すじ検出部4は、2値化した画像
情報から黒すじを検出し、黒すじの位置情報を生成す
る。図3は、黒すじ検出部4の構成の例を示すブロック
図である。画素ランカウント部41は、1走査ライン分
の2値化された情報から連続する白画素および黒画素の
画素数をカウントして、白画素のラン長および黒画素の
ラン長を交互に求める。白画素のラン長とは白画素が連
続する数であり、黒画素のラン長とは黒画素が連続する
数である。
On the other hand, the black streak detecting section 4 detects a black streak from the binarized image information and generates black streak position information. FIG. 3 is a block diagram showing an example of the configuration of the black streak detector 4. The pixel run count unit 41 counts the number of consecutive white pixels and black pixels from the binarized information for one scanning line, and alternately obtains the run length of the white pixels and the run length of the black pixels. The run length of white pixels is the number of consecutive white pixels, and the run length of black pixels is the number of consecutive black pixels.

【0024】例として、図4に白画素と黒画素とが並ん
だ1走査ライン分の画像情報を示す。図4において、左
端は走査ラインの先頭の位置である。この先頭位置から
a個の白画素が並んでいる。この白画素のラン長はaで
ある。次にb個の黒画素が並んでいる。この黒画素のラ
ン長はbである。次に続く白画素および黒画素について
も同様である。よって、この例では、画素ランカウント
部41は、白画素と黒画素のラン長を交互に、a、b、
c、d、eとして求める。画素ランカウント部41は、
求めた各ラン長を演算部42に出力する。
As an example, FIG. 4 shows image information for one scanning line in which white pixels and black pixels are lined up. In FIG. 4, the left end is the start position of the scanning line. From the head position, a white pixels are arranged. The run length of this white pixel is a. Next, b black pixels are lined up. The run length of this black pixel is b. The same applies to the next white pixel and black pixel. Therefore, in this example, the pixel run count unit 41 alternately sets the run lengths of the white pixel and the black pixel to a, b, and
Calculate as c, d, and e. The pixel run count unit 41
The obtained run lengths are output to the calculation unit 42.

【0025】演算部42は、白画素と黒画素のラン長か
ら、白画素が黒画素に変化する位置を算出する。この変
化位置は、例えば、白画素の次に黒画素が並ぶ場合、白
画素の最後尾の画素が先頭から何画素目になるかという
画素数として表される。演算部42は、先頭から黒画素
に至るまでの各ラン長の和として白画素が黒画素に変化
する位置を算出する。また、変化位置を、黒画素の最初
の画素が先頭から何画素目になるかという画素数として
表してもよいが、以下の説明では、白画素の最後尾の画
素を白画素から黒画素への変化位置とする。
The calculation unit 42 calculates the position where the white pixel changes to the black pixel from the run lengths of the white pixel and the black pixel. This change position is represented as the number of pixels, for example, when the black pixel is arranged next to the white pixel, the number of pixels from the beginning of the last pixel of the white pixels. The calculation unit 42 calculates the position where the white pixel changes to the black pixel as the sum of the run lengths from the head to the black pixel. Further, the change position may be expressed as the number of pixels from the beginning of the black pixel to the first pixel, but in the following description, the last pixel of the white pixels is changed from the white pixel to the black pixel. Change position of.

【0026】以下に変化位置算出の例を示す。図4にお
いて、画素の種類が変化した位置をA、B、C、Dと
し、走査ラインの最後尾の画素の位置をEとする。演算
部42は、白画素が黒画素に変化した位置を求めるの
で、AおよびCを算出する。最初の白画素のラン長はa
であるので、白画素から黒画素に変化する位置Aは、A
=aとして求められる。次に黒画素に至るまでの各ラン
長は、a、b、cであるので、2回目に白画素から黒画
素に変化する位置Cは、C=a+b+cとして求められ
る。このように、演算部42は、a画素目、a+b+c
画素目を変化位置として算出する。演算部42は、算出
した変化位置を比較部43に出力する。
An example of changing position calculation will be shown below. In FIG. 4, the positions where the pixel type has changed are A, B, C, and D, and the position of the last pixel of the scanning line is E. The calculation unit 42 obtains the position where the white pixel is changed to the black pixel, and thus calculates A and C. The run length of the first white pixel is a
Therefore, the position A at which the white pixel changes to the black pixel is A
= A. Since the run lengths up to the next black pixel are a, b, and c, the position C at which the white pixel changes to the black pixel for the second time is calculated as C = a + b + c. As described above, the calculation unit 42 determines that the a-th pixel is a + b + c.
The pixel position is calculated as the change position. The calculation unit 42 outputs the calculated changed position to the comparison unit 43.

【0027】黒すじ位置データ蓄積部44は、既に読み
取った走査ラインから得られた黒すじ位置の候補を記憶
し、比較部43が白画素から黒画素への変化位置を入力
したときに、黒すじ位置の候補を比較部43に出力す
る。黒すじ位置の候補は、既に読み取った各走査ライン
において共通の位置で白画素が黒画素に変化していると
きの変化位置であり、次に述べるように比較部43から
入力される。
The black streak position data storage unit 44 stores the black streak position candidates obtained from the already read scanning lines, and when the comparison unit 43 inputs the change position from the white pixel to the black pixel, the black streak position data is stored. The line position candidates are output to the comparison unit 43. The candidate for the black streak position is a change position when the white pixel is changed to the black pixel at the common position in the already read scanning lines, and is input from the comparison unit 43 as described below.

【0028】比較部43は、演算部42から入力した白
画素から黒画素への変化位置と、黒すじ位置データ蓄積
部44から入力した黒すじ位置の候補とを比較する。比
較した結果、黒すじ位置の候補と演算部42から入力し
た変化位置とが一致しているならば、その黒すじ位置の
候補はそのまま残す。黒すじ位置の候補と演算部42か
ら入力した変化位置とが一致していないならば、その黒
すじ位置の候補を候補から除外する。比較部43は、比
較した結果、除外されなかった黒すじ位置の候補を黒す
じ位置データ蓄積部44に出力する。
The comparison section 43 compares the change position from the white pixel to the black pixel input from the calculation section 42 with the black streak position candidate input from the black streak position data storage section 44. As a result of comparison, if the candidate for the black streak position and the changed position input from the calculation unit 42 match, the candidate for the black streak position is left as it is. If the black streak position candidate does not match the change position input from the calculation unit 42, the black streak position candidate is excluded from the candidates. The comparison unit 43 outputs the black line position candidates that have not been excluded as a result of the comparison to the black line position data storage unit 44.

【0029】なお、比較部43が第一走査ラインの情報
を入力した場合、黒すじ位置データ蓄積部44は黒すじ
位置の候補を記憶していない。したがって、比較部43
は、黒すじ位置の候補との比較は行わず、演算部42か
ら入力した変化位置を黒すじ位置の候補として黒すじ位
置データ蓄積部44に出力する。なお、白画素の最後尾
を白画素から黒画素への変化位置としているので黒すじ
位置の候補として表される位置の画素は白画素である
が、便宜上ここでは、黒すじ位置の候補と呼ぶ。
When the comparison unit 43 inputs the information of the first scanning line, the black streak position data storage unit 44 does not store the black streak position candidates. Therefore, the comparison unit 43
Does not compare with the black streak position candidate, and outputs the changed position input from the calculation unit 42 to the black streak position data storage unit 44 as a black streak position candidate. It should be noted that the last position of the white pixel is the change position from the white pixel to the black pixel, and thus the pixel at the position represented as the candidate for the black streak position is the white pixel, but here, for convenience, it is referred to as the candidate for the black streak position. .

【0030】制御部7は、黒すじ位置の各候補に対応す
るカウンタを用意し、各候補が比較部43において候補
から除外されなかった場合、除外されなかった候補のカ
ウンタを1ずつカウントアップする。このカウンタの初
期値は0とする。例えば、第一走査ラインで白画素から
黒画素へ変化した各変化位置に対応するカウンタの値は
1となり、mライン目までに比較部43で除外されなか
った黒すじ位置の候補のカウンタ値はmとなる。制御部
7は、このカウンタ値があらかじめ定めたNを越えたと
きに、白画素から変化した黒画素を黒すじと検出する。
Nは、例えば、原稿1ページ分の走査ライン数として設
定されるが、原稿1ページ分の走査ライン数より多く設
定されても少なく設定されてもよい。また、制御部7
は、比較部43で除外された黒すじ位置の候補に対応す
るカウンタを初期化する。
The control unit 7 prepares a counter corresponding to each candidate at the black streak position, and when each candidate is not excluded from the candidates by the comparing unit 43, the counter of the candidates not excluded is incremented by one. . The initial value of this counter is 0. For example, the value of the counter corresponding to each change position where the white pixel is changed to the black pixel on the first scanning line is 1, and the counter value of the candidate for the black streak position not excluded by the comparison unit 43 by the m-th line is m. When the counter value exceeds a predetermined N, the control unit 7 detects a black pixel changed from a white pixel as a black streak.
N is set, for example, as the number of scanning lines for one page of the original document, but N may be set more or less than the number of scanning lines for one page of the original document. In addition, the control unit 7
Initializes the counter corresponding to the black line position candidates excluded by the comparison unit 43.

【0031】制御部7は、検出した黒すじの位置をユー
ザインタフェース部8のLCD等に表示する。このと
き、黒画素が走査ラインの先頭から何画素目であるかと
いう表示にするとオペレータにわかりにくい。そこで、
オペレータに理解しやすい単位(例えば、cm)によっ
て表示することが望ましい。また、ステージガラス17
に、表示された位置を確認するための目盛を付しておく
ことも望ましい。
The control unit 7 displays the detected position of the black streak on the LCD or the like of the user interface unit 8. At this time, it is difficult for the operator to understand by displaying how many pixels the black pixel is from the beginning of the scanning line. Therefore,
It is desirable to display in a unit (for example, cm) that is easy for the operator to understand. Also, the stage glass 17
It is also desirable to add a scale to confirm the displayed position.

【0032】次に、原稿をセットせずに黒すじを検出す
る場合の動作について説明する。制御部7は、オペレー
タからユーザインタフェース部8を介して黒すじの検出
指示を受けると、白色ローラ13を回転させ読取走査ラ
イン位置の上にある白色ローラ13の画像を読み取る。
CCD20は、1ライン毎の画像情報をA−D変換部2
に出力する。A−D変換部2は画像情報をデジタルの多
値データに変換し、画像処理部3はこの多値データを白
画素と黒画素とに2値化する。画像処理部3は、2値化
したデータを走査ライン毎に画素ランカウント部41に
入力する。
Next, the operation of detecting a black streak without setting the original will be described. When the control unit 7 receives a black streak detection instruction from the operator via the user interface unit 8, the control unit 7 rotates the white roller 13 and reads the image of the white roller 13 located above the read scan line position.
The CCD 20 converts the image information of each line into an A / D converter 2
Output to. The AD converter 2 converts the image information into digital multi-valued data, and the image processor 3 binarizes the multi-valued data into white pixels and black pixels. The image processing unit 3 inputs the binarized data to the pixel run count unit 41 for each scanning line.

【0033】画素ランカウント部41は、各走査ライン
における白画素のラン長および黒画素のラン長を求め、
演算部42は、このラン長に基づいて白画素から黒画素
に変化した位置を求める。比較部43は、白画素から黒
画素に変化した位置および黒すじ位置データ蓄積部44
から入力した黒すじ位置の候補を比較し、黒すじ位置の
候補から除外されなかった候補を黒すじ位置データ蓄積
部44に記憶する。前述のとおり、第一走査ラインに関
しては白画素から黒画素に変化した位置を黒すじ位置の
候補として位置データ蓄積部44に記憶する。制御部7
は、黒すじ位置の各候補が比較部43において候補から
除外されなかった場合、除外されなかった候補に対応す
るカウンタ値を1ずつカウントアップする。カウンタ値
があらかじめ設定されたNを越えた場合、制御部7は、
黒すじの位置をユーザインタフェース部8のLCD等に
表示する。
The pixel run counting section 41 obtains the run length of white pixels and the run length of black pixels in each scanning line,
The calculation unit 42 obtains the position where the white pixel changes to the black pixel based on the run length. The comparison unit 43 stores the position where the white pixel is changed to the black pixel and the black streak position data storage unit 44.
The black streak position candidates input from are compared, and the candidates not excluded from the black streak position candidates are stored in the black streak position data storage unit 44. As described above, with respect to the first scanning line, the position where the white pixel is changed to the black pixel is stored in the position data storage unit 44 as a candidate for the black streak position. Control unit 7
When each candidate at the black streak position is not excluded from the candidates in the comparison unit 43, the counter value corresponding to the candidate not excluded is incremented by one. When the counter value exceeds the preset N, the control unit 7
The position of the black streak is displayed on the LCD or the like of the user interface unit 8.

【0034】図5は、原稿をセットせずに白色ローラ1
3を回転させたときの読取画像の例を示す説明図であ
る。図5において、読取画像51は、1走査ライン52
毎に破線で区切って示している。黒すじ53は、画像を
読み取っている間発生する。また、白色ローラ13にほ
こり等の不純物が付着している場合、ローラ不純物によ
るすじ54が、白色ローラ13の回転とともに周期的に
発生する。上記の画像読取装置の動作によって、白画素
から黒画素への変化位置が一定ライン数(N)以上連続
して同じである黒すじ53が検出され、その位置はユー
ザインタフェース部8に表示される。周期的に発生する
ローラ不純物によるすじ54は、変化位置が一定ライン
数(N)以上連続して同じとはならず、黒すじとして検
出されない。
FIG. 5 shows the white roller 1 without setting the original.
6 is an explanatory diagram showing an example of a read image when 3 is rotated. FIG. In FIG. 5, the read image 51 has one scanning line 52.
Each is shown separated by a broken line. Black streaks 53 occur while reading an image. In addition, when impurities such as dust adhere to the white roller 13, streaks 54 due to the roller impurities periodically occur as the white roller 13 rotates. By the operation of the image reading apparatus described above, the black streak 53 in which the change position from the white pixel to the black pixel is continuously the same for a certain number of lines (N) or more is detected, and the position is displayed on the user interface unit 8. . The streaks 54 due to roller impurities that are periodically generated do not have the same change position continuously for a certain number of lines (N) or more, and are not detected as black streaks.

【0035】この原稿読取装置は、従来の原稿読取装置
のように走査ラインの各画素に対応するラインバッファ
を設けなくても黒すじを検出でき、大量のメモリを必要
としない特徴がある。また、原稿をセットしなくても黒
すじを検出するので、黒すじ検出のために原稿をセット
する必要や、黒すじか罫線等かを判別する必要がない。
その結果、オペレータの手間がかからず、短時間で黒す
じを検出できる。
Unlike the conventional document reading device, this document reading device can detect black streaks without providing a line buffer corresponding to each pixel of the scanning line, and has a feature that a large amount of memory is not required. Further, since the black stripes are detected without setting the originals, it is not necessary to set the originals for detecting the black stripes and to determine whether the originals are the black stripes or the ruled lines.
As a result, it is possible to detect the black streaks in a short time without the operator's trouble.

【0036】また、この原稿読取装置による黒すじ検出
精度について説明する。不純物が浮遊ごみである場合、
白色ローラ13の回転中に浮遊ごみがわずかに移動する
場合がある。また、不純物が粘着ごみであっても原稿読
取部1の機構的なずれにより、読み取った画像情報では
不純物による黒画素の位置が各走査ラインでわずかにず
れることがある。図6は、このようなずれが生じた場合
の画像イメージの例を示す。図6において、第P+1ラ
インの読み取りと第P+2ラインの読み取りの間で、浮
遊ごみの移動等によって黒画素のずれが生じている。そ
のため、第P+1ラインまでと、第P+2ライン以降で
は、黒画素へ変化する位置が異なる。その結果、第P+
2ラインで黒すじ位置の候補に対するカウントアップが
行われずカウンタは初期化され、黒すじとして検出され
なくなる。このように、浮遊ごみ等に対しては黒すじ検
出精度が劣化する場合がある。
The accuracy of black streak detection by this document reading device will be described. If the impurities are floating debris,
The floating dust may slightly move while the white roller 13 rotates. Further, even if the impurities are adhesive dust, the position of the black pixel in the read image information may slightly shift in each scanning line due to the mechanical shift of the document reading unit 1. FIG. 6 shows an example of an image image when such a shift occurs. In FIG. 6, black pixels are displaced between the reading of the (P + 1) th line and the reading of the (P + 2) th line due to movement of floating dust. Therefore, the position of changing to a black pixel is different between the (P + 1) th line and the (P + 2) th line. As a result, P +
The count-up is not performed for the candidates for the black streak position in 2 lines, the counter is initialized, and it is no longer detected as a black streak. In this way, black streak detection accuracy may deteriorate for floating dust and the like.

【0037】次に、本発明の他の実施の形態について説
明する。この実施の形態による原稿読取装置は、前述の
実施の形態に示した場合よりも黒すじの検出精度を高め
ている。この実施の形態における画像読取装置の構成
は、図1ないし図3に示す場合と同様であるが、演算部
42、比較部43、黒すじ位置データ蓄積部44、制御
部7の動作が異なる。
Next, another embodiment of the present invention will be described. The document reading apparatus according to this embodiment has higher detection accuracy of black streaks than the case shown in the above-described embodiments. The configuration of the image reading apparatus in this embodiment is the same as that shown in FIGS. 1 to 3, but the operations of the calculation unit 42, the comparison unit 43, the black streak position data storage unit 44, and the control unit 7 are different.

【0038】演算部42は、白画素から黒画素への変化
位置だけではなく、黒画素の各ラン長も比較部43に出
力する。
The calculation unit 42 outputs not only the change position from the white pixel to the black pixel but also each run length of the black pixel to the comparison unit 43.

【0039】黒すじ位置データ蓄積部44は、既に読み
取った走査ラインから得られた黒すじ中心位置の候補を
記憶し、比較部43が演算部42から変化位置およびラ
ン長を入力したときに、黒すじ中心位置の候補を比較部
43に出力する。黒すじ中心位置の候補は、既に読み取
った走査ラインにおいて黒すじ中心位置として求められ
た位置であり、次に述べるように、比較部43から入力
される。
The black streak position data storage unit 44 stores candidates for the black streak center position obtained from the already read scanning line, and when the comparison unit 43 inputs the changed position and the run length from the calculation unit 42, The candidate for the black streak center position is output to the comparison unit 43. The candidate for the black streak center position is the position obtained as the black streak center position on the already read scanning line, and is input from the comparison unit 43 as described below.

【0040】比較部43は、連続する黒画素における中
央の画素の位置を黒すじ中心位置として算出する。演算
部42から入力される変化位置をX、黒画素のラン長を
Yとすると、黒すじ中心位置は、Yが奇数の場合はX+
(Y+1)/2として求められる。Yが偶数の場合は、
X+Y/2として求められる。Yが偶数の場合は、X+
Y/2+1として求めてもよい。また、比較部43は、
何画素目から何画素目までが黒画素であるかという黒画
素の範囲を算出する。
The comparing section 43 calculates the position of the central pixel in the continuous black pixels as the black stripe center position. When the change position input from the calculation unit 42 is X and the run length of the black pixel is Y, the black stripe center position is X + when Y is an odd number.
It is calculated as (Y + 1) / 2. If Y is an even number,
Calculated as X + Y / 2. If Y is even, X +
It may be obtained as Y / 2 + 1. Also, the comparison unit 43
A range of black pixels is calculated, from which pixel to which pixel is a black pixel.

【0041】例えば、図4において、bを奇数、dを偶
数と仮定すれば、ラン長bの黒画素における黒すじ中心
位置は、A+(b+1)/2である。また、ラン長dの
黒画素における黒すじ中心位置は、C+d/2である。
なお、前述のように、A=a、C=a+b+cである。
For example, in FIG. 4, assuming that b is an odd number and d is an even number, the center position of the black streak in the black pixel having the run length b is A + (b + 1) / 2. The black stripe center position in the black pixel having the run length d is C + d / 2.
As described above, A = a and C = a + b + c.

【0042】比較部43は、算出した黒画素の範囲に、
黒すじ位置データ蓄積部44から入力した黒すじ中心位
置の候補が含まれるか否かを判断する。既に読み取った
ラインにおいて候補とされた黒すじ中心位置が算出した
黒画素の範囲内にあれば、比較部43は、算出した黒す
じ中心位置を黒すじ中心位置の候補として、黒すじ位置
データ蓄積部44に出力する。既に読み取ったラインに
おいて候補とされた黒すじ中心位置が算出した黒画素の
範囲内になければ、黒すじ位置データ蓄積部44から入
力した黒すじ中心位置の候補を候補から除外する。
The comparison unit 43 puts the calculated black pixel range in the range of
It is determined whether or not the candidate for the black streak center position input from the black streak position data storage unit 44 is included. If the candidate black streak center position in the already read line is within the calculated black pixel range, the comparison unit 43 regards the calculated black streak center position as a candidate for the black streak center position and stores the black streak position data. It is output to the unit 44. If the black line center position as a candidate in the already read line is not within the calculated black pixel range, the black line center position candidate input from the black line position data storage unit 44 is excluded from the candidates.

【0043】比較部43が演算部42から図6に示す第
P+2ラインにおける変化位置および黒画素のラン長を
入力した場合を例にとり、上記の動作を説明する。比較
部43が算出する第P+2ラインの黒すじ中心位置は、
第s+2画素目であり、黒画素の範囲は第s+1画素か
ら第s+3画素までの範囲である。また、比較部43が
黒すじ位置データ蓄積部44から入力する黒すじ中心位
置の候補は、第P+1ラインまで読み取ったときの黒す
じ中心位置であり、第s+1画素目である。このとき、
黒すじ中心位置の候補(第s+1画素目)は、第P+2
ラインにおける黒画素の範囲(第s+1画素から第s+
3画素までの範囲)に入っている。よって、比較部43
は、算出した黒すじ中心位置(第s+2画素目)を黒す
じ中心位置の候補として、黒すじ位置データ蓄積部44
に出力する。
The above operation will be described by taking as an example the case where the comparing unit 43 inputs the change position on the (P + 2) th line shown in FIG. 6 and the run length of the black pixel from the calculating unit 42. The black line center position of the (P + 2) th line calculated by the comparison unit 43 is
It is the (s + 2) th pixel, and the range of black pixels is the range from the (s + 1) th pixel to the (s + 3) th pixel. Further, the candidate of the black streak center position input from the black streak position data accumulating unit 44 by the comparing unit 43 is the black streak center position at the time of reading up to the (P + 1) th line and is the s + 1th pixel. At this time,
The candidate for the black stripe center position (s + 1st pixel) is the P + 2th pixel.
Range of black pixels in line (s + 1st pixel to s + th pixel
It is within the range of up to 3 pixels). Therefore, the comparison unit 43
Represents the calculated black streak center position (s + 2nd pixel) as a candidate for the black streak center position.
Output to.

【0044】なお、比較部43が第一走査ラインの情報
を入力した場合、黒すじ位置データ蓄積部44は、黒す
じ中心位置の候補を記憶していない。したがって、比較
部43は、黒すじ中心位置の候補が黒画素の範囲内にあ
るか否かを判断せず、演算部42から入力した変化位置
とラン長とから算出した黒すじ中心位置を、黒すじ中心
位置の候補として黒すじ位置データ蓄積部44に入力す
る。
When the comparing section 43 inputs the information of the first scanning line, the black streak position data accumulating section 44 does not store the candidate of the black streak center position. Therefore, the comparison unit 43 does not determine whether or not the candidate for the black streak center position is within the range of the black pixels, and calculates the black streak center position calculated from the change position and the run length input from the calculation unit 42 as It is input to the black streak position data storage unit 44 as a candidate for the black streak center position.

【0045】制御部7は、走査ライン上において連続す
る黒画素のグループ(黒画素一つのみからなるグループ
も含む)に対応するカウンタを用意する。黒すじ中心位
置の候補が比較部43において候補から除外されなかっ
た場合、その黒すじ中心位置の候補に対応するカウンタ
を1ずつカウントアップする。カウンタがあらかじめ設
定されたNを越えた場合、制御部7は、黒すじの位置を
ユーザインタフェース部8のLCD等に表示する。ま
た、制御部7は、比較部43で除外された黒すじ位置の
候補に対応するカウンタを初期化する。
The control section 7 prepares a counter corresponding to a group of black pixels (including a group consisting of only one black pixel) continuous on the scanning line. When the candidate for the black streak center position is not excluded from the candidates by the comparison unit 43, the counter corresponding to the candidate for the black streak center position is incremented by one. When the counter exceeds the preset N, the control unit 7 displays the position of the black streak on the LCD or the like of the user interface unit 8. Further, the control unit 7 initializes the counter corresponding to the black line position candidates excluded by the comparison unit 43.

【0046】この実施の形態による原稿読取装置では、
既に読み取った走査ラインにおいて黒すじ中心位置とし
て求められた候補が、新たに読み取った走査ラインの黒
画素の範囲に含まれるか否かにより、候補から除外する
か否かを判断する。この点で、前述の実施の形態による
原稿読取装置と異なるが、他の動作に関しては前述の原
稿読取装置と同様である。
In the document reading apparatus according to this embodiment,
Whether or not the candidate obtained as the black streak center position in the already read scanning line is included in the range of black pixels of the newly read scanning line is determined as to be excluded from the candidate. This point is different from the document reading apparatus according to the above-described embodiment, but other operations are the same as those of the document reading apparatus described above.

【0047】この実施の形態による原稿読取装置によれ
ば、白色ローラ13の回転中に浮遊ごみ等がわずかに移
動してもカウントアップがとぎれることがなく、より高
い精度で黒すじを検出することができる。
According to the document reading apparatus of this embodiment, even if the floating dust or the like slightly moves during the rotation of the white roller 13, the count-up is not interrupted, and the black streak can be detected with higher accuracy. You can

【0048】次に、原稿をセットして原稿の画像情報を
読み取りつつ黒すじを検出する場合の実施の形態につい
て説明する。この実施の形態における画像読取装置の構
成は、図1ないし図3に示す場合と同様であるが、演算
部42、比較部43、制御部7の動作が異なる。
Next, a description will be given of an embodiment in which a black line is detected while setting a document and reading image information of the document. The configuration of the image reading apparatus in this embodiment is the same as that shown in FIGS. 1 to 3, but the operations of the calculation unit 42, the comparison unit 43, and the control unit 7 are different.

【0049】まず、白画素から黒画素への変化位置を黒
すじ位置の候補として黒すじを検出する場合の動作につ
いて説明する。演算部42は、白画素から黒画素への変
化位置および黒画素のラン長を比較部43に出力する。
比較部43は、黒画素のラン長が一定の長さ以上である
ならば、その黒画素について、白画素から黒画素へ変化
した変化位置と黒すじ位置の候補とを比較しない。ま
た、ラン長が長い黒画素については、黒すじ位置の候補
を黒すじ位置データ蓄積部44へ出力せず、位置データ
蓄積部44は、それまで記憶していたデータをそのまま
保持する。制御部7は、この黒すじ位置の候補に対応す
るカウンタをカウントアップせず、またカウンタの初期
化も行わない。
First, the operation of detecting a black streak by using the change position from the white pixel to the black pixel as a candidate for the black streak position will be described. The calculation unit 42 outputs the change position from the white pixel to the black pixel and the run length of the black pixel to the comparison unit 43.
If the run length of the black pixel is equal to or greater than a certain length, the comparing unit 43 does not compare the change position where the black pixel is changed from the white pixel to the black pixel position candidate with respect to the black pixel. Further, for black pixels having a long run length, the black streak position candidates are not output to the black streak position data accumulating unit 44, and the position data accumulating unit 44 retains the data stored until then. The control unit 7 does not count up the counter corresponding to the candidate for the black streak position and does not initialize the counter.

【0050】次に、黒すじ中心位置の候補が次ラインで
黒画素の範囲に含まれているか否かを判断して黒すじを
検出する場合の動作について説明する。演算部42は、
白画素から黒画素への変化位置および黒画素のラン長を
比較部43に出力する。比較部43は、黒画素のラン長
が一定の長さ以上であるならば、その黒画素について、
黒画素の範囲に黒すじ中心位置の候補が含まれるか否か
の判断をしない。また、ラン長が長い黒画素について
は、黒すじ中心位置を黒すじ位置データ蓄積部44へ出
力せず、位置データ蓄積部44は、それまで記憶してい
たデータをそのまま保持する。制御部7は、この黒すじ
位置の候補に対応するカウンタをカウントアップせず、
またカウンタの初期化も行わない。
Next, the operation for detecting a black streak by determining whether or not the candidate for the black streak center position is included in the range of black pixels in the next line will be described. The calculation unit 42
The change position from the white pixel to the black pixel and the run length of the black pixel are output to the comparison unit 43. If the run length of the black pixel is equal to or longer than a certain length, the comparing unit 43 determines that the black pixel is
It is not judged whether or not the black pixel center position candidate is included in the range of black pixels. For black pixels having a long run length, the center position of the black streak is not output to the black streak position data storage unit 44, and the position data storage unit 44 retains the data stored until then. The control unit 7 does not count up the counter corresponding to this black stripe position candidate,
Also, the counter is not initialized.

【0051】原稿読取装置は、ラン長が一定の長さに満
たない黒画素については、原稿をセットしないで黒すじ
を検出する場合の各実施の形態と同様の動作を行う。1
走査ライン上にラン長が一定の長さ以上の黒画素と一定
の長さに満たない黒画素が混在する場合、ラン長が一定
の長さ以上の黒画素は比較や判断の対象から除外される
が、ラン長が一定の長さに満たない黒画素は原稿をセッ
トしないで黒すじを検出するときと同様に比較や判断の
対象となる。
For a black pixel whose run length is less than a fixed length, the document reading apparatus performs the same operation as that of each embodiment when detecting a black line without setting the document. 1
When black pixels with a run length longer than a certain length and black pixels with a run length shorter than a certain length coexist on the scan line, black pixels with a run length longer than a certain length are excluded from comparison or judgment. However, black pixels whose run length is less than a certain length are subject to comparison and judgment as in the case of detecting black streaks without setting a document.

【0052】原稿11をセットした場合、原稿11が読
取走査ライン位置に到達するまでの間、画像読取装置は
回転する白色ローラ13の画像を読み取る。また、原稿
11の最後の走査ラインの画像を読み取ってから次のペ
ージの原稿が読取走査ライン位置に到達するまでの間
も、白色ローラ13の画像を読み取る。原稿11が読取
走査ライン位置を移動している間は、原稿11の画像を
読み取る。
When the document 11 is set, the image reading device reads the image of the rotating white roller 13 until the document 11 reaches the reading scanning line position. Further, the image of the white roller 13 is read even after the image of the last scanning line of the document 11 is read and before the document of the next page reaches the reading scanning line position. While the document 11 is moving on the reading scan line position, the image of the document 11 is read.

【0053】図7は、原稿の画像を読み取りつつ黒すじ
を検出するときの読取画像の例を示す説明図である。図
7において、原稿画像55は、原稿11から読み取った
画像である。原稿画像55が示す領域以外は、白色ロー
ラ13を読み取った画像である。原稿読取開始ライン5
6は、原稿11が読取走査ライン位置に達したときの走
査ラインである。第一走査ラインから原稿読取開始ライ
ン56までを読み取っている間は、黒すじ53とローラ
不純物によるすじ54が読み取られる。原稿の最後の走
査ラインを読み取ってから次のページの原稿が読取走査
ライン位置に到達するまでの間も同様である。原稿読取
開始ライン56を読み取ってからは、原稿11によって
隠される白色ローラ13に付着した不純物によるすじ5
4は現れなくなる。
FIG. 7 is an explanatory diagram showing an example of a read image when detecting a black streak while reading an image of a document. In FIG. 7, a document image 55 is an image read from the document 11. The area other than the area indicated by the original image 55 is an image obtained by reading the white roller 13. Original reading start line 5
Reference numeral 6 is a scanning line when the document 11 reaches the reading scanning line position. While reading from the first scanning line to the original reading start line 56, the black streak 53 and the streak 54 due to roller impurities are read. The same applies from the time when the last scan line of the document is read until the time when the document on the next page reaches the read scan line position. After reading the original reading start line 56, lines 5 due to impurities attached to the white roller 13 hidden by the original 11
4 disappears.

【0054】図7において、黒すじ53は、文字「ア」
と交差している。「ア」の一画目の横方向の広がりは大
きいため、この黒画素のラン長は非常に長い。そのた
め、黒すじと「ア」が交差する走査ラインでは、それ以
前の走査ラインと比較して、白画素が黒画素に変化する
位置、黒すじ中心位置双方とも大きく異なる。比較部4
3は、この黒画素について、黒画素へ変化した位置情報
と黒すじ位置の候補との比較や、黒画素の範囲に黒すじ
中心位置の候補が含まれるか否かの判断をしない。すな
わち、黒すじ検出の判断対象とはしていない。黒すじと
文字等との交差部分以降の走査ラインでは、ラン長が短
いので黒すじ検出の判断対象とされる。黒すじ検出の判
断対象とされない場合があっても、カウントアップがと
ぎれるわけではないので、黒すじを検出することができ
る。
In FIG. 7, the black streak 53 is the character "A".
Intersects with. Since the horizontal spread of the first stroke of "A" is large, the run length of this black pixel is very long. Therefore, in the scanning line where the black stripes and “A” intersect, both the position where the white pixel changes to the black pixel and the central position of the black stripe are significantly different from the scanning lines before that. Comparison unit 4
For this black pixel, 3 does not compare the position information changed to a black pixel with the candidate for the black streak position, and does not determine whether the range of the black pixel includes the candidate for the black streak center position. That is, it is not set as a determination target for black streak detection. The scan line after the intersection of the black streak and the character or the like has a short run length, and is therefore a determination target for the black streak detection. Even if the black streak is not a determination target in some cases, the count-up is not interrupted, so that the black streak can be detected.

【0055】原稿をセットしないで黒すじを検出すると
きの各実施の形態と同様の動作であっても、黒すじを検
出することはできる。しかし、黒すじが文字等と交差す
ると、白画素が黒画素に変化する位置や黒すじ中心位置
が大きく変動するため、黒すじ検出精度が落ちる。した
がって、原稿を読み取りつつ黒すじを検出する場合、上
記の実施の形態によることが望ましい。
Black streaks can be detected even by the same operation as in each of the embodiments when black streaks are detected without setting the original. However, when the black streak intersects with a character or the like, the position at which the white pixel changes to the black pixel and the center position of the black streak are largely changed, so that the black streak detection accuracy is deteriorated. Therefore, when detecting a black streak while reading a document, it is desirable to use the above-described embodiment.

【0056】また、原稿11に罫線が記入されている場
合であっても、この罫線の画像は、原稿読取開始ライン
56を読み取る前やページ間では現れないので、Nを1
ページ分の走査ライン数より多く設定することによっ
て、罫線を黒すじとして誤検出することはない。
Even if a ruled line is drawn on the document 11, the image of this ruled line does not appear before the document reading start line 56 is read or between pages, so N is set to 1.
By setting more than the number of scanning lines for a page, ruled lines are not erroneously detected as black streaks.

【0057】また、白色ローラ13を白色とせず、原稿
11が読取走査ライン位置に存在する場合のみ、画像を
読み取る構成であってもよい。ただし、この構成では、
原稿をセットしなくては黒すじを検出することができ
ず、また、罫線等が記入されている場合に誤検出しやす
いので、白色ローラ13を用いて原稿が存在しない場合
には白色ローラ13の画像を読み取ることが望ましい。
The white roller 13 may not be white, and the image may be read only when the original 11 is present at the reading scan line position. However, in this configuration,
Black streaks cannot be detected without setting the original, and erroneous detection is easy when a ruled line or the like is written. Therefore, when the original is not present using the white roller 13, the white roller 13 is used. It is desirable to read the image.

【0058】また、以上の各実施の形態において、制御
部7は、ユーザインタフェース部8から黒すじ検出の指
示を受け、検出結果をユーザインタフェース部8に表示
するのではなく、回線を介して遠隔した場所から黒すじ
検出の指示を受け、遠隔した場所にある表示器に検出結
果を表示する構成であってもよい。
In each of the above embodiments, the control unit 7 receives an instruction for black streak detection from the user interface unit 8 and does not display the detection result on the user interface unit 8, but remotely via the line. It may be configured to receive a black streak detection instruction from a remote place and display the detection result on a display device at a remote location.

【0059】なお、上記の実施例では、ファクシミリ装
置に適用される原稿読取装置を示したが、本発明による
画像読取装置はスキャナ、複写機等にも適用される。
Although the original reading apparatus applied to the facsimile apparatus is shown in the above embodiment, the image reading apparatus according to the present invention is also applied to a scanner, a copying machine and the like.

【0060】 本発明によれば、走査位置に原稿を搬送
させるローラを備え光による走査で走査ライン毎に画像
情報を読み取る光学式情報読取手段と、各走査ラインの
画像情報を画素単位に黒画素と白画素とに2値化する2
値化手段と、各走査ライン上で白画素が連続する数であ
る白画素のラン長および黒画素が連続する数である黒画
素のラン長を求めるラン長演算手段と、白画素のラン長
および黒画素のラン長から各走査ライン上で黒すじの候
補となる位置を算出する候補位置算出手段と、各走査ラ
インにおける黒すじの候補となる位置が一定のライン数
以上にわたって特定の位置関係にある場合に黒すじが発
生したと判断して黒すじを検出する黒すじ検出手段とを
備え、候補位置算出手段は、白画素のラン長および黒画
素のラン長から各走査ライン上で白画素が黒画素に変化
する位置を黒すじの候補となる位置として算出し、黒す
じ検出手段は、白画素が黒画素に変化する位置が次の走
査ラインにおいても同じ位置であるという関係が一定の
ライン数以上連続して成立する場合にその白画素から変
化した黒画素の位置に黒すじが発生したと判断して黒す
じを検出する構成としたため、各画素の2値データを格
納するラインバッファを必要とせず、大量のメモリを備
えていなくても黒すじを検出することができる。また、
本発明によれば、走査位置に原稿を搬送させるローラを
備え光による走査で走査ライン毎に画像情報を読み取る
光学式情報読取手段と、各走査ラインの画像情報を画素
単位に黒画素と白画素とに2値化する2値化手段と、各
走査ライン上で白画素が連続する数である白画素のラン
長および黒画素が連続する数である黒画素のラン長を求
めるラン長演算手段と、白画素のラン長および黒画素の
ラン長から各走査ライン上で黒すじの候補となる位置を
算出する候補位置算出手段と、各走査ラインにおける黒
すじの候補となる位置が一定のライン数以上にわたって
特定の位置関係にある場合に黒すじが発生したと判断し
て黒すじを検出する黒すじ検出手段とを備え、候補位置
算出手段は、白画素のラン長と黒画素のラン長とから算
出される白画素から黒画素への変化位置であって、走査
ラインの先頭からの画素数として表される位置をXと
し、黒画素のラン長をYとしたときに、Yが奇数の場合
にはX+(Y+1)/2によって、走査ライン上で連続
する黒画素の中心位置を黒すじの候補となる位置として
算出し、Yが偶数の場合にはX+Y/2によって、走査
ライン上で連続する黒画素の中心位置を黒すじの候補と
なる位置として算出し、黒すじ検出手段は、連続する黒
画素の中心位置が次の走査ラインにおいて黒画素である
という関係が一定のライン数以上連続して成立する場合
に黒画素の中心位置に黒すじが発生したと判断して黒す
じを検出する構成としたため、各画素の2値データを格
納するラインバッファを必要とせず、大量のメモリを備
えていなくても黒すじを検出することができる。さら
に、各ラインを走査する間に浮遊ごみがずれたり光学式
情報読取手段の機構的なずれが生じて、画像情報上で黒
画素の位置がずれた場合でも、黒すじを検出することが
できる。
According to the present invention , the document is conveyed to the scanning position.
An image is provided for each scan line by scanning with light that is equipped with a roller
Optical information reading means for reading information and each scanning line
Binarize image information into black pixels and white pixels in pixel units 2
The digitizing means and the number of consecutive white pixels on each scan line.
Black image that is the run length of white pixels and the number of consecutive black pixels
Run length calculation means for obtaining the prime run length and the run length of white pixels
Of black lines on each scan line from the run length of black and black pixels
A candidate position calculation means for calculating a complementary position and each scan line
The number of lines where the position that is a candidate for black streaks in the in is constant
Black streaks are generated when there is a specific positional relationship over the above
Black streak detection means to detect black streak
The candidate position calculating means is provided with a run length of white pixels and a black image.
White pixels change to black pixels on each scan line from the raw run length
The calculated position is calculated as a position that is a candidate for black streaks, and
The same detection means detects that the position where the white pixel changes to the black pixel is the next
There is a certain relationship that it is the same position on the inspection line.
When the number of lines is continuously satisfied, the white pixel is changed.
It is determined that black streaks have occurred at the position of the black pixel
Since the line streaks are detected, a line buffer for storing binary data of each pixel is not required, and black streaks can be detected even if a large amount of memory is not provided. Also,
According to the present invention, a roller that conveys a document to the scanning position is provided.
Image information is read for each scanning line by scanning with light
Optical information reading means and image information of each scanning line
Binarizing means for binarizing black pixels and white pixels in units, and
Runs of white pixels, which is the number of consecutive white pixels on the scan line
Find the run length of black pixels, which is the number of consecutive long and black pixels
Run length calculation means, and the run length of the white pixel and the black pixel
From the run length, select the position that is a candidate for black streaks on each scan line.
Candidate position calculation means to calculate and black in each scan line
Positions that are candidates for stripes over a certain number of lines
If there is a specific positional relationship, it is determined that black streaks have occurred.
With a black streak detecting means for detecting a black streak
The calculation means calculates from the run length of white pixels and the run length of black pixels.
It is the change position from the white pixel to the black pixel that is output, and scanning
The position expressed as the number of pixels from the beginning of the line is X
If Y is an odd number when the run length of black pixels is Y
X + (Y + 1) / 2 for continuous on scan line
The center position of the black pixel
Calculated, and scan Y by X + Y / 2 if Y is an even number
The center position of consecutive black pixels on the line is defined as a black stripe candidate.
Is calculated as the position where
The pixel center position is a black pixel in the next scan line
When the above relationship holds continuously for a certain number of lines or more
It is judged that a black streak has occurred at the center position of the black pixel and
Since it is configured to detect the same, binary data of each pixel is registered.
Large amount of memory without needing a line buffer to store
Black streaks can be detected even if they are not turned on. Furthermore
In addition, floating dust may shift while scanning each line
Due to the mechanical deviation of the information reading means, black appears on the image information.
Even if the pixel position is shifted, it is possible to detect black streaks.
it can.

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

【図1】 本発明による原稿読取装置の実施の一形態を
示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of a document reading apparatus according to the present invention.

【図2】 原稿読取部を横側から見た様子を示す説明図
である。
FIG. 2 is an explanatory diagram showing a state where a document reading unit is viewed from the side.

【図3】 黒すじ検出部の構成の例を示す説明図であ
る。
FIG. 3 is an explanatory diagram showing an example of the configuration of a black streak detection unit.

【図4】 1走査ラインにおける黒画素および白画素の
ラン長を説明する説明図である。
FIG. 4 is an explanatory diagram illustrating run lengths of black pixels and white pixels in one scanning line.

【図5】 原稿をセットしない場合の読取画像の例を示
す説明図である。
FIG. 5 is an explanatory diagram showing an example of a read image when a document is not set.

【図6】 浮遊ゴミ等による黒画素のずれを示す説明図
である。
FIG. 6 is an explanatory diagram showing deviation of black pixels due to floating dust and the like.

【図7】 原稿をセットした場合の読取画像の例を示す
説明図である。
FIG. 7 is an explanatory diagram showing an example of a read image when a document is set.

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

1 原稿読取部 2 A−D変換部 3 画像処理部 4 黒すじ検出部 5 蓄積符号化部 6 メモリ部 7 制御部 8 ユーザインタフェース部 41 画素ランカウント部 42 演算部 43 比較部 44 黒すじ位置データ蓄積部 1 Document reading section 2 A-D converter 3 Image processing section 4 Black streak detector 5 Storage encoder 6 memory section 7 control unit 8 User interface section 41 pixel run count unit 42 Operation part 43 Comparison Department 44 Black line position data storage unit

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) H04N 1/40 - 1/409 H04N 1/46 H04N 1/60 ─────────────────────────────────────────────────── ─── Continuation of the front page (58) Fields surveyed (Int.Cl. 7 , DB name) H04N 1/40-1/409 H04N 1/46 H04N 1/60

Claims (8)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 走査位置に原稿を搬送させるローラを備
え光による走査で走査ライン毎に画像情報を読み取る光
学式情報読取手段と、 各走査ラインの画像情報を画素単位に黒画素と白画素と
に2値化する2値化手段と、 各走査ライン上で白画素が連続する数である白画素のラ
ン長および黒画素が連続する数である黒画素のラン長を
求めるラン長演算手段と、 白画素のラン長および黒画素のラン長から各走査ライン
上で黒すじの候補となる位置を算出する候補位置算出手
段と、 各走査ラインにおける黒すじの候補となる位置が一定の
ライン数以上にわたって特定の位置関係にある場合に黒
すじが発生したと判断して黒すじを検出する黒すじ検出
手段とを備え 候補位置算出手段は、白画素のラン長および黒画素のラ
ン長から各走査ライン上で白画素が黒画素に変化する位
置を黒すじの候補となる位置として算出し、 黒すじ検出手段は、白画素が黒画素に変化する位置が次
の走査ラインにおいても同じ位置であるという関係が一
定のライン数以上連続して成立する場合にその白画素か
ら変化した黒画素の位置に黒すじが発生したと判断して
黒すじを検出する ことを特徴とする原稿読取装置
1. An optical information reading unit which is provided with a roller for conveying an original document to a scanning position and which reads image information for each scanning line by scanning with light, and image information of each scanning line is composed of black pixels and white pixels in pixel units. And binarizing means for binarizing, and run length calculating means for obtaining a run length of white pixels, which is the number of white pixels consecutive on each scanning line, and a run length of black pixels, which is the number of consecutive black pixels. , A candidate position calculating means for calculating a position which is a candidate for a black streak on each scanning line from the run length of a white pixel and a run length of a black pixel, and the number of lines where the position which is a candidate for a black streak on each scanning line is constant The candidate position calculating means is provided with a black streak detecting means for detecting a black streak by determining that a black streak has occurred in the specific positional relationship described above , and the candidate position calculating means is a run length of white pixel and a black pixel
The length at which white pixels change to black pixels on each scan line
Position is calculated as a position that is a candidate for a black streak, and the black streak detection unit determines that the position where the white pixel changes to the black pixel is
The relationship is the same even in the scan line of
If the number of lines exceeds a certain number in a row, the white pixel
It is determined that black streaks have occurred at the position of the black pixel that changed from
A document reading device characterized by detecting black streaks .
【請求項2】 走査位置に原稿を搬送させるローラを備
え光による走査で走査ライン毎に画像情報を読み取る光
学式情報読取手段と、 各走査ラインの画像情報を画素単位に黒画素と白画素と
に2値化する2値化手段と、 各走査ライン上で白画素が連続する数である白画素のラ
ン長および黒画素が連続する数である黒画素のラン長を
求めるラン長演算手段と、 白画素のラン長および黒画素のラン長から各走査ライン
上で黒すじの候補となる位置を算出する候補位置算出手
段と、 各走査ラインにおける黒すじの候補となる位置が一定の
ライン数以上にわたって特定の位置関係にある場合に黒
すじが発生したと判断して黒すじを検出する黒すじ検出
手段とを備え、 候補位置算出手段は、白画素のラン長と黒画素のラン長
とから算出される白画素から黒画素への変化位置であっ
て、走査ラインの先頭からの画素数として表される位置
をXとし、黒画素のラン長をYとしたときに、Yが奇数
の場合にはX+(Y+1)/2によって、走査ライン上
で連続する黒画素の中心位置を黒すじの候補となる位置
として算出し、Yが偶数の場合にはX+Y/2によっ
て、走査ライン上で連続する黒画素の中心位置を黒すじ
の候補となる位置として算出し、 黒すじ検出手段は、連続する黒画素の中心位置が次の走
査ラインにおいて黒画素であるという関係が一定のライ
ン数以上連続して成立する場合に黒画素の中心位置に黒
すじが発生したと判断して黒すじを検出することを特徴
とする原稿読取装置。
2. A roller for feeding an original to a scanning position is provided.
Light that reads image information for each scanning line by scanning with fluorescent light
Scientific information reading means, and image information of each scanning line, black pixel and white pixel in pixel units
And a binarization unit for binarizing the white pixels, which is the number of consecutive white pixels on each scanning line.
And the run length of black pixels, which is the number of consecutive black pixels
Each scan line based on the run length calculation means to be obtained and the run lengths of white pixels and black pixels
Candidate position calculator that calculates the positions that are candidates for black lines above
Steps and the positions that are candidates for black streaks in each scan line are constant.
Black when there is a specific positional relationship over the number of lines
Black streak detection that detects streaks and detects black streaks
Means for calculating the run length of the white pixel and the run length of the black pixel.
It is the change position from white pixel to black pixel calculated from
Position represented as the number of pixels from the beginning of the scan line
Is X and the run length of the black pixel is Y, Y is an odd number
In the case of, on the scan line by X + (Y + 1) / 2
Position where the center position of consecutive black pixels is a candidate for black streak
When Y is an even number, it is calculated by X + Y / 2.
The black line on the center position of consecutive black pixels on the scan line.
Is calculated as the candidate position of the
There is a certain relationship that black pixels are
If the number of consecutive pixels is equal to or greater than
Characterized by detecting black streaks by determining that streaks have occurred
Document reading device.
【請求項3】 光学式情報読取手段は、走査する位置に
白色のローラを備え原稿が走査位置にない場合に前記ロ
ーラを回転しつつ走査ライン毎に画像情報を読み取るこ
とを特徴とする請求項1または請求項2記載の原稿読取
装置。
3. The optical information reading means is provided at a scanning position.
If the original is not in the scanning position with a white roller,
Image information for each scanning line while rotating the camera
The document reading according to claim 1 or 2, characterized in that
apparatus.
【請求項4】 黒すじ検出手段は、黒画素が連続する数
である黒画素のラン長が一定の長さ以上である場合にそ
の黒画素に関する黒すじの候補となる位置を特定の位置
関係にあるか否かの判断対象から除外することを特徴と
する請求項1ないし請求項3記載の原稿読取装置。
4. The black streak detecting means is the number of consecutive black pixels.
If the run length of the black pixel is greater than a certain length,
The position that is the candidate for the black streak for the black pixel of
It is characterized by excluding from the judgment target of whether or not there is a relationship
The document reading device according to claim 1,
【請求項5】 黒すじを検出した場合に黒すじの位置を
出力する黒すじ情報出力手段を備えたことを特徴とする
請求項1ないし請求項4記載の原稿読取装置。
5. The position of the black streak is detected when the black streak is detected.
It is characterized by having a black streak information output means for outputting.
The document reading device according to claim 1.
【請求項6】 光学式情報読取手段は、原稿搬送経路の
一部として目盛ゲージを有し光を透過させるガラス面を
備え、黒すじ情報出力手段は、前記ガラス面が有する目
盛ゲージに応じた黒すじの位置を表示することを特徴と
する請求項5記載の原稿読取装置。
6. An optical information reading means is provided in a document conveying path.
A glass surface that has a scale gauge as a part and transmits light
The black streak information output means is provided with an eye of the glass surface.
Characterized by displaying the position of the black streak according to the gauge
The document reading device according to claim 5.
【請求項7】 光による走査で走査ライン毎に回転する
白色のローラの画像情報を読み 取り、 各走査ラインの画像情報を画素単位に黒画素と白画素と
に2値化し、 各走査ライン上で白画素が連続する数である白画素のラ
ン長および黒画素が連続する数である黒画素のラン長を
求め、 白画素のラン長および黒画素のラン長から各走査ライン
上で白画素が黒画素に変化する位置を黒すじの候補とな
る位置として算出し、 黒すじの候補となる位置として算出した位置が次の走査
ラインにおいても同じ位置であるという関係が一定のラ
イン数以上連続して成立する場合にその白画素から変化
した黒画素の位置に黒すじが発生したと判断して黒すじ
を検出することを特徴とする黒すじ検出方法。
7. Scanning by light rotates every scanning line
Up to read the image information of the white roller, and the black and white pixels of image information into pixel units in each scan line
Is binarized into white and the number of white pixels consecutive on each scan line
And the run length of black pixels, which is the number of consecutive black pixels
Find each scan line from the run length of white pixels and the run length of black pixels
The position where the white pixel changes to a black pixel above is a candidate for the black streak.
Calculated as that position, scanned calculated position follows as a candidate a position of the black stripe
There is a constant relationship that the position is the same on the line.
Change from the white pixel when the number of INs is satisfied continuously
It is judged that black streaks have occurred at the position of the black pixel
A method for detecting black streaks, which comprises detecting
【請求項8】 光による走査で走査ライン毎に回転する
白色のローラの画像情報を読み取り、 各走査ラインの画像情報を画素単位に黒画素と白画素と
に2値化し、 各走査ライン上で白画素が連続する数である白画素のラ
ン長および黒画素が連続する数である黒画素のラン長を
求め、白画素のラン長と黒画素のラン長とから算出される白画
素から黒画素への変化位置であって、走査ラインの先頭
からの画素数として表される位置をXとし、黒画素のラ
ン長をYとしたときに、Yが奇数の場合にはX+(Y+
1)/2によって、走査ライン上で連続する黒画素の中
心位置を黒すじの候補となる位置として算出し、Yが偶
数の場合にはX+Y/2によって、走査ライン上で連続
する黒画素の中心位置を黒すじの候補となる位置として
算出し、 黒すじの候補となる位置として算出した連続する黒画素
の中心位置が次の走査ラインにおいて黒画素であるとい
う関係が一定のライン数以上連続して成立する場合に黒
画素の中心位置に黒すじが発生したと判断して黒すじを
検出することを 特徴とする黒すじ検出方法。
8. The image information of a white roller that rotates for each scanning line by scanning with light is read, and the image information of each scanning line is binarized into black pixels and white pixels on a pixel-by-pixel basis. A white image calculated from the run length of white pixels and the run length of black pixels by obtaining the run length of white pixels, which is the number of consecutive white pixels, and the run length of black pixels, which is the number of consecutive black pixels.
It is the change position from the plain pixel to the black pixel and is the beginning of the scanning line
Let X be the position expressed as the number of pixels from
If Y is an odd number and Y is an odd number, X + (Y +
1) / 2, among the continuous black pixels on the scan line
The heart position is calculated as a position that is a candidate for black streaks, and Y is an even number.
In case of number, continuous on scan line by X + Y / 2
The center position of the black pixel
Calculated, successive calculated as the candidate a position of the black streaks black pixels
The center position of is a black pixel in the next scan line
Black if the relationship is established continuously over a certain number of lines
Judge that black streaks have occurred at the center position of the pixel and remove the black streaks.
Black streaks detection method and detecting.
JP33350299A 1999-11-24 1999-11-24 Document reading apparatus and black streak detection method Expired - Fee Related JP3480401B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP33350299A JP3480401B2 (en) 1999-11-24 1999-11-24 Document reading apparatus and black streak detection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP33350299A JP3480401B2 (en) 1999-11-24 1999-11-24 Document reading apparatus and black streak detection method

Publications (2)

Publication Number Publication Date
JP2001157046A JP2001157046A (en) 2001-06-08
JP3480401B2 true JP3480401B2 (en) 2003-12-22

Family

ID=18266779

Family Applications (1)

Application Number Title Priority Date Filing Date
JP33350299A Expired - Fee Related JP3480401B2 (en) 1999-11-24 1999-11-24 Document reading apparatus and black streak detection method

Country Status (1)

Country Link
JP (1) JP3480401B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4165706B2 (en) 2004-01-26 2008-10-15 株式会社リコー Document reading apparatus and image forming apparatus
JP4848742B2 (en) * 2005-11-16 2011-12-28 富士ゼロックス株式会社 Image reading apparatus and noise detection method
JP4977085B2 (en) * 2008-04-21 2012-07-18 株式会社沖データ Image reading device
JP2016071675A (en) * 2014-09-30 2016-05-09 富士通フロンテック株式会社 Roller mark detection program, roller mark detection device, and roller mark detection method

Also Published As

Publication number Publication date
JP2001157046A (en) 2001-06-08

Similar Documents

Publication Publication Date Title
US6466340B1 (en) Image reading apparatus
JP3312948B2 (en) Original platen dirt or scratch area compensation method and image reproducing apparatus
JP4327101B2 (en) Code recognition method and apparatus
JP6849320B2 (en) Image reader and image forming device
US6415064B1 (en) Skew correction apparatus and method
JP2011217323A (en) Image reading apparatus, and image reading method
JP4857079B2 (en) Image reading apparatus and image forming apparatus
JP3480401B2 (en) Document reading apparatus and black streak detection method
JP7341808B2 (en) Image reading device and its control method
US7545535B2 (en) Robust automatic page size detection algorithm for scan application
JP6645294B2 (en) Image reading device
JPS63296125A (en) Coordinate input device
CN114998418A (en) Maximum connected domain center position judgment method based on FPGA
US6995802B2 (en) Image binarization method and binary image creation method
JP3234636B2 (en) Defect inspection equipment
US11665296B2 (en) Image reading device
JP2006295404A (en) Image processing apparatus
JP3202330B2 (en) Defect inspection equipment
JP2947126B2 (en) Original image capture device
JPH07230546A (en) Image processor and its method
JPH09161056A (en) Inspecting method for inner surface of circular container
JP3598196B2 (en) Periodic pattern defect inspection equipment
JP7297354B1 (en) Image processing system and image processing method
JP3464736B2 (en) Pixel position error measuring device
JP2021090222A (en) Image reading device and image forming apparatus

Legal Events

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

Free format text: PAYMENT UNTIL: 20071010

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20081010

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20091010

Year of fee payment: 6

LAPS Cancellation because of no payment of annual fees