JP5477541B2 - Image processing apparatus, processing method, and processing program - Google Patents

Image processing apparatus, processing method, and processing program Download PDF

Info

Publication number
JP5477541B2
JP5477541B2 JP2009093220A JP2009093220A JP5477541B2 JP 5477541 B2 JP5477541 B2 JP 5477541B2 JP 2009093220 A JP2009093220 A JP 2009093220A JP 2009093220 A JP2009093220 A JP 2009093220A JP 5477541 B2 JP5477541 B2 JP 5477541B2
Authority
JP
Japan
Prior art keywords
angle
image
points
predetermined number
extraction
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.)
Active
Application number
JP2009093220A
Other languages
Japanese (ja)
Other versions
JP2010244352A (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.)
Murata Machinery Ltd
Original Assignee
Murata Machinery 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 Murata Machinery Ltd filed Critical Murata Machinery Ltd
Priority to JP2009093220A priority Critical patent/JP5477541B2/en
Priority to DE112010001320T priority patent/DE112010001320T5/en
Priority to PCT/JP2010/050876 priority patent/WO2010116774A1/en
Priority to US13/258,553 priority patent/US8682080B2/en
Priority to CN2010800047830A priority patent/CN102282588A/en
Publication of JP2010244352A publication Critical patent/JP2010244352A/en
Application granted granted Critical
Publication of JP5477541B2 publication Critical patent/JP5477541B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Description

この発明は入力画像の傾斜角の検出に関する。   The present invention relates to detection of an inclination angle of an input image.

スキャナで画像を読み取ると、画像が僅かに傾斜した状態で読み取られることがある。これを補正するため、原稿用紙の辺などを検出することが行われている。原稿用紙が方形であれは、辺の向きは主走査方向あるいは副走査方向に平行なはずで、これらの方向からのずれは原稿用紙の傾斜を表している。この手法で傾斜を検出できるのはスキャン時に限られるので、蓄積済みの画像や外部から転送された画像の傾斜は検出できない。また原稿用紙の傾斜を検出するので、切り抜きのように用紙が定型でないものは、傾斜を検出できない。さらにハードカバーの書籍を見開きでスキャンすると、カバーは傾斜していないものの、見開いたページが傾斜していることがある。この場合も、傾斜の検出は難しい。これらの問題を解決するには、原稿用紙の傾斜を検出するのではなく、画像自体の傾斜を検出する必要がある。   When an image is read by a scanner, the image may be read in a slightly inclined state. In order to correct this, the side of the original paper is detected. If the original paper is square, the direction of the side should be parallel to the main scanning direction or the sub-scanning direction, and the deviation from these directions represents the inclination of the original paper. Since the tilt can be detected by this method only at the time of scanning, the tilt of the stored image or the image transferred from the outside cannot be detected. Further, since the inclination of the original paper is detected, the inclination cannot be detected if the paper is not a fixed shape such as a cutout. Furthermore, when scanning a book with a hard cover in a two-page spread, the cover may not be tilted, but the spread page may be tilted. Even in this case, it is difficult to detect the inclination. In order to solve these problems, it is necessary to detect the inclination of the image itself rather than detecting the inclination of the original paper.

ここで関連する先行技術を示すと、特許文献1:JPH10-283476Aは、画像中の直線をハフ変換により検出することを記載している。しかしながら特許文献1は、画像の傾斜自体をハフ変換により検出することを示していない。また発明者の実験によると、画像のハフ変換により得られる投票テーブルで、最大投票数の直線を画像の傾きと平行な直線とすると、画像の実際の傾斜とは大幅に異なることが多かった。   Here, showing related prior art, Patent Document 1: JPH10-283476A describes that a straight line in an image is detected by Hough transform. However, Patent Document 1 does not indicate that the inclination of the image itself is detected by the Hough transform. Further, according to the experiment by the inventors, if the straight line with the maximum number of votes is a straight line parallel to the inclination of the image in the voting table obtained by the Hough transform of the image, the actual inclination of the image is often significantly different.

JPH10-283476AJPH10-283476A

この発明の課題は、画像自体の性質を用いて、画像の傾斜角を正確に検出することにある。   An object of the present invention is to accurately detect the tilt angle of an image using the properties of the image itself.

この発明の画像処理装置は、画像中の点の座標を距離ρと角度θとに変換して、距離ρと角度θとを見出しとする投票テーブルに投票することにより、画像中の直線を抽出するハフ変換部を備えた画像処理装置において、
前記投票テーブルから投票数が上位の所定個数の点を抽出すると共に、
前記所定個数の点の角度θとの整合性が最大となるように抽出用の角度θxを定めて、定めた抽出用の角度θxに基づき、画像の傾斜角を求めるように構成し
さらに前記所定個数の点を抽出する際に、抽出済みの点の投票テーブルでの近傍をマスクし、マスクした範囲内の他の点が投票テーブルから抽出されないように構成したことを特徴とする。
The image processing apparatus according to the present invention extracts a straight line in an image by converting the coordinates of a point in the image into a distance ρ and an angle θ and voting on a voting table having the distance ρ and the angle θ as headings. In an image processing apparatus provided with a Hough conversion unit,
Extracting a predetermined number of points with the highest number of votes from the vote table;
The extraction angle θx is determined so that the consistency with the angle θ of the predetermined number of points is maximized, and the inclination angle of the image is obtained based on the determined extraction angle θx ,
Furthermore, when extracting the predetermined number of points, the neighborhood of the extracted points in the voting table is masked, and other points within the masked range are not extracted from the voting table.

この発明は、画像中の点の座標を距離ρと角度θとに変換して、距離ρと角度θとを見出しとする投票テーブルに投票することにより、画像中の直線を抽出する画像処理方法において、
前記投票テーブルから投票数が上位の所定個数の点を抽出すると共に、抽出済みの点の投票テーブルでの近傍をマスクし、マスクした範囲内の他の点が投票テーブルから抽出されないようにし、
さらに前記所定個数の点の角度θとの整合性が最大となるように抽出用の角度θxを定めて、定めた抽出用の角度θxに基づき、画像の傾斜角を求めることを特徴とする。
The present invention relates to an image processing method for extracting a straight line in an image by converting the coordinates of a point in the image into a distance ρ and an angle θ and voting on a voting table having the distance ρ and the angle θ as headings. In
Extracting a predetermined number of points with the highest number of votes from the voting table, masking the neighborhood of the extracted points in the voting table so that other points in the masked range are not extracted from the voting table,
Further , the extraction angle θx is determined so that the consistency with the angle θ of the predetermined number of points is maximized, and the inclination angle of the image is obtained based on the determined extraction angle θx.

またこの発明の画像処理プログラムでは、情報処理装置に読み込まれて、該情報処理装置に、
画像中の点の座標を距離ρと角度θとに変換して、距離ρと角度θとを見出しとする投票テーブルに投票する機能と、
前記投票テーブルから投票数が上位の所定個数の点を抽出すると共に、抽出済みの点の投票テーブルでの近傍をマスクし、マスクした範囲内の他の点が投票テーブルから抽出されないようにする機能と、
さらに、前記所定個数の点の角度θとの整合性が最大となるように抽出用の角度θxを定めて、定めた抽出用の角度θxに基づき、画像の傾斜角を求める機能とを、実行させる。
In the image processing program of the present invention, the image processing program is read into the information processing apparatus,
A function for converting the coordinates of a point in the image into a distance ρ and an angle θ, and voting on a voting table having the distance ρ and the angle θ as headlines;
A function of extracting a predetermined number of points with the highest number of votes from the voting table, masking the neighborhood of the extracted points in the voting table, and preventing other points within the masked range from being extracted from the voting table When,
Further, the function of determining the angle θx for extraction so that the consistency with the angle θ of the predetermined number of points is maximized, and obtaining the tilt angle of the image based on the determined angle θx for extraction is executed. Let

この明細書において、画像処理装置に関する記載は画像処理方法や画像処理プログラムにもそのまま当てはまり、逆に画像処理方法に関する記載は画像処理装置や画像処理プログラムにもそのまま当てはまる。処理対象の画像は例えばスキャナで読み取った直後の画像であるが、ファクシミリやファイル転送、e-mailなどで受信した画像、あるいはメモリに蓄積済みの画像でも良い。また直線と線分とは同じ意味である。
整合性が最大とは、例えば各点に対して、抽出用の角度θxから許容範囲内に有れば1を、なければ0を割り当て、これらの値の和が最大となることである。ここで割り当てる値を0/1とせずに、抽出用の角度θxからの誤差により値が徐々に変化するようにしても良い。また整合性の重みとして、各点の得票数を用い、抽出用の角度θxから許容範囲内に有る点の得票数の合計を整合性としても良い。
In this specification, the description regarding the image processing apparatus also applies to the image processing method and the image processing program as it is, and the description regarding the image processing method also applies to the image processing apparatus and the image processing program. The processing target image is, for example, an image immediately after being read by a scanner, but may be an image received by facsimile, file transfer, e-mail, or the like, or an image already stored in a memory. A straight line and a line segment have the same meaning.
The maximum consistency is, for example, that 1 is assigned to each point if it is within the allowable range from the extraction angle θx, and 0 if not, and the sum of these values is maximized. Instead of setting the value assigned here to 0/1, the value may gradually change due to an error from the extraction angle θx. Further, the number of votes obtained at each point may be used as the consistency weight, and the total number of votes obtained within the allowable range from the extraction angle θx may be regarded as consistency.

