JP2020086494A - Image processing apparatus - Google Patents
Image processing apparatus Download PDFInfo
- Publication number
- JP2020086494A JP2020086494A JP2018214468A JP2018214468A JP2020086494A JP 2020086494 A JP2020086494 A JP 2020086494A JP 2018214468 A JP2018214468 A JP 2018214468A JP 2018214468 A JP2018214468 A JP 2018214468A JP 2020086494 A JP2020086494 A JP 2020086494A
- Authority
- JP
- Japan
- Prior art keywords
- point
- frame
- points
- edge
- processing apparatus
- 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
Links
Images
Landscapes
- Image Processing (AREA)
- Image Analysis (AREA)
Abstract
Description
本発明は、画像の傾き角度を検知する画像処理装置に関する。 The present invention relates to an image processing device that detects an inclination angle of an image.
余白領域と黒画素領域との境界を検出し、境界の水平又は垂直からの傾き角度によって画像全体の傾き角度を算出する画像処理装置が提案されている(例えば、特許文献1参照)。特許文献1では、境界に位置する黒画素列の位置情報から最小二乗法で直線近似を行うことで、水平又は垂直からの傾きを算出している。
An image processing apparatus has been proposed which detects a boundary between a blank area and a black pixel area, and calculates the tilt angle of the entire image based on the tilt angle of the boundary from horizontal or vertical (see, for example, Patent Document 1). In
しかしながら、画像形成装置から出力された印刷物には、意図しない位置にトナー、紙粉、ゴミ等の異物が付着していることがある。従来技術において、意図しない位置に付着した異物が境界に位置する黒画素として検知された場合、著しく精度が低下してしまうという問題点があった。 However, the printed matter output from the image forming apparatus may have foreign matter such as toner, paper dust, and dust attached at unintended positions. In the related art, there is a problem that accuracy is significantly reduced when a foreign substance attached to an unintended position is detected as a black pixel located at the boundary.
本発明は、上記問題点を鑑みてなされたものであり、その目的とするところは、異物による誤検知を防止し、精度を向上させることができる画像処理装置を提供することを目的とする。 The present invention has been made in view of the above problems, and an object of the present invention is to provide an image processing apparatus capable of preventing erroneous detection due to foreign matter and improving accuracy.
本発明の画像処理装置は、枠エッジが印刷された印刷物を撮影した写真画像を解析することで、前記印刷物を検査する画像処理装置であって、前記写真画像の入力を受け付ける画像入力部と、前記印刷物Pの用紙エッジを検知する用紙エッジ検知部と、前記用紙エッジ上に既知の間隔で設定した複数の開始ポイントのそれぞれから内側に向けて垂直方向の画素の白黒を判別することで、前記枠エッジ上と想定される複数の枠ポイントをそれぞれ検知するポイント検知部と、隣り合う前記枠ポイントのポイント間距離に基づいて、複数の前記枠ポイントの中から誤検知と想定される誤検知ポイントを特定し、前記誤検知ポイントの再検知を前記ポイント検知部に指示する誤検知ポイント特定部と、前記ポイント検知部によって検知及び再検知された前記枠ポイントに基づいて、最小二乗法で前記用紙エッジに対する前記枠エッジの方程式を計算し、前記用紙エッジと前記枠エッジとの距離を検査結果として出力する枠エッジ算出部とを具備することを特徴とする。 The image processing apparatus of the present invention is an image processing apparatus that inspects the printed matter by analyzing a photographic image of a printed matter on which a frame edge is printed, and an image input unit that receives input of the photographic image, By determining the black and white of pixels in the vertical direction toward the inside from each of the paper edge detection unit that detects the paper edge of the printed matter P and each of a plurality of start points set at known intervals on the paper edge, A point detection unit that detects each of a plurality of frame points that are supposed to be on a frame edge, and an erroneous detection point that is assumed to be an erroneous detection among the plurality of frame points based on the distance between the adjacent frame points. Based on the erroneous detection point identification unit for instructing the point detection unit to re-detect the erroneous detection point and the frame point detected and re-detected by the point detection unit, the sheet by the least square method. A frame edge calculation unit that calculates an equation of the frame edge with respect to an edge and outputs a distance between the paper edge and the frame edge as an inspection result is provided.
本発明によれば、誤検知と想定される誤検知ポイントを排除することができるため、異物による誤検知を防止し、精度を向上できるという効果を奏する。 According to the present invention, it is possible to eliminate erroneous detection points that are assumed to be erroneous detections, and thus it is possible to prevent erroneous detections due to foreign matter and improve accuracy.
以下、図を参照して本発明の実施の形態を詳細に説明する。なお、以下の実施形態において、同様の機能を示す構成には、同一の符号を付してある。 Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. In addition, in the following embodiments, the same reference numerals are given to the configurations having the same functions.
本実施の形態の画像処理装置1は、図1を参照すると、プリンター、複写機、MFP(Multifunction Peripheral / Printer / Product)等の画像形成装置から出力された印刷物Pを載置する載置台2と、載置台2に載置された印刷物Pを撮影して写真画像を取得するカメラ3とで印刷物検査システムを構成している。
Referring to FIG. 1, an
画像処理装置1は、パーソナルコンピュータ等の情報処理装置であり、カメラ3によって取得された写真画像を解析することで、印刷物Pの印刷状態を検査し、検査結果を出力する。
The
検査対象の印刷物Pには、図2に示すように、印刷物Pの外周(以下、用紙エッジXと称す)に沿った枠線(以下、枠エッジYと称す)が印刷されており、画像処理装置1は、用紙エッジXと枠エッジYとの距離Zを検査結果として出力する。なお、距離Zは、用紙エッジXに対して垂直な直線上の長さである。また、画像処理装置1は、図2に示すように、1辺当たり複数個所で距離Zを検査結果として算出する。さらに、距離Zの算出箇所は適宜設定することができ、用紙エッジXと枠エッジYの角部との距離Zを検査結果として算出しても良い。これにより、印刷物Pに印刷されている画像の位置及び傾きを検査することができる。
As shown in FIG. 2, a frame line (hereinafter, referred to as a frame edge Y) along an outer periphery (hereinafter, referred to as a paper edge X) of the printed product P is printed on the printed matter P to be inspected. The
本実施の形態の画像処理装置1は、図3を参照すると、カメラインターフェース11と、キーボート等の入力部12と、液晶ディスプレイ等の表示部13と、制御部14とを備えている。
Referring to FIG. 3, the
カメラインターフェース11は、カメラ3との接続部であり、入力部12から入力された撮影指示をカメラ3に通知する撮影指示部として機能すると共に、カメラによって取得された写真画像の入力を受け付ける画像入力部として機能する。
The
制御部14は、CPU(Central Processing Unit)、ROM(Read Only Memory)、RAM(Random Access Memory)等を備えたマイクロコンピュータ等の演算処理回路である。ROMには画像処理装置1の動作制御を行うための制御プログラムが記憶されている。制御部14は、ROMに記憶されている制御プログラムを読み出し、制御プログラムをRAMに展開させることで、入力部12から入力された各種指示情報に応じて装置全体の制御を行う。
The
また、制御部14は、用紙エッジ検知部15、ポイント検知部16、誤検知ポイント特定部17、枠エッジ算出部18、距離算出部19として機能する。
The
用紙エッジ検知部15は、入力された写真画像を2値化し、2値化した写真画像を解析することで、載置台2の載置面と印刷物Pとの境界を用紙エッジXとして検知する。なお、載置台2の載置面を、印刷物Pの周縁部と明度が明らかに異なる配色とすることで、黒白変化により簡単に用紙エッジXを検知することが可能になる。
The paper
ポイント検知部16は、用紙エッジXに設定した開始ポイントから内側に向けて垂直方向の画素の白黒を判別し、白画素から黒画素、そして黒画素から白画素に変化する箇所を特定し、黒画素の中心を枠エッジY上と想定される枠ポイントとして検知する。なお、開始ポイントは、1辺当たり既知の間隔で複数箇所が設定され、ポイント検知部16は、それぞれの開始ポイント毎に枠ポイントを検知する。
The
誤検知ポイント特定部17は、隣り合う枠ポイントの距離に基づいて、トナー、紙粉、ゴミ等の異物に起因して誤検知と想定される枠ポイント(以下、誤検知ポイントと称す)を特定し、特定した誤検知ポイントの再検知をポイント検知部16に指示する。
The erroneous detection
枠エッジ算出部18は、ポイント検知部16によって検知された枠ポイント(再検知も含む)に基づいて最小二乗法で用紙エッジXに対する枠エッジYの方程式を計算する。
The frame
距離算出部19は、枠エッジ算出部18によって算出された枠エッジYの方程式に基づいて、1辺当たり複数個所で用紙エッジXと枠エッジYとの距離Zを検出し、検査結果として表示部13等から出力する。
The
次に、画像処理装置1による検査動作について図4乃至図5を参照して詳細に説明する。
ユーザーは、検査対象の印刷物Pを載置台2に載置し、画像処理装置1の入力部12に撮影指示を入力する。これにより、カメラによって取得された写真画像が画像処理装置1に入力される。
Next, the inspection operation by the
The user places the printed matter P to be inspected on the mounting table 2 and inputs a photographing instruction to the
写真画像の入力を受け付けると、画像処理装置1の制御部14は用紙エッジ検知部15として機能し、入力された写真画像を2値化する(ステップS101)。
Upon receiving the input of the photographic image, the
次に、用紙エッジ検知部15は、2値化した写真画像を解析することで、載置台2の載置面と印刷物Pとの境界を用紙エッジXとして検知する(ステップS102)。なお、ステップS102以降の処理は4辺のそれぞれで実行されるが、便宜上、1つの辺として説明する。
Next, the paper
次に、制御部14はポイント検知部16として機能し、ステップS102で検知された用紙エッジXに既知の間隔で複数個の開始ポイントA1〜Nを設定する(ステップS103)。図5(a)には、開始ポイントA1〜A4がそれぞれL12=L23=L34の間隔で設定された例が示されている。
Next, the
次に、ポイント検知部16は、開始ポイントA1〜Nのそれぞれから内側に向けて垂直方向の画素の白黒を判別し、白画素から黒画素、そして黒画素から白画素に変化する箇所を特定し、黒画素の中心を枠ポイントB1〜Nとしてそれぞれ検知する(ステップS104)。図5(a)には、開始ポイントA1〜A4のそれぞれに対応し、枠ポイントB1〜B4が検知された例が示されている。
Next, the
次に、制御部14は誤検知ポイント特定部17として機能し、隣り合う枠ポイントB1〜Nのポイント間距離M12〜M(n−1)nをそれぞれ算出する(ステップS105)。図5(b)には、枠ポイントB1〜B4のポイント間距離M12、M23、M34が算出された例が示されている。
Next, the
次に、誤検知ポイント特定部17は、算出したポイント間距離M12〜M(n−1)nに基づいてトナー、紙粉、ゴミ等の異物に起因して誤検知ポイントがあるか否かを判断する(ステップS106)。正しく枠ポイントBが検知された場合、ポイント間距離Mは、開始ポイントの間隔Lとほぼ同じ値となる。そこで、閾値αを小さい値で設定しておき、両側がポイント間距離M>間隔LA+αとなる枠ポイントと誤検知ポイントとして特定する。この場合、トナー、紙粉、ゴミ等の異物に起因する誤検知は、連続して発生しないことを前提としている。そして、ステップS106では、誤検知ポイントが特定されなかったか、されたかを判断する。図5(b)に示す例では、枠ポイントB3の両側がいずれもポイント間距離M23>間隔L23+α、ポイント間距離M34>間隔L34+αとなり、枠ポイントB3が誤検知ポイントとして特定された例が示されている。
Then, the false detection
ステップS106で誤検知ポイントがある場合、誤検知ポイント特定部17は、特定した誤検知ポイントの再検知をポイント検知部16に指示する。
If there is an erroneous detection point in step S106, the erroneous detection
再検知を指示されたポイント検知部16は、図5(c)に示すように、誤検知ポイント(B3)に対応する開始ポイント(A3)の位置を予め設定された所定距離hだけ移動させた開始ポイント(A3’)を再特定する(ステップS107)。そして、ポイント検知部16は、再特定した開始ポイント(A3’)に基づいて枠ポイント(B3’)を再検知し(ステップS108)、ステップS105に戻る。
The
ステップS106で誤検知ポイントがない場合、制御部14は枠エッジ算出部18として機能し、ポイント検知部16によって検知された枠ポイント(再検知も含む)に基づいて最小二乗法で用紙エッジXに対する枠エッジYの方程式を計算する(ステップS109)。
When there is no erroneous detection point in step S106, the
次に、枠エッジ算出部18は、1辺当たり複数個所で距離Zを検査結果として算出し(ステップS110)、検査結果を表示部13等から出力して、検査動作を終了する。
Next, the frame
以上説明したように、本実施の形態によれば、枠エッジYが印刷された印刷物Pを撮影した写真画像を解析することで、印刷物Pを検査する画像処理装置1であって、写真画像の入力を受け付ける画像入力部として機能するカメラインターフェース11と、印刷物Pの用紙エッジXを検知する用紙エッジ検知部15と、用紙エッジX上に既知の間隔で設定した複数の開始ポイントAのそれぞれから内側に向けて垂直方向の画素の白黒を判別することで、枠エッジY上と想定される複数の枠ポイントBをそれぞれ検知するポイント検知部16と、隣り合う枠ポイントBのポイント間距離Lに基づいて、複数の枠ポイントBの中から誤検知と想定される誤検知ポイントを特定し、誤検知ポイントの再検知をポイント検知部16に指示する誤検知ポイント特定部17と、ポイント検知部16によって検知及び再検知された枠ポイントBに基づいて、最小二乗法で用紙エッジXに対する枠エッジYの方程式を計算し、用紙エッジXと枠エッジYとの距離Zを検査結果として出力する枠エッジ算出部18とを備えている。
この構成により、誤検知と想定される誤検知ポイントを排除することができるため、異物による誤検知を防止し、精度を向上させることができる。
As described above, according to the present embodiment, the
With this configuration, it is possible to eliminate erroneous detection points that are assumed to be erroneous detection, so that it is possible to prevent erroneous detection due to foreign matter and improve accuracy.
さらに、本実施の形態において、ポイント検知部16は、誤検知ポイントの再検知が指示されると、誤検知ポイントに対応する開始ポイントAの位置を予め設定された所定距離h移動させて枠ポイントB’を再検知する。
この構成により、誤検知の要因となった異物を避けて枠ポイントB’の再検知を行うことができる。
Further, in the present embodiment, when the
With this configuration, it is possible to re-detect the frame point B′ while avoiding the foreign matter that has caused the erroneous detection.
さらに、本実施の形態において、誤検知ポイント特定部17は、両側のポイント間距離Mのいずれもが、対応する開始ポイントAの間隔Lに予め設定された閾値αを加えた値よりも大きい枠ポイントBを誤検知ポイントとして特定する。
この構成により、簡単に誤検知ポイントを特定することができる。
Further, in the present embodiment, the erroneously detected
With this configuration, it is possible to easily specify the false detection point.
なお、本発明が上記各実施の形態に限定されず、本発明の技術思想の範囲内において、各実施の形態は適宜変更され得ることは明らかである。また、上記構成部材の数、位置、形状等は上記実施の形態に限定されず、本発明を実施する上で好適な数、位置、形状等にすることができる。なお、各図において、同一構成要素には同一符号を付している。 It should be noted that the present invention is not limited to each of the above-described embodiments, and it is obvious that each embodiment can be appropriately modified within the scope of the technical idea of the present invention. Further, the number, position, shape, etc. of the above-mentioned constituent members are not limited to those in the above-mentioned embodiment, and the number, position, shape, etc. suitable for carrying out the present invention can be adopted. In each figure, the same components are designated by the same reference numerals.
1 画像処理装置
2 載置台
3 カメラ
11 カメラインターフェース
12 入力部
13 表示部
14 制御部
15 用紙エッジ検知部
16 ポイント検知部
17 誤検知ポイント特定部
18 枠エッジ算出部
19 距離算出部
DESCRIPTION OF
Claims (3)
前記写真画像の入力を受け付ける画像入力部と、
前記印刷物の用紙エッジを検知する用紙エッジ検知部と、
前記用紙エッジに既知の間隔で設定した複数の開始ポイントのそれぞれから内側に向けて垂直方向の画素の白黒を判別することで、前記枠エッジと想定される複数の枠ポイントをそれぞれ検知するポイント検知部と、
隣り合う前記枠ポイントのポイント間距離に基づいて、複数の前記枠ポイントの中から誤検知と想定される誤検知ポイントを特定し、前記誤検知ポイントの再検知を前記ポイント検知部に指示する誤検知ポイント特定部と、
前記ポイント検知部によって検知及び再検知された前記枠ポイントに基づいて、最小二乗法で前記用紙エッジに対する前記枠エッジの方程式を計算し、前記用紙エッジと前記枠エッジとの距離を検査結果として出力する枠エッジ算出部とを具備することを特徴とする画像処理装置。 An image processing apparatus for inspecting the printed matter by analyzing a photographic image of a printed matter on which a frame edge is printed,
An image input unit that receives the input of the photographic image,
A paper edge detection unit for detecting the paper edge of the printed matter,
Point detection that detects a plurality of frame points that are supposed to be the frame edges by determining black and white of pixels in the vertical direction from the respective start points set at known intervals on the paper edge toward the inside Department,
An error that specifies an erroneous detection point that is assumed to be an erroneous detection from a plurality of the frame points based on the distance between the adjacent frame points and instructs the point detection unit to re-detect the erroneous detection point. A detection point identification unit,
Based on the frame points detected and re-detected by the point detection unit, the equation of the frame edge with respect to the paper edge is calculated by the least square method, and the distance between the paper edge and the frame edge is output as an inspection result. An image processing apparatus, comprising:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2018214468A JP2020086494A (en) | 2018-11-15 | 2018-11-15 | Image processing apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2018214468A JP2020086494A (en) | 2018-11-15 | 2018-11-15 | Image processing apparatus |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2020086494A true JP2020086494A (en) | 2020-06-04 |
Family
ID=70908015
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2018214468A Pending JP2020086494A (en) | 2018-11-15 | 2018-11-15 | Image processing apparatus |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2020086494A (en) |
-
2018
- 2018-11-15 JP JP2018214468A patent/JP2020086494A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10041786B2 (en) | System and method for efficient surface measurement using a laser displacement sensor | |
US9036223B2 (en) | Systems and methods for edge detection during an imaging operation | |
US8254683B2 (en) | Code image processing method | |
JP4574503B2 (en) | Image processing apparatus, image processing method, and program | |
TW571081B (en) | Method and apparatus for examining foreign matters in through holes | |
US20140119665A1 (en) | System and method for finding saddle point-like structures in an image and determining information from the same | |
JP2017166929A (en) | Defect inspection device, defect inspection method and defect inspection system for sheet-like object | |
JPH08181828A (en) | Picture input device | |
JP2000067247A (en) | Image recognizing device | |
JP4182937B2 (en) | Image capturing apparatus, image processing method for image capturing apparatus, and program | |
US10325353B2 (en) | Image processing apparatus | |
JP2020086494A (en) | Image processing apparatus | |
JP5333607B2 (en) | Radiation image processing apparatus and radiation image processing program | |
JP2009250937A (en) | Pattern inspection device and method | |
JP2005354654A (en) | Photographic image area extraction apparatus and copying machine | |
JP2004310726A (en) | Image inspection method, image inspection apparatus, and program | |
US11763445B2 (en) | Inspection of a target object using a comparison with a master image and a strictness of a quality evaluation threshold value | |
JP2008005192A (en) | Image processor, image processing method, and image processing program | |
JP2010044010A (en) | Method for detecting defect of mesh- or wire-embedded glass | |
JP4852454B2 (en) | Eye tilt detection device and program | |
JP7159878B2 (en) | Image processing device, image processing method and image processing program | |
EP3672216B1 (en) | Placement detection system | |
JP2004028729A (en) | Signature panel inspection method for card | |
JPH0720060A (en) | Device for inspecting defective pattern and foreign matter | |
KR101916105B1 (en) | Apparatus for inspecting defects of screenmask |