JPH0846761A - Image input method and its device - Google Patents

Image input method and its device

Info

Publication number
JPH0846761A
JPH0846761A JP6176343A JP17634394A JPH0846761A JP H0846761 A JPH0846761 A JP H0846761A JP 6176343 A JP6176343 A JP 6176343A JP 17634394 A JP17634394 A JP 17634394A JP H0846761 A JPH0846761 A JP H0846761A
Authority
JP
Japan
Prior art keywords
image data
image
straight line
tilt angle
angle
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP6176343A
Other languages
Japanese (ja)
Inventor
Tetsuo Oishi
哲生 大石
Misako Sagara
美早子 相良
Toshibumi Hanada
俊文 花田
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 Solution Innovators Ltd
Original Assignee
NEC Software Kyushu 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 NEC Software Kyushu Ltd filed Critical NEC Software Kyushu Ltd
Priority to JP6176343A priority Critical patent/JPH0846761A/en
Publication of JPH0846761A publication Critical patent/JPH0846761A/en
Pending legal-status Critical Current

Links

Landscapes

  • Facsimile Scanning Arrangements (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Character Input (AREA)
  • Image Input (AREA)
  • Processing Or Creating Images (AREA)

Abstract

PURPOSE:To easily acquire image data having lateral straight line with less sampling distortion. CONSTITUTION:An image input section 1 is provided with an original platen turnable around an axis perpendicularly to an image input face and with a drive motor driving the original platen. Image data outputted from the image input section 1 are stored in a primary image storage section 11 as primary image data. A straight line detection means 12 detects sequentially coordinates of straight lines from the stored primary image data. A straight line table generating means 13 obtains a region in which a tilt angle of detected straight line components is included out of plural predetermined angle regions and stores accumulation of the frequency numbers to a straight line table generating means 13 as a straight line table. A tilt angle decision means 14 decides the tilt angle of straight lines based on the content of the straight line table and an angle correction means 14 provides an output of an angle correction drive signal so as to make the decided tilt angle zero to turn the original platen 7. Then image data are acquired from the image input section 1 and stored in a secondary image storage section 16 as secondary image data.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は画像入力方法とその装置
に関し、特に罫線を含む原稿の画像をディジタル化した
画像データとして入力するための画像入力方法とその装
置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image input method and an apparatus thereof, and more particularly to an image input method and an apparatus for inputting an image of a document including ruled lines as digitized image data.

【0002】[0002]

【従来の技術】縦線や横線などの罫線で区分された所定
の位置に数字や文字などが記入されている原稿の画像、
たとえば、伝票について、この伝票を画像データとして
入力する装置としては、入力しようとする伝票などの紙
面を光学系取得部を用いて、二次元(XおよびY方向)
的に走査して画像データとして入力している。
2. Description of the Related Art An image of a manuscript in which numbers, characters, etc. are written in predetermined positions divided by ruled lines such as vertical lines and horizontal lines,
For example, regarding a slip, as an apparatus for inputting this slip as image data, the paper surface of the slip to be input is two-dimensionally (X and Y directions) by using an optical system acquisition unit.
Are scanned and input as image data.

【0003】すなわち、取得部として、たとえば、Xお
よびY方向に移動する光源とこの光源と一体で移動する
フォトセンサとを備え、入力すべき紙面に光源から光を
照射し、この光の反射光をフォトセンサにより検出し、
ピクセル単位で、たとえば、白色の紙面に記入されてい
る黒色の文字を画像データとして入力するとき、白色の
紙面はレベル1に、黒色の文字部分をレベル0とする2
値のデジタル量として画像データを出力させている。
That is, for example, a light source that moves in the X and Y directions and a photosensor that moves integrally with the light source are provided as the acquisition unit, and the paper surface to be input is irradiated with light from the light source, and the reflected light of this light is reflected. Is detected by the photo sensor,
For example, when a black character written on a white paper surface is input as image data in pixel units, the white paper surface is set to level 1 and the black character portion is set to level 0 2
Image data is output as a digital value.

【0004】しかしながら、このような光学的取得部を
持つ画像入力部の所定の取得面上に、画像を取得したい
原稿を載置するとき、上述の取得部の操作方向であるX
方向と伝票上の横方向の罫線とが平行でない場合には、
取得した画像データは全体的に水平また垂直方向に対し
て傾いた画像データとして取得されることになる。
However, when a document whose image is to be acquired is placed on a predetermined acquisition surface of the image input unit having such an optical acquisition unit, the operation direction of the acquisition unit is X.
If the direction and the horizontal ruled lines on the slip are not parallel,
The acquired image data will be acquired as image data that is inclined with respect to the horizontal or vertical direction as a whole.

【0005】このように画像入力部の走査方向に対して
平行でなく傾いて取得された画像データを補正するため
に、従来のこの種の装置では、一旦取得した画像データ
の中から横方向の直線(罫線など)成分を検出し、横走
査方向であるX方向に対する傾き角度を検出し、検出し
た、傾き角度を零とするように、取得した画像データ全
体について回転処理を行い補正している。
In order to correct image data acquired in such a manner that it is not parallel to the scanning direction of the image input section but is tilted, a conventional apparatus of this type uses the image data once acquired in the horizontal direction. A straight line (ruled line or the like) component is detected, an inclination angle with respect to the X direction, which is the horizontal scanning direction, is detected, and the acquired image data is entirely rotated and corrected so that the detected inclination angle is zero. .

【0006】図6は、従来のこの種の画像入力装置の一
例である特公昭62−133584号公報記載の文書画
像処理方式のブロック図である。
FIG. 6 is a block diagram of a document image processing system described in Japanese Patent Publication No. 62-133584, which is an example of a conventional image input device of this type.

【0007】図中のデータ処理装置34からの命令によ
り、画像入力部31が動作し、所定の位置に載置された
文書が記載されている対象となる紙面よりディジタル化
された画像データを取得し、画像メモリ32内に記憶さ
せる。
In response to a command from the data processing device 34 in the figure, the image input unit 31 operates to obtain digitized image data from the target paper surface on which the document placed at a predetermined position is described. Then, it is stored in the image memory 32.

【0008】データ処理装置34は、画像メモリ32に
記憶された画像データを順次処理し、画像上の直線成分
(黒画素が連結する領域)を判定して、判定した領域の
代表点を示す座標の一覧表をテーブルメモリ36上に作
成する。
The data processing device 34 sequentially processes the image data stored in the image memory 32, determines a straight line component (a region where black pixels are connected) on the image, and coordinates indicating a representative point of the determined region. A list of is created in the table memory 36.

【0009】続いて、データ処理装置34は、上述した
各代表点座標を順次テーブルメモリ36から読み出し、
傾き角度を変えて設定した複数の平行線の組に対して各
線上を通る前述の代表点の頻度を求め、その結果を一覧
表にしてテーブルメモリ37に記憶させる。
Subsequently, the data processing device 34 sequentially reads the coordinates of each of the above-mentioned representative points from the table memory 36,
The frequency of the above-mentioned representative points passing on each line is obtained for a set of a plurality of parallel lines set by changing the inclination angle, and the result is stored in the table memory 37 as a list.

【0010】この一覧表を基にして、上述の頻度が最も
高くなる平行線の組を求め、各直線の共通の傾き角を求
め、この傾き角を零とするように、画像メモリ32に記
憶されている画像データに対して回転処理を行い、処理
した画像データを画像メモリ33に記憶させる。
Based on this list, a set of parallel lines having the highest frequency is found, a common tilt angle of each straight line is found, and the tilt angle is stored in the image memory 32 so as to be zero. The rotated image data is rotated, and the processed image data is stored in the image memory 33.

【0011】このようにして画像メモリ33に記憶され
た画像データは、修正された画像データとして、たとえ
ば、ファイル装置38などに記憶し、画像メモリ32に
記憶した画像データの代りに以後使用される。
The image data stored in the image memory 33 in this way is stored as modified image data in, for example, the file device 38, and is used later instead of the image data stored in the image memory 32. .

【0012】[0012]

【発明が解決しようとする課題】上述した従来の画像入
力装置は、画像入力部31により一旦入力した画像デー
タの中から直線成分を抽出し、互いに平行な直線の数が
最大の直線について、横走査方向Xとの傾き角度を求
め、この傾き角度が零となるように、一旦入力した画像
データに対して回転処理を行っているので、取得した画
像データのデータ量の増大と共に、回転処理に要する時
間が増大するという欠点を有している。
The above-mentioned conventional image input device extracts a straight line component from the image data once input by the image input unit 31, and detects a straight line having the maximum number of parallel straight lines. The tilt angle with respect to the scanning direction X is obtained, and the rotation processing is performed on the once input image data so that the tilt angle becomes zero. Therefore, the rotation amount is increased as the data amount of the acquired image data increases. It has the drawback of increasing the time required.

【0013】また、画像入力部でディジタル化した画像
データを入力するとき、標本化歪みを生ずる。
Further, when the image input section inputs the digitized image data, sampling distortion occurs.

【0014】このように一旦画像データとして入力した
ときに生ずる標本化歪は、上述のように画像データ全体
を回転処理しても、回転処理後の画像データ中に残留す
ることになる。
As described above, the sampling distortion generated when the image data is once input remains in the image data after the rotation processing even if the entire image data is rotated as described above.

【0015】このような場合、特に取得対象の画像が横
方向の罫線を多く有し、しかも横方向の罫線と画像デー
タの横方向(X方向)の走査方向とが平行でない状態で
取得した画像データでは、横方向の罫線が滑かな直線と
はならず、見苦しい画像データとなる欠点を有してい
る。
In such a case, in particular, the image to be acquired has many horizontal ruled lines, and the image acquired in the state where the horizontal ruled lines are not parallel to the horizontal (X direction) scanning direction of the image data. In the data, the ruled line in the horizontal direction does not become a smooth straight line, and there is a drawback that the image data becomes unsightly.

【0016】本発明は、画像取得部の走査方向(X方
向)に対して対象とする画像の横方向の罫線を滑らかな
直線とした画像データとして取得することができ、か
つ、対象とする画像のデータ量の大小に関係なく比較的
短時間で画像データを取得することができる画像データ
の入力方法とその装置を提供することを目的としてい
る。
According to the present invention, the horizontal ruled lines of the target image with respect to the scanning direction (X direction) of the image acquisition unit can be acquired as image data in which smooth straight lines are obtained, and the target image can be acquired. It is an object of the present invention to provide an image data input method and an image data input method capable of acquiring image data in a relatively short time regardless of the amount of data.

【0017】[0017]

【課題を解決するための手段】本発明の画像入力方法
は、画像入力部により原稿上に記入されている画像をX
方向(横走査方向)およびY方向(縦走査方向)に走査
し、ディジタル化した画像データに変換して入力し画像
記憶部に記憶させる画像入力方法において、前記画像入
力部が有するフォトセンサと対面させて前記画像入力部
に原稿を載置した状態で前記原稿の画像面と垂直な軸ま
わりに回転自在な透明な板状の原稿台および前記原稿台
を回転させる駆動モータとを設けておき、前記画像記憶
部として1次画像記憶部および2次画像記憶部とを設
け、前記画像入力部により前記原稿台上に載置された原
稿の画像を画像データに変換して前記1次画像記憶部に
1次画像データとして記憶させ、この1次画像データよ
り順次連続する黒点を直線として識別し前記直線の始点
と終点との座標を出力し、前記識別した直線の座標に基
づいて前記画像入力部の横走査方向に対する前記直線の
傾き角度を算出し、予め定められた傾き角度の複数の角
度領域に対して前記算出した傾き角度の該当する角度領
域を識別し、前記識別した角度領域の出現頻度を累算し
角度テーブルとして記憶し、前記角度テーブルを参照し
て最大の出現頻度を持つ角度領域について予め定められ
ている代表角度を傾き角度として決定し、前記傾き角度
を零とする角度修正駆動信号を生成し前記駆動モータに
加え前記原稿台を回転させ、しかる後に再度前記画像入
力部により前記原稿の画像データを入力し2次画像デー
タとして前記2次画像記憶部に記憶させる処理を備えて
構成されている。
According to the image input method of the present invention, an image written on a document by an image input section is X-rayed.
In the image input method of scanning in the direction (horizontal scanning direction) and Y direction (longitudinal scanning direction), converting to digitized image data, inputting the image data, and storing the image data in the image storage unit, the image sensor faces the photosensor. In addition, a transparent plate-shaped manuscript table rotatable about an axis perpendicular to the image surface of the manuscript and a drive motor for rotating the manuscript table are provided in a state where the manuscript is placed on the image input section. A primary image storage unit and a secondary image storage unit are provided as the image storage unit, and the image of the document placed on the document table is converted into image data by the image input unit to convert the image to the primary image storage unit. Stored as the primary image data, the consecutive black points are identified as a straight line from the primary image data, the coordinates of the start point and the end point of the straight line are output, and the image input is performed based on the identified coordinates of the straight line. The inclination angle of the straight line with respect to the horizontal scanning direction is calculated, the corresponding angle area of the calculated inclination angle is identified with respect to a plurality of angle areas of a predetermined inclination angle, and the appearance frequency of the identified angle area Is stored as an angle table, the angle table is referred to, a representative angle determined in advance for an angle region having the maximum appearance frequency is determined as a tilt angle, and the tilt angle is set to zero. A process of generating a signal, rotating the document table in addition to the drive motor, and thereafter again inputting image data of the document by the image input unit and storing the image data as secondary image data in the secondary image storage unit. It is configured.

【0018】また、第2の発明の画像入力装置は、画像
入力部により原稿上に記入されている画像をX方向(横
走査方向)およびY方向(縦走査方向)に走査し、ディ
ジタル化した画像データに変換して入力し画像記憶部に
記憶させる画像入力装置において、前記画像入力部には
前記画像入力部が有するフォトセンサと対面させて前記
原稿の画像面と垂直な軸まわりに回転自在に配置された
透明な板状の原稿台と前記原稿台を外部から加えられる
角度修正駆動信号に応じて回転させる駆動モータとを備
え、前記画像入力部により1次画像データとして出力さ
れる画像データを記憶する1次画像記憶部と、前記1次
画像データより直線成分を検出しその始点と終点の座標
を出力する直線検出手段と、前記始点と終点の座標を基
に前記横走査方向に対する前記始点と終点とを有する直
線の傾き角度を求めこの傾き角度が予め与えられた複数
の傾き角度領域の何れの領域に該当するかを識別し該当
する傾き角度の領域の出現頻度を前記検出した各直線に
ついて累算した直線テーブルを生成し記憶する直線テー
ブル生成手段と、前記直線テーブルを基に最大の出現頻
度を有する前記傾き角度領域を識別しこの傾き角度領域
に対して予め与えられている代表角度を傾き角度として
決定する傾き角度決定手段と、前記決定された傾き角度
を零とする前記角度修正駆動信号を生成し出力する角度
修正手段と、前記角度修正手段により前記原稿台が回転
された後で、前記画像入力部が出力する2次画像データ
を記憶する2次画像記憶部と、外部から加えられた画像
データの取得命令に応じて前記画像入力部から前記1次
画像データを出力させ、出力される画像データを1次画
象として前記1次画像記憶部に記憶させ、前記2次画像
データを前記画像入力部により出力させて前記2次画像
記憶部に記憶させる制御を行うと共に前記直線検出手段
の制御を行う中央処理部とを備えて構成されている。
In the image input apparatus of the second invention, the image written on the original by the image input unit is scanned in the X direction (horizontal scanning direction) and Y direction (vertical scanning direction) and digitized. In an image input device for converting into image data and inputting and storing it in an image storage unit, the image input unit is allowed to face a photosensor of the image input unit and is rotatable about an axis perpendicular to the image surface of the document. Image data output as primary image data by the image input unit, which is provided with a transparent plate-shaped document table arranged on the substrate and a drive motor for rotating the document table according to an angle correction drive signal applied from the outside. A primary image storage section for storing the linear image data, linear line detection means for detecting a linear component from the primary image data and outputting coordinates of a start point and an end point thereof, and the horizontal scanning direction based on the coordinates of the start point and the end point. The inclination angle of a straight line having the start point and the end point with respect to the inclination angle is obtained to identify which of the plurality of inclination angle areas the inclination angle corresponds to beforehand, and the appearance frequency of the area of the corresponding inclination angle is detected. The straight line table generating means for generating and storing a straight line table accumulated for each straight line, and the tilt angle region having the maximum appearance frequency based on the straight line table are identified and given in advance to this tilt angle region. The tilt angle determining means for determining a representative angle as a tilt angle, the angle correcting means for generating and outputting the angle correction drive signal for setting the determined tilt angle to zero, and the document table rotating by the angle correcting means. After being processed, the secondary image storage unit that stores the secondary image data output by the image input unit, and the image in response to an externally added image data acquisition command. The primary image data is output from the input unit, the output image data is stored as the primary image in the primary image storage unit, the secondary image data is output by the image input unit, and the secondary image data is output. And a central processing unit for controlling the straight line detecting means as well as for controlling the storage in the image storage unit.

【0019】また、第3の発明の画像入力装置は、修正
画像データを記憶する修正画像記憶部を設け、前述の画
像入力装置の2次画像記憶部の記憶する2次画像データ
より直線成分の画像データを抽出し、抽出した直線成分
の画像データを出力すると共に前記直線成分の画像デー
タが抽出された残りの画像データを別途出力し、前記直
線成分の画像データ中より各直線の横走査方向に対する
傾き角度を算出し前記算出した傾き角度が予め定めた縦
線の傾き角度領域内に存在するか否かを識別し、前記縦
線の傾き角度領域に存在する直線成分に対しては、その
終点と始点のX座標の内の予め定めた何れか一方のX座
標に他方のX座標の値を一致させた直線成分に修正し、
修正直線画像データとして出力し、前記縦線の傾き角度
領域外の直線成分の画像データについてはそのまま修正
直線画像データとして出力し、前記修正直線画像データ
と前記直線が除かれた画像データとを合成し、修正画像
データとして前記修正画像記憶部に記憶させる処理を備
えている。
Further, the image input device of the third invention is provided with a corrected image storage unit for storing the corrected image data, and has a linear component from the secondary image data stored in the secondary image storage unit of the image input device described above. Image data is extracted, and the image data of the extracted linear component is output, and the remaining image data in which the image data of the linear component is extracted is output separately, and the horizontal scanning direction of each straight line is extracted from the image data of the linear component. Is calculated to identify whether or not the calculated tilt angle is within a predetermined vertical line tilt angle region, and for the straight line component existing in the vertical line tilt angle region, Correction is made to a straight line component in which the value of the X coordinate of the other end is matched with the X coordinate of one of the predetermined X coordinates of the end point and the start point,
The corrected straight line image data is output as the corrected straight line image data, and the image data of the straight line component outside the tilt angle region of the vertical line is directly output as the corrected straight line image data, and the corrected straight line image data and the image data from which the straight line is removed are combined. Then, a process of storing the corrected image data in the corrected image storage unit is provided.

【0020】さらに、第4の発明の画像入力装置は、す
でに説明した第2の発明の画像入力装置対して、以下の
構成要素を付加している。すなわち、付加した構成要素
は、前記2次画像記憶部が記憶した2次画像データ中よ
りすべての直線成分を直線画像成分として抽出し直線画
像データとして出力すると共に前記2次画像データ中よ
り前記直線画像データを除外した画像データを修整用画
像データとして出力する直線抽出手段と、前記直線画像
データを基に横走査方向に対して予め定められた傾き角
度範囲内の角度を傾き角として持つ直線成分を縦線とし
て識別し識別した縦線についての始点と終点についての
X座標の値の内で始点または終点の内の予め定められた
何れか一方のX座標の値に他方のX座標を一致させた修
正直線画像データに修正し、前記縦線として識別されな
い直線についての画像データはそのまま修正直線画像デ
ータとして出力する縦線修正手段と、前記縦線修正手段
の出力と前記直線抽出手段の出力する前記修整用画像デ
ータとを合成して修整画像データとして出力する修整画
像合成手段と、前記修整画像データを記憶する修整画像
記憶部とを備えている。
Further, the image input device of the fourth invention has the following components added to the image input device of the second invention already described. That is, the added component extracts all straight line components from the secondary image data stored in the secondary image storage unit as straight line image components and outputs them as straight line image data, and at the same time, extracts the straight line from the secondary image data. Straight line extraction means for outputting image data excluding image data as retouching image data, and a straight line component having a tilt angle within a predetermined tilt angle range with respect to the horizontal scanning direction based on the straight line image data. Is identified as a vertical line, and one of the X coordinates of the start point and the end point of the identified vertical line is matched with the X coordinate of the other of the predetermined X coordinates of the start point and the end point. Vertical line correction means for correcting the corrected straight line image data and outputting the image data of the straight line not identified as the vertical line as the corrected straight line image data. The image forming apparatus includes a retouched image synthesizing unit that synthesizes the retouching image data output from the correction unit and the retouching image data output from the straight line extracting unit and outputs the retouched image data, and a retouched image storage unit that stores the retouched image data. .

【0021】[0021]

【実施例】次に、本発明の実施例について図面を参照し
て説明する。
Embodiments of the present invention will now be described with reference to the drawings.

【0022】図1は本発明の画像入力方法を適用した画
像入力装置の一実施例を示すブロック図であり、図2
は、図1に示された画像入力部1の構成の一例を示す斜
視図であり、図3は、本発明の画像入力方法の動作を示
す流れ図である。
FIG. 1 is a block diagram showing an embodiment of an image input device to which the image input method of the present invention is applied.
3 is a perspective view showing an example of the configuration of the image input unit 1 shown in FIG. 1, and FIG. 3 is a flow chart showing the operation of the image input method of the present invention.

【0023】また、図4は、図1とは別の画像入力装置
の一実施例を示すブロック図であり、図5は、図4の画
像入力装置の動作を説明する流れ図である。
FIG. 4 is a block diagram showing an embodiment of the image input device different from that of FIG. 1, and FIG. 5 is a flow chart for explaining the operation of the image input device of FIG.

【0024】図1に示した、画像入力装置は、外部か
ら、画像データの取得命令やその他の命令およびデータ
を入力するためのキーボード8と、画像処理のために予
め作成されたプログラムを記憶するプログラム記憶部1
0と、キーボード8からの命令に従いプログラム記憶部
10が記憶しているプログラムに従った画像処理を行う
中央処理部9と、中央処理部9を介して加えられる命令
に従って、対象とする画像についてのディジタル化した
画像データを取得し出力する画像入力部1を備えてい
る。
The image input device shown in FIG. 1 stores a keyboard 8 for inputting an image data acquisition command and other commands and data from the outside, and a program created in advance for image processing. Program storage unit 1
0, a central processing unit 9 that performs image processing according to a program stored in the program storage unit 10 in accordance with a command from the keyboard 8, and a command added via the central processing unit 9 An image input unit 1 for acquiring and outputting digitized image data is provided.

【0025】この画像入力装置は、また、画像データを
1次画像データとして記憶する1次画像記憶部11と、
1次画像データより直線成分を検出し検出した直線成分
の始点と終点の座標を出力する直線検出手段12と、前
述の直線の始点と終点の座標を基に直線についてのテー
ブルを生成し記憶する直線テーブル生成手段13と、直
線テーブルを基に最大の傾き頻度を持つ直線の傾き角度
を決定する傾き角度決定手段14とを備えている。
This image input device also includes a primary image storage section 11 for storing image data as primary image data,
A straight line detecting means 12 that detects a straight line component from the primary image data and outputs coordinates of the start point and the end point of the detected straight line component, and a table for the straight line is generated and stored based on the coordinates of the start point and the end point of the straight line described above. A straight line table generating means 13 and a tilt angle determining means 14 for determining a tilt angle of a straight line having the maximum tilt frequency based on the straight line table are provided.

【0026】図1に示した画像入力装置は、さらに、傾
き角度決定手段14が決定した傾き角度を零にする角度
修正駆動信号を前述の画像入力部1に出力する角度修正
手段15を備えている。
The image input device shown in FIG. 1 further comprises an angle correction means 15 for outputting an angle correction drive signal for making the tilt angle determined by the tilt angle determination means 14 zero, to the image input section 1 described above. There is.

【0027】さらに、この画像入力装置は、前述の角度
修正駆動信号により画像の角度が修正された後に画像入
力部1が出力する画像データを2次画像データとして記
憶する2次画像記憶部16を備えている。
Further, the image input device further includes a secondary image storage unit 16 for storing the image data output by the image input unit 1 as secondary image data after the angle of the image is corrected by the angle correction drive signal. I have it.

【0028】画像入力部1は、図2に示すように、中央
部分を含む大部分が透明である平板状を成し、画像デー
タとしての入力対象である画像が記入されている原稿を
上面に載置するための原稿台7と、この原稿台1をその
広幅面と垂直な軸を持つ回転中心Pまわりに回転させる
駆動モータ6と、前述の原稿に対して原稿台1の広幅面
の反対側に配置され、原稿台1の広幅面に平行にX方向
(横方向)とY方向(縦方向)の走査方向に移動するキ
ャリッジ2を備えている。
As shown in FIG. 2, the image input unit 1 is in the form of a flat plate that is mostly transparent, including the central portion, and has a document on which an image to be input as image data is written on the upper surface. A document table 7 for placing the document table, a drive motor 6 for rotating the document table 1 around a rotation center P having an axis perpendicular to the wide surface, and a wide surface of the document table 1 opposite to the above-mentioned document. The carriage 2 is provided on the side and moves in the scanning direction of the X direction (horizontal direction) and the Y direction (longitudinal direction) in parallel with the wide surface of the document table 1.

【0029】キャリッジ2には、原稿の紙面に向って光
を放射する光源3と、光源3から放射され、原稿面によ
り反射された反射光を検出してディジタル化した画像デ
ータとして出力するフォトセンサ4とが取り付けられて
いる。
The carriage 2 has a light source 3 which emits light toward the surface of the document, and a photo sensor which detects reflected light emitted from the light source 3 and reflected by the document surface and outputs it as digitized image data. 4 and are attached.

【0030】キャリッジ2はY方向への走査のため移動
するとき、ガイド5に沿って移動する。
When the carriage 2 moves for scanning in the Y direction, it moves along the guide 5.

【0031】光源3とフォトセンサ4は一体で、キャリ
ッジ2に対してX方向に図示されていないガイドに沿っ
て移動して横方向の走査が行われる。
The light source 3 and the photo sensor 4 are integrated with each other, and move in the X direction along a guide (not shown) to perform scanning in the lateral direction.

【0032】以下に図1に示した画像入力装置の動作を
図3の流れ図を参照して説明する。
The operation of the image input device shown in FIG. 1 will be described below with reference to the flowchart of FIG.

【0033】以下の説明では、処理のステップをSと略
称する。
In the following description, the processing step is abbreviated as S.

【0034】画像入力部1の原稿台7の上面に入力対象
の原稿面が接するように原稿面を下向きにして原稿を載
置し、キーボード8から予め定められた画像入力のため
命令を入力すると、中央処理部9がこの命令を受け取
り、画像入力部1を動作さる(S1)。
When a manuscript is placed with the manuscript surface facing downward so that the manuscript surface to be input is in contact with the upper surface of the manuscript table 7 of the image input section 1 and a command for inputting a predetermined image is input from the keyboard 8. The central processing unit 9 receives this command and operates the image input unit 1 (S1).

【0035】画像入力部1が動作し原稿の画像に対する
走査を行い、画像データを出力すると、中央処理部9が
プログラム記憶部10の記憶しているプログラムに従
い、この画像データを1次画像データとして1次画像記
憶部11に記憶させる(S2)。
When the image input section 1 operates to scan the image of the original and outputs the image data, the central processing section 9 follows this program stored in the program storage section 10 as primary image data. The image is stored in the primary image storage unit 11 (S2).

【0036】上述の1次画像データの取得が終了する
と、中央処理部9が直線検出手段12を起動させる。
When the acquisition of the above-mentioned primary image data is completed, the central processing unit 9 activates the straight line detecting means 12.

【0037】直線検出手段12は、1次画像記憶手段の
記憶している1次画像データを読み出し、連続した黒点
を直線成分として識別し、すべての識別した直線成分に
ついてその始点の座標(X座標とY座標)および終点の
座標とを順次直線テーブル生成手段13に出力する(S
3)。
The straight line detecting means 12 reads the primary image data stored in the primary image storing means, identifies continuous black points as straight line components, and coordinates of all the identified straight line components (X coordinate). And the Y coordinate) and the coordinates of the end point are sequentially output to the straight line table generating means 13 (S
3).