この発明では、画像中の文字がなす行を、ハフ変換では途切れ途切れの直線と見なし得ることに基づき、文字の行や罫線、下線などの向きから傾斜角を決定する。このため、画像自体の性質に基づいて、傾斜角を決定できる。
ハフ変換では、画像中の点の座標(x,y)を ρ=xcosθ+ysinθ として、距離ρと角度θとに変換する。画像中の1点は(ρ、θ)スペースでの複数の点に変換され、変換後の各点毎に、ρとθを見出しとする投票テーブルに投票される。そして投票数の多い点のρとθとが、画像中の直線を表す。しかしながら発明者は、投票数最大の点から画像の傾斜を求めると、行の向きとは大幅に異なる向きの傾斜角がしばしば検出されることを経験した。検出された傾斜角の多くは、画像中に含まれる図形部分あるいは写真部分の直線、手書きの斜線などによるものであった。これに対して、投票数が上位所定個数の点の角度θとの整合性が最大となるように抽出用の角度θxを定め、角度θxに基づいて傾斜角を決定すると、画像中の顕著な複数の直線から傾斜角を決定できるので、より信頼性のある検出ができた。
所定個数の点を抽出する際に、抽出済みの点の投票テーブルでの近傍をマスクし、マスクした範囲内の他の点が投票テーブルから抽出されないようにすると、処理対象の画像の広い範囲から直線を抽出できるので、文字の行で構成される直線や、罫線、下線などを抽出できる機会が増す。
In the present invention, the inclination angle is determined from the direction of the line of the character, the ruled line, the underline, and the like based on the fact that the line formed by the character in the image can be regarded as an unbroken line in the Hough transform. Therefore, the tilt angle can be determined based on the nature of the image itself.
In the Hough transform, the coordinates (x, y) of the points in the image are converted into a distance ρ and an angle θ, with ρ = x cos θ + y sin θ. One point in the image is converted into a plurality of points in the (ρ, θ) space, and each converted point is voted on a voting table having ρ and θ as headings. Then, ρ and θ at points with a large number of votes represent straight lines in the image. However, the inventor has experienced that when the inclination of an image is determined from the point with the largest number of votes, an inclination angle with a direction significantly different from the direction of the row is often detected. Many of the detected tilt angles are due to straight lines of graphic parts or photographic parts included in the image, handwritten diagonal lines, and the like. On the other hand, if the extraction angle θx is determined so that the consistency with the angle θ of the upper predetermined number of points is maximized, and the inclination angle is determined based on the angle θx, the conspicuousness in the image is obtained. Since the inclination angle can be determined from a plurality of straight lines, more reliable detection was possible.
When extracting a predetermined number of points, the neighborhood of the extracted points in the voting table is masked so that other points in the masked range are not extracted from the voting table. Since straight lines can be extracted, the chances of extracting straight lines composed of character lines, ruled lines, underlines, etc. are increased.

好ましくは、前記所定個数の点の内で、前記抽出用の角度θxから許容範囲内に角度θが含まれる点に対する、角度θの平均により、画像の傾斜角を定める。
このようにすると、許容範囲内の点のデータの平均により傾斜角を決定できるので、信頼性のある検出ができる。
また好ましくは、前記所定個数の点の内で、前記抽出用の角度θxから許容範囲内に角度θが含まれる点に対する、角度θの投票数に応じた重みを反映させた平均により、画像の傾斜角を定める。投票数に応じた重みを反映させた平均とは、例えば投票数を重みとする加重平均、投票数のルートあるいは2乗などを重みとする加重平均、などである。
このようにすると、投票数の多い点を適切に重視しながら、傾斜角を決定できる。
Preferably, the inclination angle of the image is determined by averaging the angles θ with respect to the points within the predetermined number of points that include the angle θ within the allowable range from the extraction angle θx.
In this way, since the inclination angle can be determined by the average of the data of points within the allowable range, reliable detection can be performed.
Further, preferably, the average of the image is reflected by an average reflecting a weight corresponding to the number of votes of the angle θ with respect to a point that includes the angle θ within an allowable range from the angle θx for extraction among the predetermined number of points. Determine the angle of inclination. The average reflecting the weight according to the number of votes is, for example, a weighted average based on the number of votes, a weighted average based on the root or the square of the number of votes, and the like.
In this way, it is possible to determine the tilt angle while appropriately emphasizing points with a large number of votes.

さらにこの発明の画像処理装置は、画像中の点の座標を距離ρと角度θとに変換して、距離ρと角度θとを見出しとする投票テーブルに投票することにより、画像中の直線を抽出するハフ変換部を備えた画像処理装置において、
前記投票テーブルから投票数が上位の所定個数の点を抽出すると共に、
前記所定個数の点の角度θとの整合性が最大となるように抽出用の角度θxを定めて、定めた抽出用の角度θxに基づき、画像の傾斜角を求めるように構成し、
さらに前記所定個数の点の内で、前記抽出用の角度θxから許容範囲内に角度θが含まれる点の数と、前記所定個数との割合が所定値未満の場合、画像の傾斜角を検出しないように構成したことを特徴とする。
またこの発明は、上記の画像処理装置に対応する画像処理方法と、上記の画像処理装置に対応する画像処理プログラムとにある。
抽出用の角度θxから許容範囲の角度内に僅かな数の点しか含まれないことは、抽出した点の角度の分布が広く、信頼性が低いことを意味する。そこでこのような場合に、傾斜角の検出を打ち切ることにより、信頼性の低い検出を避けることができる。
Furthermore, the image processing apparatus according to the present invention converts the coordinates of the points in the image into a distance ρ and an angle θ, and votes on a voting table having the distance ρ and the angle θ as headlines, thereby obtaining a straight line in the image. In an image processing apparatus including a Hough conversion unit for extraction,
Extracting a predetermined number of points with the highest number of votes from the vote table;
The extraction angle θx is determined so that the consistency with the angle θ of the predetermined number of points is maximized, and the inclination angle of the image is obtained based on the determined extraction angle θx,
Furthermore, when the ratio between the number of points within the allowable range from the extraction angle θx within the predetermined number of points and the predetermined number is less than a predetermined value, the inclination angle of the image is detected. It is characterized by not being configured.
The present invention also resides in an image processing method corresponding to the image processing apparatus and an image processing program corresponding to the image processing apparatus.
The fact that only a small number of points are included within the allowable angle from the extraction angle θx means that the angle distribution of the extracted points is wide and the reliability is low. Therefore, in such a case, detection with low reliability can be avoided by terminating the detection of the tilt angle.

この発明の画像処理装置は、画像中の点の座標を距離ρと角度θとに変換して、距離ρと角度θとを見出しとする投票テーブルに投票することにより、画像中の直線を抽出するハフ変換部を備えた画像処理装置において、  The image processing apparatus according to the present invention extracts a straight line in an image by converting the coordinates of a point in the image into a distance ρ and an angle θ and voting on a voting table having the distance ρ and the angle θ as headings. In an image processing apparatus provided with a Hough conversion unit,
前記投票テーブルから投票数が上位の所定個数の点を抽出すると共に、  Extracting a predetermined number of points with the highest number of votes from the vote table;
前記所定個数の点の角度θとの整合性が最大となるように抽出用の角度θxを定めて、定めた抽出用の角度θxに基づき、画像の傾斜角を求めるように構成し  The extraction angle θx is determined so that the consistency with the angle θ of the predetermined number of points is maximized, and the inclination angle of the image is obtained based on the determined extraction angle θx.
さらに前記所定個数の点が、最上位の投票数の点との投票数の割合が許容値未満の点を含む場合、画像の傾斜角を検出しないように構成したことを特徴とする。  Further, when the predetermined number of points includes a point where the ratio of the number of votes with the highest number of votes is less than an allowable value, the inclination angle of the image is not detected.
またこの発明は、上記の画像処理装置に対応する画像処理方法と、上記の画像処理装置に対応する画像処理プログラムとにある。The present invention also resides in an image processing method corresponding to the image processing apparatus and an image processing program corresponding to the image processing apparatus.
画像中の文字の行あるいは罫線などを直線として検出する場合、上位所定個数の点に対する投票数に大差はないはずである。それにもかかわらず、最上位の投票数の点との投票数の割合が許容値未満の点を含む場合、画像中の図形部分あるいは写真部分に含まれる長い直線を検出している可能性が高い。そこでこのような場合に、傾斜角の検出を打ち切ることにより、信頼性の低い検出を避けることができる。  When a line of characters or a ruled line in an image is detected as a straight line, there should be no significant difference in the number of votes for a predetermined number of points. Nevertheless, if the ratio of the vote count to the highest-ranked vote point includes a point that is less than the allowable value, it is highly likely that a long straight line included in the graphic part or photo part in the image is detected. . Therefore, in such a case, detection with low reliability can be avoided by terminating the detection of the tilt angle.

実施例の複合機のブロック図Block diagram of the MFP of the embodiment 実施例での前処理部のブロック図Block diagram of the pre-processing unit in the embodiment 実施例での前処理アルゴリズムを示す図The figure which shows the pre-processing algorithm in an Example 実施例でのハフ変換部〜画像回転部のブロック図Block diagram of Hough transform unit to image rotation unit in the embodiment 実施例での投票テーブルを模式的に示す図The figure which shows typically the voting table in an Example. 実施例での傾斜角の決定アルゴリズムを示す図The figure which shows the determination algorithm of the inclination-angle in an Example 実施例での傾斜角の決定原理を示す図The figure which shows the determination principle of the inclination angle in an Example 入力画像を直接二値化した例を示す図The figure which shows the example which binarized the input image directly 実施例での入力画像の縮小画像を示す図The figure which shows the reduced image of the input image in an Example 実施例で、縮小画像からノイズを除去した画像を示す図The figure which shows the image which removed the noise from the reduction image in an Example. 実施例で、ノイズの除去後の画像から抽出したエッジを示す図The figure which shows the edge extracted from the image after a noise removal in an Example. 実施例で用いた、エッジ抽出フィルタを示す図The figure which shows the edge extraction filter which was used in the execution example 実施例で、エッジの画像を二値化した画像を示す図The figure which shows the image which binarized the image of an edge in an Example 実施例で、二値化画像から孤立点を除いた画像を示す図The figure which shows the image which removed the isolated point from the binarized image in an Example. 実施例で、孤立点を除いた後に、縮退処理を施した画像を示す図The figure which shows the image which performed the reduction process after removing an isolated point in an Example. 偽の最大投票線を示す図Illustration showing fake maximum voting line 投票テーブルでの近傍点が有効線として複数選択される状況を示す図The figure which shows the condition where two or more neighborhood points in a voting table are selected as an effective line 実施例で、抽出済みの有効線の近傍をマスクした際の、有効線の抽出状況を示す図で、明度は投票テーブルでの投票数を示すIn an Example, it is a figure which shows the extraction condition of an effective line when masking the vicinity of the extracted effective line, and the lightness shows the number of votes in a voting table 実施例での抽出した有効線を模式的に示す図The figure which shows typically the extracted effective line in an Example 実施例での傾斜角の決定手法を模式的に示す図The figure which shows typically the determination method of the inclination-angle in an Example 実施例で、傾斜角の候補を抽出する際の整合性の評価関数を模式的に示す図The figure which shows typically the evaluation function of the consistency at the time of extracting the candidate of an inclination angle in an Example.

以下に本発明を実施するための最適実施例を示す。   In the following, an optimum embodiment for carrying out the present invention will be shown.

図1〜図21に、複合機2を例に実施例を示す。4はLANで、6はパーソナルコンピュータで、情報処理装置の例であり、8はルータで、インターネット10と複合機2やパーソナルコンピュータ6を接続する。実施例での傾斜角の検出や補正は複合機2で行うが、パーソナルコンピュータ6などで行っても良く、例えば、複合機2のスキャナ20で読み取った画像をパーソナルコンピュータ6へ転送して、パーソナルコンピュータ6で傾斜角を検出して補正しても良い。   1 to 21 show an embodiment of the multifunction machine 2 as an example. Reference numeral 4 denotes a LAN, 6 denotes a personal computer, which is an example of an information processing apparatus, and 8 denotes a router, which connects the Internet 10 to the MFP 2 and the personal computer 6. The detection and correction of the tilt angle in the embodiment is performed by the multi-function device 2, but may be performed by the personal computer 6 or the like. For example, an image read by the scanner 20 of the multi-function device 2 is transferred to the personal computer 6 and personal The computer 6 may detect and correct the tilt angle.

複合機2の構造を説明する。12はLANインターフェースで、14はバス、16は画像メモリで、ページメモリとして画像データを記憶する。メモリ18は汎用のメモリで、プログラムや中間的なデータなどを記憶する。スキャナ20は、原稿用紙から画像を、モノクロのグレイスケールあるいはフルカラーで読み取り、プリンタ22は画像をプリントし、G3ファクシミリ部24は画像のG3ファクシミリ送信と受信とを行う。e-mail部26は、e-mailの添付ファイルとして画像の送受信を行い、ネットワークサーバ部28は、文書管理サーバやリモートプリンタなどとして複合機2を動作させる。ユーザインターフェース30はユーザのマニュアル入力などを受け付け、画像処理部32は種々の画像処理を行う。   The structure of the multifunction device 2 will be described. 12 is a LAN interface, 14 is a bus, 16 is an image memory, and stores image data as a page memory. The memory 18 is a general-purpose memory and stores programs, intermediate data, and the like. The scanner 20 reads an image from original paper in monochrome gray scale or full color, the printer 22 prints the image, and the G3 facsimile unit 24 performs G3 facsimile transmission and reception of the image. The e-mail unit 26 transmits and receives an image as an e-mail attachment file, and the network server unit 28 operates the multi-function device 2 as a document management server, a remote printer, or the like. The user interface 30 accepts user manual input and the like, and the image processing unit 32 performs various image processing.

スキャンした画像あるいは受信画像もしくは蓄積済みの画像の傾斜角を検出するため、前処理部40とハフ変換部50並びに傾斜角検出部60を設ける。そして検出した傾斜角と反対向きに同じ角度だけ、画像回転部70で画像を回転させ、傾斜を補正する。   In order to detect the tilt angle of the scanned image, the received image, or the accumulated image, a pre-processing unit 40, a Hough transform unit 50, and a tilt angle detection unit 60 are provided. Then, the image is rotated by the image rotation unit 70 by the same angle opposite to the detected inclination angle, and the inclination is corrected.

図2に前処理部40の構成を示す。画像メモリ16から画像データが縮小処理部41へ入力され、画像の解像度を1/n(nは2以上の自然数で、好ましくは4〜8,特に4〜6)に縮小する。これによって画像データの量は1/n2に減少し、縮小は例えばn×n画素のブロック毎に、画素の値の平均値を求めればよい。またより単純に、縮小処理部41では、n×n画素のブロックの内の代表点、例えばブロックの左上の頂点の、1画素のデータをそのまま出力しても良い。このためハフ変換は、n2倍高速になる。 FIG. 2 shows the configuration of the preprocessing unit 40. Image data is input from the image memory 16 to the reduction processing unit 41, and the resolution of the image is reduced to 1 / n (n is a natural number of 2 or more, preferably 4 to 8, particularly 4 to 6). As a result, the amount of image data is reduced to 1 / n 2. For reduction, for example, an average value of pixel values may be obtained for each block of n × n pixels. Further, more simply, the reduction processing unit 41 may output the data of one pixel of the representative point in the block of n × n pixels, for example, the upper left vertex of the block as it is. For this reason, the Hough transform is n 2 times faster.

同じ画像データで、データの内容と解像度は一定でも、縮小処理部41での縮小率が異なると、傾斜角の検出結果が異なることがあった。これに対して同じ原稿を400dpi,600dpi,800dpiなどの異なる解像度で読み取り、これを一定の解像度、例えば100dpiへ縮小すると、傾斜角の検出結果は共通であった。そこでスキャン時の解像度によらず、縮小処理部41で一定の解像度まで解像度を低下させると、解像度の違いによる傾斜角の検出値の差を解消できる。   Even if the content and resolution of the data are the same for the same image data, if the reduction rate in the reduction processing unit 41 is different, the detection result of the tilt angle may be different. On the other hand, when the same document is read at different resolutions such as 400 dpi, 600 dpi, and 800 dpi, and reduced to a certain resolution, for example, 100 dpi, the detection result of the tilt angle is common. Therefore, regardless of the resolution at the time of scanning, if the resolution is reduced to a certain resolution by the reduction processing unit 41, the difference in the detected value of the tilt angle due to the difference in resolution can be eliminated.

複合機2でスキャンした画像以外でも、ファクシミリの受信データなどのように、スキャン時の解像度が既知の場合、同様に一定の解像度に画像を縮小する。スキャン時の解像度は、通信のプロトコルあるいは画像ファイルのヘッダなどから判明することが多い。このため、スキャン時の解像度が異なれば縮小率は異なり、縮小画像の解像度を一定にする。なおjpeg画像のようにヘッダに解像度が記載されていない場合、1/4あるいは1/8などの一定の縮小率で、画像を縮小する。   If the resolution at the time of scanning is known, such as received data of a facsimile, other than the image scanned by the multifunction device 2, the image is similarly reduced to a constant resolution. The scanning resolution is often determined from the communication protocol or the header of the image file. For this reason, if the resolution at the time of scanning is different, the reduction rate is different, and the resolution of the reduced image is made constant. When the resolution is not described in the header as in the case of a jpeg image, the image is reduced at a constant reduction rate such as 1/4 or 1/8.

スムージング部42は、平滑化フィルタなどにより縮小画像からノイズを除去し、これによって画像中のランダムなデータをハフ変換によって直線として抽出しないようにする。次にエッジ抽出部43は、スムージング済みの画像から、ラプラシアンフィルタあるいはソーベルフィルタなどのエッジ抽出用フィルタにより、エッジを抽出する。これによって地色の影響が解消し、また白抜きの文字などでも、文字の輪郭に対応するエッジを抽出できる。さらにエッジの抽出により画像のデータ量が小さくなり、ハフ変換が容易になる。   The smoothing unit 42 removes noise from the reduced image using a smoothing filter or the like, thereby preventing random data in the image from being extracted as a straight line by Hough transform. Next, the edge extraction unit 43 extracts edges from the smoothed image using an edge extraction filter such as a Laplacian filter or a Sobel filter. As a result, the influence of the ground color is eliminated, and an edge corresponding to the outline of the character can be extracted even with a white character. Furthermore, the extraction of edges reduces the amount of image data and facilitates Hough transform.

二値化部44は抽出したエッジを二値化する。二値化の閾値は、一定でも良く、あるいは抽出したエッジでの明度もしくはカラー値の分布などから定めても良い。さらに全てのエッジを二値化する必要があるのではなく、例えば画像中の文字部分と、写真部分及び図形部分を判別できる場合、文字部分のみを二値化することが好ましい。   The binarization unit 44 binarizes the extracted edge. The binarization threshold value may be constant, or may be determined from the brightness at the extracted edge or the distribution of color values. Furthermore, it is not necessary to binarize all edges. For example, when a character part, an image part, and a graphic part in an image can be discriminated, it is preferable to binarize only the character part.

扱う画像データは実施例ではモノクロのグレイスケール画像とするが、RGB画像などでもよい。この場合、RGBデータを、明度画像に変換して傾斜角を検出してもよく、またR,G,Bの各成分毎に傾斜角を検出し、その平均値などを用いてもよい。   The image data to be handled is a monochrome gray scale image in the embodiment, but may be an RGB image or the like. In this case, the RGB data may be converted into a brightness image to detect the inclination angle, or the inclination angle may be detected for each of R, G, and B components, and the average value thereof may be used.

孤立点除去部45は二値化画像から孤立点を除去し、二値化前のエッジ画像に対して孤立点を除去しても良い。孤立点の除去によりデータ量が減り、かつ偽の傾斜角を検出する確率が減少する。なお孤立点は写真画像中に特に多く、画像本来の傾きとは無関係なデータである。   The isolated point removing unit 45 may remove isolated points from the binarized image and remove isolated points from the edge image before binarization. Removal of isolated points reduces the amount of data and reduces the probability of detecting false tilt angles. It should be noted that isolated points are particularly many in a photographic image and are data unrelated to the original inclination of the image.

縮退処理部46は、孤立点を除去した後の二値化画像に対し、縮退処理を行う。ここに縮退処理とは、上下,左右,斜めなどの方向に有効画素が連続して並んでいる場合に、有効画素をカットする処理のことである。なお有効画素とは二値化画像においてデータのある画素をいい、白であるか黒であるかは問題にしない。縮退処理により線分は例えば1点となる。円や方形、及び十字も1点となる。この結果、画像中の図形部分及び写真部分の斜線は、例えば1点に縮小される。これに対して、文字も縮退によって小さなデータになるが、文字の行がなす直線は失われない。縮退は罫線及び下線を1点に単純化するので、罫線及び下線を傾斜角検出に用いる場合には、縮退処理部46は設けなくても良い。   The reduction processing unit 46 performs a reduction process on the binarized image after the isolated points are removed. Here, the degeneracy process is a process of cutting the effective pixels when the effective pixels are continuously arranged in the vertical and horizontal directions and the diagonal direction. The effective pixel means a pixel with data in the binarized image, and it does not matter whether it is white or black. The line segment becomes, for example, one point by the reduction process. Circles, squares, and crosses are also one point. As a result, the diagonal lines of the graphic part and the photographic part in the image are reduced to, for example, one point. On the other hand, the character also becomes small data by degeneration, but the straight line formed by the character line is not lost. Since the reduction simplifies the ruled line and the underline to one point, the reduction processing unit 46 may not be provided when the ruled line and the underline are used for the inclination angle detection.

図3は前処理部40の制御アルゴリズムを示し、このアルゴリズムに従ってパーソナルコンピュータ6を動作させると、この発明を実施できる。ステップ1でスキャナ20により画像を読み取り、ステップ2で一定の解像度へ画像を縮小し、これによってハフ変換の処理速度をn2倍に向上させる。ステップ3でスムージングによりノイズを減らし、ステップ4でエッジを抽出して地色の影響などを除き、また白抜き文字なども検出できるようにする。そしてステップ5で二値化し、ステップ6で孤立点を除く。これによって、写真画像中などの孤立点の、傾斜角の検出への影響を小さくできる。なお孤立点の除去は二値化の前に行っても良い。そして好ましくはステップ7で縮退処理によりデータを単純化し、特に写真部分や図形部分の直線を例えば1点まで単純化する。 FIG. 3 shows a control algorithm of the pre-processing unit 40. When the personal computer 6 is operated according to this algorithm, the present invention can be implemented. In step 1, the image is read by the scanner 20, and in step 2, the image is reduced to a fixed resolution, thereby improving the processing speed of the Hough transform by n 2 times. In step 3, noise is reduced by smoothing, and in step 4, edges are extracted to remove the influence of the ground color, etc., and white characters and the like can be detected. Then, binarization is performed in step 5, and isolated points are removed in step 6. This can reduce the influence of an isolated point such as a photographic image on the detection of the tilt angle. The removal of isolated points may be performed before binarization. Preferably, in step 7, the data is simplified by a reduction process, and in particular, a straight line of a photograph part or a graphic part is simplified to, for example, one point.

ステップ2〜ステップ7の前処理は、画像のスキャンと同期して行い、またハフ変換部50でのハフ変換、傾斜角検出部60での傾斜角の検出、画像回転部70での傾斜角の補正も、スキャンと同期して行えるようにする。ここに同期とは、これらの処理速度がスキャナ20の読み込み速度以上であることを意味し、このようにすると画像のスキャンと同時にリアルタイムに画像の傾斜を補正できる。   The preprocessing of Step 2 to Step 7 is performed in synchronization with image scanning, and the Hough conversion in the Hough conversion unit 50, the detection of the inclination angle in the inclination angle detection unit 60, and the inclination angle in the image rotation unit 70 are performed. Corrections can be made in synchronization with the scan. Here, “synchronization” means that these processing speeds are equal to or higher than the reading speed of the scanner 20, and in this way, the inclination of the image can be corrected in real time simultaneously with the scanning of the image.

図4はハフ変換部50〜画像回転部70の構造を示し、ハフ変換部50は例えば16個〜32個の実行ユニット51を備えて、ハフ変換を並列に実行する。実行ユニット51はρ値計算部52とsinやcosに対するテーブル53とから成る。32個のテーブル53で、0°〜180°をカバーできるように、1個のテーブル53が記憶する角度の範囲は例えば5.625°(180/32)で、角度の刻みは例えば0.176°(180°/1024)などである。ρ値計算部52はテーブル53からsinθやcosθの値を読み出し、縮退処理部46もしくは孤立点除去部45から出力された有効画素の位置(x,y)に対し、ρ値を ρ=xcosθ+ysinθ として計算する。投票テーブル54はθとρの2次元のテーブルで、管理部55は複数の実行ユニット51を管理する。   FIG. 4 shows the structure of the Hough transform unit 50 to the image rotation unit 70. The Hough transform unit 50 includes, for example, 16 to 32 execution units 51, and executes the Hough transform in parallel. The execution unit 51 includes a ρ value calculation unit 52 and a table 53 for sin and cos. The range of angles stored in one table 53 is, for example, 5.625 ° (180/32) so that 32 tables 53 can cover 0 ° to 180 °, and the angle increment is, for example, 0.176. ° (180 ° / 1024). The ρ value calculation unit 52 reads the values of sin θ and cos θ from the table 53, and sets the ρ value to ρ = x cos θ + y sin θ for the effective pixel position (x, y) output from the degeneration processing unit 46 or the isolated point removal unit 45. calculate. The voting table 54 is a two-dimensional table of θ and ρ, and the management unit 55 manages a plurality of execution units 51.

図5に、ρ値計算部52と投票テーブル54との関係を示す。テーブル54の各点はρとθとの組み合わせを示し、これは線分を表している。仮にρとθとがそれぞれ1024レベルに分割されているものとし、x,yの値が入力されると、θ毎にρの値を計算し、表の該当する位置のデータを1加算する。なおθは180°の範囲を例えば256〜4096レベル、好ましくは1024〜2048レベルに分解し、傾斜角を0.05°〜0.3°、好ましくは0.1°〜0.2°程度の精度で検出できるようにする。またρの分解能は、θの分解能よりも低くても良い。実行ユニット51は例えば32ユニット有り、各ρ値計算部52は32レベル(1024/32)分のθを担当する。その結果、例えば左から3つめのカラムに○で示すように、(ρ,θ)値が投票される。また57はマスクで、テーブル54から有効線(抽出する直線)として抽出済みの点の周囲をマスクし、マスク57の外部から次の有効線が抽出されるようにする。   FIG. 5 shows the relationship between the ρ value calculation unit 52 and the voting table 54. Each point in the table 54 represents a combination of ρ and θ, which represents a line segment. Assume that ρ and θ are each divided into 1024 levels, and when x and y values are input, the value of ρ is calculated for each θ and 1 is added to the data at the corresponding position in the table. In addition, θ decomposes the range of 180 ° into, for example, 256 to 4096 level, preferably 1024 to 2048 level, and the inclination angle is about 0.05 ° to 0.3 °, preferably about 0.1 ° to 0.2 °. Make detection with accuracy. Further, the resolution of ρ may be lower than the resolution of θ. The execution unit 51 has, for example, 32 units, and each ρ value calculation unit 52 takes charge of θ for 32 levels (1024/32). As a result, for example, the (ρ, θ) value is voted as indicated by a circle in the third column from the left. Reference numeral 57 denotes a mask, which masks the periphery of a point already extracted as an effective line (extracted straight line) from the table 54 so that the next effective line is extracted from the outside of the mask 57.

図4に戻り、有効線抽出部61は投票テーブル54から例えば上位m位の点を抽出する。投票テーブル54で投票数の多い点は、画像での有効線である可能性が高い。そして抽出済みの点の周囲にマスク57を施し、マスク57内からの他の点が抽出されないようにする。候補角抽出部62は、抽出した有効線から傾斜角の候補(k個で例えばm/2個以上)を抽出し、決定部63はこれらの候補角に基づいて傾斜角θdを決定する。決定した傾斜角θdを座標計算部71へ入力し、画像メモリ16の記憶画像の各画素に対し、傾斜補正後の座標(アドレス)を計算する。アドレス生成部72は、傾斜補正前の座標に基づいて、画像メモリ16への読み出しアドレスを生成する。bicubic処理部73は読み出したデータを補間し、傾斜補正後の座標に基づいて、補間後のデータを画像メモリ16へ書き戻す。これらの処理によって、画像メモリ16の画像は、傾斜を補正するように回転する。なお回転には単純なアフィン変換などを用いてもよい。   Returning to FIG. 4, the effective line extraction unit 61 extracts, for example, the upper m-th point from the voting table 54. A point with a large number of votes in the voting table 54 is likely to be an effective line in the image. Then, a mask 57 is applied around the extracted points so that other points are not extracted from the mask 57. The candidate angle extraction unit 62 extracts inclination angle candidates (k, for example, m / 2 or more) from the extracted effective lines, and the determination unit 63 determines the inclination angle θd based on these candidate angles. The determined inclination angle θd is input to the coordinate calculation unit 71, and the coordinates (address) after inclination correction are calculated for each pixel of the image stored in the image memory 16. The address generation unit 72 generates a read address to the image memory 16 based on the coordinates before tilt correction. The bicubic processing unit 73 interpolates the read data, and writes the interpolated data back to the image memory 16 based on the coordinates after the inclination correction. By these processes, the image in the image memory 16 is rotated so as to correct the inclination. A simple affine transformation or the like may be used for the rotation.

図6に傾斜角検出部60のアルゴリズムを示し、投票テーブルから上位m位、例えば16位あるいは8位の(ρ,θ)からなる点を抽出する(ステップ11)。そして抽出済みの点の近傍、例えば1辺が5〜40レベルの正方形からなる近傍をマスクし(ステップ12)、同じ近傍内から2点以上が抽出されないようにする。なお最大投票数の1/2以上の投票数のある(ρ,θ)のみを抽出する。従ってm位目の点の投票数が最大投票数の1/2未満の場合はエラーとし、傾斜角の検出を行わず、画像回転部70は画像を回転させない(ステップ13)。ステップ12,13はステップ11を実行するための補助的な処理である。このようにして、他の点の近傍に入らず、かつ最大投票数の1/2以上の点をm個抽出する。1/2以上は例であり、例えば2/3以上あるいは0.4以上などとしても良い。ステップ11〜13が、有効線抽出部61の処理に対応する。   FIG. 6 shows an algorithm of the tilt angle detection unit 60, and points from the voting table consisting of the upper m-th place, for example, the 16th or eighth place (ρ, θ) are extracted (step 11). Then, the vicinity of the extracted points, for example, the vicinity of a square having 5 to 40 levels on one side is masked (step 12), so that two or more points are not extracted from the same vicinity. It should be noted that only (ρ, θ) having a vote count of ½ or more of the maximum vote count is extracted. Therefore, if the number of votes at the mth point is less than ½ of the maximum number of votes, an error is detected, the inclination angle is not detected, and the image rotation unit 70 does not rotate the image (step 13). Steps 12 and 13 are auxiliary processes for executing Step 11. In this way, m points that are not in the vicinity of other points and that are 1/2 or more of the maximum number of votes are extracted. 1/2 or more is an example. For example, it may be 2/3 or more or 0.4 or more. Steps 11 to 13 correspond to the processing of the effective line extraction unit 61.

次に傾斜角の候補を求めるための角度をθxとし、その直交角をφxとする。ここに φxは正または0で、かつ φx=θx+π/2 もしくは φx=θx−π/2 である。δを許容範囲とし、例えばδは1°あるいは0.5°などであり、θx±δ及びφx±δの範囲に入る点(ρ,θ)の個数が最大となるように、θxを決定する。そしてθx±δ及びφx±δの範囲に入る点を出力する(ステップ14)。言い換えると、m個の点に対し、角度θ成分が±δの範囲で一致する点の数が最大となる角度をθxとする。なお単純にθ成分が±δの範囲で一致する点の数を問題とする代わりに、θx±δ及びφx±δの範囲に入る点に対する、投票数の和が最大となるようにしても良い。そしてこれらの点の数kが閾値未満の場合、例えばm/2未満もしくはm/3未満の場合、ステップ15でエラーとする。エラーの場合、傾斜角の検出を行わず、画像回転部70は画像を回転させない。ステップ14,15が、候補角抽出部62の処理に対応する。   Next, an angle for obtaining a tilt angle candidate is θx, and its orthogonal angle is φx. Here, φx is positive or 0, and φx = θx + π / 2 or φx = θx−π / 2. For example, δ is 1 ° or 0.5 °, and θx is determined so that the number of points (ρ, θ) within the range of θx ± δ and φx ± δ is maximized. . Then, points that fall within the ranges of θx ± δ and φx ± δ are output (step 14). In other words, the angle at which the number of points having the same angle θ component in the range of ± δ is the maximum for m points is defined as θx. Instead of simply considering the number of points where the θ components coincide within the range of ± δ, the sum of the votes may be maximized for the points falling within the range of θx ± δ and φx ± δ. . If the number k of these points is less than the threshold, for example, less than m / 2 or less than m / 3, an error is determined in step 15. In the case of an error, the inclination angle is not detected, and the image rotation unit 70 does not rotate the image. Steps 14 and 15 correspond to the processing of the candidate angle extraction unit 62.

ステップ16は決定部63の処理に対応し、ステップ14で求めたk個の点(ρ,θ)に対し、例えばθの単純平均値を傾斜角θdとして出力する。あるいはk個の点でのθの加重平均を用い、重みには投票数viを用いても良い。これらに代えて、k個のθの候補θ1〜θkの中で、投票数viが最大のθを傾斜角θdとしてもよい。ステップ16ではθdを出力し、θdがπ/2を越える場合、θd−π/2、即ちφdを出力する。   Step 16 corresponds to the processing of the determination unit 63 and outputs, for example, a simple average value of θ as the inclination angle θd for the k points (ρ, θ) obtained in step 14. Alternatively, a weighted average of θ at k points may be used, and the number of votes vi may be used as the weight. Instead of these, θ having the largest number of votes vi among the k θ candidates θ1 to θk may be used as the inclination angle θd. In step 16, θd is output. If θd exceeds π / 2, θd−π / 2, that is, φd is output.

図7〜図20に実施例の動作を示す。図7の上部は原稿画像を示し、画像中の文字の列を直線と見なして、その傾斜を検出する。従って実施例の目的は、図7の上部の画像を図7の下部の画像に変換し、これに対するハフ変換を行うことにある。   7 to 20 show the operation of the embodiment. The upper part of FIG. 7 shows a document image, and the inclination of the character string in the image is detected as a straight line. Therefore, the object of the embodiment is to convert the upper image in FIG. 7 into the lower image in FIG. 7 and perform Hough transform on the image.

図8は入力画像(画像メモリ16の画像)を、縮小もスムージングもエッジ抽出も行わずに、直接二値化した例を示し、円でマークしたように、文字以外の写真部分などの黒画素(この場合の有効画素)が多くなり、ハフ変換の負担が増すと共に、写真中の斜線などの影響が強くなり、検出精度が低下する。そこで入力画像をグレースケールで取り扱い、縮小、スムージング、エッジ抽出等の画像処理を施した後に、二値化する。ハフ変換を高速で行うため、入力画像を1/nに縮小し、これによって以降の計算時間を1/n2に減少させる(図9)。 FIG. 8 shows an example in which an input image (image in the image memory 16) is directly binarized without performing reduction, smoothing, or edge extraction. As marked with a circle, black pixels such as a photo portion other than characters are shown. The number of (effective pixels in this case) increases, the burden of Hough conversion increases, and the influence of oblique lines in the photograph becomes stronger, resulting in a decrease in detection accuracy. Therefore, the input image is handled in gray scale and subjected to image processing such as reduction, smoothing, and edge extraction, and then binarized. In order to perform the Hough transform at high speed, the input image is reduced to 1 / n, thereby reducing the subsequent calculation time to 1 / n 2 (FIG. 9).

次にスムージングによりノイズを除去し(図10)、エッジを抽出すると図11の画像が得られる。エッジの抽出により、地色の影響が無くなり、また白抜き文字にも対応でき、さらにデータを単純化して、ハフ変換を容易にする。   Next, noise is removed by smoothing (FIG. 10), and an edge is extracted to obtain the image of FIG. By extracting the edge, the influence of the ground color is eliminated, and it is possible to cope with white characters, and further simplifies the data and facilitates the Hough conversion.

図12に、エッジの抽出フィルタ80を示す。被処理画像81に対し、フィルタ80を左上側から適用することにより、被処理画像81の下側と右側のエッジ82を抽出する。これによって被処理画像81のエッジ全体を検出する場合に比べ、エッジの量を1/2にできる。以上のように、好ましくは、上下左右4種類のエッジの内で、下と右、下と左、上と右、上と左のように、2種類のエッジを抽出する。   FIG. 12 shows an edge extraction filter 80. By applying the filter 80 from the upper left side to the processed image 81, the lower and right edges 82 of the processed image 81 are extracted. As a result, the amount of edges can be halved compared to the case of detecting the entire edge of the image 81 to be processed. As described above, preferably, two types of edges are extracted from among the four types of edges, top, bottom, left, right, bottom and left, top and right, and top and left.

エッジ抽出後の画像を二値化すると、図13の画像が得られる。図13の画像から孤立点を除去すると、図14の画像が得られる。なお孤立点の除去は、図11のエッジの画像に対して行っても良い。図13,図14のように、図形部分の線あるいは写真部分の線が残っていると、傾斜角の誤検出の原因となる。そこで縮退処理を行うと図15の画像が得られ、写真や図形中の線は単なる点あるいは短い線分などに変換され、文字の列からなる行は基本的に保存される。   When the image after edge extraction is binarized, the image of FIG. 13 is obtained. When the isolated points are removed from the image of FIG. 13, the image of FIG. 14 is obtained. Note that the removal of isolated points may be performed on the edge image of FIG. As shown in FIGS. 13 and 14, if a graphic part line or a photographic part line remains, it may cause an erroneous detection of the tilt angle. Therefore, when the reduction process is performed, the image shown in FIG. 15 is obtained. The lines in the photograph or the figure are converted into simple dots or short line segments, and the lines of character strings are basically stored.

そこで縮退処理後の画像に対しハフ変換を行うことにより、文字の行から成る直線のみを検出できる。ただし罫線を伴う画像に対し、罫線の向きを傾斜の検出に用いたいことがある。この場合、縮退処理は不要である。   Therefore, by performing Hough transform on the image after the reduction processing, only a straight line composed of character lines can be detected. However, there are cases where it is desired to use the direction of the ruled line for detecting the inclination of the image with the ruled line. In this case, the degeneration process is not necessary.

