JPH0779325A - Picture reader - Google Patents

Picture reader

Info

Publication number
JPH0779325A
JPH0779325A JP16972293A JP16972293A JPH0779325A JP H0779325 A JPH0779325 A JP H0779325A JP 16972293 A JP16972293 A JP 16972293A JP 16972293 A JP16972293 A JP 16972293A JP H0779325 A JPH0779325 A JP H0779325A
Authority
JP
Japan
Prior art keywords
height
original
tks
image
document
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.)
Withdrawn
Application number
JP16972293A
Other languages
Japanese (ja)
Inventor
Noriyuki Nobuyuki
宣之 沖須
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Minolta Co Ltd
Original Assignee
Minolta Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Minolta Co Ltd filed Critical Minolta Co Ltd
Priority to JP16972293A priority Critical patent/JPH0779325A/en
Publication of JPH0779325A publication Critical patent/JPH0779325A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Facsimile Scanning Arrangements (AREA)

Abstract

PURPOSE:To attain accurate height measurement and obtain a beautiful and focused picture without distortion by detecting and correcting a fault of height distribution data of an original measured for focusing and distortion correction processing. CONSTITUTION:A mirror image 11 of an original 10 is formed by a range finding mirror 5 by placing the original 10 to a predetermined position and a mirror image of an original end face is formed continuously with the original image on an extension line of an image of the original platen 1. Then an image pickup means 7 subscans the original 10 mounted upward to read the original from the upward position and a height measurement means obtains the height distribution of the original in the subscanning direction. A curved point is detected from the obtained height distribution and whether or not the curved point is regular is detected and a point at which the height is rapidly changed is detected from the height distribution. Based on the result of detection, a height point measured in error is detected and the detected height point measured in error is corrected by surrounding correct data. The image pickup means 7 is focused based on the height measurement data after the correction to pick up the original 10 or the picked-up original image is corrected.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、ブック原稿等を上方か
ら撮影する画像読取装置にあって、原稿面までの高さ分
布を測定し、それに基づいて原稿像の補正処理等を行う
技術に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image reading apparatus for photographing a book document or the like from above, and measuring the height distribution up to the document surface and performing a correction process of the document image based on the measurement. .

【0002】[0002]

【従来の技術】従来から、書籍等の空間的に曲がった原
稿を上方より読み取る画像読取装置としては、例えば、
実開昭50−78114号公報に示されるように、カメ
ラ型でフィルム面にフィルムに代えてラインセンサを走
査移動可能に設けたものがある。また、特開平3−11
7965号公報に示されるように、原稿の読み取りに際
して原稿面の曲りに起因して生じる画像の歪みを補正す
るために、原稿面の高さ、すなわち原稿の曲り具合を検
知し、それに応じて、撮影した画像を伸長処理すること
により、画像を補正処理することが知られている。
2. Description of the Related Art Conventionally, as an image reading apparatus for reading a spatially bent original such as a book from above, for example,
As shown in Japanese Utility Model Application Laid-Open No. 50-78114, there is a camera type in which a line sensor is provided on the film surface instead of the film so as to be capable of scanning movement. In addition, Japanese Patent Laid-Open No. 3-11
As disclosed in Japanese Patent Publication No. 7965, in order to correct the image distortion caused by the bending of the original surface when reading the original, the height of the original surface, that is, the degree of bending of the original is detected, and accordingly, It is known to correct an image by expanding the captured image.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、上記実
開昭50−78114号公報や特開平3−117965
号公報には、撮影の際の焦点合せについては開示されて
いない。また、原稿面の曲り具合や高さ分布の測定時の
ノイズ、外乱等により誤測定データが含まれることがあ
り、このような誤測定があっても、それへの対応は考慮
されていないので、読取画像を誤って補正するといった
ことがある。
However, the above-mentioned Japanese Utility Model Laid-Open No. 50-78114 and Japanese Patent Laid-Open No. 3-117965.
The publication does not disclose focusing at the time of shooting. In addition, erroneous measurement data may be included due to noise, disturbances, etc. when measuring the document surface curvature and height distribution, and even if such erroneous measurement occurs, it is not considered how to deal with it. However, the read image may be erroneously corrected.

【0004】本発明は、上述した問題点を解決するもの
で、書籍等の空間的に曲がった原稿を読み取る画像読取
装置にあって、原稿の高さ分布測定データに異常があれ
ば、それを検出して補正することにより、正常な原稿画
像を得ることができる画像読取装置を提供することを目
的とする。
The present invention solves the above-mentioned problems, and in an image reading device for reading a spatially curved original such as a book, if there is an abnormality in the height distribution measurement data of the original, the error is measured. It is an object of the present invention to provide an image reading device that can obtain a normal document image by detecting and correcting it.

【0005】[0005]

【課題を解決するための手段】上記目的を達成するため
に本発明は、上向き原稿を上方から光学的走査により読
み取る画像読取装置において、原稿を副走査して上方か
ら読み取るラインセンサを有した撮像手段と、原稿の副
走査方向の高さ分布を求める測高手段と、上記測高手段
で求まった高さ分布より変曲点を検出する第1検出手段
と、上記変曲点が正規か正規でないかを検出する第2検
出手段と、上記測高手段で求まった高さ分布より高さが
急激に変化している点を検出する第3検出手段と、上記
第1乃至第3検出手段の検出結果に基づき誤測高点を検
出する第4検出手段と、上記第4検出手段による誤測高
点を周囲の正しいデータにより補正する補正手段とを備
え、上記による補正後の測高データに基づいて、上記撮
像手段を合焦動作させて原稿を撮影し、あるいは撮影し
た原稿像を補正するようにしたものである。
In order to achieve the above object, the present invention is an image reading apparatus for reading an upward document by optical scanning from above, and an image pickup having a line sensor for sub-scanning the document and reading it from above. Means, a height measuring means for obtaining a height distribution of the original in the sub-scanning direction, a first detecting means for detecting an inflection point from the height distribution obtained by the height measuring means, and the inflection point is normal or normal. Of the first to third detecting means, and second detecting means for detecting whether or not the height distribution is abruptly changed by the height measuring means. A fourth detecting means for detecting an erroneous height measuring point based on the detection result and a correcting means for correcting the erroneous height measuring point by the fourth detecting means by correct data of the surroundings are provided, and the corrected height measuring data by the above is obtained. Focusing operation of the image pickup means based on Was taken an original, or is a captured document image that so as to correct.