【0038】直線テーブル生成手段13は、画像入力部
1の横走査方向(X方向)に対して各直線の傾き角度を
算出し、この傾き角を予め定められた角度範囲ごとに区
分し、該当する傾き角度の範囲の直線の出現頻度を累算
して傾き角度のそれぞれの角度範囲に対応させた直線テ
ーブルを生成し記憶する(S4)。
The straight line table generating means 13 calculates the tilt angle of each straight line with respect to the horizontal scanning direction (X direction) of the image input unit 1, divides the tilt angle into predetermined angle ranges, and The appearance frequency of the straight line in the range of the tilt angle is accumulated and a straight line table corresponding to each angle range of the tilt angle is generated and stored (S4).

【0039】この直線テーブルの生成が終了すると、中
央処理部9が、傾き角度決定手段14を始動させる。傾
き角度決定手段14は、直線テーブル生成手段13が内
部に記憶している直線テーブルを参照して出現頻度の最
も多い傾き角度の範囲を識別し、前述のそれぞれの角度
範囲ごとに予め定められている代表角度を傾き角度とし
て決定する(S5)。この代表角度としては、たとえ
ば、該当する角度範囲の中央値を設定しておけばよい。
When the generation of the straight line table is completed, the central processing unit 9 starts the tilt angle determining means 14. The tilt angle determination means 14 refers to the straight line table stored inside the straight line table generation means 13 to identify the range of the tilt angle with the highest frequency of appearance, and is determined in advance for each of the above angle ranges. The representative angle that exists is determined as the tilt angle (S5). As the representative angle, for example, the median value of the corresponding angle range may be set.

