JPH06311333A - Picture processing unit - Google Patents

Picture processing unit

Info

Publication number
JPH06311333A
JPH06311333A JP5121934A JP12193493A JPH06311333A JP H06311333 A JPH06311333 A JP H06311333A JP 5121934 A JP5121934 A JP 5121934A JP 12193493 A JP12193493 A JP 12193493A JP H06311333 A JPH06311333 A JP H06311333A
Authority
JP
Japan
Prior art keywords
correction
mark
image
marks
pixel
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.)
Granted
Application number
JP5121934A
Other languages
Japanese (ja)
Other versions
JP3230334B2 (en
Inventor
Norio Yamamoto
紀夫 山本
Yutaka Nakamura
豊 中村
Junichi Osumi
淳一 大住
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox 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 Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP12193493A priority Critical patent/JP3230334B2/en
Publication of JPH06311333A publication Critical patent/JPH06311333A/en
Application granted granted Critical
Publication of JP3230334B2 publication Critical patent/JP3230334B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To obtain the picture processing unit in which distortion is corrected in an excellent way over the entire picture and rotation or lateral direction of an input picture or the like is corrected. CONSTITUTION:An area segmentation means 1 segments plural predetermined areas from an input picture in which a distortion correction mark is possibly in existence. A mark detection means 2 detects at least three marks from the picture of the plural areas segmented by the area segmentation means 1. A picture correction means 3 applies correction processing such as tilt or magnification/reduction or the like to the input picture to generate an output picture based on a position relation of the mark detected by the mark detection means 2, information of a kind of a mark or the like and an averaged relation of the marks of plural pairs.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、例えば、イメージスキ
ャナやファクシミリ等で読み取った画像のひずみを、あ
らかじめ文書画像中に配置したひずみ補正用マークの位
置関係により補正する画像処理装置に関するものであ
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus for correcting the distortion of an image read by, for example, an image scanner or a facsimile by the positional relationship of distortion correction marks arranged in advance in a document image. .

【0002】[0002]

【従来の技術】イメージスキャナやファクシミリ等で画
像を読み取るとき、原稿の状態によっては、伸び縮みが
発生する。また、原稿のセットの状態により、位置ずれ
や画像の傾きなどが発生する。さらに、光学系の調整ず
れや駆動系の機械的な誤差、あるいは、原稿の搬送系に
おける読取中のスリップなど、種々の原因により、読み
取った画像は影響を受け、画像のひずみを生ずる。
2. Description of the Related Art When an image is read by an image scanner or a facsimile, expansion or contraction occurs depending on the state of the original. In addition, misalignment and image tilt may occur depending on the state of the original set. Further, the read image is affected by various causes such as an adjustment deviation of the optical system, a mechanical error of the driving system, or a slip during reading in the document conveying system, and the image is distorted.

【0003】従来、このような画像のひずみを補正する
方式として、例えば、特開平3−15970号公報に開
示された技術が知られている。この方法では、マークシ
ートの左右にあらかじめ2つのひずみ補正用マークを配
置しておき、このひずみ補正用マークを検出し、その縦
方向の位置ズレから画像の傾きを算出し、画像を補正し
ている。
Conventionally, as a method of correcting such image distortion, for example, a technique disclosed in Japanese Patent Laid-Open No. 3-15970 is known. In this method, two distortion correction marks are arranged in advance on the left and right sides of the mark sheet, the distortion correction marks are detected, and the inclination of the image is calculated from the positional deviation in the vertical direction to correct the image. .

【0004】また、別の例としては、特開平2−378
74号公報に開示された方法がある。この方法では、原
稿の読取開始位置の近傍に主走査方向に離間して一対の
ひずみ補正用マークを配置しておき、このひずみ補正用
マークを検出し、その間の距離と、あらかじめわかって
いるマーク間の距離の理論値と読取解像度から算出され
る距離との比により、画像の拡大縮小を行なうことによ
り画像のひずみを補正している。
Another example is Japanese Patent Laid-Open No. 2-378.
There is a method disclosed in Japanese Patent Publication No. 74. In this method, a pair of distortion correction marks are arranged in the main scanning direction in the vicinity of the reading start position of the document, and the distortion correction marks are detected. The image distortion is corrected by scaling the image according to the ratio between the theoretical value of the distance between the two and the distance calculated from the reading resolution.

【0005】しかしながら、これら従来の技術において
は、2つのひずみ補正用マークで補正を行なっているた
め、ファクシミリ等のようにひずみが大きく、かつ、画
像全体で非線形なひずみが存在するような場合には、マ
ーク間の近傍では正しく補正がなされても、そこから離
れた部分では、正しく補正されなかったり、場合によっ
てはかえってひずみを大きくしてしまうという欠点があ
った。また、入力時に原稿が逆さになっていたり、90
゜回転した状態であるような場合には補正用マーク自体
を検出できず、補正処理ができないという問題があっ
た。
However, in these conventional techniques, since the correction is performed with the two distortion correction marks, in the case where the distortion is large as in a facsimile machine and the nonlinear distortion exists in the entire image. However, there is a drawback in that even if the correction is properly performed in the vicinity of the marks, the correction is not performed properly in the portion apart from the mark, or in some cases, the distortion is rather increased. Also, when inputting, the original is turned upside down,
In the case of being rotated by a degree, there is a problem that the correction mark itself cannot be detected and the correction process cannot be performed.

【0006】[0006]

【発明が解決しようとする課題】本発明は、上述した事
情に鑑みてなされたもので、画像全体にわたり良好なひ
ずみの補正を行なうことができ、さらに、入力画像の転
置、90゜回転等をも補正できるようにした画像処理装
置を提供することを目的とするものである。
SUMMARY OF THE INVENTION The present invention has been made in view of the above-mentioned circumstances, and is capable of performing good distortion correction over the entire image, and further transposing the input image, rotating by 90 °, and the like. It is an object of the present invention to provide an image processing device capable of correcting even the above.

【0007】[0007]

【課題を解決するための手段】本発明は、画像処理装置
において、画像内の複数の領域を取り出す領域切り出し
手段と、前記領域切り出し手段により取り出された画像
内の複数の領域から少なくとも第1のマーク、第2のマ
ーク、第3のマークを検出するマーク検出手段と、前記
マーク検出手段により検出されたマークに基づいて画像
を補正する画像補正手段を具備することを特徴とするも
のである。
According to the present invention, in an image processing apparatus, at least a first area extracting means for extracting a plurality of areas in an image and a plurality of areas in the image extracted by the area cutting means are provided. It is characterized by comprising mark detecting means for detecting the mark, the second mark and the third mark, and an image correcting means for correcting an image based on the mark detected by the mark detecting means.

【0008】[0008]

【作用】本発明によれば、マーク検出手段で少なくとも
第1のマーク、第2のマーク、第3のマークの補正用マ
ークを検出し、検出された補正用マークを用いて画像補
正手段において画像を補正するので、一対のマーク間の
関係だけをもとにした場合よりもひずみが少なくなるよ
うに補正できる。また、文書画像中に非線形なひずみが
存在する場合でも、良好な画像の補正を行なうことがで
きる。
According to the present invention, the mark detecting means detects at least the correction marks of the first mark, the second mark, and the third mark, and the detected correction marks are used to form an image in the image correcting means. Is corrected, so that the distortion can be corrected to be smaller than that based on only the relationship between the pair of marks. Further, even if there is a non-linear distortion in the document image, good image correction can be performed.

【0009】[0009]

【実施例】図1は、本発明の画像処理装置の一実施例を
示すブロック図である。図中、1は領域切り出し手段、
2はマーク検出手段、3は画像補正手段である。領域切
り出し手段1は、入力画像から、ひずみ補正用マークが
存在する可能性のある、予め決められた複数の領域を切
り出す。マーク検出手段2では、領域切り出し手段1に
よって切り出された複数の領域の画像から、少なくとも
3つのマークを検出する。画像補正手段3は、マーク検
出手段2で検出されたマークの位置関係や、マークの種
類等の情報をもとに、入力画像に対して補正の処理を行
ない、出力画像を作成する。
1 is a block diagram showing an embodiment of an image processing apparatus of the present invention. In the figure, 1 is a region cutting means,
Reference numeral 2 is a mark detecting means, and 3 is an image correcting means. The area cutout unit 1 cuts out a plurality of predetermined areas in which the distortion correction marks may exist from the input image. The mark detecting means 2 detects at least three marks from the images of the plurality of areas cut out by the area cutting means 1. The image correction unit 3 performs a correction process on the input image based on the positional relationship of the marks detected by the mark detection unit 2 and the information such as the type of the mark to create an output image.

【0010】図2は、読取対象となる原稿上での補正用
マークの位置関係の一例の説明図である。原稿上には、
予め決められた位置に補正用マークが施されている。以
下の説明では、原稿上に4つの補正用マークが存在する
場合を一例として説明する。4つの補正用マークは、異
なる形状を持っているが、その頂点(2辺の接している
点)は長方形をなすような位置関係となるように配置さ
れている。例えば、左上のマークと右上のマークの頂点
のy座標は同じ値を持つ位置に配置されている。また、
左上のマークと左下のマークは同じx座標を持つような
位置に配置されている。4つの補正用マークは、それぞ
れ、付されている原稿上の位置が認識できるように、例
えば、形状を変えている。
FIG. 2 is an explanatory diagram showing an example of the positional relationship of the correction marks on the document to be read. On the manuscript,
Correction marks are provided at predetermined positions. In the following description, the case where four correction marks are present on the document will be described as an example. The four correction marks have different shapes, but their vertices (points at which two sides are in contact) are arranged so as to form a rectangular positional relationship. For example, the y coordinates of the vertices of the upper left mark and the upper right mark are arranged at positions having the same value. Also,
The upper left mark and the lower left mark are arranged at positions having the same x coordinate. Each of the four correction marks has, for example, a different shape so that the position on the original document can be recognized.

【0011】図3は、4つの補正用マークの一例の説明
図である。4つとも形状が異なっている。ここで示す例
では4つとも鈎型の補正用マークである。異なっている
のは、鈎型の辺の長さで、基本の長さをaとした場合、
各マークはaまたはaの2倍の長さの辺からなってい
る。例えば、左上に配置するマークは2辺とも長さaで
あるのに対して、左下のマークは横の辺の長さがaで縦
の辺の長さはaの2倍となっている。
FIG. 3 is an illustration of an example of four correction marks. All four have different shapes. In the example shown here, all four are hook-shaped correction marks. What is different is the side length of the hook shape, and when the basic length is a,
Each mark is composed of a or a side twice as long as a. For example, the mark placed in the upper left has a length a on both sides, while the mark on the lower left has a horizontal side length a and a vertical side length twice a.

【0012】図4は、左上の補正用マークの拡大図であ
る。補正用マークは、2辺(2本の線)からなっている
が、実際には太さがあるため図のように芯となる線の長
さがaであって、マーク自体の1辺の長さはさらに幅の
半分の2倍の長さ、すなわち、幅の長さを加えたものと
なっている。そのため、補正用マークの位置の検出など
の際には、このような線幅による誤差を考慮して、既定
値等を設定する必要がある。
FIG. 4 is an enlarged view of the upper left correction mark. The correction mark is composed of two sides (two lines), but in reality it has a thickness, so the length of the core line is a as shown in the figure, and The length is twice the half of the width, that is, the width is added. Therefore, when detecting the position of the correction mark, it is necessary to set a default value or the like in consideration of such an error due to the line width.

【0013】上述のような補正用マークを用いると、原
稿が90゜回転して読み取られたり、または、上下が逆
に読み取られた場合であっても、それぞれの補正用マー
クの形状を検出することにより、原稿の向きを判断する
ことができる。
When the correction marks as described above are used, the shapes of the respective correction marks can be detected even when the original is read by being rotated by 90 ° or read upside down. As a result, the orientation of the document can be determined.

【0014】上述のような原稿が、例えば、イメージス
キャナで読み取られ、または、ファクシミリで電送され
て、入力画像となる。この入力画像は、一度、ディスク
などの記憶装置に記憶させておき、処理を行なうときに
画像を読み出す構成としてもよい。また、ノイズ除去な
ど、他の処理を行なった後の画像を入力画像とすること
もできる。
The original document as described above is read as an input image by being read by an image scanner or transmitted by a facsimile, for example. The input image may be stored in a storage device such as a disk once, and the image may be read out when processing is performed. Further, the image after other processing such as noise removal may be used as the input image.

【0015】図5は、本発明の画像処理装置の動作の一
例を示すフローチャートである。上述のような補正用マ
ークの付された原稿の画像が入力されると、S11にお
いて、補正用マークの存在する可能性のある候補の領域
を切り出す。次に、S12において、切り出した領域か
ら補正用マークを抽出し、補正用マークの大きさ等から
それぞれの補正用マークの種別を判定するとともに、補
正用マークの頂点の座標を求める。S13では、補正用
マークの大きさ、すなわち、補正用マークの種別から、
原稿画像が正規の方向であるか否かを判別し、例えば、
90゜回転した横向きの画像であったり、上下が逆の画
像であった場合には、画像を回転させて補正する。この
ステップでは、90゜、180゜といった、おおまかな
画像の回転の補正を行なう。S14において、補正用マ
ークの頂点の座標から、原稿の傾きを求め、傾きがあれ
ば回転補正する。さらに、S15において、補正用マー
クの頂点の座標から、原稿の拡大または縮小率を求め、
拡大または縮小の必要な場合には、拡大または縮小補正
を行なう。このS13乃至S15の処理により、入力画
像は補正されることになる。
FIG. 5 is a flow chart showing an example of the operation of the image processing apparatus of the present invention. When the image of the document with the correction mark as described above is input, in S11, a candidate area in which the correction mark may exist is cut out. Next, in S12, the correction marks are extracted from the cut-out area, the type of each correction mark is determined from the size of the correction mark, and the coordinates of the vertices of the correction mark are obtained. In S13, from the size of the correction mark, that is, the type of the correction mark,
It is determined whether the original image is in the normal direction, for example,
If the image is a landscape image rotated 90 ° or the image is upside down, the image is rotated for correction. In this step, rough image rotation corrections such as 90 ° and 180 ° are performed. In S14, the inclination of the document is obtained from the coordinates of the vertices of the correction mark, and if there is inclination, rotation correction is performed. Further, in S15, the enlargement or reduction ratio of the document is obtained from the coordinates of the vertices of the correction mark,
If enlargement or reduction is necessary, enlargement or reduction correction is performed. The input image is corrected by the processing of S13 to S15.

【0016】以下、上述の個々の処理について具体的に
説明する。図6は、領域の切り出しの一例の説明図であ
る。図2に示すような原稿の画像が入力されるとき、入
力画像から補正用マークを包含すると考えられる領域を
候補領域として切り出す。この候補領域は、ひずみのた
め生じる位置ズレを考慮し、また、原稿が横向きであっ
ても、補正用マークが検出できる領域とする必要があ
る。または、画像が所定の向きまたは上下が逆の向きの
ための候補領域と、画像が横向きの時のための候補領域
を設けるように構成することもできる。さらに、原稿画
像の大きさに応じた領域を設定することも可能である。
どの領域に補正用マークが存在するかにより、原稿画像
の向き、大きさを検出することも可能となる。このよう
に、補正用マークの存在する可能性のある領域だけを補
正用マークの検出の対象とすることにより、画像全体を
対象として補正用マークを探索するのに比べ高速に処理
が行なえる。
The individual processes described above will be specifically described below. FIG. 6 is an explanatory diagram of an example of cutting out a region. When an image of a document as shown in FIG. 2 is input, a region considered to include the correction mark is cut out from the input image as a candidate region. This candidate region needs to be a region in which the correction mark can be detected even when the document is laterally oriented, in consideration of the positional deviation caused by the distortion. Alternatively, it is possible to provide a candidate area for the image in a predetermined orientation or an upside down orientation and a candidate area for the image in the horizontal orientation. Further, it is possible to set an area according to the size of the original image.
It is also possible to detect the orientation and size of the original image depending on which area the correction mark exists. As described above, by setting only the area where the correction mark may exist as the detection target of the correction mark, the processing can be performed at a higher speed than searching the correction mark for the entire image.

【0017】図7は、補正用マークを検出する動作の一
例を説明するためのフローチャート、図8は、注目画素
の移動方向の説明図、図9は、輪郭追跡による補正用マ
ークの検出の一例の説明図である。切り出した領域から
補正用マークを検出する方法は様々なものが考えられ
る。1つの方法として、補正用マークを含む最小の矩形
を求めることによりマークの位置、大きさを求める方法
がある。図7は、この処理の流れの一例を示しており、
補正用マークの輪郭を追跡する方法を用いている。この
輪郭追跡の方法は、基本的にチェーンコード符号化で行
なわれているのと同様に、マークの外側の黒画素をたど
って行く方法である。その過程において、x座標,y座
標それぞれの最小値、最大値を更新して行き、最終的に
そのx座標,y座標の最小値、最大値を得て、マークの
位置、大きさを求めている。
FIG. 7 is a flow chart for explaining an example of the operation of detecting the correction mark, FIG. 8 is an explanatory view of the moving direction of the pixel of interest, and FIG. 9 is an example of the detection of the correction mark by contour tracing. FIG. Various methods are conceivable for detecting the correction mark from the cut out region. As one method, there is a method of obtaining the position and size of the mark by obtaining the smallest rectangle including the correction mark. FIG. 7 shows an example of the flow of this processing.
The method of tracking the contour of the correction mark is used. This contour tracking method is basically a method of tracing black pixels outside the mark, as in the case of performing chain code encoding. In the process, the minimum value and the maximum value of each of the x coordinate and the y coordinate are updated, and finally the minimum value and the maximum value of the x coordinate and the y coordinate are obtained to obtain the position and size of the mark. There is.

【0018】まず、S21において、切り出した候補領
域の左上の画素を注目画素とする。そして、S22にお
いて、その画素が黒画素か否かを判定する。白画素のば
あいには、その画素はマーク部分ではないので、S23
において、注目画素を右へずらす。注目画素が右端であ
った場合には、1段下の左端の画素を注目画素とする。
注目画素が黒画素であった場合には、補正用マークの一
部を検出したものとして、S24乃至S27の輪郭追跡
の処理を行なう。
First, in S21, the upper left pixel of the cut out candidate area is set as a target pixel. Then, in S22, it is determined whether or not the pixel is a black pixel. In the case of a white pixel, that pixel is not the mark portion, so S23
At, the pixel of interest is shifted to the right. When the pixel of interest is at the right end, the pixel at the left end one step below is set as the pixel of interest.
If the pixel of interest is a black pixel, it is considered that a part of the correction mark has been detected, and the contour tracking processing of S24 to S27 is performed.

【0019】黒画素が見つかると、S24において、補
正用マークの大きさを検出するための変数を初期化す
る。すなわち、x座標,y座標の最小値,最大値を、注
目画素のx座標,y座標とする。S25において、注目
画素を移動する。このとき、注目画素は常にマークの中
身(黒画素)を右手に見るように移動させて行く。図8
において、中央の丸がついている画素が現在の注目画素
である。1つ前の注目画素は左隣の斜線を施した画素で
あるとする。この場合、次に注目画素とすべき画素の最
初の候補は、1つ前の注目画素から相対的に右回りに見
た最初の画素、つまり番号1がついている画素である。
この画素が黒画素であれば、この画素を次の注目画素と
し、現在の注目画素を1つ前の注目画素とする。黒画素
でなく、白画素であれば、さらに右回り方向の番号2、
番号3、・・・の画素を調べる。番号1乃至番号7の画
素が全て黒画素でないなら、1つ前の注目画素、すなわ
ち、番号8の画素を再び新たな注目画素とする。
When a black pixel is found, in S24, a variable for detecting the size of the correction mark is initialized. That is, the minimum value and the maximum value of the x coordinate and the y coordinate are set as the x coordinate and the y coordinate of the pixel of interest. In S25, the pixel of interest is moved. At this time, the pixel of interest is moved so that the content of the mark (black pixel) is always seen to the right. Figure 8
In, the pixel with the center circle is the current pixel of interest. The preceding pixel of interest is assumed to be the pixel to which the diagonal line on the left is applied. In this case, the first candidate for the pixel to be the next pixel of interest is the first pixel seen clockwise relative to the immediately preceding pixel of interest, that is, the pixel with the number 1.
If this pixel is a black pixel, this pixel is set as the next target pixel, and the current target pixel is set as the previous target pixel. If it is a white pixel instead of a black pixel, the number 2 further in the clockwise direction,
Check the pixels with the numbers 3 ... If all the pixels of No. 1 to No. 7 are not black pixels, the previous pixel of interest, that is, the pixel of No. 8 is set as a new pixel of interest again.

【0020】このような注目画素の移動の処理を行なう
ことにより、補正用マークの輪郭の画素を順時追跡す
る。例えば、図9に示す例において、まず切り出された
領域内を左上から走査して行くと、点Aにおいて初めて
黒画素が見つかる。このA点を出発点として、補正用マ
ークの中側、すなわち、黒画素がある方を常に右手にみ
るように、補正用マークの外縁黒画素を追跡する。図9
中の矢印で示した経路が、この場合の追跡路となる。補
正用マークの周りを1周して再び点Aに戻った時点で補
正用マークの検出ができたことになる。図7のS26で
は、補正用マークの回りを1周したか否かを判定してい
る。もし、もとの点Aに戻っていない場合には、S27
における変数の更新と、S25における注目画素の移動
による追跡を繰り返すことになる。
By carrying out such processing of moving the target pixel, the pixels of the contour of the correction mark are sequentially tracked. For example, in the example shown in FIG. 9, first, when the inside of the cut out region is scanned from the upper left, the black pixel is first found at the point A. Using this point A as a starting point, the black pixels on the outer edge of the correction mark are traced so that the inside of the correction mark, that is, the side with the black pixel is always seen in the right hand. Figure 9
The route indicated by the inner arrow is the tracking route in this case. The correction mark can be detected at the time when the circuit makes one round around the correction mark and returns to the point A again. In S26 of FIG. 7, it is determined whether or not the circuit has made one round around the correction mark. If it has not returned to the original point A, S27
The variable updating in step S25 and the tracking by moving the target pixel in step S25 are repeated.

【0021】黒画素の追跡の途中においては、S27に
おいて、注目画素のx座標、y座標をチェックし、x座
標,y座標の最小値、最大値の変数と比較して、それぞ
れの変数を必要に応じて更新する。例えば、点Aから、
右下の画素に注目画素が移動したとき、x座標の最大値
と、y座標の最大値が更新される。黒画素の追跡の間、
これらの変数の更新を行なって行くことにより、1周の
追跡が終了したときには、図9に示したようなx座標,
y座標の最小値、最大値が求められる。このようにして
求められた矩形の幅、すなわち、x座標の最大値−x座
標の最小値が、補正用マークの横方向の辺の長さにあた
り、矩形の高さ、すなわち、y座標の最大値−y座標の
最小値が、補正用マークの縦方向の辺の長さとなる。
While the black pixel is being traced, in step S27, the x-coordinate and y-coordinate of the pixel of interest are checked and compared with the minimum and maximum values of the x-coordinate and y-coordinate to determine the respective variables. Update accordingly. For example, from point A,
When the pixel of interest moves to the lower right pixel, the maximum value of the x coordinate and the maximum value of the y coordinate are updated. During black pixel tracking,
By updating these variables, when the tracking of one round is completed, the x-coordinate, as shown in FIG.
The minimum value and the maximum value of the y coordinate are obtained. The width of the rectangle thus obtained, that is, the maximum value of the x-coordinates-the minimum value of the x-coordinates corresponds to the lateral length of the correction mark, and the height of the rectangle, that is, the maximum y-coordinate. The minimum value of the value-y coordinate is the length of the vertical side of the correction mark.

【0022】図10は、画像の転置等の検出の一例の説
明図である。上述のようにして検出した補正用マークの
大きさから、原稿の画像が逆さになっていたり、90゜
回転して横向きになっているような場合に、それを認識
し、補正することができる。4つの補正用マークは、図
3に示したように、全て形状が異なっており、2つの方
向の辺の長さが共に同じものはない。そのため、例え
ば、右上の領域を切り出し、補正用マークを抽出すれ
ば、原稿画像の方向を認識することができる。理論的に
は図10(A)に示すように横2a、縦aの長さになる
はずである。実際の入力画像から検出した補正用マーク
が、例えば、図10(C)に示すように、横a、縦2a
の長さであったとすると、これは図10(B)に示した
左下の補正用マークの180゜回転したものを抽出した
ものであることがわかる。この結果、原稿が180゜回
転していることがわかる。または、ある特定の補正用マ
ークがどこの領域に存在するかを検出するように構成す
ることもできる。この認識結果に基づき、画像を補正す
ればよい。補正のための画像回転の手法としては、公知
のものを用いることができる。
FIG. 10 is an explanatory diagram of an example of detection of transposition of images and the like. From the size of the correction mark detected as described above, it is possible to recognize and correct the case where the image of the document is turned upside down or turned 90 degrees to the side. . As shown in FIG. 3, all four correction marks have different shapes, and none of the two correction marks have the same side length. Therefore, for example, if the upper right area is cut out and the correction mark is extracted, the direction of the original image can be recognized. Theoretically, the length should be 2 a in the horizontal direction and a in the vertical direction as shown in FIG. The correction mark detected from the actual input image is, for example, as shown in FIG.
It can be seen that this is an extraction of the 180 ° -rotated lower left correction mark shown in FIG. 10 (B). As a result, it can be seen that the original is rotated 180 °. Alternatively, it may be configured to detect in which region a certain correction mark exists. The image may be corrected based on this recognition result. A known method can be used as an image rotation method for correction.

【0023】以上の処理により、補正用マークが抽出で
き、画像を正規の方向に補正し、さらに、補正のための
基準点、すなわち補正用マークの頂点の座標が得られ
た。次に、これら基準点間の位置関係により、画像の傾
き、伸び縮み等のひずみを補正する。図11は、傾きの
算出の一例の説明図である。画像の傾きは、頂点間の線
分の傾きによって検出できる。画像の左上を原点とし、
右向きをx軸、下向きをy軸とするとき、図11に示す
ように、左上の補正用マークの頂点の座標が(x0,y
0)、右上の補正用マークの頂点の座標が(x1,y
1)であるとすると、傾きは図中のθで表される。y0
とy1が等しく、傾きが全くなければ、θは0となる。
このθは次式で求められる。 θ=arctan((y0−y1)/(x1−x0))
By the above processing, the correction mark can be extracted, the image is corrected in the normal direction, and the reference point for correction, that is, the coordinates of the vertex of the correction mark are obtained. Next, the distortion such as the inclination and the expansion / contraction of the image is corrected by the positional relationship between these reference points. FIG. 11 is an explanatory diagram of an example of calculating the inclination. The inclination of the image can be detected by the inclination of the line segment between the vertices. The upper left of the image is the origin,
When the rightward direction is the x-axis and the downward direction is the y-axis, the coordinates of the vertex of the upper left correction mark are (x0, y
0), and the coordinates of the vertex of the upper right correction mark are (x1, y
If it is 1), the inclination is represented by θ in the figure. y0
And y1 are equal and there is no inclination, θ becomes 0.
This θ is calculated by the following equation. θ = arctan ((y0-y1) / (x1-x0))

【0024】図12は、非線形に歪んだ画像の一例の説
明図である。画像が全体として一様に傾いている場合
は、単純に上述のθを傾きとして補正してやれば良い。
しかし、ファクシミリ等で紙送り部の精度が低いような
機器では、画像全体で一様でない、非線形な傾き方(伸
び/縮み)をしている場合がある。このような場合、図
12に示すように画像内の場所によって傾きが異なって
しまう。そこで、図11に示したような傾きの算出を、
1対の2頂点間だけで求めるのではなく、複数対の2頂
点間で求め、その平均値を画像全体の傾きとして、画像
を補正すればよい。例えば、頂点が4つあるので、6つ
の関係(補正すべき角度)が得られる。これらの平均値
をθとする。傾きを補正するには、画像をθだけ回転し
てやれば良い。画像の回転手法は問わない。
FIG. 12 is an illustration of an example of a non-linearly distorted image. If the image is tilted uniformly as a whole, the above θ may be simply corrected as the tilt.
However, in a device such as a facsimile machine in which the accuracy of the paper feeding unit is low, the image may have a non-linear inclination (expansion / contraction) that is not uniform. In such a case, as shown in FIG. 12, the inclination differs depending on the place in the image. Therefore, the calculation of the inclination as shown in FIG.
The image may be corrected not only between a pair of two vertices, but between a plurality of pairs of two vertices, and the average value thereof is used as the inclination of the entire image. For example, since there are four vertices, six relationships (angles to be corrected) can be obtained. Let θ be the average value of these. To correct the inclination, the image may be rotated by θ. The method of rotating the image does not matter.

【0025】次に、傾き補正を行なった結果に対して伸
び縮み補正を行なう。理論的にわかっている補正用マー
クの頂点間の距離と、実際の画像上の距離を比べ、それ
らが等しくなるように画像を拡大または縮小を行なう。
拡大または縮小が可能な方向、すなわち、伸び縮みの計
測が可能な方向は、補正用マークが配置されている方向
である。上述の例のように、4つの補正用マークが存在
する場合、縦方向、横方向、斜め方向での伸び縮み補正
を行なうことが可能である。しかし、一般的な線形の拡
大または縮小アルゴリズムでは、縦方向または横方向で
の補正を行なうのが普通である。この場合にも、例え
ば、縦方向の伸び縮みを計測する場合でも左側1辺だけ
から求めるのでなく、右側の辺も含めた2辺の平均値に
よって補正を行なうことにより、全体としてのひずみを
より減少させることができる。横方向についても、同様
である。このようにして、入力画像は、補正用マークを
もとに、傾きの補正、拡大又は縮小の補正がなされ、ひ
ずみのない出力画像を得ることができる。
Next, expansion / contraction correction is performed on the result of the inclination correction. The theoretically known distance between the vertices of the correction marks is compared with the actual distance on the image, and the image is enlarged or reduced so that they are equal.
The direction in which enlargement or reduction is possible, that is, the direction in which expansion and contraction can be measured is the direction in which the correction marks are arranged. When there are four correction marks as in the above example, it is possible to perform expansion / contraction correction in the vertical direction, the horizontal direction, and the diagonal direction. However, in a general linear enlargement / reduction algorithm, it is common to perform correction in the vertical direction or the horizontal direction. Also in this case, for example, even when measuring the expansion and contraction in the vertical direction, not only the one side on the left side but also the average value of the two sides including the right side are used to correct the distortion as a whole. Can be reduced. The same applies to the lateral direction. In this way, the input image is corrected for inclination, correction for enlargement or reduction based on the correction mark, and an output image without distortion can be obtained.

【0026】上述の例では、補正用マークとして鈎型の
マークを用いたが、他の形状のマークでもよく、基準点
が抽出できる形状のマークであれば構わない。また、各
補正用マークの間の形状の差異が検出できるものであれ
ば、画像の転置、90゜回転等に対応することも可能で
ある。
In the above example, the hook-shaped mark is used as the correction mark, but the mark may have another shape as long as the reference point can be extracted. Further, as long as the difference in shape between the correction marks can be detected, it is possible to deal with image transposition, 90 ° rotation, and the like.

【0027】上述の例では、補正用マークを4つ配置す
る場合について説明したが、マークの個数は、3つ以上
であればよい。補正用マークが3つであれば、2方向の
補正を行なうことができ、従来のように1方向のみの補
正の場合に比べて、良好な画像の補正を行なうことがで
きる。さらに多数の補正用マークを設けることも可能で
あり、さらに細かな補正を行なうことができる。また、
補正用マークが3つの場合には、画像の転置、90゜回
転などの検出は、補正用マークの存在しない領域の位置
を検出することにより、行なうことが可能である。
In the above example, the case where four correction marks are arranged has been described, but the number of marks may be three or more. If there are three correction marks, it is possible to carry out correction in two directions, and it is possible to carry out good image correction as compared with the conventional case of correction in only one direction. It is also possible to provide a larger number of correction marks, and it is possible to perform finer correction. Also,
When there are three correction marks, transposition of the image, detection of 90 ° rotation, and the like can be performed by detecting the position of the area where the correction mark does not exist.

【0028】上述の例では、画像の拡大または縮小の補
正に関して、線形の補正を用いたが、補正精度を上げる
ために非線形の補正手法を用いることも可能である。た
だし、この場合、処理量は増加する。また、傾きの補正
と拡大,縮小の補正を別々に行なわなくても、アフィン
変換などにより一括して行なうようにしてもよい。また
は、補正用マークの2辺の方向、補正用マーク間の関係
などから、非線形の変換を行なうように構成してもよ
い。補正用マークが多数存在する場合には、3点以上の
マークで囲まれる部分領域毎に、部分領域内の補正と部
分領域の位置補正等を行ない、出力画像を構成すること
も可能である。
In the above-mentioned example, the linear correction is used for the correction of the enlargement or reduction of the image, but it is also possible to use the non-linear correction method to improve the correction accuracy. However, in this case, the processing amount increases. Further, the inclination correction and the enlargement / reduction correction may not be separately performed, but may be collectively performed by affine transformation or the like. Alternatively, the non-linear conversion may be performed based on the directions of the two sides of the correction mark and the relationship between the correction marks. When there are a large number of correction marks, it is also possible to configure the output image by performing the correction within the partial area, the position correction of the partial area, and the like for each partial area surrounded by three or more marks.

【0029】[0029]

【発明の効果】以上の説明から明らかなように、本発明
によれば、あらかじめ原稿中に配置した3個以上のひず
み補正用マークの位置関係により補正を行なうことによ
り、単純な一対のマーク間の関係だけでなく、複数対の
マーク間の関係の平均により画像を補正するので、紙の
伸び縮みや、原稿送り時の誤差等のようなひずみをも補
正することが可能である。また、従来の補正用マークか
ら離れた点でのひずみがかえって大きくなるといった問
題を解決し、画像全体としてひずみが小さくなるように
補正することにより、良好な画像を得ることができると
いう効果がある。さらに、補正用マークの形状をそれぞ
れ異なったものにすることができ、その場合には、画像
入力時の画像の転置等をすみやかに検出することができ
るという効果もある。
As is apparent from the above description, according to the present invention, the correction is performed by the positional relationship of the three or more distortion correction marks arranged in advance in the original, so that a simple pair of marks can be formed. Since the image is corrected not only by the above relationship but also by the average of the relationship between a plurality of pairs of marks, it is possible to correct the expansion and contraction of the paper and the distortion such as an error in feeding the document. Further, there is an effect that a good image can be obtained by solving the problem that the distortion at the point away from the conventional correction mark becomes rather large, and by correcting so that the distortion becomes small as a whole image. . Further, the correction marks can have different shapes, and in this case, the transposition of the image when the image is input can be promptly detected.

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

【図1】 本発明の画像処理装置の一実施例を示すブロ
ック図である。
FIG. 1 is a block diagram showing an embodiment of an image processing apparatus of the present invention.

【図2】 読取対象となる原稿上での補正用マークの位
置関係の一例の説明図である。
FIG. 2 is an explanatory diagram of an example of a positional relationship of correction marks on a document to be read.

【図3】 4つの補正用マークの一例の説明図である。FIG. 3 is an explanatory diagram of an example of four correction marks.

【図4】 左上の補正用マークの拡大図である。FIG. 4 is an enlarged view of an upper left correction mark.

【図5】 本発明の画像処理装置の動作の一例を示すフ
ローチャートである。
FIG. 5 is a flowchart showing an example of the operation of the image processing apparatus of the present invention.

【図6】 領域の切り出しの一例の説明図である。FIG. 6 is an explanatory diagram of an example of cutting out a region.

【図7】 補正用マークを検出する動作の一例を説明す
るためのフローチャートである。
FIG. 7 is a flowchart illustrating an example of an operation of detecting a correction mark.

【図8】 注目画素の移動方向の説明図である。FIG. 8 is an explanatory diagram of a moving direction of a pixel of interest.

【図9】 輪郭追跡による補正用マークの検出の一例の
説明図である。
FIG. 9 is an explanatory diagram of an example of detection of a correction mark by contour tracing.

【図10】 画像の転置等の検出の一例の説明図であ
る。
FIG. 10 is an explanatory diagram of an example of detection of transposition or the like of an image.

【図11】 傾きの算出の一例の説明図である。FIG. 11 is an explanatory diagram of an example of inclination calculation.

【図12】 非線形に歪んだ画像の一例の説明図であ
る。
FIG. 12 is an explanatory diagram of an example of a non-linearly distorted image.

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

1 領域切り出し手段、2 マーク検出手段、3 画像
補正手段。
1 area cutting means, 2 mark detecting means, 3 image correcting means.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 画像内の複数の領域を取り出す領域切り
出し手段と、前記領域切り出し手段により取り出された
画像内の複数の領域から少なくとも第1のマーク、第2
のマーク、第3のマークを検出するマーク検出手段と、
前記マーク検出手段により検出されたマークに基づいて
画像を補正する画像補正手段を具備することを特徴とす
る画像処理装置。
1. An area cutting-out means for taking out a plurality of areas in an image, and at least a first mark and a second mark from the plurality of areas in the image taken out by the area cutting-out means.
Mark detecting means for detecting the second mark and the third mark,
An image processing apparatus comprising image correction means for correcting an image based on the mark detected by the mark detection means.
JP12193493A 1993-04-26 1993-04-26 Image processing device Expired - Fee Related JP3230334B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP12193493A JP3230334B2 (en) 1993-04-26 1993-04-26 Image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP12193493A JP3230334B2 (en) 1993-04-26 1993-04-26 Image processing device

Publications (2)

Publication Number Publication Date
JPH06311333A true JPH06311333A (en) 1994-11-04
JP3230334B2 JP3230334B2 (en) 2001-11-19

Family

ID=14823553

Family Applications (1)

Application Number Title Priority Date Filing Date
JP12193493A Expired - Fee Related JP3230334B2 (en) 1993-04-26 1993-04-26 Image processing device

Country Status (1)

Country Link
JP (1) JP3230334B2 (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006215633A (en) * 2005-02-01 2006-08-17 Nidec Sankyo Corp Information recording medium and information reader
JP2007201632A (en) * 2006-01-24 2007-08-09 Fuji Xerox Co Ltd Image processing unit, image processing method, and program
JP2007201661A (en) * 2006-01-25 2007-08-09 Fuji Xerox Co Ltd Unit and method for processing image, and program
JP2010087852A (en) * 2008-09-30 2010-04-15 Oki Data Corp Image processor
US7891545B2 (en) 2005-01-26 2011-02-22 Nidec Sankyo Corporation Information recording medium and information reading device
JP2011086090A (en) * 2009-10-15 2011-04-28 Konica Minolta Holdings Inc Image conversion method, image converting device, image conversion system, and image conversion program
JP2017138703A (en) * 2016-02-02 2017-08-10 コニカミノルタ株式会社 Character recognition device and program
JP2020154895A (en) * 2019-03-20 2020-09-24 株式会社リコー Information processor, method for processing information, information processing program, and information processing system

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7891545B2 (en) 2005-01-26 2011-02-22 Nidec Sankyo Corporation Information recording medium and information reading device
JP2006215633A (en) * 2005-02-01 2006-08-17 Nidec Sankyo Corp Information recording medium and information reader
JP4534056B2 (en) * 2005-02-01 2010-09-01 日本電産サンキョー株式会社 Information recording medium and information reading apparatus
JP4670657B2 (en) * 2006-01-24 2011-04-13 富士ゼロックス株式会社 Image processing apparatus, image processing method, and program
JP2007201632A (en) * 2006-01-24 2007-08-09 Fuji Xerox Co Ltd Image processing unit, image processing method, and program
US7916893B2 (en) 2006-01-24 2011-03-29 Fuji Xerox Co., Ltd. Image processing apparatus, image processing method, and program
JP2007201661A (en) * 2006-01-25 2007-08-09 Fuji Xerox Co Ltd Unit and method for processing image, and program
JP4670658B2 (en) * 2006-01-25 2011-04-13 富士ゼロックス株式会社 Image processing apparatus, image processing method, and program
JP2010087852A (en) * 2008-09-30 2010-04-15 Oki Data Corp Image processor
US8462396B2 (en) 2008-09-30 2013-06-11 Oki Data Corporation Image processing device and method for rotating a scanned image
JP2011086090A (en) * 2009-10-15 2011-04-28 Konica Minolta Holdings Inc Image conversion method, image converting device, image conversion system, and image conversion program
JP2017138703A (en) * 2016-02-02 2017-08-10 コニカミノルタ株式会社 Character recognition device and program
JP2020154895A (en) * 2019-03-20 2020-09-24 株式会社リコー Information processor, method for processing information, information processing program, and information processing system

Also Published As

Publication number Publication date
JP3230334B2 (en) 2001-11-19

Similar Documents

Publication Publication Date Title
US6111984A (en) Method for matching input image with reference image, apparatus for the same, and storage medium storing program for implementing the method
JP6142882B2 (en) Image forming apparatus
US7969631B2 (en) Image processing apparatus, image processing method and computer readable medium storing image processing program
JP2008147976A (en) Image inclination correction device and image inclination correcting method
JP2004129271A (en) Method for determining skew angle and position for document in overscanned image
JP2007241356A (en) Image processor and image processing program
JP2013186562A (en) Image detection apparatus and method
US7079265B2 (en) Distortion correction device for correcting imaged object to produce plane image without distortion
JP3230334B2 (en) Image processing device
JP2019215659A (en) Image inspection device and image detection method thereof
JPH077616A (en) Inclination detection device
JP6665595B2 (en) Character recognition device, method and program
JPH08320990A (en) Vehicle number reader
JP3582988B2 (en) Non-contact image reader
JP2011175314A (en) Two-dimensional bar code reader, program, two-dimensional bar code, and medium
JP3698867B2 (en) Circular pattern determination method, apparatus and recording medium
JP2009025992A (en) Two-dimensional code
JP2003023530A (en) Image processor
JP3311551B2 (en) Image data input processing method and apparatus
JPH11288453A (en) Method and system for detecting skew angle and black boundary line of original image in scan environment for reproduction
JP4635845B2 (en) OCR device, form-out method, and form-out program
JPH09135331A (en) Image processor
JP4852592B2 (en) Character image correcting apparatus and character image correcting method
JP3756309B2 (en) Character recognition device
JPH0483467A (en) Inclination correcting system for reading image

Legal Events

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

Free format text: PAYMENT UNTIL: 20070914

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20080914

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20090914

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20100914

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees