JPH01142874A - Original area detector - Google Patents

Original area detector

Info

Publication number
JPH01142874A
JPH01142874A JP30017387A JP30017387A JPH01142874A JP H01142874 A JPH01142874 A JP H01142874A JP 30017387 A JP30017387 A JP 30017387A JP 30017387 A JP30017387 A JP 30017387A JP H01142874 A JPH01142874 A JP H01142874A
Authority
JP
Japan
Prior art keywords
points
coordinates
original
document
representative
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
JP30017387A
Other languages
Japanese (ja)
Inventor
Toshiyuki Itezono
射手園 敏行
Koji Ito
伊東 晃治
Yoshiyuki Yamashita
山下 義征
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP30017387A priority Critical patent/JPH01142874A/en
Publication of JPH01142874A publication Critical patent/JPH01142874A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Input (AREA)

Abstract

PURPOSE:To attain original area detection prevented from being influenced by noise or the like by detecting the representative points of respective sides by the scanning of the whole area of an original reading face and prescribed processing capable of neglecting fine white blocks corresponding to noise or the like and detecting the coordinates of four corner points of the original from respective coordinates of the representative points. CONSTITUTION:A side representative coordinate detecting part 6 scans image data along a determined side detecting line from the outside of the original area of the image data, sets up a picture element first detected out of picture elements having the ground color of the original or the density of color on the outside of the original area at the time of detecting the picture elements as the representative point and detects the coordinates of eight side representative points consisting of each two point of respective four sides. An original corner point coordinate calculating part 7 sets up four intersecting points obtained by crossing two lines out of four straight lines connecting respective representative points from the coordinates of eight side representative points as four corner points of the original and calculates and outputs the coordinates of the corner points. Since always stable corner points of an original can be obtained without being influenced by noise or the like, information such as the size of the original, its arranged position and inclination can be accurately obtained.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は画像人力処理装置における人力原稿の領域を検
出する方式に関する。
DETAILED DESCRIPTION OF THE INVENTION (Industrial Field of Application) The present invention relates to a method for detecting an area of a manual document in a manual image processing apparatus.

(従来技術) 従来の画像人力処理装置における人力原稿の領域を検出
する方式では原稿が周囲と区別できる状態に配置された
原稿読取り面を撮像素子により主走査方向及び副走査方
向に走査して読取って量子化して得られる画像データよ
り周辺分布を作成し、周辺分布より辺検出ラインの座標
を決定し、画像データにおける辺検出ラインを原稿領域
外部から走査して最初に原稿上の地色に相当する白ビッ
トを検出する点を原稿の一辺を代表する点の1つとして
検出することによって各辺各々2点合計8点の辺代表点
の座標を検出し、辺代表点の座標より原稿の角点座標を
算出し、これをもって原稿領域を表わしていた。
(Prior art) In a conventional manual image processing device, in which the area of a manual document is detected, the document reading surface is placed so that the document can be distinguished from the surroundings, and is scanned in the main scanning direction and the sub-scanning direction by an image sensor. Create a peripheral distribution from the image data obtained by quantizing it, determine the coordinates of the edge detection line from the peripheral distribution, scan the edge detection line in the image data from outside the document area, and first calculate the coordinates corresponding to the ground color on the document. By detecting the point where the white bit is detected as one of the points representing one side of the document, the coordinates of the side representative points (two points on each side, eight points in total) are detected, and the corner of the document is determined from the coordinates of the side representative points. Point coordinates were calculated and used to represent the document area.