【0006】[0006]

【作用】上記の構成によれば、撮像手段は、上向きに載
置された原稿を副走査して上方から読み取り、測高手段
は、原稿の副走査方向の高さ分布を求める。求まった高
さ分布より変曲点を検出し、さらに、この変曲点が正規
か正規でないかを検出し、かつ、高さ分布より高さが急
激に変化している点を検出する。これらの検出結果に基
づき誤測高点を検出すると共に、検出した誤測高点を周
囲の正しいデータにより補正する。この補正後の測高デ
ータに基づいて、撮像手段を合焦動作させて原稿を撮影
し、あるいは撮影した原稿像を補正する。
According to the above construction, the image pickup means sub-scans the original placed upward and reads it from above, and the height measuring means obtains the height distribution of the original in the sub-scanning direction. An inflection point is detected from the obtained height distribution, and further, it is detected whether this inflection point is normal or not, and a point where the height changes abruptly from the height distribution is detected. An erroneous measurement height point is detected based on these detection results, and the detected erroneous measurement height point is corrected by correct data of the surroundings. Based on the corrected height measurement data, the image pickup means is brought into focus to photograph the original document or the photographed original image is corrected.

【0007】[0007]

【実施例】以下、本発明を具体化した実施例について図
面を参照して説明する。図1は画像読取装置の全体構成
を示す。同図において、画像読取装置の原稿台1上には
書籍やファイル等の原稿が上向きに置かれ、読み取り走
査により原稿を読み取る撮像カメラ部2が原稿を上方か
ら読み取り得る位置に設けられている。原稿台1と撮像
カメラ部2との間は所定の間隔をもたせ、この間隔によ
り作業空間が形成されている。また、本装置には、原稿
台1の奥上方に配置され原稿を照明する照明部3と、画
像読取条件等の設定を行う操作部4と、原稿台1の奥方
で撮影範囲内の端に副走査方向に配置され原稿の端部形
状を写す測距ミラー5と、不図示の制御部が設けられて
いる。この測距ミラー5に写った原稿の端部形状を撮像
カメラ部2で読み取り、撮像カメラ部2の撮像素子の画
素数より原稿面の高さ距離に換算するようにしている。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 shows the overall configuration of the image reading apparatus. In the figure, a document such as a book or a file is placed upward on a document table 1 of the image reading apparatus, and an imaging camera unit 2 for reading the document by reading scanning is provided at a position where the document can be read from above. A predetermined space is provided between the document table 1 and the imaging camera unit 2, and a work space is formed by this space. Further, in this apparatus, an illumination unit 3 arranged above the document table 1 for illuminating a document, an operation unit 4 for setting image reading conditions, and the like are provided at the end of the document table 1 at the end of the photographing range. A range-finding mirror 5 that is arranged in the sub-scanning direction and that captures the edge shape of the document is provided, and a control unit (not shown) is provided. The edge shape of the document imaged on the range-finding mirror 5 is read by the image capturing camera unit 2 and converted into the height distance of the document surface from the number of pixels of the image sensor of the image capturing camera unit 2.

【0008】図2、図3はそれぞれ本装置を前方及び側
方から見た概略構成を示す。撮像カメラ部2は、原稿像
を撮像素子に結像するための光学系であってオートフォ
ーカス(AF)用モータで駆動される撮影レンズ6と、
原稿像が結像される焦点面において副走査方向(同2で
矢印で示す方向)にスキャンするCCDラインセンサ7
とからなる。CCDラインセンサ7の一部は測距ミラー
5に写った原稿の端部形状の像を読み取る。原稿台1上
には載置される原稿10は、例えば、一方端で閉じられ
左右に開くと各頁が空間的に曲った柱面状となる書籍や
ファイル等である。測距ミラー5は、原稿台1の奥側で
左右方向に伸びる原稿位置決め用のストッパを兼ねてお
り、原稿台1の表面に対して45度の角度で傾斜して設
置されている。この測距ミラー5の下端部に原稿10の
上端を当てることで、原稿10の位置合せを行う。ま
た、原稿台1は原稿の地肌濃度より濃い着色を施してい
る。
FIGS. 2 and 3 respectively show schematic configurations of the apparatus as viewed from the front and the sides. The image pickup camera unit 2 is an optical system for forming a document image on an image pickup element, and a taking lens 6 driven by an autofocus (AF) motor,
CCD line sensor 7 that scans in the sub-scanning direction (direction indicated by an arrow in FIG. 2) on the focal plane on which the document image is formed.
Consists of. A part of the CCD line sensor 7 reads the image of the end shape of the original document reflected on the distance measuring mirror 5. The document 10 placed on the document table 1 is, for example, a book or file in which each page has a columnar shape in which each page is spatially curved when closed at one end and opened left and right. The distance measuring mirror 5 also functions as a stopper for document positioning that extends in the left-right direction on the back side of the document table 1, and is installed at an angle of 45 degrees with respect to the surface of the document table 1. The original 10 is aligned by applying the upper end of the original 10 to the lower end of the distance measuring mirror 5. The document table 1 is colored darker than the background density of the document.