【0040】ここで、傾き角度決定手段14が参照する
角度範囲を、たとえば、直線テーブルの角度範囲の内
で、傾き角度が45度以下の角度範囲のみを参照するよ
うに、上述の傾き角度決定手段14の動作を予め設定し
ておいてもよい。
Here, the angle range referred to by the angle-of-inclination determining means 14 is determined, for example, so that only the angle range in which the angle of inclination is 45 degrees or less is referred to within the angle range of the straight line table. The operation of the means 14 may be preset.

【0041】傾き角度の決定が行われると、傾き角度決
定手段14は、その傾き角度を角度修正手段15に出力
する。
When the tilt angle is determined, the tilt angle determination means 14 outputs the tilt angle to the angle correction means 15.

【0042】角度修正手段15は、傾き角度を受け取る
と、絶対値が傾き角度と等しく向きが反対の角度修正駆
動信号を画像入力部1に出力し、画像入力部1の駆動モ
ータ6を駆動回転させ、原稿台7を原稿と共に回転させ
る(S6)。
Upon receipt of the tilt angle, the angle correction means 15 outputs an angle correction drive signal whose absolute value is equal to the tilt angle and opposite in direction to the image input section 1 to drive and rotate the drive motor 6 of the image input section 1. Then, the document table 7 is rotated together with the document (S6).

【0043】この原稿台の回転を終了すると、画像入力
部1より回転終了信号を中央処理部9に出力する。
When the rotation of the platen is completed, the image input unit 1 outputs a rotation end signal to the central processing unit 9.

【0044】中央処理部9は、この回転終了信号を受信
すると(S7)、画像入力部1を再起動させ、画像入力
部1の出力を2次画像データとして2次画像記憶部16
に記憶させる(S8)。
Upon receiving this rotation end signal (S7), the central processing unit 9 restarts the image input unit 1 and outputs the image input unit 1 as secondary image data as the secondary image storage unit 16.
(S8).

【0045】従って、2次画像記憶部16に記憶されて
いる2次画像データの横線(横罫線)の方向と画像入力
部1の横走査方向(X方向)とが平行な画像データとし
て取得されることになる。
Therefore, the direction of the horizontal line (horizontal ruled line) of the secondary image data stored in the secondary image storage unit 16 and the horizontal scanning direction (X direction) of the image input unit 1 are acquired as parallel image data. Will be.

【0046】このような2次画像データを必要に応じて
2次画像記憶部16より読み出して利用することができ
る。
Such secondary image data can be read out from the secondary image storage section 16 and used as needed.

【0047】図4に示した画像入力装置は、図1に示し
た画像入力装置に以下の構成要素を加え、さらに、図1
に示したプログラム記憶部10の代りにプログラム記憶
部10Aを備えている。
The image input device shown in FIG. 4 has the following components added to the image input device shown in FIG.
A program storage unit 10A is provided instead of the program storage unit 10 shown in FIG.

【0048】すなわち、2次画像記憶部16内の2次画
像データを読み出し直線成分の画像データを直線画像デ
ータとして抽出し、直線画像データと残りの部分の画像
データとを分離して出力する直線抽出手段18と、直線
画像データ中の縦方向の直線成分を識別し、その方向が
X方向と直交していないときには、直交するように修正
する縦線修正手段19と、修正された縦線と残りの直線
成分の画像データと、直線抽出手段18の出力する直線
成分を除いた画像データとを合成する修正画像合成手段
20と、修正画像合成手段20が出力する修正画像デー
タを記憶する修正画像記憶部17とを備えている。
That is, the secondary image data in the secondary image storage unit 16 is read, the image data of the linear component is extracted as the linear image data, and the linear image data and the image data of the remaining portion are separated and output. The extracting unit 18, the vertical line component in the vertical direction in the straight line image data, and when the direction is not orthogonal to the X direction, the vertical line correcting unit 19 that corrects the vertical line component and the corrected vertical line. Corrected image synthesizing means 20 for synthesizing the image data of the remaining straight line components and the image data excluding the straight line components output by the straight line extracting means 18, and a corrected image for storing the corrected image data output by the corrected image synthesizing means 20. And a storage unit 17.

【0049】プログラム記憶部10Aは、自身と角度修
正手段15およびキーボード8以外の図4に示されてい
る構成要素を制御するプログラムを予め記憶している。
The program storage unit 10A stores in advance a program for controlling the components shown in FIG. 4 other than itself, the angle correction means 15 and the keyboard 8.

【0050】以下に図5に示した流れ図を参照して、図
4に示した画像入力装置の動作を説明する。
The operation of the image input device shown in FIG. 4 will be described below with reference to the flow chart shown in FIG.

【0051】図示した、ステップ1(S1)乃至ステッ
プ8(S8)は図3で説明したステップ1乃至ステップ
8と同一なので説明を省略する。
The steps 1 (S1) to 8 (S8) shown in the figure are the same as the steps 1 to 8 described in FIG.

【0052】2次画像データが2次画像記憶部16に記
憶されると、中央処理部9は、直線抽出手段18を起動
し、直線抽出手段18により2次画像データ中の直線成
分を順次抽出し直線画像データとして縦線修正手段19
に出力させると共に、前述の2次画像データよりこの直
線画像データを除いた、残りの画像データを修正用画像
データとして修整画像合成手段20に出力させる(S3
1)。
When the secondary image data is stored in the secondary image storage unit 16, the central processing unit 9 activates the straight line extracting means 18, and the straight line extracting means 18 sequentially extracts the straight line components in the secondary image data. Vertical line correction means 19 as straight line image data
And the remaining image data obtained by removing the linear image data from the above-mentioned secondary image data is output to the retouched image synthesizing means 20 as the correction image data (S3).
1).

【0053】すなわち、2次画像データの内で直線成分
を除外された画像データが修正画像合成手段20に出力
される。
That is, the image data from which the linear component is excluded from the secondary image data is output to the modified image synthesizing means 20.