(発明が解決しようとする問題点) しかしながら、上記従来の方式では辺検出ラインを原稿
領域外部から走査して最初に白ビットを検出する点を原
稿の一辺を代表する点の1つとして検出しているので、
原稿領域外部のいずれかの辺検出ライン上にノイズ等に
よって1ビツトでも白点が存在すると実際の辺から大き
く離れた点を9辺代表点として検出する可能性がありそ
の結果実際の原稿角点と大きく異なる点を角点として検
出してしまうという問題点がある。ここで、従来技術の
問題点を示す第3図において、Aは白紙の原稿、Bはノ
イズ等の白ブロック、TI、T2.Ll、L2゜Bl、
B2.R1,R2は検出した辺代表点、’tl +Pt
r+Pbl 1Pbrは検出された左上角点、右上角点
、左下角点、右下角点を示す。同図かられかるように、
白ブロックBのノイズのために、検出した辺代表点B、
は実際の下辺から大きく離れ、その結果検出された左下
角点pbn 、右下角点Pbrは実際の角点と大きく異
なる位置に存在している。
(Problem to be Solved by the Invention) However, in the above conventional method, the edge detection line is scanned from outside the document area and the point where the white bit is first detected is detected as one of the points representing one side of the document. Because
If even one bit of white dot exists on any side detection line outside the document area due to noise etc., a point far away from the actual side may be detected as the 9th side representative point, and as a result, the actual document corner point may be detected as the 9th side representative point. There is a problem in that points that are significantly different from the above are detected as corner points. Here, in FIG. 3 showing the problems of the prior art, A is a blank document, B is a white block such as noise, TI, T2. Ll, L2゜Bl,
B2. R1 and R2 are the detected side representative points, 'tl +Pt
r+Pbl 1Pbr indicates the detected upper left corner point, upper right corner point, lower left corner point, and lower right corner point. As you can see from the same figure,
Due to the noise of white block B, the detected side representative point B,
is far away from the actual lower side, and as a result, the detected lower left corner point Pbn and lower right corner point Pbr are located at positions significantly different from the actual corner points.

本発明はこれらの問題点を解決するためのもので、簡単
な処理でノイズ等に影響されることのない安定した原稿
領域検出装置を提供することを目的とする。
The present invention is intended to solve these problems, and it is an object of the present invention to provide a stable document area detection device that is not affected by noise or the like through simple processing.

(問題点を解決するための手段) 本発明は前記問題点を解決するために、周囲と区別し得
る状態に原稿が配置された原稿読取り面を読取って量子
化して得られる画像データを記憶し、この画像データに
基づいて原稿の領域を検出する原稿領域検出装置におい
て、画像データに基づいて周辺分布を作成する周辺分布
作成部と、周辺分布に基づいて各々の辺を辺代表する各
々2点を検出する辺検出ラインの座標を決定する辺検出
ライン座標決定部と、辺検出ラインを原稿領域外部から
走査して最初に連続して所定数の原稿の地色または原稿
領域外部の色の濃度を持つ画素を検出したときそれらの
画素のうち最初に検出した画素を一辺を辺代表するの2
点の辺代表点とし、各辺2点合計8点の辺代表点の座標
を検出する辺代表点座標検出部と、辺代表点8点の座標
から各代表点を結ぶ直線4本のうち2本が交わる交点4
点を原稿の4つの角点とし、この角点の座標を計算する
原稿角点座標計算部とを具備することに特徴がある。
(Means for Solving the Problems) In order to solve the above-mentioned problems, the present invention reads the document reading surface on which the document is placed in a state where it can be distinguished from the surroundings, and stores image data obtained by quantizing the document. , a document area detection device that detects a document area based on this image data includes a peripheral distribution creation section that creates a peripheral distribution based on the image data, and two points each representing each side based on the peripheral distribution. an edge detection line coordinate determination unit that determines the coordinates of the edge detection line for detecting the edge detection line; and an edge detection line coordinate determination unit that scans the edge detection line from outside the document area and first successively determines the ground color of a predetermined number of documents or the density of the color outside the document area. When a pixel with is detected, the first pixel detected among those pixels is 2
A side representative point coordinate detection unit that detects the coordinates of a total of 8 side representative points, 2 points on each side, and 2 of the 4 straight lines connecting each representative point from the coordinates of the 8 side representative points. Intersection of books 4
The present invention is characterized in that the points are four corner points of the document, and that the document corner point coordinate calculating section calculates the coordinates of the corner points.

