Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP2551383B2 - Straight line detection and correction device - Google Patents
[go: Go Back, main page]

JP2551383B2 - Straight line detection and correction device - Google Patents

Straight line detection and correction device

Info

Publication number
JP2551383B2
JP2551383B2 JP6144655A JP14465594A JP2551383B2 JP 2551383 B2 JP2551383 B2 JP 2551383B2 JP 6144655 A JP6144655 A JP 6144655A JP 14465594 A JP14465594 A JP 14465594A JP 2551383 B2 JP2551383 B2 JP 2551383B2
Authority
JP
Japan
Prior art keywords
data
straight line
correction
line
reading
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP6144655A
Other languages
Japanese (ja)
Other versions
JPH0814825A (en
Inventor
和哉 鳥飼
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
Nippon Electric 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 Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP6144655A priority Critical patent/JP2551383B2/en
Publication of JPH0814825A publication Critical patent/JPH0814825A/en
Application granted granted Critical
Publication of JP2551383B2 publication Critical patent/JP2551383B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Length Measuring Devices By Optical Means (AREA)
  • Image Analysis (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、直線検出補正装置に関
し、特に、スキャナ等で読出された直線データの歪みを
除去し、復元する補正装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a straight line detection / correction device, and more particularly to a correction device for removing and restoring distortion of straight line data read by a scanner or the like.

【0002】[0002]

【従来の技術】図10、図11は、従来例として提示す
る例えば特公平3−46044号公報に開示されている
内容である。
2. Description of the Related Art FIGS. 10 and 11 show the contents disclosed in, for example, Japanese Patent Publication No. 3-46044, which is presented as a conventional example.

【0003】従来の直線検出装置は、図10に示すよう
に、光電変換スキャナ11で走査して読み出したパター
ンを“0”、“1”の2値化画像に変換する2値化回路
12と、光電変換スキャナ11の撮像エリア内に検出エ
リアを設定するためのウィンドウ発生回路13と、前記
検出エリアを2個の水平エリアに等分割する為のエリア
分割回路14と、各分割されたエリア内で2値化値
“1”の個数をパターンエッジまでカウントする面積カ
ウント回路15と、各カウントされた面積を各分割エリ
アの幅で割ってパターンエッジ位置として算出し、これ
ら2点の位置よりパターンの直線を検出する直線検出回
路16とを有している。
As shown in FIG. 10, a conventional straight line detecting apparatus includes a binarization circuit 12 for converting a pattern read by scanning with a photoelectric conversion scanner 11 into a binary image of "0" and "1". , A window generation circuit 13 for setting a detection area in the image pickup area of the photoelectric conversion scanner 11, an area division circuit 14 for equally dividing the detection area into two horizontal areas, and in each divided area Area count circuit 15 that counts the number of binarized values "1" up to the pattern edge, and each counted area is divided by the width of each divided area to calculate the pattern edge position. And a straight line detection circuit 16 for detecting the straight line.

【0004】次に動作について図11を用いて説明す
る。
Next, the operation will be described with reference to FIG.

【0005】2値化画像に変換された撮像エリア100
内にウィンドウ発生回路13によって検査エリア101
が設定され、このエリアはエリア分割回路14によって
2個の水平エリア102に等分割される。分割された各
水平エリア内で2値化値“1”の個数がパターンエッジ
103まで面積カウント回路15でカウントされる。面
積カウントエリア104内の矢印は、カウント値を図示
している。
Imaging area 100 converted into a binary image
The inspection area 101 is provided by the window generation circuit 13
Is set, and this area is equally divided into two horizontal areas 102 by the area dividing circuit 14. The area count circuit 15 counts the number of binarized values “1” in each of the divided horizontal areas up to the pattern edge 103. The arrow in the area count area 104 indicates the count value.

【0006】前記カウント値は分割エリアの幅で割ら
れ、エッジ位置105が算出される。即ち面積カウント
エリアを台形の面積で近似を行い台形辺の中心位置がエ
ッジ位置105となる。
The count value is divided by the width of the divided area to calculate the edge position 105. That is, the area count area is approximated by the area of the trapezoid, and the center position of the trapezoid side becomes the edge position 105.

【0007】エッジ位置105の2点の座標より近似直
線106が求められる。
An approximate straight line 106 is obtained from the coordinates of the two points at the edge position 105.

【0008】[0008]

【発明が解決しようとする課題】しかしながら、上述の
従来における直線検出装置では、直線データを検査する
為のウィンドウのエリアを広く取る必要があり、検索に
時間を要した。
However, in the above-described conventional straight line detecting device, it is necessary to take a large area of the window for inspecting the straight line data, and it takes a long time to search.

【0009】また画像データの片辺しか検出しないため
に直線か否かの判断が困難であった。
Further, it is difficult to judge whether the line is a straight line because only one side of the image data is detected.

【0010】本発明は従来の上記実情に鑑みてなされた
ものであり、従って本発明の目的は、従来の技術に内在
する上記課題を解決することを可能とした新規な直線検
出補正装置を提供することにある。
The present invention has been made in view of the above-mentioned conventional circumstances, and therefore an object of the present invention is to provide a novel straight line detection / correction device capable of solving the above-mentioned problems inherent in the prior art. To do.

【0011】[0011]

【課題を解決するための手段】上記目的を達成する為
に、本発明に係る直線検出補正装置は、“0”と“1”
の2値データよりイメージ化されたデータを保持するイ
メージ描画データ記憶部と、このイメージ描画データ記
憶部よりデータを読出す描画データ読出し手段と、この
描画データ読出し手段によって読出されたデータより直
線データを検索する直線データ検索手段と、この直線デ
ータの位置、幅等のパターン情報を保持する直線パター
ン情報記憶部と、直線補正前のデータ記憶部に補正後の
データを書き込む補正データ書込み手段と、前記描画デ
ータ読出し手段、直線データ検索手段及び補正データ書
込み手段を制御し、直線パターン情報より直線近似補正
処理を行う直線近似補正制御部と、補正を有効とする直
線の幅等補正実施範囲を定義する補正範囲指示入力部と
を備えて構成される。
In order to achieve the above object, a straight line detection / correction apparatus according to the present invention is provided with "0" and "1".
Image drawing data storage section for holding data imaged from the binary data, drawing data reading means for reading data from the image drawing data storage section, and straight line data from the data read by the drawing data reading means. A straight line data search means for searching for, a straight line pattern information storage section for holding pattern information such as position and width of the straight line data, and a correction data writing means for writing the corrected data in the data storage section before the straight line correction, A straight line approximation correction control unit that controls the drawing data reading unit, the straight line data searching unit, and the correction data writing unit and performs a straight line approximation correction process based on the straight line pattern information, and a correction execution range such as a width of a straight line for which correction is effective And a correction range instruction input unit.

【0012】[0012]

【実施例】次に、本発明をその好ましい一実施例につい
て図面を参照しながら具体的に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the present invention will be specifically described with reference to the drawings with respect to a preferred embodiment thereof.

【0013】図1は本発明の一実施例を示すブロック構
成図である。
FIG. 1 is a block diagram showing an embodiment of the present invention.

【0014】図1を参照するに、直線データを含んだ原
稿は、スキャナ読出しイメージデータ入力部8にてスキ
ャンされ、多値あるいは2値情報としてイメージデータ
処理描画制御部9に転送される。
Referring to FIG. 1, a document containing straight line data is scanned by the scanner read image data input unit 8 and transferred to the image data processing / drawing control unit 9 as multivalued or binary information.

【0015】イメージデータ処理描画制御部9は、多値
あるいは2値情報よりイメージ処理を行い、“0”と
“1”の2値データにて出力装置10に出力可能なイメ
ージデータを生成し、イメージ描画データ記憶部1にイ
メージデータを保持する。
The image data processing / drawing control section 9 performs image processing based on multivalued or binary information, and generates image data which can be output to the output device 10 as binary data of "0" and "1". The image data is stored in the image drawing data storage unit 1.

【0016】スキャナの解像度あるいはデータをスキャ
ンする走査方向に対する原稿の傾きにより、スキャナに
てスキャンされた直線データは歪みを含みあるいは線幅
が不均等となる。以下、データ記憶部1内の画像データ
より直線データを検出し、補正する手段につき説明す
る。
Due to the resolution of the scanner or the inclination of the document with respect to the scanning direction for scanning the data, the straight line data scanned by the scanner may contain distortion or have non-uniform line widths. Hereinafter, a means for detecting and correcting straight line data from the image data in the data storage unit 1 will be described.

【0017】描画読出し手段3は、直線近似補正制御部
2の制御によって描画データ記憶部1よりデータを読出
す。読出すデータサイズは、縦l画素、横m画素からな
るl×mマトリックスで定義される。図2〜図5では、
一例としてl=8、m=8の8×8マトリックスを用い
てデータを検索した場合について図示したものである。
The drawing reading means 3 reads data from the drawing data storage section 1 under the control of the linear approximation correction control section 2. The data size to be read is defined by an l × m matrix consisting of vertical 1 pixel and horizontal m pixels. 2 to 5,
As an example, a case where data is searched using an 8 × 8 matrix with l = 8 and m = 8 is shown.

【0018】 図2において、a(x、y)はデータ記
憶部1内における1画素単位の描画データのビットアド
レスを意味し、xは水平方向のアドレス座標、yは垂直
方向のアドレス座標を示している。直線データ検索手段
4は、描画データ読出し手段3にて8×8マトリクスの
ウィンドウで読み出されたデータ内に直線データと推測
される情報が含まれているかを検索する。図2において
a(x、y)−a(x+8、y+8)部を拡大したもの
が図3である。
In FIG. 2, a (x, y) means a bit address of drawing data in a unit of one pixel in the data storage unit 1, x indicates a horizontal address coordinate, and y indicates a vertical address coordinate. ing. The straight line data search means 4 searches whether the data read by the drawing data reading means 3 in the 8 × 8 matrix window contains information that is presumed to be straight line data. FIG. 3 is an enlarged view of the part a (x, y) -a (x + 8, y + 8) in FIG.

【0019】直線データ検索手段4は、図3に示す様に
8×8マトリックスのウィンドウ内で連続したパターン
が存在し、かつウィンドウを2分割するようなケースに
おいて直線と推測する。データが連続しているか否かの
判定は、図3のライン0に黒データ(情報“1”)が存
在する場合、即ちa(x+4、y)に黒(“1”)が存
在する場合に、ライン1のa(x+3、y+1)、a
(x+4、y+1)、a(x+5、y+1)に黒データ
(情報“1”)が存在するか否かを検索する。
As shown in FIG. 3, the straight line data retrieval means 4 presumes a straight line in the case where a continuous pattern exists in a window of 8 × 8 matrix and the window is divided into two. Whether or not the data is continuous is determined when black data (information “1”) exists in line 0 of FIG. 3, that is, when black (“1”) exists in a (x + 4, y). , Line 1 a (x + 3, y + 1), a
It is searched whether or not black data (information “1”) exists in (x + 4, y + 1) and a (x + 5, y + 1).

【0020】同様にライン2〜ライン7において近傍に
データの存在を確認することにより連続性を確認するこ
とができる。同時にライン情報は、図4に示すように8
×8マトリックスのウィンドウ内において、各ライン毎
にどのアドレスから黒データ(情報“1”)が存在し、
その黒データ幅の画素数について検索される。これらの
情報は、直線パターン情報記憶部5に保持される。
Similarly, the continuity can be confirmed by confirming the existence of data in the vicinity of lines 2 to 7. At the same time, the line information is 8 as shown in FIG.
In the window of × 8 matrix, black data (information “1”) exists from which address for each line,
The number of pixels of the black data width is searched. These pieces of information are held in the straight line pattern information storage unit 5.

【0021】直線近似補正制御部2は、図4に示した直
線パターン情報より図5に示すような直線の連続性の傾
きを算出する。図3における直線データにおいては、y
=−2xという直線の関数が期待される。
The linear approximation correction control unit 2 calculates the slope of the continuity of a straight line as shown in FIG. 5 from the straight line pattern information shown in FIG. In the straight line data in FIG. 3, y
A linear function of = -2x is expected.

【0022】ここで、直線の確証を高めるために、さら
に今検索されたウィンドウに続く別のウィンドウの情報
を検索する。既にa(x、y)−a(x+8、y+8)
のウィンドウ内にはデータが確認されているので、a
(x、y)を基点としy=−2xの直線式よりa(x−
4、y+8)を基点としたa(x−4、y+8)−a
(x+4、y+16)のウィンドウの情報を検索する。
Here, in order to improve the confirmation of the straight line, the information of another window following the window just searched is searched. Already a (x, y) -a (x + 8, y + 8)
Since the data is confirmed in the window of
From (x, y) as a base point, a (x-
A (x-4, y + 8) -a based on 4, y + 8)
The information in the window (x + 4, y + 16) is searched.

【0023】図2よりa(x−4、y+8)−a(x+
4、y+16)内のパターンは、a(x、y)−a(x
+8、y+8)から連続するものであることがわかる。
本操作は連続したパターンの始点及び終点が確認される
まで繰り返される。
From FIG. 2, a (x-4, y + 8) -a (x +
The pattern in (4, y + 16) is a (x, y) -a (x
It can be seen that they are continuous from +8, y + 8).
This operation is repeated until the start and end points of the continuous pattern are confirmed.

【0024】複数の8×8マトリックスのウインドウよ
り得られた図4と同様の情報より正常パターンによる直
線の繰り返しパターンが推測される。
From the same information as that shown in FIG. 4 obtained from a plurality of 8 × 8 matrix windows, a linear repeating pattern of a normal pattern can be inferred.

【0025】即ち、図3におけるパターンは、yの正方
向に3個黒(“1”)を描画したのちxの負方向に1個
シフトし、さらにyの正方向に3個黒(“1”)を描画
するパターンが望ましいと判断される。この推測により
得られた補正パターンが図6である。
That is, in the pattern shown in FIG. 3, three blacks ("1") are drawn in the positive direction of y, then one is shifted in the negative direction of x, and three blacks ("1") in the positive direction of y. It is judged that the pattern for drawing ") is desirable. The correction pattern obtained by this estimation is shown in FIG.

【0026】直線近似補正制御部2は、図6に示す補正
パターン情報を元に補正データ書込み手段6によりイメ
ージ描画データ記憶部1内の原画データを補正処理済デ
ータに置き換える。
Based on the correction pattern information shown in FIG. 6, the linear approximation correction control unit 2 causes the correction data writing unit 6 to replace the original image data in the image drawing data storage unit 1 with the corrected data.

【0027】補正範囲指示入力部7により、補正を行う
範囲に対し条件をつけることが可能である。即ち、連続
するデータ画素数の最低ラインを設定することによりそ
の画素数に満たない直線データには補正がかからないよ
うにする。これにより文字等における直線には補正処理
を行わないようにすることが可能となる。
The correction range instruction input unit 7 can set conditions for the range to be corrected. That is, by setting the lowest line of the number of continuous data pixels, the correction is not applied to the straight line data that is less than the number of pixels. As a result, it becomes possible not to perform the correction process on the straight line of the character or the like.

【0028】以上の説明を動作フローで表現すると図7
のようになる。
If the above description is expressed by an operation flow, FIG.
become that way.

【0029】図7において、l×mのマトリックス使用
時がおけるα1はlの整数倍、β1はmの整数倍であ
る。
In FIG. 7, when 1 × m matrix is used, α1 is an integer multiple of l, and β1 is an integer multiple of m.

【0030】直線データの条件は、 ウィンドウ内でデータが連続していること、 ウィンドウを2分割していること、である。The conditions for the straight line data are that the data is continuous within the window and that the window is divided into two.

【0031】α2、β2は直線関数式より算出され
る。
Α2 and β2 are calculated by a linear function formula.

【0032】図1に示された本発明の構成図における直
線データ検索手段4及び直線近似補正制御部2につい
て、図8及び図9の詳細ブロック図を用いて詳細に説明
する。
The straight line data search means 4 and the straight line approximation correction control unit 2 in the configuration diagram of the present invention shown in FIG. 1 will be described in detail with reference to the detailed block diagrams of FIGS. 8 and 9.

【0033】図8において、直線データ検索手段4で
は、描画データ読み出し手段3より読み出された8×8
マトリックスのウィンドウ内に直線データが存在するか
否かを黒情報認識手段42により検索する。第nライン
に黒情報の存在が認められると、続く第n+1ライン目
に連続するデータが存在するか否かが判別される。
In FIG. 8, the straight line data retrieval means 4 reads 8 × 8 read by the drawing data reading means 3.
The black information recognition means 42 searches for whether or not straight line data exists in the window of the matrix. When the presence of black information is recognized in the nth line, it is determined whether or not there is continuous data in the subsequent (n + 1) th line.

【0034】ビットアドレス加減算器43は、第nライ
ン目で認識された黒情報のアドレス座標a(v、w)に
隣接する第n+1ライン目のa(v−1、w+1)、a
(v、w+1)、a(v+1、w+1)の座標を得るた
めの手段である。
The bit address adder / subtractor 43 a (v-1, w + 1), a on the (n + 1) th line adjacent to the address coordinate a (v, w) of the black information recognized on the nth line.
This is means for obtaining the coordinates of (v, w + 1) and a (v + 1, w + 1).

【0035】第n+1ライン直線相関識別部44は、ビ
ットアドレス加減算器43により算出されたアドレス座
標部に黒情報が存在するか否かを識別し、データの直線
連続性を判別する。
The (n + 1) th line linear correlation discriminating unit 44 discriminates whether or not black information exists in the address coordinate portion calculated by the bit address adder / subtractor 43 and discriminates the linear continuity of the data.

【0036】図9において、直線近似補正制御部2は、
直線データ検索手段4において黒データの直線連続性が
認識された場合に元のデータに対し直線パターン認識さ
れた情報に基づき直線補正制御を行う。補正の手順を以
下に示す。
In FIG. 9, the linear approximation correction control unit 2 is
If the straight line continuity of the black data is recognized by the straight line data searching means 4, the straight line correction control is performed on the original data based on the information on the straight line pattern recognition. The correction procedure is shown below.

【0037】描画データ読出し手段制御部21にて、イ
メージ描画データ記憶部1内の被補正データの読み出し
を制御する。読み出されたデータは、直線パターン情報
記憶部5のパターン情報と論理積をとることにより補正
される。
The drawing data reading means control unit 21 controls the reading of the data to be corrected in the image drawing data storage unit 1. The read data is corrected by taking the logical product with the pattern information in the straight line pattern information storage unit 5.

【0038】一方、直線長カウンタ22は、黒データの
連続情報としてドット単位の黒データの長さをカウント
する。
On the other hand, the straight line length counter 22 counts the length of the black data in dot units as the continuous information of the black data.

【0039】補正範囲指示入力部7は、補正を行う黒デ
ータの長さの最小値を設定するものであり、この最小値
は前記直線長カウンタ22の値と比較され、直線補正実
行可否判別部23で補正の実行有無を判別する。
The correction range instruction input unit 7 sets the minimum value of the length of the black data to be corrected, and this minimum value is compared with the value of the straight line length counter 22 to determine whether or not the straight line correction can be performed. At 23, it is determined whether or not the correction is performed.

【0040】直線補正実行可否判別部23の判定に基づ
き、得られたデータは、新規生成データ保持部24に格
納され、補正データ書込み手段制御部25により、イメ
ージ描画データ記憶部1内の元のデータと置換される。
The data obtained based on the judgment of the straight line correction executability judging section 23 is stored in the newly generated data holding section 24, and the original data in the image drawing data storage section 1 is stored in the correction data writing means control section 25. Replaced with data.

【0041】直線傾き算出部26は、直線パターン情報
記憶部5が出力する直線パターンに基づいて図5に示さ
れるように直線傾きy=−(cosθ/sinθ)xを
算出する。
The straight line inclination calculating unit 26 calculates a straight line inclination y =-(cos θ / sin θ) x as shown in FIG. 5 based on the straight line pattern output from the straight line pattern information storage unit 5.

【0042】補正範囲指示入力部7は、例えばスイッチ
等を有する制御パネルによって構成することができる。
The correction range instruction input section 7 can be composed of, for example, a control panel having a switch or the like.

【0043】[0043]

【発明の効果】以上説明したように、本発明によれば、
規定のマトリックスのウィンドウを用い直線データが検
索された場合には、直線の関数式を推論し、最小範囲内
でデータの検索を行うことにより、検索時間の浪費を防
ぐことが可能なために、補正処理が高速になるという効
果が得られる。
As described above, according to the present invention,
When straight line data is searched using the window of the specified matrix, it is possible to avoid wasting search time by inferring the function formula of the straight line and searching the data within the minimum range. The effect that the correction process becomes faster can be obtained.

【0044】本発明によればまた、注目画素をアドレス
で管理しているために、データ補正が画素単位で可能で
あるという効果が得られる。
Further, according to the present invention, since the target pixel is managed by the address, it is possible to obtain the effect that the data correction can be performed on a pixel-by-pixel basis.

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

【図1】本発明の一実施例を示すブロック構成図であ
る。
FIG. 1 is a block diagram showing an embodiment of the present invention.

【図2】イメージ描画データ記憶部内の直線データ検索
方式を図解した図である。
FIG. 2 is a diagram illustrating a straight line data search method in an image drawing data storage unit.

【図3】図2における一部を拡大した拡大図である。FIG. 3 is an enlarged view in which a part of FIG. 2 is enlarged.

【図4】図3における直線パターン情報を示す図であ
る。
FIG. 4 is a diagram showing straight line pattern information in FIG.

【図5】図4から計算される直線の関数式算出方法を示
す図である。
FIG. 5 is a diagram showing a method of calculating a straight line functional expression calculated from FIG. 4;

【図6】図3に対する補正後の直線データを示す図であ
る。
FIG. 6 is a diagram showing straight line data after correction with respect to FIG.

【図7】本発明による一実施例の動作フローを示すフロ
ーチャートである。
FIG. 7 is a flowchart showing an operation flow of an embodiment according to the present invention.

【図8】直線データ検出手段の具体例を示すブロック構
成図である。
FIG. 8 is a block diagram showing a specific example of a straight line data detecting means.

【図9】直線近似補正制御部の具体例を示すブロック構
成図である。
FIG. 9 is a block configuration diagram showing a specific example of a linear approximation correction control unit.

【図10】従来技術の構成図である。FIG. 10 is a configuration diagram of a conventional technique.

【図11】従来技術の原理説明図である。FIG. 11 is a diagram illustrating the principle of a conventional technique.

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

1…イメージ描画データ記憶部 2…直線近似補正制御部 3…描画データ読出し手段 4…直線データ検索手段 5…直線パターン情報記憶部 6…補正データ書込み手段 7…補正範囲指示入力部 8…スキャナ読出しイメージデータ入力部 9…イメージデータ処理描画制御部 10…出力装置 DESCRIPTION OF SYMBOLS 1 ... Image drawing data storage unit 2 ... Linear approximation correction control unit 3 ... Drawing data reading unit 4 ... Straight line data retrieval unit 5 ... Straight line pattern information storage unit 6 ... Correction data writing unit 7 ... Correction range instruction input unit 8 ... Scanner reading Image data input unit 9 ... Image data processing drawing control unit 10 ... Output device

Claims (5)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 “0”と“1”の2値データによりイメ
ージ化されたデータを保持するイメージ描画データ記憶
部と、該イメージ描画データ記憶部よりデータを読み出
す描画データ読出し手段と、該描画データ読出し手段に
より読出されたデータより直線データを検索する直線デ
ータ検索手段と、直線データの位置、幅等のパターン情
報を保持する直線パターン情報記憶部と、直線補正前の
前記イメージ描画データ記憶部に補正後のデータを書込
む補正データ書込み手段と、前記描画データ読出し手
段、直線データ検索手段及び補正データ書込み手段を制
御し直線パターン情報より直線近似補正処理を行う直線
近似補正制御部とを備えることを特徴とする直線検出補
正装置。
1. An image drawing data storage unit for holding data imaged by binary data of "0" and "1", a drawing data reading unit for reading data from the image drawing data storage unit, and the drawing. Straight line data searching means for searching straight line data from the data read by the data reading means, straight line pattern information storage section for holding pattern information such as position and width of straight line data, and the image drawing data storage section before straight line correction Correction data writing means for writing the corrected data to the above, and a linear approximation correction control portion for controlling the drawing data reading means, the linear data retrieval means and the correction data writing means to perform linear approximation correction processing from linear pattern information. A straight line detection / correction device characterized by the above.
【請求項2】 前記直線データ検索手段は、前記描画デ
ータ読出し手段により第nラインを読出す第nライン読
出手段と、該第nライン読出手段により読出された第n
ライン中の黒情報を認識する黒情報認識手段と、前記第
nラインに続く第n+1ラインのアドレスを出力するビ
ットアドレス加減算手段と、該ビットアドレス加減算手
段により算出されたアドレス座標部に黒情報が存在する
か否かを識別してデータの直線連続を判別する第n+1
ライン直線相関識別手段とを有することを更に特徴とす
る請求項1に記載の直線検出補正装置。
2. The straight line data searching means includes an nth line reading means for reading the nth line by the drawing data reading means and an nth line read by the nth line reading means.
Black information recognition means for recognizing black information in a line, bit address addition / subtraction means for outputting the address of the (n + 1) th line following the nth line, and black information in the address coordinate portion calculated by the bit address addition / subtraction means. The (n + 1) th discriminating whether or not it exists and discriminating the continuous straight line of the data
The line detection / correction apparatus according to claim 1, further comprising line line correlation identification means.
【請求項3】 前記直線近似補正制御部は、前記イメー
ジ描画データ記憶部内の被補正データの読出しを制御す
る描画データ読出し手段制御部と、該描画データ読出し
手段制御部の出力と前記直線パターン情報記憶部の出力
との論理積をとる論理積手段と、黒データの連続情報と
してドット単位の黒データの長さをカウントする直線長
カウンタと、該直線長カウンタのカウント値と補正範囲
指示入力部により指定された補正を行う黒データの長さ
の最小値とを比較し該比較結果により補正の実行有無を
判別する補正実行可否判別手段と、該補正実行可否判別
手段の判定結果により前記論理積手段を作動せしめるこ
とにより得られた新規生成データを格納する新規生成デ
ータ保持手段と、該新規データ保持手段より出力された
新規データを前記イメージ描画データ記憶部内の元のデ
ータと置換制御する補正データ書込み手段制御部と、前
記直線パターン情報記憶部の情報をもとに直線の傾きを
算出する直線傾き算出手段とを有することを更に特徴と
する請求項1に記載の直線検出補正装置。
3. The linear approximation correction control unit, a drawing data read-out unit control unit for controlling reading of data to be corrected in the image drawing data storage unit, an output of the drawing data read-out unit control unit, and the straight line pattern information. A logical product means for taking a logical product with the output of the storage unit, a linear length counter for counting the length of black data in dot units as continuous information of black data, a count value of the linear length counter and a correction range instruction input unit Correction execution possibility determining means for comparing the minimum value of the length of the black data for performing the correction and determining whether the correction is performed based on the comparison result, and the logical product based on the determination result of the correction execution possibility determining means. The newly generated data holding means for storing the newly generated data obtained by operating the means, and the new data output from the new data holding means It is further characterized by having a correction data writing means control section for controlling replacement of the original data in the image drawing data storage section, and a straight line inclination calculation means for calculating the inclination of a straight line based on the information of the straight line pattern information storage section. The straight line detection / correction device according to claim 1.
【請求項4】 請求項1に加え、補正を有効とする直線
の長さ等補正実施範囲を定義する補正範囲指示入力部を
有することを更に特徴とする請求項1に記載の直線検出
補正装置。
4. The straight line detection / correction apparatus according to claim 1, further comprising a correction range instruction input unit that defines a correction execution range such as a length of a straight line that makes correction effective. .
【請求項5】 前記直線近似補正制御部において、前記
直線データ検索手段より得られた当該直線パターン情報
より直線の関数式を推論し、前記イメージ描画データ記
憶部内のデータ検索を行うことを更に特徴とする請求項
1に記載の直線検出補正装置。
5. The straight line approximation correction control unit further infers a function formula of a straight line from the straight line pattern information obtained by the straight line data searching means, and searches for data in the image drawing data storage unit. The straight line detection / correction device according to claim 1.
JP6144655A 1994-06-27 1994-06-27 Straight line detection and correction device Expired - Fee Related JP2551383B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6144655A JP2551383B2 (en) 1994-06-27 1994-06-27 Straight line detection and correction device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6144655A JP2551383B2 (en) 1994-06-27 1994-06-27 Straight line detection and correction device

Publications (2)

Publication Number Publication Date
JPH0814825A JPH0814825A (en) 1996-01-19
JP2551383B2 true JP2551383B2 (en) 1996-11-06

Family

ID=15367145

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6144655A Expired - Fee Related JP2551383B2 (en) 1994-06-27 1994-06-27 Straight line detection and correction device

Country Status (1)

Country Link
JP (1) JP2551383B2 (en)

Also Published As

Publication number Publication date
JPH0814825A (en) 1996-01-19

Similar Documents

Publication Publication Date Title
JP4416365B2 (en) Automatic detection of scanned documents
JPH05227425A (en) Improvement in automatic image segmentation
JP2000184202A (en) Image processing system for removing pattern arranged in vertical direction on image generated by scanning
Shafait et al. The effect of border noise on the performance of projection-based page segmentation methods
WO2000051337A1 (en) Image processing device and image processing method
JP3887843B2 (en) Method and apparatus for detecting and correcting vertical and horizontal lines of digitized image
KR100295360B1 (en) Image Processing Method Using Shading Algorithm
JPH06133159A (en) Image processing device
JPH10294862A (en) Image processing device
EP0505729A2 (en) Image binarization system
JP2551383B2 (en) Straight line detection and correction device
JP3480887B2 (en) Image processing apparatus and image processing method
US7545535B2 (en) Robust automatic page size detection algorithm for scan application
JP3614122B2 (en) Reading surface dust detection device for sheet-through document reading system
JP2947126B2 (en) Original image capture device
JPH08272956A (en) Method and device for noise removal
JPH11288453A (en) Method and system for detecting skew angle and black boundary line of original image in scan environment for reproduction
JP2000078409A (en) Device and method for reading image
JP2758255B2 (en) Form edge detection method in optical character reader
JPH10124665A (en) Method for processing picture and device therefor
JP2956151B2 (en) Image processing method and apparatus
JPH06103399A (en) Image processing device
JPH04339471A (en) Device for identifying image area
JP2937603B2 (en) Binary discrimination method of image data in image data reading device
JP2853141B2 (en) Image area identification device

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees