JP2010134564A - Image processor, image processing system, image processing method, image processing program and recording medium recording the image processing program - Google Patents

Image processor, image processing system, image processing method, image processing program and recording medium recording the image processing program Download PDF

Info

Publication number
JP2010134564A
JP2010134564A JP2008308018A JP2008308018A JP2010134564A JP 2010134564 A JP2010134564 A JP 2010134564A JP 2008308018 A JP2008308018 A JP 2008308018A JP 2008308018 A JP2008308018 A JP 2008308018A JP 2010134564 A JP2010134564 A JP 2010134564A
Authority
JP
Japan
Prior art keywords
gradient
image
circle
estimated
calculating
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2008308018A
Other languages
Japanese (ja)
Inventor
Hiroshi Tanaka
洋 田中
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.)
Sharp Corp
Original Assignee
Sharp Corp
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 Sharp Corp filed Critical Sharp Corp
Priority to JP2008308018A priority Critical patent/JP2010134564A/en
Publication of JP2010134564A publication Critical patent/JP2010134564A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Image Analysis (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image processor, an image processing system, an image processing method, an image processing program and a recording medium recording the image processing program, for determining whether or not a circumferential image is present with high accuracy even if storage capacity of the image processor is small. <P>SOLUTION: The image processor 101 is provided with: a template characteristic storage part 3 storing characteristics of a decision template; an estimation value calculation part 4 calculating a circle possibility area and an estimated circle center in an input image by use of the characteristics; an ideal gradient calculation part 5 calculating an ideal gradient from the estimated circle center and coordinates of interest in the circle possibility area; an approximate gradient calculation part 6 calculating an approximate gradient from the coordinates of interest in a specific image in the circle possibility area and coordinates that are coordinates in the specific image, close to the coordinates of interest; a gradient comparison part 7 outputting a gradient comparison result between the ideal gradient and the approximate gradient; and a circular shape decision part 8 performing decision based on the gradient comparison result. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、円形状有無判定を行うことを可能にする画像処理装置、画像処理システム、画像処理方法、画像処理プログラムおよび画像処理プログラムを記録した記録媒体に関する。 The present invention relates to an image processing apparatus, an image processing system, an image processing method, an image processing program, and a recording medium on which an image processing program is recorded, which makes it possible to determine whether or not a circular shape is present.

印鑑は、私文書および公文書の正当性の証明、手続者の身分証明等の役割のために広く使用されている。ところで、印鑑の押された書類の正当性を判断するためには、その書類作成に用いられた印鑑が予め登録されている印鑑と同一のものであるか否かを判定する必要がある。そしてこの判定は、実際にはその書類中の印影と予め登録されている印影とを照合し、両印影が一致しているか否かを判定することで行なっている。この照合作業のすべてを人間が行うのは非常に能率が悪いため、照合作業を補助支援するための装置が各種開発されている。   Seals are widely used for roles such as proof of legitimacy of private documents and official documents, and identification of procedures. By the way, in order to determine the legitimacy of a document whose stamp has been pressed, it is necessary to determine whether or not the seal stamp used for creating the document is the same as that registered in advance. This determination is actually performed by comparing the imprint in the document with a pre-registered imprint and determining whether or not the two imprints match. Since it is very inefficient for humans to perform all of this collation work, various devices for assisting and supporting collation work have been developed.

特許文献1には、特定印影を含む画像の複写を防ぐために、特定印影の一部のパターンを記憶して、入力画像中にそのパターンが存在するか否かを判定する装置が記載されている。   Patent Document 1 describes an apparatus for storing a partial pattern of a specific imprint and determining whether the pattern exists in an input image in order to prevent copying of an image including the specific imprint. .

特開2000−76458号公報JP 2000-76458 A

しかしながら、特許文献1に記載の装置では、印影の一部のパターンのみを記憶して判定を行うので、印影すべてを記憶して判定を行う場合と比べて判定精度は落ちてしまい、特定印影以外の画像を誤判定してしまう。   However, in the apparatus described in Patent Document 1, since determination is performed by storing only a part of the imprint pattern, the determination accuracy is reduced as compared with the case where determination is performed by storing all imprints, and other than the specific imprint. Will be misjudged.

このような誤判定を防ぐために、特定印影中の円周部分が存在するか否かを先に判定し、その後、円周部分が存在すると判定された場合には、特定印影を用いて精密な判定を行う方法が考えられる。このような方法であれば、判定処理を高速化しつつ、精度良く判定を行うことができる。しかしながら、円周部分の判定においても、円周全体の画像情報を記憶していては、記憶容量が膨大になってしまうという問題があり、また、円周の一部の画像情報のみで判定を行うと十分な精度が得られないという問題がある。   In order to prevent such a misjudgment, it is first determined whether or not there is a circumferential portion in the specific imprint, and if it is determined that there is a circumferential portion thereafter, a precise imprint using the specific imprint is performed. A method for performing the determination is conceivable. With such a method, determination can be performed with high accuracy while speeding up the determination process. However, even in the determination of the circumference portion, there is a problem that the storage capacity becomes enormous if the image information of the entire circumference is stored, and the determination is made only with a part of the image information of the circumference. However, there is a problem that sufficient accuracy cannot be obtained.

本発明は上記課題を解決するためになされたものであって、画像処理装置の記憶容量が少なくても、円周画像が存在するか否かの判定を精度良く行うことを可能にする画像処理装置、画像処理システム、画像処理方法、画像処理プログラムおよび画像処理プログラムを記録した記録媒体を提供することを目的とする。   The present invention has been made to solve the above-described problem, and enables image processing to accurately determine whether or not a circumferential image exists even when the storage capacity of the image processing apparatus is small. An object is to provide an apparatus, an image processing system, an image processing method, an image processing program, and a recording medium on which the image processing program is recorded.

本発明は、テンプレート画像の情報を記憶するテンプレート情報記憶手段と、
入力画像において円の中心が存在すると推定される座標である推定円中心を、前記情報を用いて算出する推定円中心算出手段と、
前記入力画像において前記円が存在する可能性のある領域である円存在可能性領域を、前記情報を用いて算出する円存在可能性領域算出手段と、
前記推定円中心と前記円存在可能性領域内の注目座標とから、前記推定円中心を円の中心とし、前記注目座標を通る円周の接線の勾配である理想勾配を算出する理想勾配算出手段と、
前記円存在可能性領域内の特定画像中の注目座標と、前記特定画像中の座標であって当該注目座標の近傍の座標とから、前記特定画像の当該注目座標における近似的な接線の勾配である近似勾配を算出する近似勾配算出手段と、
勾配の算出に用いる注目座標を同じくする前記理想勾配および前記近似勾配を比較して、勾配比較結果を出力する勾配比較手段と、
前記勾配比較結果に基づいて、円周画像が前記入力画像に含まれているか否かを判定する円形状有無判定手段とを備えることを特徴とする画像処理装置である。
The present invention comprises a template information storage means for storing information of a template image;
Estimated circle center calculation means for calculating an estimated circle center, which is a coordinate estimated that the center of the circle exists in the input image, using the information;
A circle existence possibility area calculating means for calculating, using the information, a circle existence possibility area that is an area in which the circle may exist in the input image;
An ideal gradient calculating means for calculating an ideal gradient, which is a gradient of a tangent of a circle passing through the target coordinate, with the estimated circular center as the center of the circle from the estimated circle center and the target coordinate in the circle existence possibility region When,
An approximate tangent gradient at the target coordinate of the specific image is calculated from the target coordinate in the specific image in the circle existence possibility region and the coordinate in the specific image and in the vicinity of the target coordinate. An approximate gradient calculating means for calculating an approximate gradient;
A gradient comparison means for comparing the ideal gradient and the approximate gradient having the same target coordinates used for calculating the gradient and outputting a gradient comparison result;
An image processing apparatus comprising: a circular shape presence / absence determining unit that determines whether or not a circumferential image is included in the input image based on the gradient comparison result.

また本発明は、前記推定円中心を中心とする円周状の領域であって、前記円存在可能性領域内の領域である推定円周領域を算出する推定円周算出手段を備え、
前記理想勾配算出手段は、前記推定円中心と前記推定円周領域内の注目座標とから、前記推定円中心を円の中心とし、当該注目座標を通る円周の接線の勾配である理想勾配を算出し、
前記近似勾配算出手段は、前記推定円周領域内の特定画像中の注目座標と、前記特定画像中の座標であって当該注目座標の近傍の座標とから、前記特定画像の当該注目座標における近似的な接線の勾配である近似勾配を算出することを特徴とする。
Further, the present invention comprises an estimated circumference calculating means for calculating an estimated circumference area that is a circumference area centered on the estimated circle center and that is an area within the circle existence possibility area,
The ideal gradient calculating means calculates an ideal gradient that is a gradient of a tangent of a circle passing through the target coordinate from the estimated circle center and the coordinate of interest in the estimated circumferential region, with the estimated circle center as the center of the circle. Calculate
The approximate gradient calculating means approximates the specific image at the target coordinate from the target coordinate in the specific image within the estimated circumferential area and the coordinate in the specific image and in the vicinity of the target coordinate. An approximate gradient that is a gradient of a typical tangent is calculated.

また本発明は、前記近似勾配算出手段は、前記円存在可能性領域内の特定のエッジ画素である特定エッジ画素を抽出する特定エッジ抽出手段と、前記特定エッジ画素の座標を記憶する特定エッジ記憶手段と、前記特定エッジ画素同士の座標差分を算出する第1差分算出手段とを含み、
前記特定画像は前記特定エッジ画素からなる画像であり、近似勾配の算出に用いられる注目座標は、前記特定エッジ画素から選ばれることを特徴とする。
According to the present invention, the approximate gradient calculating unit includes a specific edge extracting unit that extracts a specific edge pixel that is a specific edge pixel in the circle existence possibility region, and a specific edge storage that stores coordinates of the specific edge pixel. Means, and first difference calculation means for calculating a coordinate difference between the specific edge pixels,
The specific image is an image including the specific edge pixels, and a target coordinate used for calculating an approximate gradient is selected from the specific edge pixels.

また本発明は、前記理想勾配算出手段は、円存在可能性領域内の座標と推定円中心との座標差分を算出する第2差分算出手段と、当該座標差分を変換して、前記推定円中心を円の中心とし、円存在可能性領域内の座標を通る円周の接ベクトルを算出する理想接線ベクトル算出手段とを含むことを特徴とする。   Further, according to the present invention, the ideal gradient calculation means is a second difference calculation means for calculating a coordinate difference between the coordinates in the circle existence possibility area and the estimated circle center, and converts the coordinate difference to obtain the estimated circle center. And an ideal tangent vector calculation means for calculating a tangent vector of the circumference passing through the coordinates in the circle existence possibility region.

また本発明は、前記円形状有無判定手段は、前記勾配比較結果を記憶する勾配比較結果記憶手段と、前記勾配比較結果と円周判定閾値とに基づいて、円周画像が前記入力画像に含まれているか否かを判定する円周判定手段とを含むことを特徴とする。   Further, according to the present invention, the circular shape presence / absence determining means includes a gradient comparison result storage means for storing the gradient comparison result, and a circumferential image is included in the input image based on the gradient comparison result and a circumference determination threshold value. And a circumference determination means for determining whether or not the

また本発明は、前記円周判定閾値を変更する円周判定閾値変更手段を備えることを特徴とする。   The present invention is further characterized by comprising a circumference determination threshold value changing means for changing the circumference determination threshold value.

また本発明は、前記入力画像から特定色の画像を抽出するフィルタ手段を含み、
前記フィルタ手段によって抽出された特定色の画像を入力画像として、円周画像が当該入力画像に含まれているか否かを判定することが可能なように構成されることを特徴とする。
The present invention also includes filter means for extracting an image of a specific color from the input image,
An image of a specific color extracted by the filter means is used as an input image, and it is configured to be able to determine whether or not a circumferential image is included in the input image.

また本発明は、前記特定色の画像の情報と前記特定色以外の画像の情報とを用いて2値化処理を行う2値化処理手段を含み、
前記2値化処理手段による2値化処理後の画像を入力画像として、円周画像が当該入力画像に含まれているか否かを判定することが可能なように構成されることを特徴とする。
The present invention also includes binarization processing means for performing binarization processing using information on the image of the specific color and information on the image other than the specific color,
An image after binarization processing by the binarization processing means is used as an input image, and it is configured to be able to determine whether or not a circumferential image is included in the input image. .

また本発明は、前記画像処理装置と、当該画像処理装置による判定の結果を、音および光の少なくとも1つを用いてユーザに通知する通知装置とを備えることを特徴とする画像処理システムである。   According to another aspect of the present invention, there is provided an image processing system comprising: the image processing device; and a notification device that notifies a user of a result of determination by the image processing device using at least one of sound and light. .

また本発明は、入力画像において円の中心が存在すると推定される座標である推定円中心を、テンプレート画像の情報を用いて算出する推定円中心算出ステップと、
前記入力画像において前記円が存在する可能性のある領域である円存在可能性領域を、前記情報を用いて算出する円存在可能性領域算出ステップと、
前記推定円中心と前記円存在可能性領域内の注目座標とから、前記推定円中心を円の中心とし、前記注目座標を通る円周の接線の勾配である理想勾配を算出する理想勾配算出ステップと、
前記円存在可能性領域内の特定画像中の注目座標と、前記特定画像中の座標であって当該注目座標の近傍の座標とから、前記特定画像の当該注目座標における近似的な接線の勾配である近似勾配を算出する近似勾配算出ステップと、
勾配の算出に用いる注目座標を同じくする前記理想勾配および前記近似勾配を比較して、勾配比較結果を出力する勾配比較ステップと、
前記勾配比較結果に基づいて、円周画像が前記入力画像に含まれているか否かを判定する円形状有無判定ステップとを含むことを特徴とする画像処理方法である。
The present invention also includes an estimated circle center calculation step of calculating an estimated circle center, which is a coordinate estimated to have a circle center in the input image, using information of the template image;
A circle existence possibility area calculating step for calculating a circle existence possibility area that is an area in which the circle may exist in the input image using the information;
An ideal gradient calculation step of calculating an ideal gradient that is a gradient of a tangent of a circle passing through the coordinate of interest, with the estimated circle center being the center of the circle from the estimated circle center and the coordinate of interest in the circle existence possibility region When,
An approximate tangent gradient at the target coordinate of the specific image is calculated from the target coordinate in the specific image in the circle existence possibility region and the coordinate in the specific image and in the vicinity of the target coordinate. An approximate gradient calculating step for calculating an approximate gradient;
A gradient comparison step of comparing the ideal gradient and the approximate gradient having the same target coordinates used for calculating the gradient and outputting a gradient comparison result;
And a circular shape presence / absence determining step for determining whether or not a circumferential image is included in the input image based on the gradient comparison result.

また本発明は、コンピュータを、
テンプレート画像の情報を記憶するテンプレート情報記憶手段と、
入力画像において円の中心が存在すると推定される座標である推定円中心を、前記情報を用いて算出する推定円中心算出手段と、
前記入力画像において前記円が存在する可能性のある領域である円存在可能性領域を、前記情報を用いて算出する円存在可能性領域算出手段と、
前記推定円中心と前記円存在可能性領域内の注目座標とから、前記推定円中心を円の中心とし、前記注目座標を通る円周の接線の勾配である理想勾配を算出する理想勾配算出手段と、
前記円存在可能性領域内の特定画像中の注目座標と、前記特定画像中の座標であって当該注目座標の近傍の座標とから、前記特定画像の当該注目座標における近似的な接線の勾配である近似勾配を算出する近似勾配算出手段と、
勾配の算出に用いる注目座標を同じくする前記理想勾配および前記近似勾配を比較して、勾配比較結果を出力する勾配比較手段と、
前記勾配比較結果に基づいて、円周画像が前記入力画像に含まれているか否かを判定する円形状有無判定手段として機能させることを特徴とする画像処理プログラムである。
The present invention also provides a computer,
Template information storage means for storing information of the template image;
Estimated circle center calculation means for calculating an estimated circle center, which is a coordinate estimated that the center of the circle exists in the input image, using the information;
A circle existence possibility area calculating means for calculating, using the information, a circle existence possibility area that is an area in which the circle may exist in the input image;
An ideal gradient calculating means for calculating an ideal gradient, which is a gradient of a tangent of a circle passing through the target coordinate, with the estimated circular center as the center of the circle from the estimated circle center and the target coordinate in the circle existence possibility region When,
An approximate tangent gradient at the target coordinate of the specific image is calculated from the target coordinate in the specific image in the circle existence possibility region and the coordinate in the specific image and in the vicinity of the target coordinate. An approximate gradient calculating means for calculating an approximate gradient;
A gradient comparison means for comparing the ideal gradient and the approximate gradient having the same target coordinates used for calculating the gradient and outputting a gradient comparison result;
An image processing program that functions as circular shape presence / absence determining means for determining whether or not a circumferential image is included in the input image based on the gradient comparison result.

また本発明は、前記プログラムを記録したことを特徴とするコンピュータ読取可能な記録媒体である。   The present invention also provides a computer-readable recording medium on which the program is recorded.

本発明によれば、テンプレート画像の情報を用いて推定円中心および円存在可能性領域を算出することができ、算出された推定円中心および円存在可能性領域を用いて、理想勾配および近似勾配を算出することができ、算出された理想勾配と近似勾配との比較によって、円周画像が入力画像に含まれているか否かを判定することができる。テンプレート画像は円周全体を含む画像である必要はなく、円周の一部を含む画像であれば、推定円中心および円存在可能性領域の算出は可能である。したがって、円周画像全体の情報を記憶することなく判定を行うことができるので、テンプレート情報記憶手段が小容量の記憶手段であっても、判定を行うことができる。また、テンプレート画像の情報および理想勾配と近似勾配との比較によって判定を行うので、テンプレート画像の情報のみを用いて判定を行う装置に比べて精度良く判定を行うことができる。   According to the present invention, it is possible to calculate the estimated circle center and the circle existence possibility region using the information of the template image, and using the calculated estimated circle center and the circle existence possibility region, the ideal gradient and the approximate gradient are calculated. It is possible to calculate whether or not a circumferential image is included in the input image by comparing the calculated ideal gradient with the approximate gradient. The template image does not need to be an image including the entire circumference, and the estimated circle center and the circle existence possibility region can be calculated as long as the image includes a part of the circumference. Therefore, since the determination can be performed without storing the information on the entire circumferential image, the determination can be performed even if the template information storage unit is a small-capacity storage unit. Further, since the determination is performed by comparing the template image information and the ideal gradient with the approximate gradient, it is possible to perform the determination with higher accuracy than the apparatus that performs the determination using only the template image information.

また本発明によれば、推定円周領域を算出することができ、推定円中心と推定円周領域内の注目座標とから理想勾配を算出することができ、推定円周領域内の特定画像中の注目座標と、特定画像中の座標であって当該注目座標の近傍の座標とから近似勾配を算出することができる。したがって、理想勾配と近似勾配との比較が、推定円周領域内の注目座標に対する勾配に限られるので、画像処理装置の処理を高速化することができる。   Further, according to the present invention, an estimated circumferential area can be calculated, an ideal gradient can be calculated from the estimated circle center and a target coordinate in the estimated circumferential area, and a specific image in the estimated circumferential area can be calculated. The approximate gradient can be calculated from the target coordinates and the coordinates in the specific image and in the vicinity of the target coordinates. Therefore, since the comparison between the ideal gradient and the approximate gradient is limited to the gradient with respect to the target coordinate in the estimated circumferential region, the processing of the image processing apparatus can be speeded up.

また本発明によれば、円存在可能性領域内の特定エッジ画素を抽出し、抽出された特定エッジ画素と注目座標との座標差分から近似勾配を算出することができる。   Further, according to the present invention, it is possible to extract specific edge pixels in a circle existence possibility region and calculate an approximate gradient from the coordinate difference between the extracted specific edge pixels and the target coordinate.

また本発明によれば、推定円中心と円存在可能性領域内の座標とから座標差分を算出し、算出された座標差分から推定円中心を円の中心とし、円存在可能性領域内の座標を通る円周の接ベクトルを算出することができ、算出された接ベクトルから理想勾配を算出することができる。   Further, according to the present invention, a coordinate difference is calculated from the estimated circle center and the coordinates in the circle existence possibility region, the estimated circle center is set as the center of the circle from the calculated coordinate difference, and the coordinates in the circle existence possibility region are calculated. The tangent vector of the circumference passing through can be calculated, and the ideal gradient can be calculated from the calculated tangent vector.

また本発明によれば、勾配比較結果と円周判定閾値とに基づいて、円周画像が前記入力画像に含まれているか否かを判定することができる。   Further, according to the present invention, it is possible to determine whether or not a circumferential image is included in the input image based on the gradient comparison result and the circumferential determination threshold value.

また本発明によれば、円周判定閾値を変更することができる。したがって、たとえば、画像読取装置の経年劣化などによって入力画像の特性が変化していても、特性の変化に応じて円周判定閾値を変更することで、円形状有無の判定を一定の精度以上に保つことができる。   Further, according to the present invention, the circumference determination threshold can be changed. Therefore, for example, even if the characteristics of the input image change due to aging degradation of the image reading device, the determination of the presence or absence of a circular shape can be made more than a certain accuracy by changing the circumference determination threshold according to the change in characteristics. Can keep.

また本発明によれば、入力画像から特定色の画像を抽出し、抽出された特定色の画像を入力画像として円形状有無の判定を行うことができる。したがって、判定対象の円形状の色分布が予めわかっている場合、フィルタ手段によって、判定対象と異なる色の画像をカットすることができ、判定精度を向上することができる。また、入力画像がカラー画像であっても、精度良く判定を行うことができる。さらに、新たな入力画像は情報が少ないので、画像処理装置がより小さな構成であっても判定を行うことができる。   Further, according to the present invention, it is possible to extract an image of a specific color from an input image, and determine the presence or absence of a circular shape using the extracted image of the specific color as an input image. Therefore, when the circular color distribution of the determination target is known in advance, an image having a color different from that of the determination target can be cut by the filter unit, and the determination accuracy can be improved. Even if the input image is a color image, the determination can be made with high accuracy. Furthermore, since the new input image has less information, the determination can be made even if the image processing apparatus has a smaller configuration.

また本発明によれば、2値化処理手段によって、たとえば特定色の画像に「1」を、特定色以外の画像に「0」を対応させるような2値化処理を行うことができ、2値化処理後の画像を入力画像として円形状有無の判定を行うことができる。したがって、新たな入力画像は情報が少ないので、画像処理装置がより小さな構成であっても判定を行うことができる。   Further, according to the present invention, the binarization processing means can perform binarization processing such that, for example, “1” corresponds to an image of a specific color and “0” corresponds to an image other than the specific color. The presence / absence of a circular shape can be determined using the image after the value processing as an input image. Therefore, since the new input image has little information, the determination can be made even if the image processing apparatus has a smaller configuration.

また本発明によれば、画像処理装置による判定結果を、通知装置によって、音および光の少なくとも1つを用いてユーザに通知することができる。   Further, according to the present invention, the determination result by the image processing device can be notified to the user using at least one of sound and light by the notification device.

また本発明によれば、テンプレート画像の情報を用いて推定円中心および円存在可能性領域を算出し、算出された推定円中心および円存在可能性領域を用いて、理想勾配および近似勾配を算出することができ、算出された理想勾配と近似勾配との比較によって、円周画像が入力画像に含まれているか否かを判定することができる。テンプレート画像は円周全体を含む画像である必要はなく、円周の一部を含む画像であれば、推定円中心および円存在可能性領域の算出は可能である。したがって、円周画像全体の情報を記憶することなく判定を行うことができる。また、テンプレート画像の情報および理想勾配と近似勾配との比較によって判定を行うので、テンプレート画像の情報のみを用いて判定を行う装置に比べて精度良く判定を行うことができる。   According to the present invention, the estimated circle center and the circle existence possibility region are calculated using the template image information, and the ideal gradient and the approximate gradient are calculated using the calculated estimated circle center and the circle existence possibility region. It is possible to determine whether or not a circumferential image is included in the input image by comparing the calculated ideal gradient with the approximate gradient. The template image does not need to be an image including the entire circumference, and the estimated circle center and the circle existence possibility region can be calculated as long as the image includes a part of the circumference. Therefore, the determination can be performed without storing information on the entire circumferential image. Further, since the determination is performed by comparing the template image information and the ideal gradient with the approximate gradient, it is possible to perform the determination with higher accuracy than the apparatus that performs the determination using only the template image information.

また本発明によれば、前述した各手段の機能をコンピュータによって実現させることができ、前述した画像処理装置と同様の効果を達成することができる。   In addition, according to the present invention, the function of each unit described above can be realized by a computer, and the same effect as the above-described image processing apparatus can be achieved.

また本発明によれば、コンピュータに読取らせることによって、コンピュータに前述した各手段の機能を実現させることができる。   Further, according to the present invention, the function of each unit described above can be realized in the computer by causing the computer to read it.

本発明の第1実施形態である画像処理装置101について説明する。画像処理装置101は、原稿中に円周画像が存在するか否かを判定する装置である。たとえば画像処理装置101は、図6(a)に示す特定印影画像31中の円周画像32が原稿に存在するか否かを判定できる。また画像処理装置101は、図6(a)に示すような真円形状の円周画像32が存在するか否かの判定(以下、「真円形状有無判定」と称する)だけではなく、楕円形状の円周画像が存在するか否かの判定(以下、「楕円形状有無判定」と称する)を行うことも可能である。最初に、真円形状有無判定を行う処理(以下、「真円形状有無判定処理」と称する)に沿って、画像処理装置101について説明する。   An image processing apparatus 101 according to the first embodiment of the present invention will be described. The image processing apparatus 101 is an apparatus that determines whether or not a circumferential image exists in a document. For example, the image processing apparatus 101 can determine whether or not the circumferential image 32 in the specific imprint image 31 shown in FIG. In addition, the image processing apparatus 101 determines not only whether or not there is a perfect circle-shaped circumferential image 32 as shown in FIG. It is also possible to determine whether or not a shape circumferential image exists (hereinafter referred to as “ellipse shape presence / absence determination”). First, the image processing apparatus 101 will be described along a process for determining the presence / absence of a perfect circle shape (hereinafter referred to as a “perfect circle shape presence / absence determination process”).

図1は、画像処理装置101の構成を機能的に示すブロック図である。また図2は、画像処理装置101中の推定値算出部4の構成を機能的に示すブロック図である。また図3は、画像処理装置101中の理想勾配算出部5の構成を機能的に示すブロック図である。また図4は、画像処理装置101中の近似勾配算出部6の構成を機能的に示すブロック図である。また図5は、画像処理装置101中の円形状有無判定部8の構成を機能的に示すブロック図である。画像処理装置101は、前処理部1と、印影記憶部2と、テンプレート情報記憶手段であるテンプレート特徴記憶部3と、推定円中心算出手段および円存在可能性領域算出手段である推定値算出部4と、理想勾配算出手段である理想勾配算出部5と、近似勾配算出手段である近似勾配算出部6と、勾配比較手段である勾配比較部7と、円形状有無判定手段である円形状有無判定部8とを備えており、画像読取装置9と電気的に接続されている。上記の機能的とは、各部材のそれぞれが必ずしも独立しているわけではなく、画像処理装置101が各部材に対応する機能を発揮することができるような、記憶手段、演算手段、および制御手段が備えられているということである。以下に、各部材の機能を詳細に説明する。   FIG. 1 is a block diagram functionally showing the configuration of the image processing apparatus 101. FIG. 2 is a block diagram functionally showing the configuration of the estimated value calculation unit 4 in the image processing apparatus 101. FIG. 3 is a block diagram functionally showing the configuration of the ideal gradient calculation unit 5 in the image processing apparatus 101. FIG. 4 is a block diagram functionally showing the configuration of the approximate gradient calculation unit 6 in the image processing apparatus 101. FIG. 5 is a block diagram functionally showing the configuration of the circular shape presence / absence determining unit 8 in the image processing apparatus 101. The image processing apparatus 101 includes a preprocessing unit 1, an imprint storage unit 2, a template feature storage unit 3 that is a template information storage unit, an estimated circle center calculation unit, and an estimated value calculation unit that is a circle existence possibility region calculation unit. 4, an ideal gradient calculation unit 5 as an ideal gradient calculation unit, an approximate gradient calculation unit 6 as an approximate gradient calculation unit, a gradient comparison unit 7 as a gradient comparison unit, and a circular shape presence / absence determination unit The determination unit 8 is provided and is electrically connected to the image reading device 9. The term “functional” does not necessarily mean that each member is independent, but storage means, calculation means, and control means that enable the image processing apparatus 101 to perform functions corresponding to each member. Is provided. Below, the function of each member is demonstrated in detail.

画像読取装置9はCCD(Charge Coupled Device)等の画像読取装置であり、原稿画像からの反射光像をRGB(Red Green Blue)のアナログ信号として読取り、読取ったアナログRGB信号を入力画像として前処理部1へ出力する。   The image reading device 9 is an image reading device such as a CCD (Charge Coupled Device), reads a reflected light image from a document image as an RGB (Red Green Blue) analog signal, and preprocesses the read analog RGB signal as an input image. Output to part 1.

前処理部1は、入力画像に対してA/D(アナログ/デジタル)変換を行い、アナログRGB信号をデジタルRGB信号に変換する。また、従来公知の様々な前処理を行うことができる。たとえば、デジタルRGB信号に対して、画像読取装置9の照明系、結像系および撮像系で生じる各種の歪みを取り除くシェーディング補正処理、画像読取装置9の機械的特性および光学的特性によって発生するノイズを除去するノイズ除去処理、デジタルRGB信号の各値がある一定の値以上の領域を下地領域として分離する下地除去処理、およびデジタルRGB信号に基づいて、入力画像を文字領域、面積階調画像領域、および写真領域のいずれかに分離する領域分離処理を行うことができる。また、前処理部1は入力画像の記憶手段としての機能も兼ねており、様々な処理を施した後の入力画像を記憶しておくこともできる。たとえば、画像読取装置9によって読取られた原稿がA4サイズの原稿である場合にはA4サイズの入力画像が記憶される。   The preprocessing unit 1 performs A / D (analog / digital) conversion on the input image to convert the analog RGB signal into a digital RGB signal. Moreover, conventionally well-known various pre-processing can be performed. For example, noise generated by shading correction processing for removing various distortions generated in the illumination system, the imaging system, and the imaging system of the image reading device 9 and the mechanical and optical characteristics of the image reading device 9 with respect to the digital RGB signal. Noise removal processing for removing the image, background removal processing for separating each region of the digital RGB signal with a certain value or more as a background region, and input image based on the digital RGB signal, character area, area gradation image region , And a region separation process for separation into any of the photographic regions can be performed. The pre-processing unit 1 also functions as a storage unit for input images, and can store input images after various processing. For example, when the document read by the image reading device 9 is an A4 size document, an A4 size input image is stored.

印影記憶部2は、HDD(ハードディスクドライブ)等の記憶手段で構成され、図6(a)に示す特定印影画像31の画像情報を記憶する。また印影記憶部2は、後述する真円判定用テンプレートの画像情報および真円判定用テンプレートの特徴を記憶していてもよく、画像処理装置101外の記憶装置であってもよい。   The imprint storage unit 2 includes storage means such as an HDD (hard disk drive), and stores image information of the specific imprint image 31 shown in FIG. The imprint storage unit 2 may store image information of a true circle determination template and features of a true circle determination template, which will be described later, or may be a storage device outside the image processing apparatus 101.

テンプレート特徴記憶部3は、真円判定用テンプレートの特徴を記憶する。真円判定用テンプレートの特徴は、印影記憶部2から読み出された真円判定用テンプレートの画像情報に基づいて算出されたものであってもよいし、印影記憶部2に記憶されている真円判定用テンプレートの特徴をそのまま記憶したものであってもよい。   The template feature storage unit 3 stores the feature of the perfect circle determination template. The feature of the perfect circle determination template may be calculated based on the image information of the true circle determination template read from the seal imprint storage unit 2 or the true circle stored in the seal imprint storage unit 2. The characteristics of the circle determination template may be stored as they are.

図6は、真円判定用テンプレートの特徴について説明するための図である。図6では、輝度(または明度等)に所定の上限値および下限値を設け、輝度(または明度等)が上限値より大きい、または下限値より小さい画素を白く、輝度(または明度等)が上限値より小さく、下限値より大きい画素を黒く描いている。図6(a),(b)に示すように、真円判定用テンプレート33は、特定印影画像31の一部34に含まれ、真円形状の円周画像32の一部を含む、斜線部分の領域の画像である。また図6(b)に示すように、真円判定用テンプレート33は各小領域(以下、「テンプレート小領域」と称する)に分割されている。   FIG. 6 is a diagram for explaining the characteristics of the perfect circle determination template. In FIG. 6, a predetermined upper limit value and lower limit value are set for luminance (or lightness, etc.), pixels whose luminance (or lightness, etc.) is greater than or lower than the upper limit value are white, and luminance (or lightness, etc.) is upper limit. Pixels smaller than the value and larger than the lower limit value are drawn in black. As shown in FIGS. 6A and 6B, the perfect circle determination template 33 is included in a part 34 of the specific imprint image 31 and includes a part of a perfect circle-shaped circumferential image 32. This is an image of the area. As shown in FIG. 6B, the perfect circle determination template 33 is divided into small areas (hereinafter referred to as “template small areas”).

図6(b)の目盛は、真円判定用テンプレート33内での1つの小領域の位置を表すテンプレート小領域座標を示す目盛であり、図6(c)の目盛は、真円判定用テンプレート33内での1つの画素の位置を表すテンプレート画素座標を示す目盛である。図6(c)は、20画素×10画素の領域の画像で構成された1つのテンプレート小領域35(テンプレート小領域座標が(v,f)のテンプレート小領域)を示している。また、テンプレート小領域は20画素×10画素以外の、他のサイズの画像で構成されていてもよい。   The scale in FIG. 6B is a scale indicating template small area coordinates representing the position of one small area in the perfect circle determination template 33, and the scale in FIG. 6C is a perfect circle determination template. 33 is a scale showing template pixel coordinates representing the position of one pixel within 33. FIG. 6C shows one template small region 35 (template small region whose template small region coordinates are (v, f)) composed of an image of a region of 20 pixels × 10 pixels. Further, the template small area may be composed of images of other sizes other than 20 pixels × 10 pixels.

テンプレート小領域において、輝度(または明度等)が所定の上限値より小さく、所定の下限値より大きい画素(以下、「所定画素」と称する)の数(図6(c)において黒く描かれた画素の画素数)を、そのテンプレート小領域の特徴量と呼ぶ。図6(c)からテンプレート小領域35の特徴量は100である。   In the small template region, the number of pixels (hereinafter referred to as “predetermined pixels”) whose luminance (or brightness, etc.) is smaller than a predetermined upper limit value and larger than a predetermined lower limit value (pixels drawn in black in FIG. 6C) Is referred to as the feature amount of the template small region. As shown in FIG. 6C, the feature amount of the template small area 35 is 100.

また、図6(b)のようにすべてのテンプレート小領域が同じ形状の矩形である場合には、そのテンプレート小領域の始点となるテンプレート画素座標(以下、「テンプレート小領域始点」と称する)によって、各テンプレート小領域座標を代表して表すことができる。また、1つの真円判定用テンプレート33から、すべてのテンプレート小領域に対して、テンプレート小領域始点と特徴量との組合せを算出することができる。そのようなテンプレート小領域始点と特徴量との組合せからなる群を、真円判定用テンプレート33の特徴と呼ぶ。後述するように、真円判定用テンプレート33の特徴は、入力画像中の推定円中心および円存在可能性領域を算出するために用いられるので、真円判定用テンプレート33は真円形状の円周画像32すべてを含む画像である必要がなく、推定円中心および円存在可能性領域を算出できる最小限の画像でよい。推定円中心および円存在可能性領域の算出の精度を考慮すると、円周画像の4分の1程度を含む画像からなる真円判定用テンプレートであれば充分である。   In addition, when all the template small areas are rectangles having the same shape as shown in FIG. 6B, the template pixel coordinates (hereinafter referred to as “template small area start point”) serving as the start point of the template small area are used. Each template small region coordinate can be represented as a representative. Further, a combination of the template small region start point and the feature amount can be calculated for all template small regions from one perfect circle determination template 33. A group consisting of such a combination of the template small region start point and the feature amount is referred to as a feature of the perfect circle determination template 33. As will be described later, since the feature of the perfect circle determination template 33 is used to calculate the estimated circle center and the circle existence possibility region in the input image, the perfect circle determination template 33 has a perfect circle circumference. The image need not be an image including all the images 32, and may be a minimum image that can calculate the estimated circle center and the circle existence possibility region. Considering the accuracy of calculation of the estimated circle center and the circle existence possibility region, a perfect circle determination template composed of an image including about a quarter of the circumferential image is sufficient.

またテンプレート特徴記憶部3は、後述する推定円中心算出および円存在可能性領域算出のために、真円判定用テンプレート33中の1つの画素のテンプレート画素座標と、その1つの画素から真円の中心までの主走査方向差分および副走査方向差分、ならびにその真円を含む最小限の領域を示す主走査方向範囲および副走査方向範囲を記憶する。   Further, the template feature storage unit 3 calculates the template pixel coordinates of one pixel in the true circle determination template 33 and the true circle from the one pixel for calculating the estimated circle center and circle existence possibility region described later. The main scanning direction difference and the sub-scanning direction difference to the center, and the main scanning direction range and the sub-scanning direction range indicating the minimum area including the perfect circle are stored.

推定値算出部4は、特徴量算出部10、テンプレート比較履歴記憶部11、特徴量比較部12、特徴量比較結果記憶部13、一致判定部14、推定円中心算出部15、および円存在可能性領域算出部16を含む。   The estimated value calculation unit 4 includes a feature amount calculation unit 10, a template comparison history storage unit 11, a feature amount comparison unit 12, a feature amount comparison result storage unit 13, a match determination unit 14, an estimated circle center calculation unit 15, and a circle can exist. The sex region calculation unit 16 is included.

特徴量算出部10は、図7A(a)に示す、真円形状および真円形状に類似の画像を含むような入力画像中から比較領域を決定し、テンプレート特徴記憶部3から読み出した真円判定用テンプレート33の特徴を用いて比較領域の特徴を算出する。図7A,7B,7Cは特徴量算出部10による特徴量の算出を説明するための図である。図7A,7B,7Cでは図6と同様に、所定画素を黒く、所定画素以外の画素を白く描いている。比較領域36,37は、入力画像38の一部の画像39,40に含まれる画像であって、真円判定用テンプレート33と同一の形状の小領域に分割され、同一に小領域が配置された、斜線部分の画像である。比較領域36,37中の小領域を比較小領域と呼ぶ。   The feature quantity calculation unit 10 determines a comparison area from input images including a perfect circle shape and an image similar to the perfect circle shape shown in FIG. 7A (a), and the perfect circle read from the template feature storage unit 3 The feature of the comparison area is calculated using the feature of the determination template 33. 7A, 7B, and 7C are diagrams for explaining the calculation of the feature amount by the feature amount calculation unit 10. FIG. 7A, 7B, and 7C, like FIG. 6, predetermined pixels are drawn in black, and pixels other than the predetermined pixels are drawn in white. The comparison areas 36 and 37 are images included in some of the images 39 and 40 of the input image 38, and are divided into small areas having the same shape as the perfect circle determination template 33, and the small areas are arranged in the same manner. Further, it is an image of the hatched portion. A small area in the comparison areas 36 and 37 is called a comparison small area.

図7B(b1),7C(b2)はそれぞれ、比較領域36,37の周辺画像41,42を示している。また、図7B(d1),7C(d2)はそれぞれ、図7B(c1),7C(c2)に示される比較領域36,37中の1つの比較小領域43,44を示している。図7B(c1),7C(c2)の目盛はそれぞれ、比較領域36,37内での1つの小領域の位置を表す比較小領域座標を示す目盛であり、図7B(d1),7C(d2)の目盛はそれぞれ、比較領域36,37内での1つの画素の位置を表すローカル画素座標を示す目盛である。ローカル画素座標に対して、入力画像38内での1つの画素の位置を表す座標をグローバル画素座標と呼ぶ。   7B (b1) and 7C (b2) show the peripheral images 41 and 42 of the comparison regions 36 and 37, respectively. 7B (d1) and 7C (d2) show one comparative small area 43 and 44 in the comparison areas 36 and 37 shown in FIGS. 7B (c1) and 7C (c2), respectively. The scales in FIGS. 7B (c1) and 7C (c2) are scales indicating the comparative small area coordinates representing the position of one small area in the comparative areas 36 and 37, respectively. FIGS. 7B (d1) and 7C (d2) ) Is a scale indicating local pixel coordinates representing the position of one pixel in the comparison regions 36 and 37, respectively. The coordinates representing the position of one pixel in the input image 38 with respect to the local pixel coordinates are referred to as global pixel coordinates.

また、図6(b)のようにすべてのテンプレート小領域が同じ形状の矩形である場合には、テンプレート小領域に対応する比較小領域もすべて同じ形状の矩形であるので、比較小領域の始点となるローカル画素座標(以下、「比較小領域始点」と称する)によって、各比較小領域座標を代表して表すことができる。したがって、比較領域は、すべての比較小領域座標がテンプレート小領域座標と一致し、すべての比較小領域始点がテンプレート小領域始点と一致する領域である。   In addition, when all the template small areas are rectangles having the same shape as shown in FIG. 6B, all the comparison small areas corresponding to the template small areas are also rectangles having the same shape. The local pixel coordinates (hereinafter referred to as “comparison small area start point”) can be representatively represented by the comparative small area coordinates. Therefore, the comparison area is an area where all the comparison small area coordinates coincide with the template small area coordinates, and all the comparison small area start points coincide with the template small area start point.

比較小領域における所定画素数(図7B(d1),7C(d2)において黒く描かれた画素数)を、その比較小領域の特徴量と呼ぶ。図7B(d1),7C(d2)から比較小領域43,44の特徴量はそれぞれ、100,96である。また、比較領域から、すべての比較小領域に対して、比較小領域始点と特徴量との組合せを算出することができる。そのような比較小領域始点と特徴量との組合せからなる群を、比較領域の特徴と呼ぶ。特徴量算出部10は、算出された比較領域の特徴を特徴量比較部12に対して出力する。   The predetermined number of pixels in the comparative small area (the number of pixels drawn in black in FIGS. 7B (d1) and 7C (d2)) is referred to as the feature amount of the comparative small area. From FIG. 7B (d1) and 7C (d2), the characteristic amounts of the comparative small areas 43 and 44 are 100 and 96, respectively. In addition, the combination of the comparison small area start point and the feature amount can be calculated for all the comparison small areas from the comparison area. A group consisting of such a combination of the comparison small region start point and the feature amount is referred to as a comparison region feature. The feature amount calculation unit 10 outputs the calculated feature of the comparison area to the feature amount comparison unit 12.

また、特徴量算出部10は、特徴を算出した比較領域における1つの画素の、ローカル画素座標とグローバル画素座標との組合せをテンプレート比較履歴記憶部11に対して出力する。ローカル画素座標とグローバル画素座標との組合せが異なれば、入力画像38中の異なる領域を比較領域としていることになる。後述するように、一致判定部14から真円判定用テンプレートと比較領域とが一致していないという判定が出力されると、特徴量算出部10は、異なる比較領域の特徴の算出を行う。特徴量算出部10は、テンプレート比較履歴記憶部11から読み出したローカル画素座標とグローバル画素座標との組合せから、同一の比較領域に対して二度目の特徴の算出を行わないように設定される。   Further, the feature amount calculation unit 10 outputs a combination of local pixel coordinates and global pixel coordinates of one pixel in the comparison region where the feature is calculated to the template comparison history storage unit 11. If the combination of the local pixel coordinates and the global pixel coordinates is different, a different area in the input image 38 is used as the comparison area. As will be described later, when the determination that the perfect circle determination template does not match the comparison region is output from the matching determination unit 14, the feature amount calculation unit 10 calculates the features of different comparison regions. The feature amount calculation unit 10 is set so as not to perform the second feature calculation for the same comparison region from the combination of the local pixel coordinates and the global pixel coordinates read from the template comparison history storage unit 11.

テンプレート比較履歴記憶部11は、上述したように、特徴量算出部10から出力された、ローカル画素座標とグローバル画素座標との組合せを記憶する。   As described above, the template comparison history storage unit 11 stores a combination of local pixel coordinates and global pixel coordinates output from the feature amount calculation unit 10.

特徴量比較部12は、テンプレート特徴記憶部3から読み出されたテンプレート小領域始点と特徴量との組合せ、および特徴量算出部10から出力された比較小領域始点と特徴量との組合せを用いて、テンプレート小領域と比較小領域とが一致しているか否かの判定を行う。この判定は、テンプレート小領域始点と比較小領域始点とが一致するテンプレート小領域の特徴量および比較小領域の特徴量を比較することで行われる。たとえば、図6(c)のテンプレート小領域35のテンプレート小領域始点は(421,51)であり、図7B(d1)の比較小領域43および図7C(d2)の比較小領域44の比較小領域始点は(421,51)であるので、テンプレート小領域35の特徴量と比較小領域44,45の特徴量とが比較される。   The feature amount comparison unit 12 uses a combination of the template small region start point and the feature amount read from the template feature storage unit 3 and a combination of the comparison small region start point and the feature amount output from the feature amount calculation unit 10. Thus, it is determined whether or not the template small area and the comparative small area match. This determination is performed by comparing the feature amount of the template small region where the template small region start point and the comparison small region start point coincide with the feature amount of the comparative small region. For example, the template small region start point of the template small region 35 in FIG. 6C is (421, 51), and the comparative small region 43 in FIG. 7B (d1) and the comparative small region 44 in FIG. 7C (d2) are comparatively small. Since the region start point is (421, 51), the feature amount of the template small region 35 and the feature amount of the comparison small regions 44, 45 are compared.

特徴量比較部12は、比較小領域の特徴量が、テンプレート小領域の特徴量±10%以内である場合には小領域同士は一致していると判定し、テンプレート小領域の特徴量±10%以内でない場合には小領域同士は一致していないと判定する。たとえば、テンプレート小領域35の特徴量は100であり、比較小領域43の場合における比較小領域の特徴量は100であるので、比較小領域の特徴量はテンプレート小領域の特徴量±0%となって、テンプレート小領域35と比較小領域43とは一致していると判定される。また、比較小領域44の場合における比較小領域の特徴量は96であるので、比較小領域の特徴量はテンプレート小領域の特徴量−4%となって、テンプレート小領域35と比較小領域44とは一致していると判定される。これらの判定結果は、特徴量比較結果記憶部13に対して出力される。   The feature amount comparison unit 12 determines that the small regions match when the feature amount of the comparison small region is within ± 10% of the feature amount of the template small region, and the feature amount ± 10 of the template small region. If not within%, it is determined that the small areas do not match. For example, the feature amount of the template small region 35 is 100, and the feature amount of the comparative small region in the case of the comparative small region 43 is 100. Therefore, the feature amount of the comparative small region is ± 0% of the feature amount of the template small region. Thus, it is determined that the template small area 35 and the comparative small area 43 match. Further, since the feature amount of the comparison small region in the case of the comparison small region 44 is 96, the feature amount of the comparison small region becomes -4% of the feature amount of the template small region. Is determined to match. These determination results are output to the feature amount comparison result storage unit 13.

特徴量比較結果記憶部13は、特徴量比較部12から出力された判定結果から、一致していると判定された数(以下、「一致判定数」と称する)と一致していないと判定された数(以下、「不一致判定数」と称する)とを記憶する。一致判定数と不一致判定数との和はテンプレート小領域(比較小領域)の数であり、全判定数である。   The feature quantity comparison result storage unit 13 is determined not to match the number determined to match (hereinafter referred to as “matching determination number”) from the determination result output from the feature quantity comparison unit 12. (Hereinafter referred to as “the number of mismatch determinations”). The sum of the coincidence determination number and the mismatch determination number is the number of small template regions (comparison small regions), and is the total number of determinations.

一致判定部14は、特徴量比較結果記憶部13に記憶された判定結果を読み出し、真円判定用テンプレートと比較領域とが一致しているか否かの判定を行う。この判定は、一致判定数および不一致判定数を用いて行われる。一致判定部14は、たとえば、全判定数に対する一致判定数の割合である一致判定数/全判定数×100(%)が10%以上であれば、真円判定用テンプレートと比較領域とが一致していると判定をする。判定結果は、特徴量算出部10、推定円中心算出部15、および円存在可能性領域算出部16に対して出力される。   The coincidence determination unit 14 reads out the determination result stored in the feature amount comparison result storage unit 13 and determines whether or not the perfect circle determination template matches the comparison region. This determination is performed using the coincidence determination number and the mismatch determination number. For example, if the number of coincidence determinations / the total number of determinations × 100 (%), which is the ratio of the number of coincidence determinations to the total number of determinations, is 10% or more, the match determination unit 14 matches the perfect circle determination template with the comparison region. Judge that you are doing. The determination result is output to the feature amount calculation unit 10, the estimated circle center calculation unit 15, and the circle existence possibility region calculation unit 16.

推定円中心算出部15は、一致判定部14から真円判定用テンプレートと比較領域とが一致しているという判定が出力されると、推定円中心の算出を行う。推定円中心とは、比較領域中の画像が円周画像の一部であれば、その円の中心があると推定されるグローバル画素座標である。推定円中心算出部15は、テンプレート特徴記憶部3から読み出された、真円判定用テンプレート中の1つの画素のテンプレート画素座標と、その1つの画素からの真円の中心までの主走査方向差分および副走査方向差分とを用いて、推定円中心を算出する。図8は、推定円中心算出および円存在可能性領域算出を説明するための図である。図8(a1),(a2)に示すように、推定円中心算出部15は、テンプレート画素座標と一致するローカル画素座標を有する画素45,46のグローバル画素座標に、前記主走査方向差分47,48および前記副走査方向差分49,50をそれぞれ加算して、推定円中心51,52を算出する。算出された推定円中心は理想勾配算出部5の差分ベクトル算出部17に対して出力される。   When the determination that the true circle determination template matches the comparison area is output from the match determination unit 14, the estimated circle center calculation unit 15 calculates the estimated circle center. The estimated circle center is a global pixel coordinate that is estimated to have the center of the circle if the image in the comparison region is a part of the circumferential image. The estimated circle center calculation unit 15 reads the template pixel coordinates of one pixel in the perfect circle determination template read from the template feature storage unit 3 and the main scanning direction from the one pixel to the center of the perfect circle. The estimated circle center is calculated using the difference and the sub-scanning direction difference. FIG. 8 is a diagram for explaining estimated circle center calculation and circle existence possibility region calculation. As shown in FIGS. 8A1 and 8A2, the estimated circle center calculation unit 15 adds the main scanning direction difference 47, to the global pixel coordinates of the pixels 45, 46 having local pixel coordinates that coincide with the template pixel coordinates. 48 and the sub-scanning direction differences 49 and 50 are added to calculate estimated circle centers 51 and 52, respectively. The calculated estimated circle center is output to the difference vector calculation unit 17 of the ideal gradient calculation unit 5.

円存在可能性領域算出部16は、一致判定部14から真円判定用テンプレートと比較領域とが一致しているという判定が出力されると、円存在可能性領域の算出を行う。円存在可能性領域とは、比較領域中の画像が円周画像の一部であれば、その円周画像を含む最小限の領域であると推定される領域である。円存在可能性領域算出部16は、テンプレート特徴記憶部3から読み出された、真円判定用テンプレート中の1つの画素のテンプレート画素座標と、真円を含む最小限の領域を示す主走査方向範囲および副走査方向範囲を用いて、円存在可能性領域を算出する。図8(b1),(b2)に示すように、円存在可能性領域算出部16は、テンプレート画素座標と一致するローカル画素座標を有する画素45,46のグローバル画素座標と、前記主走査方向範囲53,54および前記副走査方向範囲55,56とを用いて、円存在可能性領域57,58を算出する。算出された円存在可能性領域は理想勾配算出部5の差分ベクトル算出部17、および近似勾配算出部6の特定エッジ抽出部20に対して出力される。   When the determination that the true circle determination template matches the comparison region is output from the match determination unit 14, the circle presence possibility region calculation unit 16 calculates a circle presence possibility region. The circle existence possibility area is an area that is estimated to be a minimum area including the circumferential image if the image in the comparison area is a part of the circumferential image. The circle presence possibility area calculation unit 16 reads the template pixel coordinates of one pixel in the perfect circle determination template read from the template feature storage unit 3 and the main scanning direction indicating the minimum area including the perfect circle A circle existence possibility region is calculated using the range and the sub-scanning direction range. As shown in FIGS. 8B1 and 8B2, the circle presence possibility region calculation unit 16 calculates the global pixel coordinates of the pixels 45 and 46 having local pixel coordinates that match the template pixel coordinates, and the main scanning direction range. 53, 54 and the sub-scanning direction ranges 55, 56 are used to calculate circle existence possibility regions 57, 58. The calculated circle existence possibility region is output to the difference vector calculation unit 17 of the ideal gradient calculation unit 5 and the specific edge extraction unit 20 of the approximate gradient calculation unit 6.

理想勾配算出部5は、第2差分算出手段である差分ベクトル算出部17、理想接線ベクトル算出手段である理想接線ベクトル算出部18、および勾配算出部19を含む。   The ideal gradient calculation unit 5 includes a difference vector calculation unit 17 that is a second difference calculation unit, an ideal tangent vector calculation unit 18 that is an ideal tangent vector calculation unit, and a gradient calculation unit 19.

差分ベクトル算出部17は、推定円中心算出部15から出力された推定円中心、および円存在可能性領域算出部16から出力された円存在可能性領域から、注目画素のグローバル座標(以下、「注目座標」と称する)と推定円中心との差分ベクトルを算出する。この場合の注目画素とは、円存在可能性領域内の1つの画素であって、差分ベクトル算出部17によって選ばれる。差分ベクトル算出部17は、たとえば、推定円中心が(Ox,Oy)、注目座標が(X,Y)である場合、差分ベクトルである(X−Ox,Y−Oy)を算出する。算出された差分ベクトルは、注目座標とともに理想接線ベクトル算出部18に対して出力される。   The difference vector calculation unit 17 uses the estimated circle center output from the estimated circle center calculation unit 15 and the circle existence possibility region output from the circle existence possibility region calculation unit 16 to determine the global coordinates (hereinafter, “ And a difference vector between the center of the estimated circle and the center of the estimated circle. The target pixel in this case is one pixel in the circle existence possibility region, and is selected by the difference vector calculation unit 17. For example, when the estimated circle center is (Ox, Oy) and the target coordinate is (X, Y), the difference vector calculation unit 17 calculates (X-Ox, Y-Oy) as a difference vector. The calculated difference vector is output to the ideal tangent vector calculation unit 18 together with the target coordinate.

理想接線ベクトル算出部18は、差分ベクトル算出部17から出力された差分ベクトルから理想接線ベクトルを算出する。理想接線ベクトルとは、注目画素が、推定円中心を中心とする円周上にあると仮定した場合の接ベクトルである。差分ベクトルを直交変換することで理想接線ベクトルは、(ΔX,ΔY)=(Y−Oy,−X+Ox)と算出される。算出された理想接線ベクトルは、注目座標とともに勾配算出部19に対して出力される。   The ideal tangent vector calculation unit 18 calculates an ideal tangent vector from the difference vector output from the difference vector calculation unit 17. The ideal tangent vector is a tangent vector when it is assumed that the target pixel is on the circumference centered on the estimated circle center. The ideal tangent vector is calculated as (ΔX, ΔY) = (Y−Oy, −X + Ox) by orthogonally transforming the difference vector. The calculated ideal tangent vector is output to the gradient calculation unit 19 together with the target coordinate.

勾配算出部19は、理想接線ベクトル算出部18から出力された理想接線ベクトルから、理想接線ベクトルの勾配である理想勾配ΔY/ΔX=(−X+Ox)/(Y−Oy)を算出する。算出された理想勾配は、注目座標とともに勾配比較部7に対して出力される。ΔX=Y−Oy=0の場合は理想勾配の算出がされないので、数字の代わりに「∞」等の記号が出力される。   The gradient calculation unit 19 calculates an ideal gradient ΔY / ΔX = (− X + Ox) / (Y−Oy), which is the gradient of the ideal tangent vector, from the ideal tangent vector output from the ideal tangent vector calculation unit 18. The calculated ideal gradient is output to the gradient comparison unit 7 together with the target coordinate. When ΔX = Y−Oy = 0, the ideal gradient is not calculated, so a symbol such as “∞” is output instead of a number.

近似勾配算出部6は、特定エッジ抽出手段である特定エッジ抽出部20、特定エッジ記憶手段である特定エッジ記憶部21、第1差分算出手段である差分ベクトル算出部22、および勾配算出部23を含む。   The approximate gradient calculation unit 6 includes a specific edge extraction unit 20 that is a specific edge extraction unit, a specific edge storage unit 21 that is a specific edge storage unit, a difference vector calculation unit 22 that is a first difference calculation unit, and a gradient calculation unit 23. Including.

特定エッジ抽出部20は、円存在可能性領域算出部16から出力された円存在可能性領域に基づいて、円存在可能性領域中の特定エッジ画素のグローバル画素座標をすべて抽出する。特定エッジ画素とは、従来公知の方法によって抽出されるエッジ画素のうち、他のエッジ画素によって形成される閉じた領域内に含まれないエッジ画素である。図9は、特定エッジ抽出部20による特定エッジ画素の抽出を説明するための図である。特定エッジ抽出部20は、図9(a1),(a2)に示される円存在可能性領域内の画像に対して、従来公知の方法によってエッジ画素の抽出を行い、図9(b1),(b2)に示される複数のエッジ画素59〜65を抽出する。特定エッジ抽出部20は、さらに、複数のエッジ画素59〜65の中から他のエッジ画素によって形成される閉じた領域内に含まれていない、特定エッジ画素59,60を抽出する。抽出された特定エッジ画素のグローバル画素座標は、特定エッジ記憶部21に対して出力される。   The specific edge extraction unit 20 extracts all the global pixel coordinates of the specific edge pixels in the circle existence possibility region based on the circle existence possibility region output from the circle existence possibility region calculation unit 16. The specific edge pixel is an edge pixel that is not included in a closed region formed by other edge pixels among edge pixels extracted by a conventionally known method. FIG. 9 is a diagram for explaining extraction of specific edge pixels by the specific edge extraction unit 20. The specific edge extraction unit 20 extracts edge pixels from the images in the circle existence possibility regions shown in FIGS. 9A1 and 9A2 by a conventionally known method, and FIGS. A plurality of edge pixels 59 to 65 shown in b2) are extracted. The specific edge extraction unit 20 further extracts specific edge pixels 59 and 60 that are not included in the closed region formed by the other edge pixels from the plurality of edge pixels 59 to 65. The global pixel coordinates of the extracted specific edge pixel are output to the specific edge storage unit 21.

特定エッジ記憶部21は、上記のようにして抽出された、円存在可能性領域中の特定エッジ画素のグローバル画素座標をすべて記憶する。   The specific edge storage unit 21 stores all the global pixel coordinates of the specific edge pixels in the circle existence possibility area extracted as described above.