ハフ変換により投票テーブルにデータが蓄積され、投票テーブルから投票数が最大の点のみを単純に取り出すと、誤った検出が行われることがある。図16はこのような例を示し、図16では画像の一部のみを表示するので、「最大投票直線」がどこから抽出されたのか分かり難いが、画像中の写真部分等から抽出されたものである。また図16のような極端な例でなくても、図13,図14の下部の図形部分中の実線や、写真部分中の斜線に、最大の投票がなされる可能性がある。そして図13の下部の図形部分の横線は、画像の傾斜と平行であるが、これは偶然である。そこでこのように画像本来の傾斜とは対応しない直線を抽出しないように、投票数が上位の点を複数抽出する。ここで単純に上位m位までの点を抽出すると、投票テーブル内での近傍の点が複数抽出されることが多い。そこで投票テーブル54から最上位の点を抽出し、抽出した点の近傍をマスクして次の投票数の点を抽出することにより、抽出済みの点の近傍の点を抽出しないようにする。このようにして、上位m位の点を抽出する。ここで抽出した上位m位のうち、最下位の点が最上位の点の例えば1/2以上の投票数を持たない場合、検出をエラーとする。文字から成る行を抽出している場合、最大投票数の点と、上からm位の点とで、投票数に余り大きな差はないはずである。これにもかかわらず大きな差があるのは、最上位の点が図形中の直線部分などである可能性が高い。あるいはまた、上位m位(例えば16位)のうちから、最上位の点に対して所定の割合以上(例えば1/2以上)の投票数を持つ点を抽出し、抽出した点の数が所定値k(例えば4)以下の場合は、エラーとして傾斜角を未検出としても良い。   If data is accumulated in the voting table by the Hough transform and only the point with the largest number of votes is simply extracted from the voting table, erroneous detection may be performed. FIG. 16 shows such an example. In FIG. 16, only a part of the image is displayed. Therefore, it is difficult to know where the “maximum voting line” is extracted, but it is extracted from a photograph part or the like in the image. is there. Further, even if it is not an extreme example as shown in FIG. 16, there is a possibility that the maximum vote may be made on the solid line in the graphic part at the bottom of FIG. 13 and FIG. The horizontal line in the lower graphic part of FIG. 13 is parallel to the inclination of the image, but this is coincidental. Therefore, a plurality of points with the highest number of votes are extracted so as not to extract a straight line that does not correspond to the original inclination of the image. If points up to the top m are simply extracted here, a plurality of neighboring points in the voting table are often extracted. Therefore, the highest point is extracted from the voting table 54, and the vicinity of the extracted point is extracted by masking the vicinity of the extracted point so as not to extract the point near the extracted point. In this way, the upper m-th point is extracted. If the lowest point of the extracted top m ranks does not have, for example, ½ or more votes of the highest point, the detection is regarded as an error. When a line consisting of characters is extracted, there should be no significant difference in the number of votes between the maximum number of votes and the m-th place from the top. Despite this, there is a great difference that the highest point is likely to be a straight line portion in the figure. Alternatively, from the top m ranks (for example, 16th rank), points having a voter number of a predetermined ratio or more (for example, 1/2 or more) with respect to the highest point are extracted, and the number of extracted points is predetermined. When the value is equal to or less than k (for example, 4), the tilt angle may not be detected as an error.

図18に投票テーブルの状況を模式的に示し、ここでは投票数を明度で表している。そして選択済みの点の近傍を、黒い四角形のマスクで覆っている。図18では上位8点を抽出済みで、各々マスクがされている。マスクの形状は任意で、抽出済みの直線(投票テーブルの点)と向きが近似し、かつ距離が小さい直線を抽出しないようにすることにある。これによって、例えば図13,図14の写真部分にある、多数の平行な直線を抽出する個数を減らすことができる。また図形や写真が無く、文字の行からなる直線のみを抽出できる場合でも、近接した行を抽出せずに、離れた行を抽出することにより、特定のエリアから行を抽出せずに、原稿全体から行を抽出できるようにする。   FIG. 18 schematically shows the situation of the voting table. Here, the number of votes is represented by brightness. The vicinity of the selected point is covered with a black square mask. In FIG. 18, the top 8 points have been extracted and each is masked. The shape of the mask is arbitrary, and it is to avoid extracting a straight line whose direction is close to that of the extracted straight line (a voting table point) and whose distance is small. As a result, for example, the number of parallel lines extracted in the photograph portions of FIGS. 13 and 14 can be reduced. Also, even if there is no figure or photo and only a straight line consisting of character lines can be extracted, the original can be extracted without extracting lines from a specific area by extracting distant lines without extracting adjacent lines. Allows extracting rows from the whole.

抽出された上位m位の点に対し、傾斜角を決定する。この手続を図19,図20に模式的に示し、ここではmは例えば8とする。文字の行を検出している場合、文字ブロックの上下の列も同時に検出できるので、傾斜角θdと、その直交角φdとに意味がある。また候補を抽出する際の許容誤差をδ(0.5°あるいは1°程度)とし、角θx±δとφx±δの範囲内に入る点の数kが最大となるように、θxを決定する。ここでどの角度に対してもkの値が閾値(例えばm/2)未満の場合、例えばエラーとする。閾値以上の点を含む角θxが得られた場合、含まれる点の角度の単純加算平均、あるいは加重平均などにより、候補角を決定する。これは図6のステップ16の処理である。   An inclination angle is determined for the extracted upper m-th point. This procedure is schematically shown in FIGS. 19 and 20, where m is, for example, 8. When a character row is detected, the upper and lower columns of the character block can be detected at the same time, so that the inclination angle θd and the orthogonal angle φd are significant. In addition, the tolerance for extracting candidates is δ (about 0.5 ° or 1 °), and θx is determined so that the number k of points that fall within the range of angles θx ± δ and φx ± δ is maximized. To do. Here, if the value of k is less than a threshold value (for example, m / 2) for any angle, an error is assumed, for example. When an angle θx including a point equal to or greater than the threshold is obtained, the candidate angle is determined by a simple addition average or a weighted average of the angles of the included points. This is the process of step 16 in FIG.

以上のようにして傾斜角θdを例えば±0.1°程度の精度で決定すると、画像回転部70により画像を回転させて傾斜を補正する。画像の回転自身は単純な処理であり、例えばスキャンと同期して実行できる。   When the inclination angle θd is determined with an accuracy of, for example, about ± 0.1 ° as described above, the image is rotated by the image rotation unit 70 to correct the inclination. The image rotation itself is a simple process and can be executed in synchronization with, for example, scanning.

図21に、整合性の評価関数101,102を示す。横軸は抽出用の角度θxからの偏差を示し、縦軸は評価関数101,102の重みを示す。また105〜110は抽出したデータを角度で示し、データ105〜110の高さは投票数である。実施例では0/1の重みを取る評価関数101を用いたが、評価関数102のように、θxからの偏差に伴って重みを小さくするものでも良い。また評価関数101,102のいずれについても、
(データ105〜110の重み×各データの投票数)の評価関数内に含まれるものの和 のように、投票数を反映させて整合性を評価しても良い。
FIG. 21 shows the consistency evaluation functions 101 and 102. The horizontal axis represents the deviation from the extraction angle θx, and the vertical axis represents the weights of the evaluation functions 101 and 102. Reference numerals 105 to 110 denote the extracted data by angles, and the height of the data 105 to 110 is the number of votes. In the embodiment, the evaluation function 101 having a weight of 0/1 is used. However, as with the evaluation function 102, the weight may be reduced in accordance with the deviation from θx. For both evaluation functions 101 and 102,
Consistency may be evaluated by reflecting the number of votes, such as the sum of those included in the evaluation function (weight of data 105 to 110 × number of votes of each data).

図6の処理では、評価関数101をパスした重みが1のデータ105〜109を対象とし、角度θの単純平均あるいは加重平均により、傾斜角θdを決定した。しかし加重平均で、投票数をそのまま用いる代わりに、投票数の平方根あるいは二乗などを用いても良く、投票数が大きい程、重みが大きくなるように、投票数を反映させた加重平均でも良い。   In the process of FIG. 6, the inclination angle θd is determined by the simple average or the weighted average of the angle θ for the data 105 to 109 having a weight of 1 that has passed the evaluation function 101. However, instead of using the number of votes as it is in the weighted average, the square root or the square of the number of votes may be used, or the weighted average reflecting the number of votes may be used so that the weight increases as the number of votes increases.

実施例では、先にθxを決定して、データ105〜109などを抽出し、次いでデータ105〜109を用いて角度θdを決定する。このためデータ105〜109を角度θdの決定に十分反映させることができる。しかしより単純に、角度θxをそのまま傾斜角θdとしても良い。ただし角度θxをそのまま傾斜角θdとすると、端にあるデータ109を含めるように角度θxを決定するため、傾斜角が端にあるデータ109の影響を受けやすくなる傾向がある。そこで実施例のように角度θxの決定と傾斜角θdの決定の2段階とすることが好ましい。   In the embodiment, θx is determined first, data 105-109 and the like are extracted, and then the angle θd is determined using the data 105-109. Therefore, the data 105 to 109 can be sufficiently reflected in the determination of the angle θd. However, more simply, the angle θx may be used as it is as the inclination angle θd. However, if the angle θx is used as it is as the inclination angle θd, the angle θx is determined so as to include the data 109 at the end, and therefore the inclination angle tends to be easily influenced by the data 109 at the end. Therefore, it is preferable to use two stages, that is, determination of the angle θx and determination of the inclination angle θd as in the embodiment.