【0009】図4は測距原理を示す図であり、原稿10
を所定位置に載置することで、測距ミラー5によって原
稿10の鏡像11が形成され、原稿端面の鏡像は原稿台
1の像の延長線上に原稿像に連続して形成される。な
お、撮像素子の読み取り範囲を一点鎖線12で示してい
る。CCDラインセンサ7の画素を1〜nで示してい
る。
FIG. 4 is a diagram showing the principle of distance measurement.
Is placed at a predetermined position, a mirror image 11 of the original 10 is formed by the distance measuring mirror 5, and a mirror image of the end surface of the original is continuously formed on the extension line of the image of the original table 1 to the original image. It should be noted that the reading range of the image pickup device is shown by a chain line 12. The pixels of the CCD line sensor 7 are indicated by 1 to n.

【0010】図5は図4の状態で読み取った画像データ
を示す。同図において、aは原稿像、bは原稿台像、c
は測距ミラーに写った部分、dは原稿端面の像、eは原
稿の位置合わせ基準を示す。原稿端面の像dは、その高
さ変化により、高い部分が上方へやや歪曲したように読
み取られる。原稿及びその端面は照明部3により照明さ
れているので、全体に白く読み取られる。それに対し
て、原稿台1は着色されているため、測距ミラーの原稿
端面が写っていない所は入射光量が少なくなり、黒く読
み取られる。
FIG. 5 shows the image data read in the state of FIG. In the figure, a is a document image, b is a document table image, and c.
Is a portion reflected on the range-finding mirror, d is an image of the end face of the document, and e is a reference for aligning the document. The image d on the end surface of the document is read as if the height of the image was slightly distorted upward due to its height change. Since the document and its end face are illuminated by the illumination unit 3, the entire document is read in white. On the other hand, since the document table 1 is colored, the amount of incident light is small and the image is read in black where the document end face of the distance measuring mirror is not visible.

【0011】図6はCCDラインセンサ7による主走査
方向1ライン分の出力例を示す。横軸にラインセンサの
画素数(左…奥側、右…手前側)、縦軸にセンサ面照度
を取っている。は測距ミラー上の原稿端面が写ってい
ない部分、は測距ミラー上に写った原稿端面部分、
は原稿部分、は原稿台部分である。L1は照度しきい
値、n1,n3はしきい値L1を通過する画素の最小・
最大値、n2は原稿基準位置の対応する画素(固定)で
ある。(n2−n1)が原稿の高さに相当する画素数と
なる。また、(n3−n2−α)が原稿の前後方向の寸
法に相当する画素数となる。αは原稿の高さ変化に伴う
原稿下端の湾曲分で、この部分の原稿高さ(n2−n
1)により決まる値である。CCDラインセンサ7が左
右方向(副走査方向)に移動すると、n1の値が変化
し、これにより、原稿左右方向の測距値の分布を得るこ
とができる。また、センサ面照度が全て低くなる左右方
向寸法を検出することができる。
FIG. 6 shows an output example of one line in the main scanning direction by the CCD line sensor 7. The horizontal axis shows the number of pixels of the line sensor (left ... back side, right ... front side), and the vertical axis shows the sensor surface illuminance. Is the part of the document on which the edge of the document is not visible, is the part of the document that is projected on the ranging mirror,
Is a document portion, and is a document table portion. L1 is the illuminance threshold value, and n1 and n3 are the minimum pixels that pass the threshold value L1.
The maximum value, n2, is the pixel (fixed) corresponding to the document reference position. (N2-n1) is the number of pixels corresponding to the height of the document. Further, (n3-n2-α) is the number of pixels corresponding to the dimension of the document in the front-rear direction. α is a curved portion at the lower end of the document due to a change in the document height, and the document height at this portion (n2-n
It is a value determined by 1). When the CCD line sensor 7 moves in the left-right direction (sub-scanning direction), the value of n1 changes, so that the distribution of distance measurement values in the left-right direction of the document can be obtained. In addition, it is possible to detect the lateral dimension in which the illuminance on the sensor surface is entirely reduced.

【0012】図7は制御部における測距回路のブロック
構成を示す。センサ7の出力はA/D変換器21により
A/D変換された後、比較器22に入力される。比較器
22には、CPU23によって、しきい値が予め設定さ
れている。比較器22にしきい値を跨ぐ出力が入力され
ると、カウンタ24がセットされる。CPU23はこの
カウンタ24のカウント値の最小/最大値を記憶する。
これより、原稿高さに相当する距離を換算により求め、
同時に、原稿の左右方向の寸法も求めることができる。
CPU13は原稿高さ距離に基づいてセンサ移動部25
に対してセンサ7を合焦動作させるべく指令を出力し、
また、照明部3の点灯を制御すべく指令を出力する。
FIG. 7 shows a block configuration of a distance measuring circuit in the control unit. The output of the sensor 7 is A / D converted by the A / D converter 21 and then input to the comparator 22. A threshold value is preset in the comparator 22 by the CPU 23. When the output that exceeds the threshold value is input to the comparator 22, the counter 24 is set. The CPU 23 stores the minimum / maximum value of the count value of the counter 24.
From this, the distance corresponding to the document height is calculated and
At the same time, the horizontal dimension of the document can also be obtained.
The CPU 13 uses the sensor moving unit 25 based on the document height distance.
To output a command to the sensor 7 for focusing operation,
In addition, a command is output to control the lighting of the lighting unit 3.