(作用) 以上のような構成を有する本発明によれば、周辺分布作
成部では水平方向、垂直方向の各方向の周辺分布が作成
される。辺検出ライン座標決定部は作成された周辺分布
に基づいて各々の辺を代表する各々2点を検出する辺検
出ラインの座標を決定する。そして、辺代表座標検出部
は決定された辺検出ラインに沿って前記画像データの原
稿領域外部から走査して最初に連続して所定数の原稿の
地色または原稿領域外部の色の濃度を持つ画素を検出し
たときそれらの画素のうち最初に検出した画素を一辺を
辺代表するの2点の辺代表点とし、各辺2点合計8点の
辺代表点の座標を検出する原稿の各辺の辺代表点2点合
計8点の座標を検出する。原稿角点座標計算部は辺代表
点8点の座標から各代表点を結ぶ直線4本のうち2木が
交わる交点4点を原稿の4つの角点とし、この角点の座
標を計算し出力する。
(Operation) According to the present invention having the above configuration, the peripheral distribution creation section creates peripheral distributions in each of the horizontal and vertical directions. The side detection line coordinate determination unit determines the coordinates of side detection lines for detecting two points representing each side based on the created peripheral distribution. Then, the side representative coordinate detection unit scans the image data from outside the document area along the determined side detection line, and first continuously obtains a predetermined number of consecutive document ground colors or densities of colors outside the document area. When a pixel is detected, the first pixel detected among those pixels is used as the two side representative points on each side, and the coordinates of the side representative points, two points on each side for a total of eight points, are detected for each side of the document. Detect the coordinates of a total of 8 points (2 representative points on the side). The document corner point coordinate calculation unit uses the coordinates of the 8 side representative points to define the 4 points of intersection where 2 trees intersect among the 4 straight lines connecting each representative point as the 4 corner points of the document, and calculates and outputs the coordinates of these corner points. do.

従って、本発明は前記問題点を解決することができ、簡
単な処理でノイズ等に影響されることのない安定した原
稿領域検出装置を提供できる。
Therefore, the present invention can solve the above-mentioned problems, and can provide a stable document area detection device that is not affected by noise or the like through simple processing.

(実施例) 以下、本発明の実施例を図面に基づいて説明する。(Example) Embodiments of the present invention will be described below based on the drawings.

第1図は本発明の一実施例の構成を示すブロック図であ
る。同図において、1は光入力で、四辺形である原稿全
面を含むように原稿が配置された原稿読取り面からの光
入力であって原稿の存在しない部分からの光入力が無い
ように読取装置は構成されているものとする。2は光電
変換部で、光入力1の原稿読取り面の全領域を例えば2
048x 3072の画像へ分解して各画素を2値のデ
ィジタル信号(以下、この信号を入力画像データと称す
る)へ変換する。3は画像メモリで、原稿読取り面の全
領域における各画素のX、Y座標を再現できる形式で入
力画像データを記憶するものであり、原稿読取り面の全
領域に対応して2048x 3072ビツトの容量を有
するものである。4は周辺分布作成部で、画像メモリ3
の人力画像データをX、Y座標へ投影してつまり画像メ
モリ3の2次元座標における水平方向、垂直方向へ投影
して例えば黒ビット数の分布を求め、周辺分布S X 
(x) 、 S Y (y)を作成して図示していない
周辺分布メモリに格納する。5は辺検出ライン座標決定
部で、周辺分布メモリを参照して各々の辺を代表する各
々2点を検出する辺検出ラインの座標を決定するもので
ある。6は辺代表点座標検出部で、画像メモリ3におけ
る辺検出ライン座標決定部5で決定された辺検出ライン
の座標が示す辺検出ラインを走査して各辺2点合計8点
の辺代表点を検出するものである。7は原稿角点座標計
算部で、辺代表点座標検出部6で検出された辺代表点8
点の座標から各代表点を結ぶ直線4本のうち2木が交わ
る交点4点を原稿の4つの角点としてその座標を計算し
、原稿角点座標出力端子8に出力する。尚、周辺分布作
成部4により求めた周辺分布S X (x) 、 S 
Y (!/)は次式で表わされる。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention. In the figure, reference numeral 1 denotes optical input, which is light input from the original reading surface on which the original is placed so as to include the entire surface of the original, which is a quadrilateral. is configured. 2 is a photoelectric conversion unit, which converts the entire area of the document reading surface of optical input 1 into 2
The image is decomposed into 048x3072 images and each pixel is converted into a binary digital signal (hereinafter, this signal is referred to as input image data). 3 is an image memory that stores input image data in a format that can reproduce the X and Y coordinates of each pixel in the entire area of the original reading surface, and has a capacity of 2048 x 3072 bits corresponding to the entire area of the original reading surface. It has the following. 4 is a marginal distribution creation unit, and image memory 3
The human image data is projected onto the X and Y coordinates, that is, in the horizontal and vertical directions in the two-dimensional coordinates of the image memory 3, to obtain the distribution of, for example, the number of black bits, and the marginal distribution S
(x) and S Y (y) are created and stored in a marginal distribution memory (not shown). Reference numeral 5 denotes a side detection line coordinate determination unit which refers to the peripheral distribution memory and determines the coordinates of the side detection line for detecting two points representing each side. Reference numeral 6 denotes a side representative point coordinate detection unit which scans the side detection line indicated by the coordinates of the side detection line determined by the side detection line coordinate determination unit 5 in the image memory 3 and detects a total of 8 side representative points, 2 points on each side. This is to detect. Reference numeral 7 denotes a document corner point coordinate calculation unit, which calculates the side representative point 8 detected by the side representative point coordinate detection unit 6.
From the coordinates of the points, four points of intersection where two trees intersect among the four straight lines connecting each representative point are regarded as four corner points of the document, and their coordinates are calculated and output to the document corner point coordinate output terminal 8. In addition, the marginal distribution S X (x), S obtained by the marginal distribution creation unit 4
Y (!/) is expressed by the following formula.