差分ベクトル算出部22は、特定エッジ記憶部21が記憶する特定エッジ画素のグローバル画素座標を読み出し、注目座標と、注目画素との主走査方向差分が3以上の特定エッジ画素であって注目画素と最も距離の近い画素のグローバル画素座標との差分ベクトルを算出する。この場合の注目画素とは、特定エッジ画素のうちの1つの画素であって、差分ベクトル算出部22によって選ばれる。図10は、差分ベクトル算出部22による差分ベクトルの算出を説明するための図である。差分ベクトル算出部22は、たとえば、図10(a)に示すように、注目画素61の座標(X,Y)=(2005,2011)である場合、注目画素61との主走査方向差分が3以上の特定エッジ画素であって注目画素と最も距離の近い画素62のグローバル画素座標(A,B)=(2008,2007)を読み出し、差分ベクトル63である(ΔX’,ΔY’)=((A−X),(B−Y))=(3,−4)を算出する。また、図10(b)に示すように、注目画素64の座標が(X,Y)=(1008,1009)である場合、注目画素64との主走査方向差分が3以上の特定エッジ画素であって注目画素と最も距離の近い画素65のグローバル画素座標(A,B)=(1008,1005)を読み出し、差分ベクトル66である(ΔX’,ΔY’)=((A−X),(B−Y))=(0,−4)を算出する。算出された差分ベクトルは、注目座標とともに勾配算出部23に対して出力される。   The difference vector calculation unit 22 reads the global pixel coordinates of the specific edge pixel stored in the specific edge storage unit 21 and is a specific edge pixel having a main scanning direction difference of 3 or more between the target coordinate and the target pixel. A difference vector from the global pixel coordinate of the pixel having the closest distance is calculated. The target pixel in this case is one of the specific edge pixels, and is selected by the difference vector calculation unit 22. FIG. 10 is a diagram for explaining calculation of the difference vector by the difference vector calculation unit 22. For example, when the coordinate (X, Y) = (2005, 2011) of the pixel of interest 61 is 3 as shown in FIG. The global pixel coordinates (A, B) = (2008, 2007) of the pixel 62 that is the specific edge pixel and is closest to the target pixel are read out, and the difference vector 63 is (ΔX ′, ΔY ′) = (( (A−X), (B−Y)) = (3, −4) is calculated. Further, as shown in FIG. 10B, when the coordinate of the pixel of interest 64 is (X, Y) = (1008, 1009), it is a specific edge pixel whose main scanning direction difference from the pixel of interest 64 is 3 or more. Then, the global pixel coordinates (A, B) = (1008, 1005) of the pixel 65 closest to the target pixel are read out, and the difference vector 66 is (ΔX ′, ΔY ′) = ((A−X), ( B−Y)) = (0, −4) is calculated. The calculated difference vector is output to the gradient calculation unit 23 together with the target coordinate.

勾配算出部23は、差分ベクトル算出部22から出力された差分ベクトルから、差分ベクトルの勾配である近似勾配ΔY’/ΔX’=(B−Y)/(A−X)を算出する。算出された近似勾配は、注目座標とともに勾配比較部7に対して出力される。ΔX’=A−X=0の場合は近似勾配の算出がされないので、数字の代わりに「∞」等の記号が出力される。   The gradient calculation unit 23 calculates an approximate gradient ΔY ′ / ΔX ′ = (B−Y) / (A−X), which is the gradient of the difference vector, from the difference vector output from the difference vector calculation unit 22. The calculated approximate gradient is output to the gradient comparison unit 7 together with the target coordinate. When ΔX ′ = A−X = 0, the approximate gradient is not calculated, so a symbol such as “∞” is output instead of a number.

勾配比較部7は、勾配算出部19から出力された注目座標および理想勾配、ならびに勾配算出部23から出力された注目座標および近似勾配を用いて、理想勾配と近似勾配とが一致しているか否かの判定を行う。この判定は、注目座標が一致する理想勾配および近似勾配を比較することで行われる。図11は、勾配比較部7による理想勾配と近似勾配との比較を模式的に表す図である。図11(a)に示すように、勾配比較部7は、注目座標67を通る仮想的な円周69上の接線の勾配である理想勾配71と、近似的に算出された、特定エッジ画素上の接線の勾配である近似勾配73とを比較する。また図11(b)に示すように、勾配比較部7は、注目座標68を通る仮想的な円周70上の接線の勾配である理想勾配72と、近似的に算出された、特定エッジ画素上の接線の勾配である近似勾配74とを比較する。勾配比較部7はたとえば、近似勾配が、理想勾配±10%以内である場合には勾配同士は一致していると判定し、理想勾配±10%以内でない場合には勾配同士は一致していないと判定する。判定結果は、円形状有無判定部8の勾配比較結果記憶部24に対して出力される。   The gradient comparison unit 7 uses the attention coordinate and ideal gradient output from the gradient calculation unit 19 and the attention coordinate and approximate gradient output from the gradient calculation unit 23 to determine whether the ideal gradient and the approximate gradient match. Judgment is made. This determination is performed by comparing the ideal gradient and the approximate gradient with the same coordinates of interest. FIG. 11 is a diagram schematically illustrating a comparison between the ideal gradient and the approximate gradient by the gradient comparison unit 7. As shown in FIG. 11A, the gradient comparison unit 7 includes an ideal gradient 71 that is a gradient of a tangent on a virtual circumference 69 passing through the target coordinate 67, and a specific edge pixel that is approximately calculated. The approximate gradient 73 that is the gradient of the tangent line is compared. Also, as shown in FIG. 11B, the gradient comparison unit 7 includes an ideal gradient 72 that is a gradient of a tangent on a virtual circumference 70 that passes through the target coordinate 68, and a specific edge pixel that is approximately calculated. Compare the approximate gradient 74, which is the gradient of the tangent line above. For example, when the approximate gradient is within the ideal gradient ± 10%, the gradient comparing unit 7 determines that the gradients match, and when the approximate gradient is not within ± 10%, the gradients do not match. Is determined. The determination result is output to the gradient comparison result storage unit 24 of the circular shape presence / absence determination unit 8.

円形状有無判定部8は、勾配比較結果記憶手段である勾配比較結果記憶部24および円周判定手段である円周判定部25を含む。   The circular shape presence / absence determination unit 8 includes a gradient comparison result storage unit 24 that is a gradient comparison result storage unit and a circumference determination unit 25 that is a circumference determination unit.

勾配比較結果記憶部24は、勾配比較部7から出力された判定結果から、一致していると判定された数(以下、「勾配一致判定数」と称する)と一致していないと判定された数(以下、「勾配不一致判定数」と称する)とを記憶する。   The gradient comparison result storage unit 24 determines from the determination result output from the gradient comparison unit 7 that it does not match the number determined to match (hereinafter referred to as “gradient match determination number”). The number (hereinafter referred to as “gradient mismatch determination number”) is stored.

円周判定部25は、勾配比較結果記憶部24に記憶された判定結果を読み出し、円存在可能性領域内に円周画像が存在しているか否かの判定を行う。この判定は、勾配一致判定数および勾配不一致判定数を用いて行われる。円周判定部25は、たとえば、勾配一致判定数と勾配不一致判定数との和からなる勾配全判定数に対する勾配一致判定数の割合である勾配一致判定数/勾配全判定数×100(%)が、10%等の円周判定閾値以上であれば、円存在可能性領域内に円周画像が存在していると判定し、円周存在判定、推定円中心および円存在可能性領域を、画像処理装置101内の他の部材または画像処理装置101外の他の装置に対して出力する。また円周判定部25は、勾配一致判定数/勾配全判定数×100(%)が円周判定閾値以上である円存在可能性領域が入力画像中に存在しなければ、入力画像中に円周画像が存在していないと判定し、円周不存在判定を画像処理装置101内の他の部材または画像処理装置101外の他の装置に対して出力する。   The circumference determination unit 25 reads the determination result stored in the gradient comparison result storage unit 24, and determines whether or not a circumference image exists in the circle existence possibility region. This determination is performed using the gradient match determination number and the gradient mismatch determination number. The circumference determination unit 25 is, for example, the ratio of the gradient match determination number / the total gradient determination number × 100 (%), which is the ratio of the gradient match determination number to the gradient total determination number that is the sum of the gradient match determination number and the gradient mismatch determination number. Is equal to or greater than the circumference determination threshold value such as 10%, it is determined that the circumference image exists in the circle existence possibility area, and the circumference existence determination, the estimated circle center, and the circle existence possibility area are determined. The data is output to another member in the image processing apparatus 101 or another apparatus outside the image processing apparatus 101. In addition, the circle determination unit 25 determines that a circle existence possibility region where the number of gradient matching determinations / the total number of gradient determinations × 100 (%) is equal to or greater than the circle determination threshold does not exist in the input image. It is determined that the circumferential image does not exist, and the circumferential absence determination is output to another member in the image processing apparatus 101 or another apparatus outside the image processing apparatus 101.

上記の各部材を備える画像処理装置101の真円形状有無判定処理について説明する。図12は、真円形状有無判定処理を表すフローチャートである。   The true circle shape presence / absence determination process of the image processing apparatus 101 including the above-described members will be described. FIG. 12 is a flowchart showing the perfect circle shape determination process.

画像処理装置101は、図示しない制御手段によって、原稿画像を画像読取装置9に読取らせる(ステップS1)。原稿の読取りによって得られた入力画像は、前処理部1によって前処理が施される。画像処理装置101は、前処理後の入力画像中に未だ比較領域となっていない領域が存在するか否かを判定し(ステップS2)、存在すればステップS3へ、存在しなければステップS11へと処理を進める。特徴量算出部10によって比較領域が決定され、比較領域の特徴が算出されると、特徴量比較部12によって、真円判定用テンプレートの特徴と比較領域の特徴とが比較される(ステップS3)。この比較の結果に基づき、一致判定部14によって、真円判定用テンプレートと比較領域とが一致するか否かの判定が行われる(ステップS4)。一致すればステップS5へ、一致しなければステップS2へと処理を進める。   The image processing apparatus 101 causes the image reading apparatus 9 to read a document image by a control unit (not shown) (step S1). The input image obtained by reading the document is preprocessed by the preprocessing unit 1. The image processing apparatus 101 determines whether or not there is an area that is not yet a comparison area in the input image after the preprocessing (step S2), and if there is, the process proceeds to step S3, and if not, the process proceeds to step S11. And proceed. When the comparison region is determined by the feature amount calculation unit 10 and the feature of the comparison region is calculated, the feature amount comparison unit 12 compares the feature of the perfect circle determination template with the feature of the comparison region (step S3). . Based on the result of this comparison, the match determination unit 14 determines whether or not the perfect circle determination template matches the comparison region (step S4). If they match, the process proceeds to step S5, and if they do not match, the process proceeds to step S2.

たとえば、図7B(c1)の比較領域36の特徴も、図7C(c2)の比較領域37の特徴も、図6(b)の真円判定用テンプレート33の特徴と類似しているので、画像処理装置は真円判定用テンプレート33と比較領域36,37とが一致していると判定し、処理をステップS5へ進める。   For example, the characteristics of the comparison area 36 in FIG. 7B (c1) and the characteristics of the comparison area 37 in FIG. 7C (c2) are similar to the characteristics of the perfect circle determination template 33 in FIG. The processing apparatus determines that the perfect circle determination template 33 matches the comparison areas 36 and 37, and advances the process to step S5.

画像処理装置101は、推定円中心算出部15によって推定円中心を算出し(ステップS5)、円存在可能性領域算出部16によって円存在可能性領域を算出する(ステップS6)。画像処理装置101は、算出された推定円中心および円存在可能性領域に基づき、理想勾配算出部5によって理想勾配を算出する(ステップS7)。画像処理装置101は、算出された円存在可能性領域に基づき、近似勾配算出部6によって近似勾配を算出する(ステップS8)。   The image processing apparatus 101 calculates the estimated circle center by the estimated circle center calculation unit 15 (step S5), and calculates the circle existence possibility region by the circle existence possibility region calculation unit 16 (step S6). The image processing apparatus 101 calculates an ideal gradient by the ideal gradient calculation unit 5 based on the calculated estimated circle center and circle existence possibility region (step S7). The image processing apparatus 101 calculates an approximate gradient by the approximate gradient calculation unit 6 based on the calculated circle existence possibility region (step S8).

理想勾配および近似勾配が算出されると、勾配比較部7によって、算出された理想勾配と近似勾配とが比較され(ステップS9)、その比較によって得られた勾配一致判定数および勾配不一致判定数に基づいて、円形状有無判定部8によって、算出された円存在可能性領域内に円周画像が存在しているか否かの判定が行われる(ステップS10)。   When the ideal gradient and the approximate gradient are calculated, the gradient comparison unit 7 compares the calculated ideal gradient with the approximate gradient (step S9). Based on this, the circular shape presence / absence determination unit 8 determines whether or not a circumferential image exists in the calculated circle existence possibility region (step S10).

たとえば、図11(a)に示すように、理想勾配71と近似勾配73とが一致しており、特定エッジ画素すべてにおいて、同様に理想勾配と近似勾配とが一致するような場合には、算出された円存在可能性領域内に円周画像が存在しているという判定がなされる。また、図11(b)に示すように、理想勾配72と近似勾配74とが一致しておらず、他の多数の特定エッジ画素においても、同様に理想勾配と近似勾配とが一致しない場合には、算出された円存在可能性領域内に円周画像は存在していないという判定がなされる。算出された円存在可能性領域内に円周画像が存在するか否かの判定結果ならびに円周画像が存在する場合には推定円中心および円存在可能性領域が、図示しない記憶手段に記憶される。   For example, as shown in FIG. 11 (a), when the ideal gradient 71 and the approximate gradient 73 match, and the ideal gradient and the approximate gradient similarly match in all the specific edge pixels, the calculation is performed. It is determined that a circumferential image exists in the circle existence possibility region. Further, as shown in FIG. 11B, when the ideal gradient 72 and the approximate gradient 74 do not coincide with each other, and the ideal gradient and the approximate gradient do not coincide with each other in many other specific edge pixels as well. Is determined that no circumferential image exists in the calculated circle existence possibility region. The result of determining whether or not a circumferential image exists in the calculated circle existence possibility area, and if there is a circumference image, the estimated circle center and the circle existence possibility area are stored in a storage unit (not shown). The

画像処理装置101は、入力画像中に未だ比較領域となっていない領域が存在するか否かを判定し(ステップS11)、存在すればステップS3へ、存在しなければステップS12へと処理を進める。画像処理装置101は、図示しない記憶手段に記憶された、円存在可能性領域内に円周画像が存在するか否かの判定結果を用いて、円周画像が存在すればステップS13へ、存在しなければステップS14へと処理を進める(ステップS12)。   The image processing apparatus 101 determines whether or not there is an area that is not yet a comparison area in the input image (step S11), and if it exists, the process proceeds to step S3, and if not, the process proceeds to step S12. . The image processing apparatus 101 uses the determination result stored in the storage means (not shown) to determine whether or not a circumferential image exists in the circle existence possibility area. If there is a circumferential image, the image processing apparatus 101 proceeds to step S13. If not, the process proceeds to step S14 (step S12).

ステップS13において、画像処理装置101は、円周画像が入力画像中に存在するという情報である円周存在判定、推定円中心および円存在可能性領域を出力する。入力画像中に複数の円周画像が存在する場合には、複数の円周存在判定が出力される。ステップS14において、画像処理装置101は、円周画像が入力画像中に存在しないという情報である円周不存在判定を出力する。   In step S <b> 13, the image processing apparatus 101 outputs a circumference existence determination, an estimated circle center, and a circle existence possibility area, which are information that a circumference image exists in the input image. If there are a plurality of circumference images in the input image, a plurality of circumference existence determinations are output. In step S <b> 14, the image processing apparatus 101 outputs a circumference nonexistence determination which is information that the circumference image does not exist in the input image.

画像処理装置101は、円周存在判定または円周不存在判定を出力すると、真円形状有無判定処理を終了する。   When the image processing apparatus 101 outputs the circumference presence determination or the circumference non-existence determination, the image processing apparatus 101 ends the perfect circle shape presence / absence determination process.

画像処理装置101によって生じる効果を説明する。上述したように、画像処理装置101は、真円判定用テンプレートおよび比較領域の比較と、理想勾配および近似勾配の比較とを用いて、真円形状有無判定を行っている。真円判定用テンプレートが円周画像のすべてを含む画像であれば、理想勾配および近似勾配の比較を行わなくとも、ある程度の精度で真円形状有無判定を行うことは可能である。しかしながら、真円判定用テンプレートが円周画像のすべてを含む画像である場合、真円判定用テンプレートの特徴の情報量は膨大となるので、テンプレート特徴記憶部3は大容量の記憶手段である必要がある。すなわち、本発明の画像処理装置101は、テンプレート特徴記憶部3の記憶容量が小さくとも真円形状有無判定を行うことができる。   The effects produced by the image processing apparatus 101 will be described. As described above, the image processing apparatus 101 determines the presence or absence of a perfect circle shape by using the comparison of the perfect circle determination template and the comparison region and the comparison of the ideal gradient and the approximate gradient. If the perfect circle determination template is an image including all of the circumferential images, it is possible to determine the presence or absence of a perfect circle shape with a certain degree of accuracy without comparing the ideal gradient and the approximate gradient. However, when the perfect circle determination template is an image including all of the circumference images, the amount of feature information of the perfect circle determination template becomes enormous, and therefore the template feature storage unit 3 needs to be a large-capacity storage unit. There is. That is, the image processing apparatus 101 according to the present invention can determine the presence or absence of a perfect circle shape even if the storage capacity of the template feature storage unit 3 is small.

また画像処理装置101は、真円判定用テンプレートおよび比較領域の比較と、理想勾配および近似勾配の比較とを用いて、真円形状有無判定を行うので、真円判定用テンプレートおよび比較領域の比較のみによって判定を行う画像処理装置に比べて判定精度が向上する。図13は、画像処理装置101における判定精度向上の効果を説明するための図である。図13(a1)は画像処理装置101によって円周存在判定が出力される比較領域中の画像75を示しており、図13(a2)は画像処理装置101によって円周不存在判定が出力される比較領域中の画像76を示している。また、図13(b1)は画像75中の比較小領域77を示しており、図13(b2)は画像76中の比較小領域78を示している。   In addition, the image processing apparatus 101 performs the determination of the presence or absence of a perfect circle shape by using the comparison of the perfect circle determination template and the comparison region and the comparison of the ideal gradient and the approximate gradient, so the comparison between the perfect circle determination template and the comparison region is performed. The determination accuracy is improved as compared with the image processing apparatus that performs the determination only by the above. FIG. 13 is a diagram for explaining the effect of improving the determination accuracy in the image processing apparatus 101. FIG. 13A1 shows an image 75 in the comparison area where the circumference existence determination is output by the image processing apparatus 101, and FIG. 13A2 shows the circumference nonexistence determination output by the image processing apparatus 101. An image 76 in the comparison area is shown. 13B1 shows a comparative small area 77 in the image 75, and FIG. 13B2 shows a comparative small area 78 in the image 76.

図13(a1),(a2),(b1),(b2)に示しているように、画像75と画像76との間には、比較小領域77,78において円周画像に欠けが存在するか否かの差しかない。また、図13(b1),(b2)に示しているように、比較小領域77,78は所定画素が等しい、すなわち、特徴量が等しいので、画像75を含む比較領域および画像76を含む比較領域の特徴は同一である。したがって、真円判定用テンプレートおよび比較領域の比較のみによって判定を行う画像処理装置では、円周画像である画像75だけではなく、円周画像に欠けが存在する画像76も円周画像であると判定される。   As shown in FIGS. 13 (a1), (a2), (b1), and (b2), there is a lack in the circumferential image in the comparative small regions 77 and 78 between the image 75 and the image 76. There is no difference in whether or not. Further, as shown in FIGS. 13B1 and 13B2, since the comparison small areas 77 and 78 have the same predetermined pixels, that is, feature amounts are equal, the comparison area including the image 75 and the comparison including the image 76 are compared. The region characteristics are the same. Therefore, in the image processing apparatus that performs the determination only by comparing the perfect circle determination template and the comparison area, not only the image 75 that is the circumferential image but also the image 76 in which the circumferential image is missing is the circumferential image. Determined.

本発明の画像処理装置101は、画像76を円周画像であるとする誤判定を行わない。画像処理装置101は、真円判定用テンプレートおよび比較領域の比較後、円存在可能性領域を算出し、特定エッジ画素を抽出する。図13(c1),(c2)は、比較小領域77,78中の特定エッジ画素を示す図である。図13(c1),(c2)に示すように、円周画像である画像75の特定エッジ画素は円周画像の外側の画素だけであるのに対し、円周画像に欠けが存在する画像76の特定エッジ画素は、円周画像の外側および内側の画素となる。したがって画像76においては勾配一致判定数が少なくなるので、画像処理装置101は画像76を円周画像であると判定しない。このように、本発明の画像処理装置101は、精度よく真円形状有無判定を行うことができる。   The image processing apparatus 101 of the present invention does not make an erroneous determination that the image 76 is a circumferential image. After comparing the perfect circle determination template and the comparison region, the image processing apparatus 101 calculates a circle existence possibility region and extracts specific edge pixels. FIGS. 13C1 and 13C2 are diagrams illustrating specific edge pixels in the comparative small areas 77 and 78. FIG. As shown in FIGS. 13C1 and 13C2, the specific edge pixel of the image 75 that is the circumferential image is only the pixel outside the circumferential image, whereas the image 76 in which the circumferential image is missing. The specific edge pixels are pixels on the outer side and the inner side of the circumferential image. Therefore, since the number of gradient matching determinations is reduced in the image 76, the image processing apparatus 101 does not determine that the image 76 is a circumferential image. Thus, the image processing apparatus 101 of the present invention can accurately determine the presence or absence of a perfect circle shape.

次に、画像処理装置101における楕円形状有無判定を行う処理(以下、「楕円形状有無判定処理」と称する)について説明する。真円形状有無判定処理と同様に、原稿の読取りによって得られた入力画像は、前処理部1によって前処理が施される。画像処理装置101は、推定値算出部4によって、前処理後の入力画像中の比較領域における推定円中心および円存在可能性領域の算出を行う。算出の際に用いられる判定用テンプレートは、楕円判定用テンプレートである。図14は楕円判定用テンプレートを示す図であり、図14では、輝度(または明度等)に所定の上限値および下限値を設け、輝度(または明度等)が上限値より大きい、または下限値より小さい画素を白く、輝度(または明度等)が上限値より小さく、下限値より大きい画素を黒く描いている。図14(a1),(b1),(a2),(b2)に示すように、楕円判定用テンプレート83,84は、特定印影画像79,80の一部81,82に含まれ、楕円形状の円周画像85,86の一部を含む、斜線部分の領域の画像である。また図14(b1),(b2)に示すように、楕円判定用テンプレート83,84はテンプレート小領域に分割されている。真円形状有無判定処理と同様に、テンプレート小領域の特徴量とテンプレート小領域始点との組合せからなる群である、楕円判定用テンプレート83,84の特徴が、テンプレート特徴記憶部3に記憶されている。   Next, a process for determining the presence / absence of an elliptical shape in the image processing apparatus 101 (hereinafter referred to as an “elliptical shape determination process”) will be described. Similar to the perfect circle shape determination process, the input image obtained by reading the document is preprocessed by the preprocessing unit 1. In the image processing apparatus 101, the estimated value calculation unit 4 calculates the estimated circle center and the circle existence possibility region in the comparison region in the input image after the preprocessing. The determination template used in the calculation is an ellipse determination template. FIG. 14 is a diagram showing an ellipse determination template. In FIG. 14, a predetermined upper limit value and lower limit value are provided for luminance (or brightness, etc.), and luminance (or brightness, etc.) is greater than the upper limit value or lower than the lower limit value. Small pixels are drawn white, and pixels whose luminance (or brightness, etc.) is smaller than the upper limit value and larger than the lower limit value are drawn black. As shown in FIGS. 14 (a1), (b1), (a2), and (b2), the ellipse determination templates 83 and 84 are included in the parts 81 and 82 of the specific imprint images 79 and 80, and have an elliptical shape. This is an image of the shaded area including a part of the circumferential images 85 and 86. Further, as shown in FIGS. 14B1 and 14B2, the ellipse determination templates 83 and 84 are divided into template small regions. Similar to the perfect circle shape determination process, the features of the ellipse determination templates 83 and 84, which are groups of combinations of the feature amount of the template small region and the template small region start point, are stored in the template feature storage unit 3. Yes.

推定値算出部4は、この楕円判定用テンプレートの特徴を読み出し、楕円判定用テンプレートの特徴と比較領域の特徴とを比較し、両者が一致しているか否かを判定する。推定値算出部4は、その判定の結果に基づき、推定円中心および円存在可能性領域が算出する。画像処理装置101は、算出された推定円中心および円存在可能性領域に基づき、理想勾配算出部5によって理想勾配を、近似勾配算出部6によって近似勾配を、それぞれ算出する。   The estimated value calculation unit 4 reads the feature of the ellipse determination template, compares the feature of the ellipse determination template with the feature of the comparison region, and determines whether or not they match. The estimated value calculation unit 4 calculates the estimated circle center and the circle existence possibility region based on the determination result. The image processing apparatus 101 calculates an ideal gradient by the ideal gradient calculation unit 5 and an approximate gradient by the approximate gradient calculation unit 6 based on the calculated estimated circle center and circle existence possibility region.

理想勾配の算出における、理想接線ベクトル算出部18による理想接線ベクトルの算出法は、真円形状有無判定処理と楕円形状有無判定処理とでは異なる。すなわち、推定円中心を(Ox,Oy)、注目座標を(X,Y)として、差分ベクトル算出部17によって算出された差分ベクトルが(X−Ox,Y−Oy)=(A’,B’)であり、予め定められた楕円を表す式がx/C+y/D=1((x,y)は楕円円周上の任意の点、C,Dは定数)であるとき、理想接線ベクトル(ΔX,ΔY)は、(ΔX,ΔY)=(B’/D,−A’/C)と算出される。また、図14(a2)に示すように、楕円の傾き角がαのとき、理想接線ベクトル(ΔX,ΔY)は、下記式のように算出される。理想勾配算出部5は、このような理想接線ベクトルを用いて理想勾配の算出を行う。近似勾配算出部6による近似勾配の算出は、真円形状有無判定処理と同様である。 The method for calculating the ideal tangent vector by the ideal tangent vector calculation unit 18 in calculating the ideal gradient differs between the perfect circle shape presence / absence determination process and the elliptical shape presence / absence determination process. That is, assuming that the estimated circle center is (Ox, Oy) and the target coordinate is (X, Y), the difference vector calculated by the difference vector calculation unit 17 is (X−Ox, Y−Oy) = (A ′, B ′). ), And a formula representing a predetermined ellipse is x 2 / C 2 + y 2 / D 2 = 1 ((x, y) is an arbitrary point on the circumference of the ellipse, and C and D are constants) The ideal tangent vector (ΔX, ΔY) is calculated as (ΔX, ΔY) = (B ′ / D 2 , −A ′ / C 2 ). As shown in FIG. 14A2, when the inclination angle of the ellipse is α, the ideal tangent vector (ΔX, ΔY) is calculated as the following equation. The ideal gradient calculation unit 5 calculates an ideal gradient using such an ideal tangent vector. The calculation of the approximate gradient by the approximate gradient calculation unit 6 is the same as the perfect circle shape presence / absence determination process.