【0054】縦線修正手段19は、前述の直線画像デー
タについて連続した黒点を直線として識別し、その直線
ごとに、始点と終点とについての座標(XおよびY座
標)を求め、これらの座標を基に、それぞれの直線の横
走査方向(X方向)に対する傾き角度を算出し、予め定
めてある縦線の傾き角度の角度範囲に前述の算出した傾
き角度が存在するか否かを調べ、存在すればその直線成
分については縦線であるとし、以下の縦線の修正処理を
行ない修正直線画像データとして出力し、残りの縦線と
して識別されない直線成分はそのままとして縦線修正処
理を行った直線成分と共に修正直線画像データとして修
正画像合成手段20に出力する。
The vertical line correction means 19 identifies continuous black points in the above-mentioned straight line image data as straight lines, calculates the coordinates (X and Y coordinates) of the start point and the end point for each straight line, and determines these coordinates. Based on this, the tilt angle of each straight line with respect to the horizontal scanning direction (X direction) is calculated, and it is checked whether or not the calculated tilt angle exists within the predetermined angle range of the tilt angle of the vertical line. If so, the straight line component is regarded as a vertical line, and the following vertical line correction processing is performed and output as corrected straight line image data, and the straight line component that has not been identified as the remaining vertical line is subjected to vertical line correction processing. The corrected straight line image data is output to the corrected image synthesizing means 20 together with the components.

【0055】すなわち、縦線であるとして識別した直線
については、縦線修正手段19は、その終点のX座標の
値のみを始点のX座標と一致する値に変更し、この変更
後の終点の座標と始点の座標とを結ぶ直線を修正した縦
線成分として生成し、修正直線画像データとして修正画
像合成手段20に出力する。このような処理を2次画像
データ中に存在するすべての直線成分について行う(S
32)。
That is, for a straight line identified as a vertical line, the vertical line correction means 19 changes only the value of the X coordinate of the end point to a value that matches the X coordinate of the start point, and the end point after the change. A straight line connecting the coordinates and the coordinates of the starting point is generated as a corrected vertical line component, and is output to the corrected image combining means 20 as corrected straight line image data. Such processing is performed for all straight line components existing in the secondary image data (S
32).

【0056】なお、上述の縦線の修整においては、修整
すべき縦線の終点のX座標を始点のX座標に一致させた
が、逆に、対象とする縦線の始点のX座標を終点のX座
標に一致させるようにしてもよいことは明らかである。
In the modification of the vertical line described above, the X coordinate of the end point of the vertical line to be modified is made to coincide with the X coordinate of the start point, but conversely, the X coordinate of the start point of the target vertical line is the end point. Obviously, the X coordinate may be matched.

【0057】上述の縦線の傾き角度の角度範囲として、
たとえば、90度−10度から90度+10度までの領
域を与えておき、傾き角度が80度以上でかつ100度
以下であれば、修正すべき縦線であるとして上述の抽出
処理を行えばよい。
As the angle range of the above-mentioned vertical line inclination angle,
For example, if a region from 90 degrees −10 degrees to 90 degrees +10 degrees is given and the tilt angle is 80 degrees or more and 100 degrees or less, it is determined that the vertical line is a line to be corrected, and the above extraction process is performed. Good.

【0058】修正画像合成手段20は、直線抽出手段1
8が出力する直線成分が除かれた修正画像用データと縦
線修正手段19の出力する修正直線画像データとを合成
して修正画像データとし(S33)、修正画像記憶部1
7に出力し記憶させる(S34)。
The corrected image synthesizing means 20 is the straight line extracting means 1
The corrected image data from which the straight line component output by 8 is removed and the corrected straight line image data output by the vertical line correction means 19 are combined to obtain corrected image data (S33).
It is output to 7 and stored (S34).

【0059】以上説明したように、図4に示す、画像入
力装置は、原稿中にある横線(罫線)を画像入力部1の
横走査方向(X方向)と平行となるように、原稿が画像
入力部の原稿台7上で回転され、2次画像データを取得
し、この2次画像データ中の縦線を識別し、識別した縦
線が、Y方向と平行(X方向と直交)していない場合に
は、その方向がY方向と平行になるように、該当する直
線成分の方向を修正することができる。
As described above, in the image input apparatus shown in FIG. 4, the document is imaged so that the horizontal lines (ruled lines) in the document are parallel to the horizontal scanning direction (X direction) of the image input unit 1. The secondary image data is acquired by rotating on the original table 7 of the input unit, the vertical line in the secondary image data is identified, and the identified vertical line is parallel to the Y direction (orthogonal to the X direction). If not, the direction of the corresponding straight line component can be corrected so that the direction is parallel to the Y direction.

【0060】このような修正された画像データを修正画
像記憶部17に記憶させておき、画像データを使用する
ときには、この修正画像記憶部17より読み出して使用
することが可能となる。
Such corrected image data is stored in the corrected image storage unit 17, and when the image data is used, it can be read from the corrected image storage unit 17 and used.

【0061】[0061]

【発明の効果】以上説明したように、本発明の画像入力
方法では、1次画像を画像入力部より取得し、この1次
画像中から横方向の直線(罫線等)の内で最も出現頻度
の高い傾き角度を持つ直線成分について、横走査方向と
の傾き角度を検出し、この傾き角度を零とするように、
画像入力部1の原稿台7を回転させ、しかる後に、原稿
より画像を2次画像データとして入力することにより、
横線についての、標本化歪を小とし、見映えのよい画像
データを入力することができるという効果を有する。
As described above, in the image input method of the present invention, the primary image is acquired from the image input unit, and the frequency of appearance is the highest among the straight lines (ruled lines, etc.) in the horizontal direction from the primary image. For a straight line component having a high tilt angle of, the tilt angle with the horizontal scanning direction is detected, and this tilt angle is set to zero,
By rotating the document table 7 of the image input section 1 and thereafter inputting an image from the document as secondary image data,
This has an effect that the sampling distortion of the horizontal line can be made small and image data having a good appearance can be input.

【0062】この場合に、原稿が多量の画像を含む場合
でも、画像データ取得に要する時間を増大させる必要が
ないという効果も有している。
In this case, there is also an effect that it is not necessary to increase the time required to acquire the image data even when the original includes a large amount of images.

【0063】また、図5で説明した画像入力方法を適用
した画像入力方法によれば、上述のようにして取得した
画像データに対してさらに、横走査方向に対して直交し
ていない縦線を横線と直交する直線に修正することが可
能となるという効果も有している。
According to the image input method to which the image input method described with reference to FIG. 5 is applied, vertical lines which are not orthogonal to the horizontal scanning direction are further added to the image data obtained as described above. It also has an effect that it can be corrected to a straight line orthogonal to the horizontal line.

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

【図1】本発明の画像入力方法を適用した画像入力装置
の一例を示すブロック図である。
FIG. 1 is a block diagram showing an example of an image input device to which an image input method of the present invention is applied.

【図2】図1に示した画像入力部1の構成の一例を示す
斜視図である。
FIG. 2 is a perspective view showing an example of a configuration of an image input unit 1 shown in FIG.

【図3】本発明の画像入力方法の処理を説明する流れ図
である。
FIG. 3 is a flowchart illustrating processing of the image input method of the present invention.

【図4】本発明の図3に示したとは別の画像入力方法を
適用した画像入力装置の一例を示すブロック図である。
FIG. 4 is a block diagram showing an example of an image input device to which an image input method different from that shown in FIG. 3 of the present invention is applied.

【図5】図4に適用した本発明の別の画像入力方法を説
明する流れ図である。
FIG. 5 is a flowchart illustrating another image input method of the present invention applied to FIG.