ただし、x、yは画像メモリ3における2次元座標であ
り、P (x、y)は黒ビットまたは白ビットを意味し
、黒ビット(原稿上の文字部の色及び原稿領域外部の色
を示す)の場合P (x、y)=1、白ビット(原稿上
の地色を示す)の場合P (x、y)=Oをとる。
However, x, y are two-dimensional coordinates in the image memory 3, P (x, y) means a black bit or a white bit, and the black bit (indicating the color of the character part on the document and the color outside the document area) ), P (x, y) = 1, and in the case of a white bit (indicating the background color on the original), P (x, y) = O.

次に、本実施例の動作を第1図、人力画像データ例とし
て白紙の原稿Aが配置され、原稿領域外部にノイズによ
る白ブロックBが存在する原稿読取り面を示す第2図(
a)及び第2図(a)の画像データに対する周辺分布S
 X (x) 、 S Y (y)を示す第2図(b)
 、 (C)を用いて説明する。
Next, the operation of this embodiment is shown in FIG. 1, and FIG. 2 shows a document reading surface where a blank document A is placed as an example of human image data, and a white block B due to noise exists outside the document area.
Marginal distribution S for the image data of a) and Fig. 2(a)
Figure 2 (b) showing X (x), S Y (y)
, (C).

先ず、四辺形である原稿全面を含む原稿が配置された原
稿読取り面からの光入力1が光電変換部2に人力し、光
電変換部2は人力された光入力1を入力画像データへ変
換して画像メモリ3に格納する。画像メモリ3には原稿
読取り面金領域における各画素のX、Y座標を再現でき
る形式で格納されている。そして、周辺分布作成部4は
画像メモリ3の入力画像データをX軸、Y軸経投影して
第2図(b) 、 (C)に示すような周辺分布S X
 (x) 。
First, the optical input 1 from the document reading surface on which the original including the entire surface of the quadrilateral original is placed is manually input to the photoelectric converter 2, and the photoelectric converter 2 converts the manually input optical input 1 into input image data. and stored in the image memory 3. The image memory 3 stores the X and Y coordinates of each pixel in the original reading area in a format that allows reproduction of the X and Y coordinates. Then, the marginal distribution creation unit 4 projects the input image data of the image memory 3 along the X and Y axes to create a marginal distribution S
(x).

S Y (y)を作成して周辺分布メモリに格納する。Create S Y (y) and store it in the marginal distribution memory.

そして、辺検出ライン座標決定部5は先ず各々の周辺分
布における閾値X THL、 Y THLを第2図(b
)。
Then, the side detection line coordinate determination unit 5 first determines the threshold values X THL and Y THL in each peripheral distribution as shown in FIG.
).

(C)に示すように決定する。この閾値X THL、Y
THLは次式で表わされる。  ′ XTHL = (M−XMIN+N−XMAX)/(M
+N)  −−−(:1)YTHL = (M−YMI
N+N−YMAX)/(M+N)  −−−(4)ただ
し、XMIN、XMAXは周辺分布S X (x)にお
ける最小値、最大値であり、YMIN、YMAXは周辺
分布5Y(y)における最小値、最大値であり、M、 
Nは閾値を決定する定数である。ここで、本実施例では
M=N= 1とする。
Determine as shown in (C). This threshold value X THL, Y
THL is expressed by the following formula. ' XTHL = (M-XMIN+N-XMAX)/(M
+N) ---(:1)YTHL = (M-YMI
N+N-YMAX)/(M+N) ---(4) However, XMIN and XMAX are the minimum and maximum values in the marginal distribution S is the maximum value, M,
N is a constant that determines the threshold value. Here, in this embodiment, M=N=1.

次に、周辺分布S X (x)において閾値X THL
未満となる最小座標x1と最大座標x2を、周辺分布S
 Y (y)において閾値YTHL未満となる最小座標
Y1と最大座標Y2を検出する。さらに、辺検出ライン
によって正しく辺を検出し得るように座標×1、x2、
Y8、Y2と定数αにより辺検出ライン座標X、、、X
s2.Y、、、Y、□を決定スル。定数αは座標Xs、
、 Xs2で表わされる2本の辺検出ラインが共に上辺
、下辺を、座標Y、、、Yg2で表わされる2木の辺検
出ラインが共に左辺、右辺を横切るように定められる。
Next, in the marginal distribution S X (x), the threshold value X THL
The minimum coordinate x1 and maximum coordinate x2 that are less than
The minimum coordinate Y1 and maximum coordinate Y2 that are less than the threshold value YTHL in Y (y) are detected. Furthermore, the coordinates x1, x2,
Side detection line coordinates X, , X using Y8, Y2 and constant α
s2. Determine Y, , Y, □. The constant α is the coordinate Xs,
, Xs2 are set so that both the upper and lower sides are crossed, and the two side detection lines represented by the coordinates Y, , Yg2 are set so that they both cross the left and right sides.

よって、次式のような関係となる。Therefore, the relationship is as shown in the following equation.

XSI”XI+α ・・・(5) YSI=Yl+α −−−(6) xs□=×2−α ・・・(7) Ys2=Y2−α・・・(8) ここで、本実施例ではα=400とする。XSI"XI+α...(5) YSI=Yl+α ---(6) xs□=×2−α...(7) Ys2=Y2−α...(8) Here, in this embodiment, α=400.

尚、上述のような黒ビットの周辺分布から辺検出ライン
を得る方法の代りに白ビットの周辺分布を作成し、式(
3) 、 (4)における定数M、Nを入れ換えた計算
式から閾値X THL、 Y T肛を求め、各々周辺分
布において閾値X THLを越える最小座標X。
Note that instead of obtaining the edge detection line from the peripheral distribution of black bits as described above, we create the peripheral distribution of white bits and use the formula (
3) Find the threshold values X THL and Y T from the calculation formula in which the constants M and N in (4) are replaced, and find the minimum coordinate X that exceeds the threshold value X THL in each marginal distribution.

と最大座標×2、閾値Y THLを越える最小座標Y1
と最大座標Y2を検出し、これらの座標から同様に式(
5) 、 (6) 、 (7) 、 (8)によって辺
検出ライン座標を決定する方法をとっても同様な辺検出
ライン座標を得ることができる。
and the maximum coordinate x 2, the minimum coordinate Y1 that exceeds the threshold Y THL
and the maximum coordinate Y2, and from these coordinates, the formula (
Similar side detection line coordinates can also be obtained by determining the side detection line coordinates using 5), (6), (7), and (8).

そして、辺代表点座標検出部6は先ず辺検出ライン座標
X8..Xs2が示す辺検出ラインをそれぞれy=Qか
らy=3071まで走査し、最初に連続して 所定数、
ここでは16ビツト連続して白ビットを検出したとき、
その白ビットのうち最初に検出した白ビットの座標(X
s’、 Ytt)、(XS2゜Yt2)を検出する。こ
の2点は上辺を代表する2点である。さらに、辺検出ラ
イン座標Xs、、 X、2が示す辺検出ラインをそれぞ
れy=3071からy=0へ走査し、上述した同様な方
法で検出した白ビットの座標(Xs+、 Yb+)、(
X 32. Y bz)を検出する。この点は下辺を代
表する2点である。次に、辺検出ライン座標YS、、Y
S2が示す辺検出ラインをそれぞれX=Oからx = 
2047へ走査し、上述した同様な方法で検出した白ビ
ットの座標(Xtt、Ys+)、(Xtz、 YS2)
を検出スル。この点は左辺を代表する2点である。さら
に、辺検出ライン座標YsI、Ys2が示す辺検出ライ
ンをそれぞれx = 2047からx=Oへ走査し、上
述した同様な方法で検出した白ビットの座標(Xr++
Ys+)、(X r2. Y S2)を検出する。この
2点は右辺を代表する2点である。以上の上下左右の各
辺の代表点2点、合計8点の辺代表点を検出する。
Then, the side representative point coordinate detection unit 6 first detects the side detection line coordinates X8. .. Each side detection line indicated by Xs2 is scanned from y=Q to y=3071, and first, a predetermined number of
Here, when 16 consecutive white bits are detected,
The coordinates (X
s', Ytt), (XS2°Yt2). These two points are two points representing the upper side. Furthermore, the side detection lines indicated by the side detection line coordinates Xs,,
X 32. Y bz) is detected. These points are two points representing the lower side. Next, the side detection line coordinates YS,, Y
The side detection lines indicated by S2 are respectively from X=O to x=
Coordinates of the white bit (Xtt, Ys+), (Xtz, YS2) scanned to 2047 and detected using the same method as described above.
Detected. These points are two points representing the left side. Furthermore, the side detection lines indicated by the side detection line coordinates YsI and Ys2 are scanned from x = 2047 to x = O, respectively, and the white bit coordinates (Xr++
Ys+), (X r2.Y S2) are detected. These two points are two points representing the right side. A total of eight side representative points, two representative points for each of the above-mentioned upper, lower, left and right sides, are detected.

以上のような方法で、辺代表点を検出すれば、第2図(
a)の白ブロックBのような原稿領域外部に辺検出ライ
ン上の15ビツト以下の微少なノイズ等による白ブロッ
クが存在してもこれを無視することができ、より安定な
辺代表点の検出が可能となる。
If the edge representative points are detected using the method described above, the result shown in Figure 2 (
Even if a white block such as white block B in a) exists outside the document area due to minute noise of 15 bits or less on the side detection line, this can be ignored, allowing more stable side representative point detection. becomes possible.

そして、第1図の原稿角点座標計算部7は辺代表点座標
検出部6により検出された辺代表点8点の座標から各辺
の代表点2点を結ぶ直線4本のうち2本が交わる交点4
点を原稿の4つの角点としてその座標をその座標として
以下の計算手順で計算する。     ゛ 先ず、上辺の代表点座標(Xs+、Ytt)、(XS2
゜Yt2)ト左辺(7)代表点座標(x、、、ys、)
、(X12゜YS2)から原稿の左上角点座標(X□、
Ytt)を計算する。
Then, the document corner point coordinate calculating section 7 in FIG. intersection point 4
The points are defined as four corner points of the document, and the coordinates are calculated using the following calculation procedure.゛First, the coordinates of the representative point on the upper side (Xs+, Ytt), (XS2
゜Yt2) Left side (7) Representative point coordinates (x, , ys,)
, (X12°YS2) to the coordinates of the upper left corner point of the original (X□,
Ytt).

Xtn=((Xs2−Xs+)(Xt2Ys+−Xt+
Ys+)(Xn2Xm+)(Xs2Yt+  Xs+Y
t2))/ ((X12  X1l)  (Yt2Yt
+)(XS2  X5I)  (Y!12  YSI)
 )・・・(9) Ytu= ((Yt2  Ytt)   (Ys2Xt
+   YSIX12)−(YS2  YSI) (Y
 t2Xs+  Y t+X52))/ ((YS2−
YSI)  (XS2  X5t)−(Yt2−Ytt
)  (X12  Xtt) )    ’・・・(1
0) 以下、同様に上辺の代表点座標(Xs+、 Ytt)。
Xtn=((Xs2−Xs+)(Xt2Ys+−Xt+
Ys+)(Xn2Xm+)(Xs2Yt+ Xs+Y
t2))/ ((X12 X1l) (Yt2Yt
+) (XS2 X5I) (Y!12 YSI)
)...(9) Ytu= ((Yt2 Ytt) (Ys2Xt
+ YSIX12) - (YS2 YSI) (Y
t2Xs+ Y t+X52))/ ((YS2-
YSI) (XS2 X5t) - (Yt2 - Ytt
) (X12 Xtt) ) '...(1
0) Below, the coordinates of the representative point of the upper side (Xs+, Ytt).

(X s2. Y t2)と右辺の代表点座標(Xr+
、 Ys+)。
(X s2. Y t2) and the coordinates of the representative point on the right side (Xr+
, Ys+).

(X r2. Y 82)とから原稿の右上角点座標(
Xtr。
(X r2. Y 82) and the coordinates of the upper right corner point of the original (
Xtr.

Yt、、)を計算し、下辺の代表点座標(Xs+、 Y
b+)、2(XS2. Yb2)と左辺の代表点座標(
X 支1 、Y S I ) +(X 12. Y S
2)から原稿の左下角点座標(Xbx。
Yt, , ) is calculated, and the coordinates of the representative point on the lower side (Xs+, Y
b+), 2 (XS2. Yb2) and the coordinates of the representative point on the left side (
X support 1, Y S I) + (X 12. Y S
2) to the coordinates of the lower left corner point of the original (Xbx).

Yhn)を計算し、下辺の代表点座標(Xs+、 Yb
+)。
Yhn), and the coordinates of the representative point on the lower side (Xs+, Yb
+).

(XS2. Yb2)と右辺の代表点座標(xr+、 
YSI)。
(XS2. Yb2) and the coordinates of the representative point on the right side (xr+,
YSI).

(X 、2. Y s2)とから原稿の右下角点座標(
xbr。
(X, 2. Y s2) and the coordinates of the lower right corner point of the original (
xbr.

ybr)を計算する。ybr).

このように計算した原稿の角点座標は原稿角点座標出力
端子8に出力され、下記のように原稿の傾きの検出等に
利用される。
The corner point coordinates of the document calculated in this manner are output to the document corner coordinate output terminal 8, and are used for detecting the inclination of the document as described below.

上辺の傾きをもって原稿の傾きとする場合、その傾きを
θとすると、 θ =jan−’((Yt、   Ytn)  /  
(Xtr−Xtt)  )・・・(11) で与えられる。また、角点座標及び傾きθを原稿上の文
字列の検出処理に使用することも可能である。
If the inclination of the upper side is the inclination of the original, and if that inclination is θ, then θ = jan-'((Yt, Ytn) /
(Xtr-Xtt) )...(11) It is given by: It is also possible to use the corner point coordinates and the inclination θ in the process of detecting character strings on a document.

以上のように、本実施例によれば、原稿読取り面の全領
域の走査とノイズ等に相当する微少な白ブロックを無視
し得る所定の処理によって各辺の代表点を検出し、この
各座標より原稿の4点の角点の座標を検出するもので、
簡単な処理でノイズ等に影響されることのない安定した
原稿領域検出を実現できる。
As described above, according to this embodiment, the representative point of each side is detected by scanning the entire area of the document reading surface and a predetermined process that can ignore minute white blocks corresponding to noise, etc., and the representative point of each side is detected. It detects the coordinates of four corner points on the document.
Stable document area detection that is not affected by noise etc. can be achieved with simple processing.

(発明の効果) 以上説明したように、本発明によれば、原稿を含む画像
の周辺分布から決定した辺検出ラインを走査して辺代表
点座標を検出する際に、最初に連続して所定数の原稿上
の地色に相当する白ビットを検出したときのみその白ビ
ットのうち最初に検出した白ビットの点を辺代表点とし
て検出しているので、撮像素子、原稿読取り面等におけ
るノイズ等の原因によって原稿領域外部に白ビットのブ
ロックが発生してもそれが余程大きくない限り無視する
ことができる。従って、ノイズ等に強く常に安定した原
稿角点を検出できるので、積度よ〈原稿のサイズ、配置
された位置及び傾き等の情報を得ることができる。
(Effects of the Invention) As described above, according to the present invention, when detecting side representative point coordinates by scanning a side detection line determined from the peripheral distribution of an image including a document, Only when a white bit corresponding to the background color on the original is detected, the point of the white bit detected first among the white bits is detected as the edge representative point. Therefore, noise on the image sensor, original reading surface, etc. Even if a block of white bits occurs outside the document area due to reasons such as this, it can be ignored as long as it is not too large. Therefore, it is possible to detect a document corner point that is strong against noise and is stable at all times, so that it is possible to obtain information such as the size of the document, the arranged position, and the tilt.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の一実施例の構成を示すブロック図、第
2図(a)は白紙の原稿が配置されて原稿領域外部にノ
イズによる白ブロックが存在する原稿読取り面を示す図
、第2図(b) 、 (C)は第2図(a)の画像デー
タに対する周辺分布S X (X) 。 5Y(y)を示す図、第3図は従来技術の問題点を説明
する図である。 1・・・光入力、  2・・・光電変換部、3・・・画
像メモリ、 4・・・周辺分布作成部、 5・・・辺検出ライン座標決定部、 6・・・辺代表点座標検出部、 7・・・原稿角点座標計算部、 8・・・原稿角点座標出力端子。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention, FIG. 2(b) and 2(C) show the marginal distribution S X (X) for the image data of FIG. 2(a). 5Y(y), and FIG. 3 is a diagram illustrating the problems of the prior art. 1... Light input, 2... Photoelectric conversion section, 3... Image memory, 4... Surrounding distribution creation section, 5... Side detection line coordinate determining section, 6... Side representative point coordinates Detection unit, 7... Original corner point coordinate calculation unit, 8... Original corner point coordinate output terminal.