【0013】図8、図9は実際に原稿の副走査方向(ス
キャン方向)の高さ分布を測定した結果を示す。なお、
測高は予備スキャン時に行う。いずれも開いた本の右ペ
ージの測高データであり、図8のA点、図9のB点がそ
れぞれ本の綴じ部に相当し、それより右側が右ページ、
左側が左ページである。また、図8のC点、図9のD点
の部分は本の小口の部分である。図8は正常に測高され
た状態である。図9はP,Qの2点で誤測高をしてい
る。誤測高の原因としては電気的ノイズ、測距ミラー5
の汚れ、ごみの付着、原稿上端部の汚れ、ごみの付着、
外光の入射等が考えられる。
FIG. 8 and FIG. 9 show the results of actually measuring the height distribution of the document in the sub-scanning direction (scanning direction). In addition,
The height is measured during the preliminary scan. Both are height measurement data on the right page of the opened book. Point A in FIG. 8 and point B in FIG. 9 correspond to the binding portion of the book, respectively, and the right side is the right page,
The left side is the left page. Further, the point C in FIG. 8 and the point D in FIG. 9 are the edge portions of the book. FIG. 8 shows a state where the height is normally measured. In FIG. 9, false measurement is made at two points P and Q. The cause of false measurement is electrical noise, distance measuring mirror 5
Dirt, dust, dirt on the top edge of the document, dust,
External light may be incident.

【0014】次に、測高データのチェック、すなわち誤
測高点の検出と補正の方法について説明する。検出、補
正の処理は、図7のCPU23が行う。誤測高の検出の
基本的な考え方は、(1)測高点が周囲の値に比べて急
激に変化している、(2)測高点のグラフで本の綴じ
部、湾曲の頂点(正規の変曲点)以外で変曲点が現れて
いる、のいずれかが成立するところが誤測高点である。
いずれも測高値の差分データを基に検出することができ
る。
Next, a method of checking height measurement data, that is, a method of detecting and correcting an erroneous height measurement point will be described. The detection and correction processing is performed by the CPU 23 in FIG. 7. The basic idea of detection of erroneous height measurement is (1) the height measurement point changes abruptly compared with the surrounding values, (2) the binding point of a book, the apex of the curve ( The inflection point appears other than the regular inflection point, and the place where either of the above is satisfied is the false high-altitude point.
Both can be detected based on the difference data of the measured values.

【0015】図10は誤測高点の検出、補正の方法を示
す概略フローチャートである。以下、このフローについ
て説明する。まず、差分データを作成する(#1)。 測高データをTKS(x) [mm] (x=1,2,…,
N) としたとき、差分データは、SAB(x)=TKS(x)-TKS(x+
1) (x=1,2,…,N-1) となる。
FIG. 10 is a schematic flowchart showing a method of detecting and correcting an erroneously measured height point. Hereinafter, this flow will be described. First, difference data is created (# 1). The measured data is TKS (x) [mm] (x = 1,2,…,
N), the difference data is SAB (x) = TKS (x) -TKS (x +
1) (x = 1,2, ..., N-1).

【0016】次に、正規の変曲点の抽出を行う(#
2)。後の#3で差分データの大きさをあるしきい値と
比べるが、このしきい値を正規の変曲点とそうでないと
ころとで変える。そのために、正規の変曲点を抽出す
る。
Next, the regular inflection points are extracted (#
2). In # 3 to be described later, the size of the difference data is compared with a certain threshold value, and this threshold value is changed between the normal inflection point and the non-normal inflection point. Therefore, a regular inflection point is extracted.

【0017】(1) 隣接差分データの符号をチェックす
る。 (x=1,2,…,N-2) SAB(x)とSAB(x+1)の符号が異なれば、TKS(x+1)は変曲点
と見做す。 (2) x=1,2,…,N-4の場合:変曲点に対してはさらに隣接
する2つの差分データの符号をチェックする。SAB(x+1)
が、SAB(x+2),SAB(x+3) の両方と符号が同じであれば、
TKS(x+1)は正規の変曲点と見做す(綴じ部、湾曲の頂点
等)。SAB(X+1)が、SAB(x+2),SAB(x+3) の少なくとも一
方と符号が異なれば、TKS(x+1)は正規でない変曲点と見
做す(変曲点付近で誤測高した点がある)。 x=N-3 の場合:隣接する1つの差分データの符号をチェ
ックする。SAB(x+1)が、SAB(x+2)と符号が同じであれ
ば、TKS(x+1)は正規の変曲点と見做す(綴じ部、湾曲の
頂点等)。SAB(x+1)がSAB(x+2)と符号が異なれば、TKS
(x+1)は正規でない変曲点と見做す(変曲点付近で誤測
高した点がある)。 x=N-2 の場合:TKS(x+1)は正規の変曲点と見做す。
(1) Check the sign of the adjacent difference data. (x = 1,2, ..., N-2) If the signs of SAB (x) and SAB (x + 1) are different, TKS (x + 1) is regarded as an inflection point. (2) In the case of x = 1, 2, ..., N-4: For the inflection point, the signs of two adjacent difference data are checked. SAB (x + 1)
Is the same sign as both SAB (x + 2) and SAB (x + 3),
TKS (x + 1) is regarded as a regular inflection point (binding part, curved vertex, etc.). If the sign of SAB (X + 1) is different from that of at least one of SAB (x + 2) and SAB (x + 3), TKS (x + 1) is regarded as a non-regular inflection point (inflection point There is a point of high measurement in the vicinity). When x = N-3: Check the sign of one adjacent difference data. If SAB (x + 1) has the same sign as SAB (x + 2), TKS (x + 1) is regarded as a regular inflection point (binding portion, apex of curvature, etc.). If SAB (x + 1) has a different sign from SAB (x + 2), then TKS
(x + 1) is regarded as a non-regular inflection point (there are some points that were falsely measured near the inflection point). When x = N-2: TKS (x + 1) is regarded as a regular inflection point.

【0018】以上により、図9ではB点(本の綴じ
部)、E点(湾曲の頂点)が正規の変曲点として抽出さ
れ、P,Q,R,S点等は正規でない変曲点とされる。
As described above, in FIG. 9, point B (the binding portion of the book) and point E (the apex of the curve) are extracted as regular inflection points, and points P, Q, R, S, etc. are not regular inflection points. It is said that

【0019】次に、差分データの大きさチェックと補正
を行う(#3)。差分データ列に対し、順に差分データ
の大きさチェックにより誤測高点があるかどうかチェッ
クしていく。誤測高点があった場合は、その都度補正を
行う。
Next, the size of the difference data is checked and corrected (# 3). For the difference data string, the size of the difference data is sequentially checked to check whether there is an erroneous measurement high point. If there is an erroneous measurement high point, correct it each time.

【0020】(1) 差分データの大きさチェック 隣接する差分データの差の絶対値|SAB(x+1)-SAB(x) |
を、あるしきい値THREと比較する。 |SAB(x+1)-SAB(x) |≦ THRE の場合:TKS(x+2)は正
しい。 |SAB(x+1)-SAB(x) |> THRE の場合:TKS(x+1)が正
規の変曲点であれば、TKS(x+2)は正しい(綴じ部のよう
な変曲点付近では高さの変化が大きい場合が多い)。TK
S(x+1)が正規の変曲点でないときは、TKS(x+2)は誤測高
である(変曲点付近以外で高さが大きく変化することは
通常考えられない)。
(1) Size check of difference data Absolute value of difference between adjacent difference data | SAB (x + 1) -SAB (x) |
Is compared with some threshold THRE. | SAB (x + 1) -SAB (x) | ≤ THRE: TKS (x + 2) is correct. | SAB (x + 1) -SAB (x) | > If THRE: If TKS (x + 1) is a regular inflection point, TKS (x + 2) is correct (inflection such as binding) There are often large changes in height near the point). TK
When S (x + 1) is not a regular inflection point, TKS (x + 2) is a falsely measured height (it is generally unlikely that the height changes greatly except near the inflection point).

【0021】しきい値の決定方法は次の通りである。TK
S(x+1)が変曲点(正規、正規でないにかかわらず)であ
るか否かによってしきい値を変える(差分データの差の
絶対値と比較するので分ける必要がある)。 TKS(x+1)が変曲点でない場合:|SAB(x)|> 1 かつ
|SAB(x+1)|> 1のときは、THRE= SAB(x) とする。
|SAB(x)|≦ 1 または|SAB(x+1)|≦ 1のときは、TH
RE=1とする(高さの変化の小さい領域)。 TKS(x+1)が変曲点である場合:|SAB(x)|> 1 かつ
|SAB(x+1)|> 1のときは、THRE=Max(|SAB(x)|,2)と
する。|SAB(x)|≦ 1 または|SAB(x+1)|≦ 1のとき
は、THRE=2とする(高さの変化の小さい領域)。 上記の検出方法により、図9ではP点が誤測高として検
出される。Q点は|SAB(x)-SAB(x+1) |< THRE とな
り、検出されない。
The method of determining the threshold value is as follows. TK
The threshold value is changed depending on whether S (x + 1) is an inflection point (regular or not regular) (it needs to be divided because it is compared with the absolute value of the difference of the difference data). If TKS (x + 1) is not an inflection point: | SAB (x) |> 1 and
If | SAB (x + 1) |> 1, then THRE = SAB (x).
When | SAB (x) | ≦ 1 or | SAB (x + 1) | ≦ 1, TH
RE = 1 (area where height change is small). If TKS (x + 1) is an inflection point: | SAB (x) |> 1 and
When | SAB (x + 1) |> 1, THRE = Max (| SAB (x) |, 2). When | SAB (x) | ≦ 1 or | SAB (x + 1) | ≦ 1, THRE = 2 (area where height change is small). By the above detection method, the point P in FIG. 9 is detected as an erroneous height. Point Q is | SAB (x) -SAB (x + 1) | <THRE and is not detected.

【0022】(2) 誤測高データの補正 誤測高と検出されたところでは、測高値が大きく変化し
ている。後続の測高データに正しいデータがあると仮定
すれば、逆方向に測高値が変化するところがあり、その
付近で誤測高データの1つ前の正しいデータ TcO と値
が近い測高データ Tc1 があるはずである。その測高デ
ータ Tc1 を正しいデータと見做し、TcO と Tc1 とか
ら、その間の誤測高データを直線補間で修正する。TKS
(x+3),TKS(x+4),TKS(x+5),TKS(x+6) と順に正しいデー
タを探す。みつからなかった場合は、誤測高データの補
正不可とする。
(2) Correction of erroneous height measurement data When the erroneous height measurement is detected, the height measurement value greatly changes. Assuming that there is correct data in the subsequent height measurement data, there is a place where the height measurement value changes in the opposite direction, and in that vicinity there is a height measurement data Tc1 that is close in value to the correct data TcO immediately before the false height measurement data. There should be. The height measurement data Tc1 is regarded as correct data, and the wrong height measurement data between TcO and Tc1 is corrected by linear interpolation. TKS
(x + 3), TKS (x + 4), TKS (x + 5), TKS (x + 6) Search for correct data in this order. If it is not found, it is not possible to correct the incorrect measured height data.

【0023】TKS(x+3)が正しいデータかどうかの判定:
x≦ N-3,SAB(x)≧ 0の場合、TKS(x+3)≦ TKS(x) かつ
|TKS(x+3)-TKS(x) |< THRE*4 であれば、TKS(x+3)
は正しい。SAB(x) < 0 の場合、TKS(x+3)≧ TKS(x)
かつ |TKS(x+3)-TKS(x)| <THRE*4 であれば、TKS(x
+3)は正しい。
Determination whether TKS (x + 3) is correct data:
If x ≤ N-3 and SAB (x) ≥ 0, and if TKS (x + 3) ≤ TKS (x) and | TKS (x + 3) -TKS (x) | <THRE * 4, then TKS ( x + 3)
Is correct If SAB (x) <0, TKS (x + 3) ≥ TKS (x)
And | TKS (x + 3) -TKS (x) | <THRE * 4, TKS (x
+3) is correct.

【0024】TKS(x+4)が正しいデータかどうかの判定:
x≦ N-4, SAB(x) ≧ 0 の場合、TKS(x+4)≦ TKS(x)
かつ |TKS(x+4)-TKS(x) |< THRE*5 であれば、TKS
(x+4)は正しい。SAB(x) < 0 の場合、TKS(x+4)≧ TKS
(x) かつ |TKS(x+4)-TKS(x) |<THRE*5 であれば、T
KS(x+4)は正しい。
Judgment whether TKS (x + 4) is correct data:
When x ≤ N-4, SAB (x) ≥ 0, TKS (x + 4) ≤ TKS (x)
And | TKS (x + 4) -TKS (x) | < THRE * 5, TKS
(x + 4) is correct. If SAB (x) <0, TKS (x + 4) ≥ TKS
(x) and | TKS (x + 4) -TKS (x) | <THRE * 5, T
KS (x + 4) is correct.

【0025】TKS(x+5)が正しいデータかどうかの判定:
x≦ N-5, SAB(x) ≧ 0 の場合、TKS(x+5)≦ TKS(x)
かつ |TKS(x+5)-TKS(x) |< THRE*6 であれば、TKS
(x+5)は正しい。SAB(x) < 0 の場合、TKS(x+5)≧ TKS
(x) かつ |TKS(x+5)-TKS(x) |<THRE*6 であれば、T
KS(x+5)は正しい。
Judgment whether TKS (x + 5) is correct data:
If x ≤ N-5, SAB (x) ≥ 0, TKS (x + 5) ≤ TKS (x)
And | TKS (x + 5) -TKS (x) | < THRE * 6, TKS
(x + 5) is correct. If SAB (x) <0, TKS (x + 5) ≥ TKS
(x) and | TKS (x + 5) -TKS (x) | <THRE * 6, T
KS (x + 5) is correct.

【0026】TKS(x+6)が正しいデータかどうかの判定:
x≦ N-6, SAB(x) ≧ 0 の場合、TKS(x+6)≦ TKS(x)
かつ |TKS(x+6)-TKS(x) |< THRE*7 であれば、TKS
(x+6)は正しい。SAB(x) < 0 の場合、TKS(x+6)≧ TKS
(x) かつ |TKS(x+6)-TKS(x) |<THRE*7 であれは、T
KS(x+6)は正しい。誤測高データの補正は、直線補間で
行う。例えば、 TKS(x+4) が正しい場合、
Determination whether TKS (x + 6) is correct data:
When x ≤ N-6, SAB (x) ≥ 0, TKS (x + 6) ≤ TKS (x)
And | TKS (x + 6) -TKS (x) | < THRE * 7, TKS
(x + 6) is correct. If SAB (x) <0, TKS (x + 6) ≥ TKS
(x) and | TKS (x + 6) -TKS (x) | < THRE * 7, T
KS (x + 6) is correct. Correction of false measurement height data is performed by linear interpolation. For example, if TKS (x + 4) is correct,

【0027】[0027]

【数1】TKS(x+2)=TKS(x+1)+{TKS(x+4)-TKS(x+1)}/3 TKS(x+3)=TKS(x+1)+{TKS(x+4)-TKS(x+1}*2/3 SAB(x+1)=TKS(X+1)-TKS(x+2) SAB(x+2)=TKS(X+2)-TKS(x+3)[Equation 1] TKS (x + 2) = TKS (x + 1) + {TKS (x + 4) -TKS (x + 1)} / 3 TKS (x + 3) = TKS (x + 1) + { TKS (x + 4) -TKS (x + 1} * 2/3 SAB (x + 1) = TKS (X + 1) -TKS (x + 2) SAB (x + 2) = TKS (X + 2) -TKS (x + 3)

【0028】上記により、図9ではT点が正しいデータ
と判断される。従って、P点の補正後のP´点データ
は、 TKS(P') ={TKS(S)+TKS(T)}/ 2 となる。ここに、TKS(S):S点の測高値、TKS(T):T点
の測高値である。
From the above, the T point is judged to be correct data in FIG. Therefore, the corrected P'point data of the P point is TKS (P ') = {TKS (S) + TKS (T)} / 2. Here, TKS (S): the measured value of the S point, and TKS (T): the measured value of the T point.

【0029】次に、正規でない変曲点の抽出と補正を行
う(#4)。差分データの大きさチェックで補正された
データに対し、再び正規の変曲点の検出を行い、正規で
ない変曲点を補正する。正規の変曲点の検出方法は前述
と同じである。補正方法は次の通りである。TKS(x+1)が
正規の変曲点でない場合は、 TKS(x+2) も誤測高データ
である可能性があるので、両者を補正する。補正は直線
補間で行う。
Next, extraction and correction of non-regular inflection points are performed (# 4). For the data corrected by the size check of the difference data, the regular inflection point is detected again, and the irregular inflection point is corrected. The method of detecting the regular inflection point is the same as described above. The correction method is as follows. If TKS (x + 1) is not a regular inflection point, TKS (x + 2) may also be false measured data, so correct both. The correction is performed by linear interpolation.

【0030】[0030]

【数2】TKS(x+2)=TKS(x+1)+{TKS(x+4)-TKS(x+1}/3 TKS(x+3)=TKS(x+1)+{TKS(x+4)-TKS(x+1}*2/3 SAB(x+1)=TKS(X+1)-TKS(x+2) sAB(x+2)=TKS(X+2)-TKS(x+3)[Formula 2] TKS (x + 2) = TKS (x + 1) + {TKS (x + 4) -TKS (x + 1} / 3 TKS (x + 3) = TKS (x + 1) + {TKS (x + 4) -TKS (x + 1} * 2/3 SAB (x + 1) = TKS (X + 1) -TKS (x + 2) sAB (x + 2) = TKS (X + 2)- TKS (x + 3)

【0031】図9では、Q,R点が正規でない変曲点と
して抽出され、U,V点のデータにより補正される。補
正後のQ´,R´点データは、 TKS(R') =TKS(U)+ {TKS(V)-TKS(U)}/ 3 TKS(Q') =TKS(U)+ {TKS(V)-TKS(U)}*2/3 となる。
In FIG. 9, points Q and R are extracted as inflection points which are not normal, and are corrected by the data of points U and V. The corrected Q ', R'point data is TKS (R') = TKS (U) + {TKS (V) -TKS (U)} / 3 TKS (Q ') = TKS (U) + {TKS ( V) -TKS (U)} * 2/3.

【0032】最後に、総合評価を行う(#5)。測高デ
ータを基に本スキャン時にリアルタイムで撮影レンズ6
を動かし、常に原稿面にピントが合った状態で撮影する
ようにする(AF:オートフォーカス)。また、原稿の
高さ変化に伴い、撮影倍率も変化するので、撮影結果は
原稿が歪曲したようになる。そこで、測高データを基に
倍率補正を行って歪曲を補正する(曲り補正)。AFに
おいては、撮影レンズ6の移動可能範囲と撮影レンズ6
の移動追随可能範囲、曲り補正においては、倍率補正可
能範囲がそれぞれあるため、いかなる原稿に対してもA
F、曲り補正が可能になるわけではない。そこで、A
F、曲り補正可能な高さの限界(Hmm)、AF可能な勾
配の限界(S度)を設定し、測高データが限界内か否か
をチェックする。限界内でなければ、CPU23は操作
部4のパネルに警告の表示または音を発し、本スキャン
も行わないようにする。
Finally, comprehensive evaluation is performed (# 5). Taking lens 6 in real time during the main scan based on the height measurement data
To move the camera so that the document surface is always in focus (AF: Auto Focus). Further, since the photographing magnification also changes as the height of the original changes, the result of the photographing is that the original is distorted. Therefore, the magnification is corrected based on the height measurement data to correct the distortion (bend correction). In AF, the movable range of the taking lens 6 and the taking lens 6
Since there is a magnification correction range in each of the movement followable range and the bending correction, A
F, bend correction is not possible. So A
F, bend correction height limit (Hmm), AF possible gradient limit (S degree) are set, and it is checked whether the height measurement data is within the limit. If it is not within the limit, the CPU 23 displays a warning or makes a sound on the panel of the operation unit 4, and does not perform the main scan.

【0033】以上の測高データのチェックは測高された
全てのデータに対して行う必要はなく、副走査方向原稿
有効領域が分かっていれば、その領域内のデータに対し
てのみ行えばよい。その場合、不要な演算をしなくてよ
いので、演算速度が速くなる。また、有効領域外にA
F、曲り補正可能な限界を越える測高データが存在して
も、それには関知せずに本スキャンを行えばよい。な
お、原稿有効領域は、ユーザが操作部4等で指定した
り、原稿サイズ検出等から判定できる。
It is not necessary to check the height measurement data for all the height measurement data, and if the original effective area in the sub-scanning direction is known, only the data within that area may be checked. . In that case, unnecessary calculation is not required, and the calculation speed is increased. A outside the effective area
F. Even if there is height measurement data that exceeds the limit of bend correction, the main scan may be performed without concern. The valid area of the original can be specified by the user using the operation unit 4 or the like, or can be determined by detecting the original size.

【0034】なお、本発明は上記実施例に限られず、種
々の変形が可能である。例えば、上記実施例では、プリ
スキャンにて測距動作を行ってから撮像動作を行うもの
を示したが、撮像動作中に、測距及びピント合せを同時
に行うようにしてもよい。また、単焦点レンズを用いて
レンズの移動のみで焦点合せを行うものの他に、ズーム
レンズを用いてピント合せと同時に主走査方向の倍率を
補正したり、レンズ及びセンサを一体的に動かし、ピン
ト合せと同時に主走査方向の倍率も補正することも考え
られる。
The present invention is not limited to the above embodiment, but various modifications can be made. For example, in the above-described embodiment, the distance measurement operation is performed by the prescan before the image pickup operation is performed, but the distance measurement and the focus adjustment may be simultaneously performed during the image pickup operation. In addition to using a single-focus lens to focus only by moving the lens, a zoom lens can be used to correct the magnification in the main scanning direction at the same time as focusing, and the lens and sensor can be moved integrally to focus. It is also conceivable to correct the magnification in the main scanning direction simultaneously with the adjustment.

【0035】[0035]

【発明の効果】以上のように本発明によれば、書籍のよ
うな原稿をラインセンサにより走査して上方より撮影す
る装置にあって、ピント合わせ、歪み補正処理のために
測定した原稿の高さ分布データに異常があれば、それを
検出して補正するようにしているので、書籍等の綴じ
部、湾曲の頂点を誤測高点と見做すようなことがなく、
正確な測高を行え、ピントが合い歪みのない美しい画像
を得ることができる。
As described above, according to the present invention, in an apparatus for scanning a document such as a book with a line sensor and photographing the document from above, the height of the document measured for focusing and distortion correction processing is high. If there is an abnormality in the distribution data, it is detected and corrected, so there is no need to regard the binding portion of a book or the apex of the curve as an erroneous height measurement point.
Accurate height measurement can be performed and a beautiful image with no distortion can be obtained.

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

【図1】本発明の一実施例による画像読取装置の斜視図
である。
FIG. 1 is a perspective view of an image reading apparatus according to an embodiment of the present invention.

【図2】本画像読取装置の前方から見た概略構成図であ
る。
FIG. 2 is a schematic configuration diagram of the image reading apparatus as viewed from the front.

【図3】本画像読取装置の側方から見た概略構成図であ
る。
FIG. 3 is a schematic configuration diagram of the image reading apparatus viewed from the side.

【図4】本画像読取装置における測距原理を示す図であ
る。
FIG. 4 is a diagram showing a principle of distance measurement in the image reading apparatus.

【図5】読み取った画像データを示す図である。FIG. 5 is a diagram showing read image data.

【図6】撮像素子による1ライン分の出力例を示す図で
ある。
FIG. 6 is a diagram showing an example of output for one line by an image sensor.

【図7】本画像読取装置の測距回路のブロック図であ
る。
FIG. 7 is a block diagram of a distance measuring circuit of the image reading apparatus.

【図8】原稿の副走査方向の高さ分布測定データを示す
図である。
FIG. 8 is a diagram showing height distribution measurement data of a document in the sub-scanning direction.

【図9】原稿の副走査方向の高さ分布測定データを示す
図である。
FIG. 9 is a diagram showing height distribution measurement data of a document in the sub-scanning direction.

【図10】測高データのチェック処理を示すフローチャ
ートである。
FIG. 10 is a flowchart showing a check process of height measurement data.

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

6 レンズ 7 CCDラインセンサ 10 原稿 23 CPU 6 lens 7 CCD line sensor 10 original document 23 CPU

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 上向き原稿を上方から光学的走査により
読み取る画像読取装置において、 原稿を副走査して上方から読み取るラインセンサを有し
た撮像手段と、 原稿の副走査方向の高さ分布を求める測高手段と、 上記測高手段で求まった高さ分布より変曲点を検出する
第1検出手段と、 上記変曲点が正規か正規でないかを検出する第2検出手
段と、 上記測高手段で求まった高さ分布より高さが急激に変化
している点を検出する第3検出手段と、 上記第1乃至第3検出手段の検出結果に基づき誤測高点
を検出する第4検出手段と、 上記第4検出手段による誤測高点を周囲の正しいデータ
により補正する補正手段とを備え、 上記による補正後の測高データに基づいて、上記撮像手
段を合焦動作させて原稿を撮影し、あるいは撮影した原
稿像を補正するようにしたことを特徴とする画像読取装
置。
1. An image reading apparatus for reading an upward document by optical scanning from above, an image pickup unit having a line sensor for sub-scanning the document and reading it from above, and a measuring device for obtaining a height distribution of the document in the sub-scanning direction. High means, first detecting means for detecting an inflection point from the height distribution obtained by the height measuring means, second detecting means for detecting whether the inflection point is normal or not, and the height measuring means Third detecting means for detecting a point where the height changes abruptly from the height distribution obtained in step 4, and fourth detecting means for detecting an erroneously measured height point based on the detection results of the first to third detecting means. And correction means for correcting the false height measurement point by the fourth detection means by correct data of the surroundings, and based on the height measurement data after correction by the above, the image pickup means is brought into focus operation to photograph the original document. Or the captured original image Image reading apparatus is characterized in that as a positive to.
JP16972293A 1993-06-15 1993-06-15 Picture reader Withdrawn JPH0779325A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP16972293A JPH0779325A (en) 1993-06-15 1993-06-15 Picture reader

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP16972293A JPH0779325A (en) 1993-06-15 1993-06-15 Picture reader

Publications (1)

Publication Number Publication Date
JPH0779325A true JPH0779325A (en) 1995-03-20

Family

ID=15891647

Family Applications (1)

Application Number Title Priority Date Filing Date
JP16972293A Withdrawn JPH0779325A (en) 1993-06-15 1993-06-15 Picture reader

Country Status (1)

Country Link
JP (1) JPH0779325A (en)

Similar Documents

Publication Publication Date Title
US6950139B2 (en) Image reading device and storage medium storing control procedure for image reading device
US5416609A (en) Image pickup apparatus for focusing an object image based on mirror reflected height of the object
US6359650B1 (en) Electronic camera having a tilt detection function
JP3821860B2 (en) Image reading device
JP3436015B2 (en) Image reading device
US20100259622A1 (en) Determination of need to service a camera based on detection of blemishes in digital images
JP3996610B2 (en) Projector apparatus and image distortion correction method thereof
JP3996617B2 (en) Projector device with image distortion correction function
JP2008052123A (en) Imaging apparatus
US7489832B2 (en) Imaging apparatus, image processing method for imaging apparatus and recording medium
JPH08154154A (en) Image reader
JPH08307688A (en) Image reader
JPH0897975A (en) Image reader
WO1999021352A1 (en) Image reading device and focus adjustment method for it
JP4589646B2 (en) Digital still camera and control method thereof
JP4996568B2 (en) IMAGING DEVICE AND IMAGING DEVICE CONTROL METHOD
JP2004310726A (en) Image inspection method, image inspection apparatus, and program
JPH0779325A (en) Picture reader
JP3384208B2 (en) Image reading device
JP3125522B2 (en) Image reading device
TWI395047B (en) Automatic focusing method and image capture apparatus using the same
JP3430776B2 (en) Image reading device
JPH09266528A (en) Image reader
JP6592881B2 (en) Surface detection method, surface detection device, and imaging device
JP3239413B2 (en) Camera autofocus device

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20000905