【図6】従来のこの種の画像入力装置の一例を示すブロ
ック図である。
FIG. 6 is a block diagram showing an example of a conventional image input device of this type.

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

1 画像入力部 2 キャリッジ 3 光源 4 フォトセンサ 5 ガイド 6 駆動モータ 7 原稿台 8 キーボード 9 中央処理部 10 プログラム記憶部 10A プログラム記憶部 11 1次画像記憶部 12 直線検出手段 13 直線テーブル生成手段 14 傾き角度決定手段 15 角度修正手段 16 2次画像記憶部 17 修正画像記憶部 18 直線抽出手段 19 縦線修正手段 20 修正画像合成手段 1 Image Input Section 2 Carriage 3 Light Source 4 Photo Sensor 5 Guide 6 Drive Motor 7 Document Plate 8 Keyboard 9 Central Processing Section 10 Program Storage Section 10A Program Storage Section 11 Primary Image Storage Section 12 Linear Detection Means 13 Linear Table Generation Means 14 Tilt Angle determining means 15 Angle correcting means 16 Secondary image storage section 17 Corrected image storage section 18 Straight line extracting means 19 Vertical line correcting means 20 Corrected image combining means

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 G06T 1/00 G06K 9/32 G06F 15/64 325 H ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 6 Identification code Internal reference number FI Technical display location G06T 1/00 G06K 9/32 G06F 15/64 325 H

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 画像入力部により原稿上に記入されてい
る画像をX方向(横走査方向)およびY方向(縦走査方
向)に走査し、ディジタル化した画像データに変換して
入力し画像記憶部に記憶させる画像入力方法において、
前記画像入力部が有するフォトセンサと対面させて前記
画像入力部に原稿を載置した状態で前記原稿の画像面と
垂直な軸まわりに回転自在な透明な板状の原稿台および
前記原稿台を回転させる駆動モータとを設けておき、前
記画像記憶部として1次画像記憶部および2次画像記憶
部とを設け、前記画像入力部により前記原稿台上に載置
された原稿の画像を画像データに変換して前記1次画像
記憶部に1次画像データとして記憶させ、この1次画像
データより順次連続する黒点を直線として識別し前記直
線の始点と終点との座標を出力し、前記識別した直線の
座標に基づいて前記画像入力部の横走査方向に対する前
記直線の傾き角度を算出し、予め定められた傾き角度の
複数の角度領域に対して前記算出した傾き角度の該当す
る角度領域を識別し、前記識別した角度領域の出現頻度
を累算し角度テーブルとして記憶し、前記角度テーブル
を参照して最大の出現頻度を持つ角度領域について予め
定められている代表角度を傾き角度として決定し、前記
傾き角度を零とする角度修正駆動信号を生成し前記駆動
モータに加え前記原稿台を回転させ、しかる後に再度前
記画像入力部により前記原稿の画像データを入力し2次
画像データとして前記2次画像記憶部に記憶させること
を特徴とする画像入力方法。
1. An image storage unit that scans an image written on a document in an X direction (horizontal scanning direction) and a Y direction (vertical scanning direction) by an image input unit, converts the image into digitized image data, and inputs the image data. In the image input method to be stored in the section,
A transparent plate-shaped manuscript table and the manuscript table which are rotatable around an axis perpendicular to the image surface of the manuscript in a state where the manuscript is placed on the image input part so as to face the photo sensor of the image input part; A drive motor for rotating is provided, and a primary image storage section and a secondary image storage section are provided as the image storage section, and an image of a document placed on the document table by the image input section is displayed as image data. Converted into the primary image data and stored in the primary image storage unit as primary image data. From this primary image data, consecutive black dots are identified as straight lines, and the coordinates of the start point and the end point of the straight lines are output and the identification is performed. The tilt angle of the straight line with respect to the horizontal scanning direction of the image input unit is calculated based on the coordinates of the straight line, and the corresponding angle area of the calculated tilt angle is identified with respect to a plurality of angle areas of a predetermined tilt angle. The accumulated appearance frequencies of the identified angle areas are stored as an angle table, and a representative angle that is predetermined with respect to the angle area having the maximum appearance frequency is determined as an inclination angle by referring to the angle table. An angle correction drive signal for making the tilt angle zero is generated, and the original table is rotated in addition to the drive motor, and thereafter, the image data of the original is input again by the image input unit to input the secondary image as secondary image data. An image input method characterized by storing in a storage unit.
【請求項2】 画像入力部により原稿上に記入されてい
る画像をX方向(横走査方向)およびY方向(縦走査方
向)に走査し、ディジタル化した画像データに変換して
入力し画像記憶部に記憶させる画像入力装置において、
前記画像入力部には前記画像入力部が有するフォトセン
サと対面させて前記原稿の画像面と垂直な軸まわりに回
転自在に配置された透明な板状の原稿台と前記原稿台を
外部から加えられる角度修正駆動信号に応じて回転させ
る駆動モータとを備え、前記画像入力部により1次画像
データとして出力される画像データを記憶する1次画像
記憶部と、前記1次画像データより直線成分を検出しそ
の始点と終点の座標を出力する直線検出手段と、前記始
点と終点の座標を基に前記横走査方向に対する前記始点
と終点とを有する直線の傾き角度を求めこの傾き角度が
予め与えられた複数の傾き角度領域の何れの領域に該当
するかを識別し該当する傾き角度の領域の出現頻度を前
記検出した各直線について累算した直線テーブルを生成
し記憶する直線テーブル生成手段と、前記直線テーブル
を基に最大の出現頻度を有する前記傾き角度領域を識別
しこの傾き角度領域に対して予め与えられている代表角
度を傾き角度として決定する傾き角度決定手段と、前記
決定された傾き角度を零とする前記角度修正駆動信号を
生成し出力する角度修正手段と、前記角度修正手段によ
り前記原稿台が回転された後で、前記画像入力部が出力
する2次画像データを記憶する2次画像記憶部と、外部
から加えられた画像データの取得命令に応じて前記画像
入力部から前記1次画像データを出力させ、出力される
画像データを1次画象として前記1次画像記憶部に記憶
させ、前記2次画像データを前記画像入力部により出力
させて前記2次画像記憶部に記憶させる制御を行うと共
に前記直線検出手段の制御を行う中央処理部とを備える
ことを特徴とする画像入力装置。
2. An image is stored by scanning an image written on a document by an image input unit in the X direction (horizontal scanning direction) and Y direction (vertical scanning direction), converting it into digitized image data, and inputting it. In the image input device to be stored in the section,
A transparent plate-shaped manuscript table and the manuscript table which are arranged rotatably around an axis perpendicular to the image surface of the manuscript facing the photo sensor of the image input part are externally added to the image input part. A drive motor that rotates in accordance with an angle correction drive signal, and a primary image storage unit that stores image data output as primary image data by the image input unit; and a linear component from the primary image data. The straight line detecting means for detecting and outputting the coordinates of the start point and the end point, and the tilt angle of the straight line having the start point and the end point with respect to the horizontal scanning direction are obtained based on the coordinates of the start point and the end point, and this tilt angle is given in advance. A straight line table for generating and storing a straight line table that identifies which one of the plurality of tilt angle regions corresponds, and accumulates the appearance frequency of the region of the corresponding tilt angle for each of the detected straight lines. And a tilt angle determining means that identifies the tilt angle area having the maximum appearance frequency based on the straight line table and determines a representative angle given in advance for this tilt angle area as the tilt angle. An angle correction unit that generates and outputs the angle correction drive signal that makes the determined tilt angle zero, and a secondary image output by the image input unit after the document table is rotated by the angle correction unit. A secondary image storage unit that stores data, and the primary image data is output from the image input unit in response to an externally added image data acquisition command, and the output image data is used as a primary image. During the control of storing the image in the primary image storage unit, outputting the secondary image data from the image input unit to store the secondary image data in the secondary image storage unit, and controlling the straight line detecting means. An image input apparatus characterized by comprising a processing unit.
【請求項3】 修正画像データを記憶する修正画像記憶
部を設け、請求項1記載の2次画像記憶部の記憶する2
次画像データより直線成分の画像データを抽出し、抽出
した直線成分の画像データを出力すると共に前記直線成
分の画像データが抽出された残りの画像データを別途出
力し、前記直線成分の画像データ中より各直線の横走査
方向に対する傾き角度を算出し前記算出した傾き角度が
予め定めた縦線の傾き角度領域内に存在するか否かを識
別し、前記縦線の傾き角度領域に存在する直線成分に対
しては、その終点と始点のX座標の内の予め定めた何れ
か一方のX座標に他方のX座標の値を一致させた直線成
分に修正し、修正直線画像データとして出力し、前記縦
線の傾き角度領域外の直線成分の画像データについては
そのまま修正直線画像データとして出力し、前記修正直
線画像データと前記直線が除かれた画像データとを合成
し、修正画像データとして前記修正画像記憶部に記憶さ
せることを特徴とする画像入力方法。
3. A modified image storage unit for storing modified image data is provided, and the modified image storage unit according to claim 1 stores the modified image data.
The image data of the linear component is extracted from the next image data, the image data of the extracted linear component is output, and the remaining image data in which the image data of the linear component is extracted is output separately, By calculating the tilt angle of each straight line with respect to the horizontal scanning direction, it is discriminated whether or not the calculated tilt angle is within a predetermined vertical line tilt angle region, and a straight line existing in the vertical line tilt angle region is determined. For the component, the X-coordinate of the end point and the start point is corrected to a straight line component in which the value of the X coordinate of the other is matched with one of the predetermined X coordinates, and the corrected straight line image data is output. The image data of the straight line component outside the tilt angle region of the vertical line is output as it is as the corrected straight line image data, and the corrected straight line image data and the image data from which the straight line is removed are combined to obtain the corrected image data. Image input wherein the to be stored in the correction image storage unit as.
【請求項4】 請求項2記載の画像入力装置対して、前
記2次画像記憶部が記憶した2次画像データ中よりすべ
ての直線成分を直線画像成分として抽出し直線画像デー
タとして出力すると共に前記2次画像データ中より前記
直線画像データを除外した画像データを修整用画像デー
タとして出力する直線抽出手段と、前記直線画像データ
を基に横走査方向に対して予め定められた傾き角度範囲
内の角度を傾き角として持つ直線成分を縦線として識別
し識別した縦線についての始点と終点についてのX座標
の値の内で始点または終点の内の予め定められた何れか
一方のX座標の値に他方のX座標を一致させた修正直線
画像データに修正し、前記縦線として識別されない直線
についての画像データはそのまま修正直線画像データと
して出力する縦線修正手段と、前記縦線修正手段の出力
と前記直線抽出手段の出力する前記修整用画像データと
を合成して修整画像データとして出力する修整画像合成
手段と、前記修整画像データを記憶する修整画像記憶部
とを備えたことを特徴とする画像入力装置。
4. The image input device according to claim 2, wherein all the linear components are extracted as linear image components from the secondary image data stored in the secondary image storage unit and output as linear image data. A straight line extracting means for outputting image data excluding the straight line image data from the secondary image data as image data for retouching, and a straight line within a predetermined tilt angle range with respect to the horizontal scanning direction based on the straight line image data. A straight line component having an angle as an inclination angle is identified as a vertical line, and a predetermined X coordinate value of either the start point or the end point among the X coordinate values of the start point and the end point of the identified vertical line. To the corrected straight line image data in which the X coordinate of the other is matched, and the image data of the straight line not identified as the vertical line is directly output as the corrected straight line image data. Correcting means, modified image combining means for combining the output of the vertical line correcting means and the modifying image data output by the straight line extracting means and outputting as modified image data, and a modified image for storing the modified image data. An image input device comprising: a storage unit.
JP6176343A 1994-07-28 1994-07-28 Image input method and its device Pending JPH0846761A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6176343A JPH0846761A (en) 1994-07-28 1994-07-28 Image input method and its device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6176343A JPH0846761A (en) 1994-07-28 1994-07-28 Image input method and its device