Claims (1)

【特許請求の範囲】 周囲と区別し得る状態に原稿が配置された原稿読取り面
を読取って量子化して得られる画像データを記憶し、該
画像データに基づいて原稿の領域を検出する原稿領域検
出装置において、 前記画像データに基づいて周辺分布を作成する周辺分布
作成部と、 前記周辺分布に基づいて各々の辺を代表する各々2点を
検出する辺検出ラインの座標を決定する辺検出ライン座
標決定部と、 前記辺検出ラインを原稿領域外部から走査して最初に連
続して所定数の画素を検出したときそれらの画素のうち
最初に検出した画素を一辺を辺代表する2点の辺代表点
とし、各辺2点合計8点の辺代表点の座標を検出する辺
代表点座標検出部と、 前記辺代表点8点の座標から各辺代表点を結ぶ直線4本
のうち2本が交わる交点4点を原稿の4つの角点とし、
該角点の座標を計算する原稿角点座標計算部とを具備す
ることを特徴とする原稿領域検出装置。
[Claims] Document area detection that stores image data obtained by reading and quantizing a document reading surface on which a document is placed in a state where it can be distinguished from the surroundings, and detects an area of the document based on the image data. The apparatus includes: a marginal distribution creation unit that creates a marginal distribution based on the image data; and an edge detection line coordinate that determines coordinates of edge detection lines for detecting two points representing each edge based on the marginal distribution. a determining unit; and two side representatives representing one side of the first detected pixel when a predetermined number of pixels are first consecutively detected by scanning the side detection line from outside the document area; a side representative point coordinate detection unit that detects the coordinates of a total of 8 side representative points, 2 points on each side; and 2 of the 4 straight lines connecting each side representative point from the coordinates of the 8 side representative points. Let the four points of intersection be the four corner points of the manuscript,
A document area detection device comprising: a document corner point coordinate calculating section that calculates the coordinates of the corner point.
JP30017387A 1987-11-30 1987-11-30 Original area detector Pending JPH01142874A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP30017387A JPH01142874A (en) 1987-11-30 1987-11-30 Original area detector

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP30017387A JPH01142874A (en) 1987-11-30 1987-11-30 Original area detector

Publications (1)

Publication Number Publication Date
JPH01142874A true JPH01142874A (en) 1989-06-05

Family

ID=17881624

Family Applications (1)

Application Number Title Priority Date Filing Date
JP30017387A Pending JPH01142874A (en) 1987-11-30 1987-11-30 Original area detector

Country Status (1)

Country Link
JP (1) JPH01142874A (en)

Similar Documents

Publication Publication Date Title
EP0701225B1 (en) System for transcribing images on a board using a camera based board scanner
US6721465B1 (en) Non-contact image reader and system using the same
JPH1044513A (en) Code printer and code print medium applied thereto
US4807041A (en) Microfilm reader scanner capable of editing image
JPH09147122A (en) Image detection and processing system and image processing method
US20030160760A1 (en) Image comining apparatus and method
JPS6113867A (en) Area designation system
US5113267A (en) Apparatus for and method of reconstructing a document
JP3582988B2 (en) Non-contact image reader
JPH01142874A (en) Original area detector
JP3038714B2 (en) Document skew correction device
JPH01142873A (en) Original area detector
JPH01145776A (en) Original area detector
JP2885969B2 (en) Micro film reader
JP3852247B2 (en) Image forming apparatus and transfer image distortion correction method
US20240185012A1 (en) Two-dimensional code, generation device, and reading device
JPH01142876A (en) Original area detecting device
JPH06281421A (en) Image processing method
JPH11288453A (en) Method and system for detecting skew angle and black boundary line of original image in scan environment for reproduction
JPH04257844A (en) Method and device for editing image
JPH10340337A (en) Correction method for inclination, extension and contraction of image data of drawing with drawing frame line graphic
JP2007515121A (en) Image scanning method and apparatus using surface coordinate values
JPS622778A (en) Picture processing method in digital copying machine
JP2546876B2 (en) Digital line segment creation method and paper sheet discrimination system
JPH01181165A (en) Tilt detecting device