実施例では傾斜角の回転と補正とを複合機2の内部で行う例を示したが、パーソナルコンピュータ6などで行っても良い。その場合、実施例の画像処理プログラムをパーソナルコンピュータなどの情報処理装置で実行すると、情報処理装置はこの発明の画像処理装置となる。
本の見開きの傾斜を検出する場合、例えばスキャン前に原稿の種類が見開きであることを入力すると、左右別々の傾斜角を検出できる。あるいは入力画像を左右に分割して、傾斜角を求め、左右の傾斜角が異なると、見開きの画像であると推定しても良い。
In the embodiment, the example in which the rotation and the correction of the tilt angle are performed inside the multi function device 2 has been described. However, it may be performed by the personal computer 6 or the like. In that case, when the image processing program of the embodiment is executed by an information processing apparatus such as a personal computer, the information processing apparatus becomes the image processing apparatus of the present invention.
When detecting the inclination of a book spread, for example, if it is input that the type of the document is a page spread before scanning, separate left and right inclination angles can be detected. Alternatively, the input image may be divided into right and left to obtain an inclination angle, and if the left and right inclination angles are different, it may be estimated that the image is a spread image.

2 複合機
4 LAN
6 パーソナルコンピュータ
8 ルータ
10 インターネット
12 LANインターフェース
14 バス
16 画像メモリ
18 メモリ
20 スキャナ
22 プリンタ
24 G3ファクシミリ部
26 e-mail部
28 ネットワークサーバ部
30 ユーザインターフェース
32 画像処理部
40 前処理部
41 縮小処理部
42 スムージング部
43 エッジ抽出部
44 二値化部
45 孤立点除去部
46 縮退処理部
50 ハフ変換部
51 実行ユニット
52 ρ値計算部
53 テーブル
54 投票テーブル
55 管理部
56 データ
57 マスク
60 傾斜角検出部
61 有効線抽出部
62 候補角抽出部
63 決定部
70 画像回転部
71 座標計算部
72 アドレス生成部
73 bicubic処理部
80 フィルタ
81 被処理画像
82 エッジ
101,102 評価関数
105〜110 データ
2 MFP 4 LAN
6 personal computer 8 router 10 internet 12 LAN interface 14 bus 16 image memory 18 memory 20 scanner 22 printer 24 G3 facsimile unit 26 e-mail unit 28 network server unit 30 user interface 32 image processing unit 40 preprocessing unit 41 reduction processing unit 42 Smoothing unit 43 Edge extraction unit 44 Binarization unit 45 Isolated point removal unit 46 Degeneration processing unit 50 Hough transform unit 51 Execution unit 52 ρ value calculation unit 53 Table 54 Voting table 55 Management unit 56 Data 57 Mask 60 Inclination angle detection unit 61 Effective line extraction unit 62 Candidate angle extraction unit 63 Determination unit
70 image rotation unit 71 coordinate calculation unit 72 address generation unit 73 bicubic processing unit 80 filter 81 processed image 82 edge 101, 102 evaluation function 105-110 data

Claims (11)

画像中の点の座標を距離ρと角度θとに変換して、距離ρと角度θとを見出しとする投票テーブルに投票することにより、画像中の直線を抽出するハフ変換部を備えた画像処理装置において、
前記投票テーブルから投票数が上位の所定個数の点を抽出すると共に、
前記所定個数の点の角度θとの整合性が最大となるように抽出用の角度θxを定めて、定めた抽出用の角度θxに基づき、画像の傾斜角を求めるように構成し、
さらに前記所定個数の点を抽出する際に、抽出済みの点の投票テーブルでの近傍をマスクし、マスクした範囲内の他の点が投票テーブルから抽出されないように構成したことを特徴とする画像処理装置。
An image having a Hough transform unit for extracting a straight line in an image by converting the coordinates of a point in the image into a distance ρ and an angle θ and voting on a voting table having the distance ρ and the angle θ as headings In the processing device,
Extracting a predetermined number of points with the highest number of votes from the vote table;
The extraction angle θx is determined so that the consistency with the angle θ of the predetermined number of points is maximized, and the inclination angle of the image is obtained based on the determined extraction angle θx ,
Furthermore, when extracting the predetermined number of points, the neighborhood of the extracted points in the voting table is masked, and other points within the masked range are not extracted from the voting table. Processing equipment.
画像中の点の座標を距離ρと角度θとに変換して、距離ρと角度θとを見出しとする投票テーブルに投票することにより、画像中の直線を抽出するハフ変換部を備えた画像処理装置において、An image having a Hough transform unit for extracting a straight line in an image by converting the coordinates of a point in the image into a distance ρ and an angle θ and voting on a voting table having the distance ρ and the angle θ as headings In the processing device,
前記投票テーブルから投票数が上位の所定個数の点を抽出すると共に、  Extracting a predetermined number of points with the highest number of votes from the vote table;
前記所定個数の点の角度θとの整合性が最大となるように抽出用の角度θxを定めて、定めた抽出用の角度θxに基づき、画像の傾斜角を求めるように構成し、  The extraction angle θx is determined so that the consistency with the angle θ of the predetermined number of points is maximized, and the inclination angle of the image is obtained based on the determined extraction angle θx,
さらに前記所定個数の点の内で、前記抽出用の角度θxから許容範囲内に角度θが含まれる点の数と、前記所定個数との割合が所定値未満の場合、画像の傾斜角を検出しないように構成したことを特徴とする画像処理装置。  Furthermore, when the ratio between the number of points within the allowable range from the extraction angle θx within the predetermined number of points and the predetermined number is less than a predetermined value, the inclination angle of the image is detected. An image processing apparatus configured so as not to be performed.
画像中の点の座標を距離ρと角度θとに変換して、距離ρと角度θとを見出しとする投票テーブルに投票することにより、画像中の直線を抽出するハフ変換部を備えた画像処理装置において、
前記投票テーブルから投票数が上位の所定個数の点を抽出すると共に、
前記所定個数の点の角度θとの整合性が最大となるように抽出用の角度θxを定めて、定めた抽出用の角度θxに基づき、画像の傾斜角を求めるように構成し、
さらに前記所定個数の点が、最上位の投票数の点との投票数の割合が許容値未満の点を含む場合、画像の傾斜角を検出しないように構成したことを特徴とする画像処理装置
An image having a Hough transform unit for extracting a straight line in an image by converting the coordinates of a point in the image into a distance ρ and an angle θ and voting on a voting table having the distance ρ and the angle θ as headings In the processing device,
Extracting a predetermined number of points with the highest number of votes from the vote table;
The extraction angle θx is determined so that the consistency with the angle θ of the predetermined number of points is maximized, and the inclination angle of the image is obtained based on the determined extraction angle θx,
Further, the image processing apparatus is configured not to detect an inclination angle of the image when the predetermined number of points includes a point whose ratio of the number of votes with the highest number of votes is less than an allowable value. .
前記所定個数の点の内で、前記抽出用の角度θxから許容範囲内に角度θが含まれる点に対する、角度θの平均により、画像の傾斜角を定めるように構成したことを特徴とする、請求項1〜3のいずれかに記載の画像処理装置。 Among the predetermined number of points, the inclination angle of the image is determined by an average of the angles θ with respect to a point that includes the angle θ within an allowable range from the extraction angle θx. The image processing apparatus according to claim 1 . 前記所定個数の点の内で、前記抽出用の角度θxから許容範囲内に角度θが含まれる点に対する、角度θの投票数に応じた重みを反映させた平均により、画像の傾斜角を定めるように構成したことを特徴とする、請求項1〜3のいずれかに記載の画像処理装置。Of the predetermined number of points, the inclination angle of the image is determined by an average reflecting a weight corresponding to the number of votes of the angle θ with respect to a point that includes the angle θ within the allowable range from the extraction angle θx. The image processing apparatus according to claim 1, wherein the image processing apparatus is configured as described above. 画像中の点の座標を距離ρと角度θとに変換して、距離ρと角度θとを見出しとする投票テーブルに投票することにより、画像中の直線を抽出する画像処理方法において、In an image processing method for extracting a straight line in an image by converting the coordinates of a point in the image into a distance ρ and an angle θ and voting on a voting table having the distance ρ and the angle θ as a headline,
前記投票テーブルから投票数が上位の所定個数の点を抽出すると共に、抽出済みの点の投票テーブルでの近傍をマスクし、マスクした範囲内の他の点が投票テーブルから抽出されないようにし、  Extracting a predetermined number of points with the highest number of votes from the voting table, masking the neighborhood of the extracted points in the voting table so that other points in the masked range are not extracted from the voting table,
さらに前記所定個数の点の角度θとの整合性が最大となるように抽出用の角度θxを定めて、定めた抽出用の角度θxに基づき、画像の傾斜角を求めることを特徴とする、画像処理方法。  Further, the angle θx for extraction is determined so that the consistency with the angle θ of the predetermined number of points is maximized, and the inclination angle of the image is obtained based on the determined angle θx for extraction, Image processing method.
画像中の点の座標を距離ρと角度θとに変換して、距離ρと角度θとを見出しとする投票テーブルに投票することにより、画像中の直線を抽出する画像処理方法において、In an image processing method for extracting a straight line in an image by converting the coordinates of a point in the image into a distance ρ and an angle θ and voting on a voting table having the distance ρ and the angle θ as a headline,
前記投票テーブルから投票数が上位の所定個数の点を抽出すると共に、  Extracting a predetermined number of points with the highest number of votes from the vote table;
前記所定個数の点の角度θとの整合性が最大となるように抽出用の角度θxを定めて、定めた抽出用の角度θxに基づき、画像の傾斜角を求め、  The angle θx for extraction is determined so that the consistency with the angle θ of the predetermined number of points is maximized, and the inclination angle of the image is obtained based on the determined angle θx for extraction,
さらに前記所定個数の点の内で、前記抽出用の角度θxから許容範囲内に角度θが含まれる点の数と、前記所定個数との割合が所定値未満の場合、画像の傾斜角を検出しないようにすることを特徴とする画像処理方法。  Furthermore, when the ratio between the number of points within the allowable range from the extraction angle θx within the predetermined number of points and the predetermined number is less than a predetermined value, the inclination angle of the image is detected. An image processing method characterized by not performing the processing.
画像中の点の座標を距離ρと角度θとに変換して、距離ρと角度θとを見出しとする投票テーブルに投票することにより、画像中の直線を抽出する画像処理方法において、
前記投票テーブルから投票数が上位の所定個数の点を抽出すると共に、
前記所定個数の点の角度θとの整合性が最大となるように抽出用の角度θxを定めて、定めた抽出用の角度θxに基づき、画像の傾斜角を求め
さらに前記所定個数の点が、最上位の投票数の点との投票数の割合が許容値未満の点を含む場合、画像の傾斜角を検出しないようにすることを特徴とする画像処理方法
In an image processing method for extracting a straight line in an image by converting the coordinates of a point in the image into a distance ρ and an angle θ and voting on a voting table having the distance ρ and the angle θ as a headline,
Extracting a predetermined number of points with the highest number of votes from the vote table;
The extraction angle θx is determined so that the consistency with the angle θ of the predetermined number of points is maximized, and the inclination angle of the image is obtained based on the determined extraction angle θx.
Further, the image processing method is characterized in that the inclination angle of the image is not detected when the predetermined number of points includes a point where the ratio of the vote number to the highest vote point is less than an allowable value .
情報処理装置に読み込まれて、該情報処理装置に、Read into the information processing apparatus,
画像中の点の座標を距離ρと角度θとに変換して、距離ρと角度θとを見出しとする投票テーブルに投票する機能と、  A function for converting the coordinates of a point in the image into a distance ρ and an angle θ, and voting on a voting table having the distance ρ and the angle θ as headlines;
前記投票テーブルから投票数が上位の所定個数の点を抽出すると共に、抽出済みの点の投票テーブルでの近傍をマスクし、マスクした範囲内の他の点が投票テーブルから抽出されないようにする機能と、  A function of extracting a predetermined number of points with the highest number of votes from the voting table, masking the neighborhood of the extracted points in the voting table, and preventing other points within the masked range from being extracted from the voting table When,
さらに、前記所定個数の点の角度θとの整合性が最大となるように抽出用の角度θxを定めて、定めた抽出用の角度θxに基づき、画像の傾斜角を求める機能とを、実行させる、画像処理プログラム。  Further, the function of determining the angle θx for extraction so that the consistency with the angle θ of the predetermined number of points is maximized, and obtaining the tilt angle of the image based on the determined angle θx for extraction is executed. An image processing program.
情報処理装置に読み込まれて、該情報処理装置に、
画像中の点の座標を距離ρと角度θとに変換して、距離ρと角度θとを見出しとする投票テーブルに投票する機能と、
前記投票テーブルから投票数が上位の所定個数の点を抽出する機能と、
前記所定個数の点の角度θとの整合性が最大となるように抽出用の角度θxを定めて、定めた抽出用の角度θxに基づき、画像の傾斜角を求める機能と、
前記所定個数の点の内で、前記抽出用の角度θxから許容範囲内に角度θが含まれる点の数と、前記所定個数との割合が所定値未満の場合、画像の傾斜角を検出しないようにする機能、とを実行させる画像処理プログラム
Read into the information processing apparatus,
A function for converting the coordinates of a point in the image into a distance ρ and an angle θ, and voting on a voting table having the distance ρ and the angle θ as headlines;
A function of extracting a predetermined number of points with the highest number of votes from the vote table;
A function of determining the angle of extraction θx so as to maximize the consistency with the angle θ of the predetermined number of points, and determining the inclination angle of the image based on the determined angle of extraction θx;
The inclination angle of the image is not detected when the ratio between the number of points within the allowable range from the extraction angle θx and the predetermined number is less than a predetermined value among the predetermined number of points. An image processing program for executing the function to
情報処理装置に読み込まれて、該情報処理装置に、Read into the information processing apparatus,
画像中の点の座標を距離ρと角度θとに変換して、距離ρと角度θとを見出しとする投票テーブルに投票する機能と、  A function for converting the coordinates of a point in the image into a distance ρ and an angle θ, and voting on a voting table having the distance ρ and the angle θ as headlines;
前記投票テーブルから投票数が上位の所定個数の点を抽出する機能と、  A function of extracting a predetermined number of points with the highest number of votes from the vote table;
前記所定個数の点の角度θとの整合性が最大となるように抽出用の角度θxを定めて、定めた抽出用の角度θxに基づき、画像の傾斜角を求める機能と、  A function of determining the angle of extraction θx so as to maximize the consistency with the angle θ of the predetermined number of points, and determining the inclination angle of the image based on the determined angle of extraction θx;
さらに前記所定個数の点が、最上位の投票数の点との投票数の割合が許容値未満の点を含む場合、画像の傾斜角を検出しないようにする機能、とを実行させる画像処理プログラム。  Further, an image processing program for executing a function of preventing the inclination angle of an image from being detected when the predetermined number of points includes a point with a ratio of the number of votes with the highest number of votes being less than an allowable value. .
JP2009093220A 2009-04-07 2009-04-07 Image processing apparatus, processing method, and processing program Active JP5477541B2 (en)

Priority Applications (5)

Application Number Priority Date Filing Date Title
JP2009093220A JP5477541B2 (en) 2009-04-07 2009-04-07 Image processing apparatus, processing method, and processing program
DE112010001320T DE112010001320T5 (en) 2009-04-07 2010-01-25 Image processing apparatus, image processing method, image processing program and storage medium
PCT/JP2010/050876 WO2010116774A1 (en) 2009-04-07 2010-01-25 Image processing apparatus, processing method, processing program, and storing medium
US13/258,553 US8682080B2 (en) 2009-04-07 2010-01-25 Image processing apparatus, image processing method, image processing program, and storage medium
CN2010800047830A CN102282588A (en) 2009-04-07 2010-01-25 Image processing apparatus, processing method, processing program, and storing medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009093220A JP5477541B2 (en) 2009-04-07 2009-04-07 Image processing apparatus, processing method, and processing program

Publications (2)

Publication Number Publication Date
JP2010244352A JP2010244352A (en) 2010-10-28
JP5477541B2 true JP5477541B2 (en) 2014-04-23

Family

ID=43097299

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009093220A Active JP5477541B2 (en) 2009-04-07 2009-04-07 Image processing apparatus, processing method, and processing program

Country Status (1)

Country Link
JP (1) JP5477541B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6210013B2 (en) * 2014-03-31 2017-10-11 ブラザー工業株式会社 Image processing device

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3677711B2 (en) * 1997-12-08 2005-08-03 凸版印刷株式会社 Chopper folding machine and chopper folding state determination method
JPH11328408A (en) * 1998-05-12 1999-11-30 Advantest Corp Device for processing data and information storage medium
JP3748492B2 (en) * 1998-05-25 2006-02-22 凸版印刷株式会社 Edge monitoring device, device using the same, and edge determination method
JP3750385B2 (en) * 1998-12-08 2006-03-01 凸版印刷株式会社 Chopper folding machine and chopper folding state determination method
JP4219542B2 (en) * 2000-09-07 2009-02-04 富士ゼロックス株式会社 Image processing apparatus, image processing method, and recording medium storing image processing program
JP3882891B2 (en) * 2001-11-05 2007-02-21 日本電気株式会社 Electronic component inspection apparatus, method and program thereof
JP4505759B2 (en) * 2007-10-03 2010-07-21 富士ゼロックス株式会社 Information processing apparatus, information management apparatus, information management system, information processing program, and information management program

Also Published As

Publication number Publication date
JP2010244352A (en) 2010-10-28

Similar Documents

Publication Publication Date Title
WO2010116774A1 (en) Image processing apparatus, processing method, processing program, and storing medium
JP4525787B2 (en) Image extraction apparatus and image extraction program
JP5934762B2 (en) Document modification detection method by character comparison using character shape characteristics, computer program, recording medium, and information processing apparatus
JP5566811B2 (en) Deblurring and surveillance adaptive thresholding for image evaluation of printed and scanned documents
US8559748B2 (en) Edge detection
US8218890B2 (en) Method and apparatus for cropping images
JP4419269B2 (en) Two-dimensional code extraction method
JP2011022867A (en) Image processing device, image processing system and program
JP5042917B2 (en) Image processing apparatus and program
US6771842B1 (en) Document image skew detection method
US20040091172A1 (en) Image processing device performing inclination correcting processing
US8064636B2 (en) Image processing apparatus and method of controlling the same
JP5477541B2 (en) Image processing apparatus, processing method, and processing program
US20100177959A1 (en) Color form dropout using dynamic geometric solid thresholding
JP5477542B2 (en) Image processing apparatus, processing method, and processing program
JP4208520B2 (en) Image processing apparatus, image processing method, program, and storage medium
JP4132766B2 (en) Image processing apparatus and method
JP2010244351A (en) Image processing apparatus and processing method, and processing program
CN112383670B (en) Test paper scanning automatic centering method and device
JP2010244353A (en) Image processing apparatus and processing method, and processing program
WO2004032482A1 (en) Image reading device
JPH06203202A (en) Image processor
KR100350854B1 (en) System and method of rotating binary images
CN107680046A (en) Image rectification method, device, storage medium and computer equipment
JP2003281593A (en) Coin discrimination device, coin registration device, coin determination device and coin determination method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120229

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130617

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130807

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20140115

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140128

R150 Certificate of patent or registration of utility model

Ref document number: 5477541

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250