Publications (1)

Publication Number Publication Date
JPH0846761A true JPH0846761A (en) 1996-02-16

Family

ID=16011936

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6176343A Pending JPH0846761A (en) 1994-07-28 1994-07-28 Image input method and its device

Country Status (1)

Country Link
JP (1) JPH0846761A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05268477A (en) * 1992-03-18 1993-10-15 Murata Mach Ltd Image forming device
JPH05268428A (en) * 1992-03-18 1993-10-15 Murata Mach Ltd Image forming device
JPH0652354A (en) * 1992-04-06 1994-02-25 Ricoh Co Ltd Skew correcting method, skew angle detecting method, document segmentation system and skew angle detector
JPH0670104A (en) * 1992-08-21 1994-03-11 Ricoh Co Ltd Image reading device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05268477A (en) * 1992-03-18 1993-10-15 Murata Mach Ltd Image forming device
JPH05268428A (en) * 1992-03-18 1993-10-15 Murata Mach Ltd Image forming device
JPH0652354A (en) * 1992-04-06 1994-02-25 Ricoh Co Ltd Skew correcting method, skew angle detecting method, document segmentation system and skew angle detector
JPH0670104A (en) * 1992-08-21 1994-03-11 Ricoh Co Ltd Image reading device

Similar Documents

Publication Publication Date Title
JP2986383B2 (en) Method and apparatus for correcting skew for line scan images
US5497236A (en) Method and apparatus for distortion correction of scanned images
JP3425366B2 (en) Image correction device
JP3631333B2 (en) Image processing device
US6535650B1 (en) Creating high resolution images
JPH11313207A (en) Method for deciding tilt angle of document image
JPH05252379A (en) Image processor
JP4114959B2 (en) Image processing method and apparatus
JP2003016440A (en) Photograph extraction method, device, program, and recording medium
US20030160760A1 (en) Image comining apparatus and method
JP3582988B2 (en) Non-contact image reader
JP2002204342A (en) Image input apparatus and recording medium, and image compositing method
JP3697828B2 (en) Document angle correction method and document angle correction device
JP3698867B2 (en) Circular pattern determination method, apparatus and recording medium
CN115187989A (en) Image processing method and device, electronic equipment, scanning pen and storage medium
JPH0846761A (en) Image input method and its device
JP2000261653A (en) Image processing unit
JP3024660B2 (en) Image reading device
JP3038714B2 (en) Document skew correction device
JP2701346B2 (en) Document skew correction device
JPH11288453A (en) Method and system for detecting skew angle and black boundary line of original image in scan environment for reproduction
JPH10336428A (en) Image processing unit
JPH09135331A (en) Image processor
JP2000508460A (en) How to determine the geometric data of an attention-related image section
JPH10105677A (en) Method and device for joining pictures

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19971111