Figure 2010134564
Figure 2010134564

理想勾配および近似勾配が算出されると、勾配比較部7によって、算出された理想勾配と近似勾配とが比較され、その比較によって得られた勾配一致判定数および勾配不一致判定数に基づいて、円形状有無判定部8によって楕円形状の円周画像が存在しているか否かの判定が行われ、真円形状有無判定処理と同様に、判定結果が出力される。以上が楕円形状有無判定処理である。画像処理装置101は、真円形状有無判定処理および楕円形状有無判定処理によって、入力画像中に任意の印影画像が任意の角度で存在していても、その印影画像中の円周画像部分の判定を行うことができる。   When the ideal gradient and the approximate gradient are calculated, the gradient comparison unit 7 compares the calculated ideal gradient with the approximate gradient. The shape presence / absence determination unit 8 determines whether or not an elliptical circumferential image exists, and the determination result is output in the same manner as the perfect circle shape presence / absence determination processing. The above is the ellipse shape presence / absence determination process. The image processing apparatus 101 determines the circumference image portion in the imprint image even if an arbitrary imprint image exists at an arbitrary angle in the input image by the true circle shape presence / absence determination processing and the elliptical shape presence / absence determination processing. It can be performed.

次に、本発明の第2実施形態である画像処理装置102について説明する。図15は画像処理装置102の構成を機能的に示すブロック図である。図15に示すように、画像処理装置102は、推定円周算出手段である推定円周算出部26を備えていること以外は、画像処理装置101と同一の構成である。したがって、推定円周算出部26およびその周辺の部材の機能についてのみ説明する。画像処理装置101の部材と共通する各部材は共通の機能を備えている。   Next, an image processing apparatus 102 according to the second embodiment of the present invention will be described. FIG. 15 is a block diagram functionally showing the configuration of the image processing apparatus 102. As shown in FIG. 15, the image processing apparatus 102 has the same configuration as the image processing apparatus 101 except that the image processing apparatus 102 includes an estimated circumference calculation unit 26 that is an estimated circumference calculation unit. Therefore, only the functions of the estimated circumference calculation unit 26 and its peripheral members will be described. Each member common to the members of the image processing apparatus 101 has a common function.

推定円周算出部26は、円周半径下限値および円周半径上限値を記憶しており、それらの値と、推定円中心算出部15から出力された推定円中心と、円存在可能性領域算出部16から出力された円存在可能性領域とから、推定円周領域を算出する。図16は、推定円周領域を説明するための図である。推定円周算出部26は、図16(a)に示すように、推定円中心87を中心として円周半径上限値88を半径とする円周と、推定円中心87を中心として円周半径下限値89を半径とする円周とに挟まれる領域であって、円存在可能性領域90に含まれる領域である、斜線部で示される推定円周領域91を算出する。算出された推定円周領域は差分ベクトル算出部17および特定エッジ抽出部20に対して出力される。   The estimated circumference calculation unit 26 stores a lower limit value of the circumference radius and an upper limit value of the circumference radius, the estimated circle center output from the estimated circle center calculation unit 15, and a circle existence possibility region. An estimated circumference area is calculated from the circle existence possibility area output from the calculation unit 16. FIG. 16 is a diagram for explaining the estimated circumferential region. As shown in FIG. 16A, the estimated circumference calculation unit 26 has a circumference having an estimated circle center 87 as a center and a circumference radius upper limit 88 as a radius, and an estimated circle center 87 as a center. An estimated circumference area 91 indicated by a hatched area, which is an area between the circumference having the value 89 as a radius and included in the circle existence possibility area 90, is calculated. The calculated estimated circumferential area is output to the difference vector calculation unit 17 and the specific edge extraction unit 20.

差分ベクトル算出部17は、推定円中心算出部15から出力された推定円中心、および推定円周算出部26から出力された推定円周領域から、注目座標と推定円中心との差分ベクトルを算出する。この場合の注目画素とは、推定円周領域内の1つの画素であって、差分ベクトル算出部17によって選ばれる。算出された差分ベクトルは、注目座標とともに理想接線ベクトル算出部18に対して出力される。差分ベクトルの算出後は、画像処理装置101と同様に、理想勾配が算出され、勾配比較部7に対して出力される。   The difference vector calculation unit 17 calculates a difference vector between the target coordinate and the estimated circle center from the estimated circle center output from the estimated circle center calculation unit 15 and the estimated circumference region output from the estimated circumference calculation unit 26. To do. The pixel of interest in this case is one pixel in the estimated circumferential area, and is selected by the difference vector calculation unit 17. The calculated difference vector is output to the ideal tangent vector calculation unit 18 together with the target coordinate. After the calculation of the difference vector, the ideal gradient is calculated and output to the gradient comparison unit 7 as in the image processing apparatus 101.

特定エッジ抽出部20は、推定円周算出部26から出力された推定円周領域に基づいて、推定円周領域中の特定エッジ画素のグローバル画素座標をすべて抽出する。図16(b),(c)は、特定エッジ抽出部20によって、推定円周領域から抽出された特定エッジ画素を示している。図16(b)に示すように、特定エッジ画素が推定円周領域内にすべて存在する場合には、円存在可能性領域内の全特定エッジ画素92が抽出される。また、図16(c)に示すように、推定円周領域内の特定エッジ画素93と、円存在可能性領域内であるけれども推定円周領域外である特定エッジ画素94とが存在する場合は、図16(c)において実線で示す特定エッジ画素93のみが抽出される。特定エッジ画素の抽出後は、画像処理装置101と同様に、近似勾配が算出され、勾配比較部7に対して出力される。その後、出力された理想勾配および近似勾配から、画像処理装置101と同様に判定が行われる。   The specific edge extraction unit 20 extracts all global pixel coordinates of the specific edge pixel in the estimated circumference region based on the estimated circumference region output from the estimated circumference calculation unit 26. FIGS. 16B and 16C show specific edge pixels extracted from the estimated circumferential area by the specific edge extraction unit 20. As shown in FIG. 16B, when all the specific edge pixels are present in the estimated circumferential area, all the specific edge pixels 92 in the circle existence possibility area are extracted. In addition, as shown in FIG. 16C, when there is a specific edge pixel 93 in the estimated circumferential area and a specific edge pixel 94 that is in the circle existence possibility area but outside the estimated circumferential area. In FIG. 16C, only the specific edge pixel 93 indicated by the solid line is extracted. After the specific edge pixel is extracted, an approximate gradient is calculated and output to the gradient comparison unit 7 as in the image processing apparatus 101. Thereafter, the determination is performed in the same manner as the image processing apparatus 101 from the output ideal gradient and approximate gradient.

このように、画像処理装置102は、推定円周領域内の注目画素に対する勾配同士の比較を行うことができるので、判定の精度を保ったまま、判定処理速度の高速化を図ることができる。また画像処理装置102は、楕円形状有無判定処理の場合にも、楕円形状の推定円周領域を指定するパラメータ、たとえば、長径上限値および下限値、短径上限値および下限値、ならびに楕円の傾き角を、推定円周算出部26に記憶させておくことで、真円形状有無判定処理と同様に、推定円周領域内の注目座標に対する勾配同士の比較のみを行うことができる。   As described above, the image processing apparatus 102 can compare the gradients with respect to the target pixel in the estimated circumferential region, so that the determination processing speed can be increased while maintaining the determination accuracy. The image processing apparatus 102 also uses the parameters for designating the estimated circumferential area of the ellipse, for example, the upper limit value and the lower limit value of the major axis, the upper limit value and the lower limit value of the minor axis, and the inclination of the ellipse in the elliptic shape presence / absence determination process By storing the angle in the estimated circumference calculation unit 26, it is possible to perform only comparison of gradients with respect to the target coordinate in the estimated circumference area, as in the case of determining whether there is a perfect circle shape.

次に、本発明の第3実施形態について説明する。図17は、本実施形態の画像処理装置における円形状有無判定部8周辺の部材を機能的に示すブロック図である。図17に示すように、本実施形態は、円周判定閾値変更手段である円周判定閾値変更部27を備えること以外は、画像処理装置101と同一の構成であり、共通する各部材は、共通する機能を有している。   Next, a third embodiment of the present invention will be described. FIG. 17 is a block diagram functionally illustrating members around the circular shape presence / absence determination unit 8 in the image processing apparatus of the present embodiment. As shown in FIG. 17, this embodiment has the same configuration as the image processing apparatus 101 except that it includes a circumference determination threshold value changing unit 27 that is a circumference determination threshold value changing unit. Has common functions.

円周判定閾値変更部27は、円周判定閾値を変更する。円周判定閾値の変更は、図示しない入力手段を用いたユーザからの指示によって行うことができる。また、ユーザの指示によらず、所定の条件下で、円周判定閾値を変更するように構成されていてもよい。たとえば、画像処理装置に接続される画像読取装置の読取解像度に応じて判定閾値を変更するような構成である。本実施形態は、このように、円周判定閾値を変更することが可能な円周判定閾値変更部27を備えることによって、画像読取装置が経年劣化しても、一定の精度以上で判定を行うことができる。   The circumference determination threshold value changing unit 27 changes the circumference determination threshold value. The circumference determination threshold value can be changed by an instruction from the user using an input unit (not shown). Moreover, you may be comprised so that a circumference determination threshold value may be changed on predetermined conditions irrespective of a user's instruction | indication. For example, the determination threshold is changed according to the reading resolution of the image reading apparatus connected to the image processing apparatus. As described above, the present embodiment includes the circumference determination threshold value changing unit 27 that can change the circumference determination threshold value, so that even if the image reading apparatus deteriorates over time, the determination is performed with a certain accuracy or more. be able to.

次に、本発明の第4実施形態である画像処理装置103について説明する。図18は、画像処理装置103の構成を機能的に示すブロック図である。図18に示すように、画像処理装置103は、フィルタ手段であるフィルタ部28を備えること以外は、画像処理装置101と同一の構成であり、共通する各部材は、共通する機能を有している。   Next, an image processing apparatus 103 according to the fourth embodiment of the present invention will be described. FIG. 18 is a block diagram functionally showing the configuration of the image processing apparatus 103. As shown in FIG. 18, the image processing apparatus 103 has the same configuration as that of the image processing apparatus 101 except that the image processing apparatus 103 includes a filter unit 28 that is a filter unit, and common members have common functions. Yes.

フィルタ部28は、Rフィルタ部28Rと、Gフィルタ部28Gと、Bフィルタ部28Bとを含む。   The filter unit 28 includes an R filter unit 28R, a G filter unit 28G, and a B filter unit 28B.

Rフィルタ部28Rは、前処理部1によって前処理が施された入力画像のRGB信号値のうち、R信号値を読み出し、フィルタリングを行う。Rフィルタ部28Rは、たとえば、256階調において、R信号値が200〜220の画素のみを抽出する。抽出された画素の情報はフィルタ部28の図示しない処理手段に対して出力される。Gフィルタ部28Gは、前処理部1によって前処理が施された入力画像のRGB信号値のうち、G信号値を読み出し、フィルタリングを行う。Gフィルタ部28Gは、たとえば、256階調において、R信号値が30〜40の画素のみを抽出する。抽出された画素の情報はフィルタ部28の処理手段に対して出力される。Bフィルタ部28Bは、前処理部1によって前処理が施された入力画像のRGB信号値のうち、B信号値を読み出し、フィルタリングを行う。Bフィルタ部28Bは、たとえば、256階調において、B信号値が10〜20の画素のみを抽出する。抽出された画素の情報はフィルタ部28の処理手段に対して出力される。   The R filter unit 28R reads out the R signal value from among the RGB signal values of the input image preprocessed by the preprocessing unit 1 and performs filtering. For example, the R filter unit 28R extracts only pixels having an R signal value of 200 to 220 in 256 gradations. The extracted pixel information is output to a processing unit (not shown) of the filter unit 28. The G filter unit 28G reads out the G signal value from among the RGB signal values of the input image preprocessed by the preprocessing unit 1 and performs filtering. For example, the G filter unit 28G extracts only pixels having an R signal value of 30 to 40 in 256 gradations. The extracted pixel information is output to the processing means of the filter unit 28. The B filter unit 28B reads out the B signal value from among the RGB signal values of the input image preprocessed by the preprocessing unit 1 and performs filtering. For example, the B filter unit 28B extracts only pixels having a B signal value of 10 to 20 in 256 gradations. The extracted pixel information is output to the processing means of the filter unit 28.

フィルタ部28内の処理手段は、Rフィルタ部28R、Gフィルタ部28G、Bフィルタ部28Bから出力された画素の情報を用いて、特定色の画素を抽出する。たとえば、上記の例では、特定色は、RGB信号値が(200〜220,30〜40,10〜20)となる色であり、この特定色の画素が抽出される。抽出されない特定色以外の画素は、RGB信号値が(0,0,0)の画素となる。特定色の抽出後の画像は、前処理部1に対して出力され、前処理部1に記憶される。その後、画像処理装置103は、特定色の抽出後の画像を入力画像として、画像処理装置101と同様に円形状有無判定処理を行う。   The processing means in the filter unit 28 extracts pixels of a specific color using the pixel information output from the R filter unit 28R, the G filter unit 28G, and the B filter unit 28B. For example, in the above example, the specific color is a color having an RGB signal value of (200 to 220, 30 to 40, 10 to 20), and pixels of this specific color are extracted. Pixels other than the specific color that are not extracted are pixels whose RGB signal values are (0, 0, 0). The image after extraction of the specific color is output to the preprocessing unit 1 and stored in the preprocessing unit 1. Thereafter, the image processing apparatus 103 performs circular shape presence / absence determination processing in the same manner as the image processing apparatus 101 using the image after extraction of the specific color as an input image.

このように、画像処理装置103は、抽出された特定色の画像を入力画像として円形状有無の判定を行うことができるので、判定対象の円形状の色分布が予めわかっている場合、たとえば印影が朱色である場合などに、フィルタ部28によって、朱色以外の色の画像をカットすることができ、判定精度を向上することができる。また、画像処理装置103は、入力画像がカラー画像であっても、無彩化処理を行わずに、カラー画像のまま判定を行うことができるので、精度良く判定を行うことができる。さらに、特定色抽出後の画像は、元の画像と比べて情報が少ないので、画像処理装置103の記憶手段をより小容量化することができる。   As described above, the image processing apparatus 103 can determine the presence / absence of a circular shape using the extracted image of a specific color as an input image. Therefore, when the circular color distribution to be determined is known in advance, for example, an imprint When the color is vermilion, the filter unit 28 can cut an image of a color other than vermilion, and the determination accuracy can be improved. Further, even if the input image is a color image, the image processing apparatus 103 can perform the determination with the color image without performing the achromatization process, and therefore can perform the determination with high accuracy. Furthermore, since the image after the specific color extraction has less information than the original image, the storage means of the image processing apparatus 103 can be reduced in capacity.

次に、本発明の第5実施形態である画像処理装置104について説明する。図19は、画像処理装置104の構成を機能的に示すブロック図である。図19に示すように画像処理装置104は、2値化処理手段である2値化処理部29を備えること以外は、画像処理装置103と同一の構成であり、共通する各部材は、共通する機能を有している。   Next, an image processing apparatus 104 according to the fifth embodiment of the present invention will be described. FIG. 19 is a block diagram functionally showing the configuration of the image processing apparatus 104. As shown in FIG. 19, the image processing apparatus 104 has the same configuration as the image processing apparatus 103 except that it includes a binarization processing unit 29 that is a binarization processing unit, and common members are common. It has a function.

2値化処理部29は、特定色抽出後の画像に対し、2値化処理を行う。たとえば、特定色の画素を「1」として、RGB信号値をすべて(255,255,255)とする。特定色以外の画素は、「0」として、RGB信号値をすべて(0,0,0)とする。2値化処理後の画像は、前処理部1に対して出力され、前処理部1に記憶される。その後、画像処理装置104は、特定色の抽出後の画像を入力画像として、画像処理装置101と同様に円形状有無判定処理を行う。   The binarization processing unit 29 performs binarization processing on the image after the specific color extraction. For example, the pixel of the specific color is “1”, and all the RGB signal values are (255, 255, 255). Pixels other than the specific color are set to “0” and all RGB signal values are set to (0, 0, 0). The binarized image is output to the preprocessing unit 1 and stored in the preprocessing unit 1. Thereafter, the image processing apparatus 104 performs a circular shape presence / absence determination process in the same manner as the image processing apparatus 101 using the image after extraction of the specific color as an input image.

このように、画像処理装置104は、2値化処理後の画像を入力画像として円形状有無の判定を行うことができる。2値化処理後の画像は、元の画像と比べて情報が少ないので、画像処理装置104の記憶手段をより小容量化することができる。   As described above, the image processing apparatus 104 can determine the presence or absence of a circular shape using the binarized image as an input image. Since the image after the binarization process has less information than the original image, the storage means of the image processing apparatus 104 can be reduced in capacity.

次に、本発明の画像処理システムの実施形態である画像処理システム200について説明する。図20は画像処理システム200の構成を機能的に示すブロック図である。図20に示すように、画像処理システム200は、画像読取装置9と、画像処理装置101と、通知装置30とを含む。画像読取装置9および画像処理装置101は、それぞれ上記の読取装置および処理装置であるので、詳細は省略する。   Next, an image processing system 200 that is an embodiment of the image processing system of the present invention will be described. FIG. 20 is a block diagram functionally showing the configuration of the image processing system 200. As illustrated in FIG. 20, the image processing system 200 includes an image reading device 9, an image processing device 101, and a notification device 30. Since the image reading device 9 and the image processing device 101 are the reading device and the processing device, respectively, the details are omitted.

画像読取装置9によって原稿画像から読取られた画像は、画像処理装置101に対して出力され、画像処理装置101は、その画像を入力画像として、入力画像に対して円形状有無判定を行う。入力画像中に円周画像が存在すると判定された場合、画像処理装置101は、円周存在判定、推定円中心および円存在可能性領域を通知装置30に対して出力する。入力画像中に円周画像が存在していないと判定された場合、画像処理装置101は、円周不存在判定を通知装置30に対して出力する。   An image read from the document image by the image reading device 9 is output to the image processing device 101, and the image processing device 101 uses the image as an input image to determine whether or not the input image has a circular shape. When it is determined that a circumferential image exists in the input image, the image processing apparatus 101 outputs the circumferential presence determination, the estimated circle center, and the circle existence possibility area to the notification device 30. When it is determined that no circumference image exists in the input image, the image processing apparatus 101 outputs a circumference absence determination to the notification apparatus 30.

通知装置30は、画像処理装置101から出力された情報に基づいて、ユーザに対し通知を行う。通知は、図示しないスピーカからの音声であってもよいし、図示しない表示部に判定結果を示す文章を表示してもよい。たとえば、通知装置30は、画像処理装置101から円周存在判定、推定円中心および円存在可能性領域が出力されると、「円周画像が検出されました」というアナウンスとともに、表示部に入力画像および円存在可能性領域を表示させてもよい。また、たとえば、通知装置30は、画像処理装置101から円周不存在判定が出力されると、「円周画像は検出されませんでした」というアナウンスを行なってもよい。このように画像処理システム200は、音および光の少なくとも1つを用いてユーザに対して判定結果を通知することができる。   The notification device 30 notifies the user based on the information output from the image processing device 101. The notification may be sound from a speaker (not shown), or a sentence indicating the determination result may be displayed on a display unit (not shown). For example, when the circumference existence determination, the estimated circle center, and the circle existence possibility region are output from the image processing apparatus 101, the notification device 30 inputs the information to the display unit together with the announcement “circumference image detected”. An image and a circle existence possibility area may be displayed. Further, for example, when the circumference nonexistence determination is output from the image processing apparatus 101, the notification apparatus 30 may make an announcement “No circumference image was detected”. Thus, the image processing system 200 can notify the determination result to the user using at least one of sound and light.

また本発明の画像処理方法は、上記の画像処理装置の第1〜5実施形態および上記の画像処理システムの実施形態に、円形状有無判定処理を実行させることによって実現される。また、プログラムに係る本発明の実施形態として、コンピュータに実行させるためのプログラムを記録したコンピュータ読取可能な記録媒体に、円形状有無判定処理を行う画像処理プログラムを記録するものとすることもできる。   The image processing method of the present invention is realized by causing the first to fifth embodiments of the image processing apparatus and the embodiment of the image processing system to execute a circular presence / absence determination process. As an embodiment of the present invention relating to a program, an image processing program for performing circular shape presence / absence determination processing may be recorded on a computer-readable recording medium in which a program to be executed by a computer is recorded.

そのような画像処理プログラムを記録媒体に記録する結果、円形状有無判定処理を実行するプログラムコード(実行形式プログラム、中間コードプログラム、ソースプログラム)を記録した記録媒体を持ち運び自在に提供することができる。   As a result of recording such an image processing program on a recording medium, a recording medium on which a program code (execution format program, intermediate code program, source program) for executing circular shape presence / absence determination processing is recorded can be provided in a portable manner. .

上記記録媒体は、デジタルカラー画像形成装置またはコンピュータシステムに備えられるプログラム読取装置により読取られることで上記の画像処理方法が実行される。   The recording medium is read by a digital color image forming apparatus or a program reading apparatus provided in a computer system, thereby executing the image processing method.

コンピュータシステムは、フラットベッドスキャナ、フィルムスキャナ、デジタルカメラなどの画像入力装置、所定のプログラムコードがロードされることにより上記画像処理方法など様々な処理が行われるコンピュータ、コンピュータの処理結果を表示するCRTディスプレイ、液晶ディスプレイなどの画像表示装置およびコンピュータの処理結果を紙などに出力するプリンタより構成される。さらにコンピュータシステムには、ネットワークを介してサーバなどに接続するための通信手段としてのネットワークカードやモデムなどが備えられる。   The computer system includes an image input device such as a flatbed scanner, a film scanner, and a digital camera, a computer that performs various processes such as the image processing method by loading a predetermined program code, and a CRT that displays the processing results of the computer. An image display device such as a display and a liquid crystal display, and a printer that outputs the processing results of the computer to paper or the like. Further, the computer system is provided with a network card, a modem, and the like as communication means for connecting to a server or the like via a network.

なお、本実施形態では、この記録媒体として、マイクロコンピュータで処理が行われるために図示しないメモリ、たとえばROM(Read Only Memory)そのものがプログラムメディアであっても良いし、また、図示しない外部記憶装置としてプログラム読取装置が設けられ、そこに記録媒体を挿入することで読取可能なプログラムメディアであっても良い。   In the present embodiment, as the recording medium, a memory (not shown) such as a ROM (Read Only Memory) itself may be a program medium because processing is performed by a microcomputer, or an external storage device (not shown). As a program medium that can be read by inserting a recording medium therein.

いずれの場合においても、格納されているプログラムはマイクロプロセッサがアクセスして実行させる構成であっても良いし、あるいは、いずれの場合もプログラムコードを読み出し、読み出されたプログラムコードは、マイクロコンピュータの図示しないプログラム記憶エリアにダウンロードされて、そのプログラムが実行される方式であってもよい。このダウンロード用のプログラムは予め本体装置に格納されているものとする。   In any case, the stored program may be configured to be accessed and executed by the microprocessor, or in any case, the program code is read and the read program code is stored in the microcomputer. It may be downloaded to a program storage area (not shown) and the program may be executed. It is assumed that this download program is stored in the main device in advance.

ここで、上記プログラムメディアは、本体と分離可能に構成される記録媒体であり、磁気テープ、カセットテープ等のテープ系、フレキシブルディスク、ハードディスク等の磁気ディスク、CD−ROM(Compact Disc Read Only Memory)/MO(Magneto Optical
disc)/MD(Mini Disc)/DVD(Digital Versatile Disc)等の光ディスクのディスク系、IC(Integrated Circuit)カード(メモリカードを含む)/光カード等のカード系、あるいはマスクROM、EPROM(Erasable Programmable Read Only Memory)、EEPROM(Electrically Erasable Programmable Read Only Memory)、フラッシュROM等による半導体メモリを含めた固定的にプログラムコードを担持する媒体であっても良い。
Here, the program medium is a recording medium configured to be separable from the main body, and includes a tape system such as a magnetic tape and a cassette tape, a magnetic disk such as a flexible disk and a hard disk, and a CD-ROM (Compact Disc Read Only Memory). / MO (Magneto Optical
disc) / MD (Mini Disc) / DVD (Digital Versatile Disc) optical discs, IC (Integrated Circuit) cards (including memory cards) / optical cards, etc., mask ROM, EPROM (Erasable Programmable) It may be a medium that carries a fixed program code including a read only memory (EEPROM), an electrically erasable programmable read only memory (EEPROM), and a semiconductor memory such as a flash ROM.

また、インターネットを含む通信ネットワークを接続可能なシステム構成であれば、通信ネットワークからプログラムコードをダウンロードするように流動的にプログラムコードを担持する媒体であっても良い。なお、このように通信ネットワークからプログラムをダウンロードする場合には、そのダウンロード用のプログラムは予め本体装置に格納しておくか、あるいは別な記録媒体からインストールされるものであっても良い。なお、本発明は、上記プログラムコードが電子的な伝送で具現化された、搬送波に埋め込まれたコンピュータデータ信号の形態でも実現され得る。   In addition, as long as the system configuration can connect to a communication network including the Internet, a medium that fluidly carries the program code so as to download the program code from the communication network may be used. When the program is downloaded from the communication network in this way, the download program may be stored in the main device in advance or may be installed from another recording medium. The present invention can also be realized in the form of a computer data signal embedded in a carrier wave in which the program code is embodied by electronic transmission.

画像処理装置101の構成を機能的に示すブロック図である。2 is a block diagram functionally showing the configuration of an image processing apparatus 101. FIG. 推定値算出部4の構成を機能的に示すブロック図である。3 is a block diagram functionally showing the configuration of an estimated value calculation unit 4. FIG. 理想勾配算出部5の構成を機能的に示すブロック図である。3 is a block diagram functionally showing a configuration of an ideal gradient calculation unit 5. FIG. 近似勾配算出部6の構成を機能的に示すブロック図である。3 is a block diagram functionally showing the configuration of an approximate gradient calculation unit 6. FIG. 円形状有無判定部8の構成を機能的に示すブロック図である。3 is a block diagram functionally showing the configuration of a circular shape presence / absence determining unit 8. FIG. 真円判定用テンプレートの特徴について説明するための図である。It is a figure for demonstrating the characteristic of the template for perfect circle determination. 特徴量算出部10による特徴量の算出を説明するための図である。It is a figure for demonstrating calculation of the feature-value by the feature-value calculation part 10. FIG. 特徴量算出部10による特徴量の算出を説明するための図である。It is a figure for demonstrating calculation of the feature-value by the feature-value calculation part 10. FIG. 特徴量算出部10による特徴量の算出を説明するための図である。It is a figure for demonstrating calculation of the feature-value by the feature-value calculation part 10. FIG. 推定円中心算出および円存在可能性領域算出を説明するための図である。It is a figure for demonstrating estimation circle center calculation and circle presence possibility area | region calculation. 特定エッジ抽出部20による特定エッジ画素の抽出を説明するための図である。It is a figure for demonstrating extraction of the specific edge pixel by the specific edge extraction part 20. FIG. 差分ベクトル算出部22による差分ベクトルの算出を説明するための図である。It is a figure for demonstrating calculation of the difference vector by the difference vector calculation part 22. FIG. 勾配比較部7による理想勾配と近似勾配との比較を模式的に表す図である。It is a figure which represents typically the comparison with the ideal gradient and approximate gradient by the gradient comparison part. 真円形状有無判定処理を表すフローチャートである。It is a flowchart showing a perfect circle shape existence determination process. 画像処理装置101における判定精度向上の効果を説明するための図である。It is a figure for demonstrating the effect of the determination accuracy improvement in the image processing apparatus. 楕円判定用テンプレートを示す図である。It is a figure which shows the ellipse determination template. 画像処理装置102の構成を機能的に示すブロック図である。2 is a block diagram functionally showing the configuration of an image processing apparatus 102. FIG. 推定円周領域を説明するための図である。It is a figure for demonstrating an estimated circumference area | region. 円形状有無判定部8周辺の部材を機能的に示すブロック図である。It is a block diagram functionally showing members around the circular shape presence / absence determining unit 8. 画像処理装置103の構成を機能的に示すブロック図である。2 is a block diagram functionally showing the configuration of an image processing apparatus 103. FIG. 画像処理装置104の構成を機能的に示すブロック図である。2 is a block diagram functionally showing the configuration of an image processing apparatus 104. FIG. 画像処理システム200の構成を機能的に示すブロック図である。2 is a block diagram functionally showing the configuration of an image processing system 200. FIG.

符号の説明Explanation of symbols

1 前処理部
2 印影記憶部
3 テンプレート特徴記憶部
4 推定値算出部
5 理想勾配算出部
6 近似勾配算出部
7 勾配比較部
8 円形状有無判定部
9 画像読取装置
10 特徴量算出部
11 テンプレート比較履歴記憶部
12 特徴量比較部
13 特徴量比較結果記憶部
14 一致判定部
15 推定円中心算出部
16 円存在可能性領域算出部
17 差分ベクトル算出部
18 理想接線ベクトル算出部
19 勾配算出部
20 特定エッジ抽出部
21 特定エッジ記憶部
22 差分ベクトル算出部
23 勾配算出部
24 勾配比較結果記憶部
25 円周判定部
101〜104 画像処理装置
200 画像処理システム
DESCRIPTION OF SYMBOLS 1 Pre-processing part 2 Imprint memory | storage part 3 Template feature memory | storage part 4 Estimated value calculation part 5 Ideal gradient calculation part 6 Approximate gradient calculation part 7 Gradient comparison part 8 Circular shape presence determination part 9 Image reader 10 Feature-value calculation part 11 Template comparison History storage unit 12 Feature amount comparison unit 13 Feature amount comparison result storage unit 14 Match determination unit 15 Estimated circle center calculation unit 16 Circle existence possibility region calculation unit 17 Difference vector calculation unit 18 Ideal tangent vector calculation unit 19 Gradient calculation unit 20 Identification Edge extraction unit 21 Specific edge storage unit 22 Difference vector calculation unit 23 Gradient calculation unit 24 Gradient comparison result storage unit 25 Circumference determination unit 101 to 104 Image processing device 200 Image processing system

Claims (12)

テンプレート画像の情報を記憶するテンプレート情報記憶手段と、
入力画像において円の中心が存在すると推定される座標である推定円中心を、前記情報を用いて算出する推定円中心算出手段と、
前記入力画像において前記円が存在する可能性のある領域である円存在可能性領域を、前記情報を用いて算出する円存在可能性領域算出手段と、
前記推定円中心と前記円存在可能性領域内の注目座標とから、前記推定円中心を円の中心とし、前記注目座標を通る円周の接線の勾配である理想勾配を算出する理想勾配算出手段と、
前記円存在可能性領域内の特定画像中の注目座標と、前記特定画像中の座標であって当該注目座標の近傍の座標とから、前記特定画像の当該注目座標における近似的な接線の勾配である近似勾配を算出する近似勾配算出手段と、
勾配の算出に用いる注目座標を同じくする前記理想勾配および前記近似勾配を比較して、勾配比較結果を出力する勾配比較手段と、
前記勾配比較結果に基づいて、円周画像が前記入力画像に含まれているか否かを判定する円形状有無判定手段とを備えることを特徴とする画像処理装置。
Template information storage means for storing information of the template image;
Estimated circle center calculation means for calculating an estimated circle center, which is a coordinate estimated that the center of the circle exists in the input image, using the information;
A circle existence possibility area calculating means for calculating, using the information, a circle existence possibility area that is an area in which the circle may exist in the input image;
An ideal gradient calculating means for calculating an ideal gradient, which is a gradient of a tangent of a circle passing through the target coordinate, with the estimated circular center as the center of the circle from the estimated circle center and the target coordinate in the circle existence possibility region When,
An approximate tangent gradient at the target coordinate of the specific image is calculated from the target coordinate in the specific image in the circle existence possibility region and the coordinate in the specific image and in the vicinity of the target coordinate. An approximate gradient calculating means for calculating an approximate gradient;
A gradient comparison means for comparing the ideal gradient and the approximate gradient having the same target coordinates used for calculating the gradient and outputting a gradient comparison result;
An image processing apparatus comprising: a circular shape presence / absence determining unit that determines whether or not a circumferential image is included in the input image based on the gradient comparison result.
前記推定円中心を中心とする円周状の領域であって、前記円存在可能性領域内の領域である推定円周領域を算出する推定円周算出手段を備え、
前記理想勾配算出手段は、前記推定円中心と前記推定円周領域内の注目座標とから、前記推定円中心を円の中心とし、当該注目座標を通る円周の接線の勾配である理想勾配を算出し、
前記近似勾配算出手段は、前記推定円周領域内の特定画像中の注目座標と、前記特定画像中の座標であって当該注目座標の近傍の座標とから、前記特定画像の当該注目座標における近似的な接線の勾配である近似勾配を算出することを特徴とする請求項1に記載の画像処理装置。
An estimated circumference calculating means for calculating an estimated circumference area that is a circumference area around the estimated circle center and that is an area within the circle existence possibility area;
The ideal gradient calculating means calculates an ideal gradient that is a gradient of a tangent of a circle passing through the target coordinate from the estimated circle center and the coordinate of interest in the estimated circumferential region, with the estimated circle center as the center of the circle. Calculate
The approximate gradient calculating means approximates the specific image at the target coordinate from the target coordinate in the specific image within the estimated circumferential area and the coordinate in the specific image and in the vicinity of the target coordinate. The image processing apparatus according to claim 1, wherein an approximate gradient that is a gradient of a typical tangent is calculated.
前記近似勾配算出手段は、前記円存在可能性領域内の特定のエッジ画素である特定エッジ画素を抽出する特定エッジ抽出手段と、前記特定エッジ画素の座標を記憶する特定エッジ記憶手段と、前記特定エッジ画素同士の座標差分を算出する第1差分算出手段とを含み、
前記特定画像は前記特定エッジ画素からなる画像であり、近似勾配の算出に用いられる注目座標は、前記特定エッジ画素から選ばれることを特徴とする請求項1または2に記載の画像処理装置。
The approximate gradient calculating unit includes a specific edge extracting unit that extracts a specific edge pixel that is a specific edge pixel in the circle existence possibility region, a specific edge storage unit that stores the coordinates of the specific edge pixel, and the specific unit First difference calculation means for calculating a coordinate difference between edge pixels,
The image processing apparatus according to claim 1, wherein the specific image is an image including the specific edge pixels, and a target coordinate used for calculating an approximate gradient is selected from the specific edge pixels.
前記理想勾配算出手段は、円存在可能性領域内の座標と推定円中心との座標差分を算出する第2差分算出手段と、当該座標差分を変換して、前記推定円中心を円の中心とし、円存在可能性領域内の座標を通る円周の接ベクトルを算出する理想接線ベクトル算出手段とを含むことを特徴とする請求項1〜3のいずれか1つに記載の画像処理装置。   The ideal gradient calculation means includes a second difference calculation means for calculating a coordinate difference between the coordinates in the circle existence possibility area and the estimated circle center, and converts the coordinate difference to set the estimated circle center as the center of the circle. The image processing apparatus according to claim 1, further comprising: an ideal tangent vector calculation unit that calculates a tangent vector of a circumference that passes through coordinates in a circle existence possibility region. 前記円形状有無判定手段は、前記勾配比較結果を記憶する勾配比較結果記憶手段と、前記勾配比較結果と円周判定閾値とに基づいて、円周画像が前記入力画像に含まれているか否かを判定する円周判定手段とを含むことを特徴とする請求項1〜4のいずれか1つに記載の画像処理装置。   The circular shape presence / absence determining means determines whether or not a circumferential image is included in the input image based on a gradient comparison result storage means for storing the gradient comparison result, and the gradient comparison result and a circumference determination threshold value. 5. The image processing apparatus according to claim 1, further comprising: a circumference determination unit that determines 前記円周判定閾値を変更する円周判定閾値変更手段を備えることを特徴とする請求項5に記載の画像処理装置。   The image processing apparatus according to claim 5, further comprising a circumference determination threshold value changing unit that changes the circumference determination threshold value. 前記入力画像から特定色の画像を抽出するフィルタ手段を含み、
前記フィルタ手段によって抽出された特定色の画像を入力画像として、円周画像が当該入力画像に含まれているか否かを判定することが可能なように構成されることを特徴とする請求項1〜6のいずれか1つに記載の画像処理装置。
Filter means for extracting an image of a specific color from the input image;
2. An image having a specific color extracted by the filter means as an input image, and configured to be able to determine whether or not a circumferential image is included in the input image. The image processing apparatus as described in any one of -6.
前記特定色の画像の情報と前記特定色以外の画像の情報とを用いて2値化処理を行う2値化処理手段を含み、
前記2値化処理手段による2値化処理後の画像を入力画像として、円周画像が当該入力画像に含まれているか否かを判定することが可能なように構成されることを特徴とする請求項7に記載の画像処理装置。
Binarization processing means for performing binarization processing using information on the image of the specific color and information on the image other than the specific color;
An image after binarization processing by the binarization processing means is used as an input image, and it is configured to be able to determine whether or not a circumferential image is included in the input image. The image processing apparatus according to claim 7.
請求項1〜8のいずれか1つに記載の画像処理装置と、当該画像処理装置による判定の結果を、音および光の少なくとも1つを用いてユーザに通知する通知装置とを備えることを特徴とする画像処理システム。   An image processing apparatus according to claim 1, and a notification apparatus that notifies a user of a result of determination by the image processing apparatus using at least one of sound and light. Image processing system. 入力画像において円の中心が存在すると推定される座標である推定円中心を、テンプレート画像の情報を用いて算出する推定円中心算出ステップと、
前記入力画像において前記円が存在する可能性のある領域である円存在可能性領域を、前記情報を用いて算出する円存在可能性領域算出ステップと、
前記推定円中心と前記円存在可能性領域内の注目座標とから、前記推定円中心を円の中心とし、前記注目座標を通る円周の接線の勾配である理想勾配を算出する理想勾配算出ステップと、
前記円存在可能性領域内の特定画像中の注目座標と、前記特定画像中の座標であって当該注目座標の近傍の座標とから、前記特定画像の当該注目座標における近似的な接線の勾配である近似勾配を算出する近似勾配算出ステップと、
勾配の算出に用いる注目座標を同じくする前記理想勾配および前記近似勾配を比較して、勾配比較結果を出力する勾配比較ステップと、
前記勾配比較結果に基づいて、円周画像が前記入力画像に含まれているか否かを判定する円形状有無判定ステップとを含むことを特徴とする画像処理方法。
An estimated circle center calculation step of calculating an estimated circle center, which is a coordinate estimated that the center of the circle exists in the input image, using the information of the template image;
A circle existence possibility area calculating step for calculating a circle existence possibility area that is an area in which the circle may exist in the input image using the information;
An ideal gradient calculation step of calculating an ideal gradient that is a gradient of a tangent of a circle passing through the coordinate of interest, with the estimated circle center being the center of the circle from the estimated circle center and the coordinate of interest in the circle existence possibility region When,
An approximate tangent gradient at the target coordinate of the specific image is calculated from the target coordinate in the specific image in the circle existence possibility region and the coordinate in the specific image and in the vicinity of the target coordinate. An approximate gradient calculating step for calculating an approximate gradient;
A gradient comparison step of comparing the ideal gradient and the approximate gradient having the same target coordinates used for calculating the gradient and outputting a gradient comparison result;
And a circular shape presence / absence determination step for determining whether or not a circumferential image is included in the input image based on the gradient comparison result.
コンピュータを、
テンプレート画像の情報を記憶するテンプレート情報記憶手段と、
入力画像において円の中心が存在すると推定される座標である推定円中心を、前記情報を用いて算出する推定円中心算出手段と、
前記入力画像において前記円が存在する可能性のある領域である円存在可能性領域を、前記情報を用いて算出する円存在可能性領域算出手段と、
前記推定円中心と前記円存在可能性領域内の注目座標とから、前記推定円中心を円の中心とし、前記注目座標を通る円周の接線の勾配である理想勾配を算出する理想勾配算出手段と、
前記円存在可能性領域内の特定画像中の注目座標と、前記特定画像中の座標であって当該注目座標の近傍の座標とから、前記特定画像の当該注目座標における近似的な接線の勾配である近似勾配を算出する近似勾配算出手段と、
勾配の算出に用いる注目座標を同じくする前記理想勾配および前記近似勾配を比較して、勾配比較結果を出力する勾配比較手段と、
前記勾配比較結果に基づいて、円周画像が前記入力画像に含まれているか否かを判定する円形状有無判定手段として機能させることを特徴とする画像処理プログラム。
Computer
Template information storage means for storing information of the template image;
Estimated circle center calculation means for calculating an estimated circle center, which is a coordinate estimated that the center of the circle exists in the input image, using the information;
A circle existence possibility area calculating means for calculating, using the information, a circle existence possibility area that is an area in which the circle may exist in the input image;
An ideal gradient calculating means for calculating an ideal gradient, which is a gradient of a tangent of a circle passing through the target coordinate, with the estimated circular center as the center of the circle from the estimated circle center and the target coordinate in the circle existence possibility region When,
An approximate tangent gradient at the target coordinate of the specific image is calculated from the target coordinate in the specific image in the circle existence possibility region and the coordinate in the specific image and in the vicinity of the target coordinate. An approximate gradient calculating means for calculating an approximate gradient;
A gradient comparison means for comparing the ideal gradient and the approximate gradient having the same target coordinates used for calculating the gradient and outputting a gradient comparison result;
An image processing program that functions as circular shape presence / absence determining means for determining whether or not a circumferential image is included in the input image based on the gradient comparison result.
請求項11に記載のプログラムを記録したことを特徴とするコンピュータ読取可能な記録媒体。   A computer-readable recording medium on which the program according to claim 11 is recorded.
JP2008308018A 2008-12-02 2008-12-02 Image processor, image processing system, image processing method, image processing program and recording medium recording the image processing program Pending JP2010134564A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008308018A JP2010134564A (en) 2008-12-02 2008-12-02 Image processor, image processing system, image processing method, image processing program and recording medium recording the image processing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008308018A JP2010134564A (en) 2008-12-02 2008-12-02 Image processor, image processing system, image processing method, image processing program and recording medium recording the image processing program

Publications (1)

Publication Number Publication Date
JP2010134564A true JP2010134564A (en) 2010-06-17

Family

ID=42345826

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008308018A Pending JP2010134564A (en) 2008-12-02 2008-12-02 Image processor, image processing system, image processing method, image processing program and recording medium recording the image processing program

Country Status (1)

Country Link
JP (1) JP2010134564A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2394719A1 (en) 2010-06-11 2011-12-14 Nintendo Co., Ltd. Portable information terminal, computer-readable storage medium having stored thereon portable information terminal control program, portable information system, and portable information terminal control method
JP2015041190A (en) * 2013-08-21 2015-03-02 富士通フロンテック株式会社 Overlapped seal detection apparatus, overlapped seal detection method, and program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2394719A1 (en) 2010-06-11 2011-12-14 Nintendo Co., Ltd. Portable information terminal, computer-readable storage medium having stored thereon portable information terminal control program, portable information system, and portable information terminal control method
JP2015041190A (en) * 2013-08-21 2015-03-02 富士通フロンテック株式会社 Overlapped seal detection apparatus, overlapped seal detection method, and program

Similar Documents

Publication Publication Date Title
CN105303156B (en) Character detection device, method, and program
JP6354589B2 (en) Object identification device, method and program
US7813553B2 (en) Image region detection method, recording medium, and device therefor
US8351707B2 (en) Image processing apparatus, image forming apparatus, image processing system, and image processing method
JP5547243B2 (en) Image processing apparatus, program, and recording medium
JP4694613B2 (en) Document orientation determination apparatus, document orientation determination method, program, and recording medium therefor
KR101597739B1 (en) Image processing apparatus, image processing method, and computer readable medium
JP5934174B2 (en) Method and program for authenticating a printed document
US20080031549A1 (en) Image processing apparatus, image reading apparatus, image forming apparatus, image processing method, and recording medium
JP2000149018A (en) Image processing method, and device and recording medium thereof
JP6426815B2 (en) Image processing apparatus and image processing method
US20090103814A1 (en) Information Processing Apparatus, Information Processing Method, and Program
KR20120132314A (en) Image processing apparatus, image processing method, and computer readable medium
JP2000148980A (en) Image processing method, image processor and recording medium
CN111950355A (en) Seal identification method and device and electronic equipment
US20190191078A1 (en) Information processing apparatus, a non-transitory computer readable storage medium and information processing method
JP2009123206A (en) Method and apparatus for extracting text from image
JP4588771B2 (en) Image processing method, image processing apparatus, image forming apparatus, program, and storage medium
EP3151159A1 (en) Information processing apparatus, information processing method and program
JP2010134564A (en) Image processor, image processing system, image processing method, image processing program and recording medium recording the image processing program
JPH08190690A (en) Method for determining number plate
JP2008154216A (en) Image processing method and device, image forming device, document reading device, computer program, and recording medium
WO2022056875A1 (en) Method and apparatus for segmenting nameplate image, and computer-readable storage medium
JP2015176252A (en) Image processor and image processing method
JP2004096435A (en) Image analyzing device, image analysis method, and image analysis program