Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP7643112B2 - Inspection device, inspection method, and program - Google Patents
[go: Go Back, main page]

JP7643112B2 - Inspection device, inspection method, and program - Google Patents

Inspection device, inspection method, and program Download PDF

Info

Publication number
JP7643112B2
JP7643112B2 JP2021045465A JP2021045465A JP7643112B2 JP 7643112 B2 JP7643112 B2 JP 7643112B2 JP 2021045465 A JP2021045465 A JP 2021045465A JP 2021045465 A JP2021045465 A JP 2021045465A JP 7643112 B2 JP7643112 B2 JP 7643112B2
Authority
JP
Japan
Prior art keywords
data
frame
inspection
pixel values
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2021045465A
Other languages
Japanese (ja)
Other versions
JP2022144446A (en
Inventor
和義 中村
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP2021045465A priority Critical patent/JP7643112B2/en
Publication of JP2022144446A publication Critical patent/JP2022144446A/en
Application granted granted Critical
Publication of JP7643112B2 publication Critical patent/JP7643112B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Processing (AREA)
  • Image Analysis (AREA)
  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)
  • Inspection Of Paper Currency And Valuable Securities (AREA)

Description

本発明は、検査装置、検査方法、及びプログラムに関する。 The present invention relates to an inspection device, an inspection method, and a program.

近年は、検査対象を撮影した画像データを処理することにより、検査対象の良否を判定することが行われている。 In recent years, the quality of an object to be inspected has been determined by processing image data obtained by photographing the object.

例えば特許文献1には、印刷物が、製造過程において伸縮した場合においても、濃度不良や印刷不良等の欠陥を精度良く検査するための技術が開示されている。具体的には、まず、検査対象となる印刷物を撮像して取得した検査対象画像と、位置基準画像とをパターンマッチングしてマッチング画像を作成する。基準位置画像は、印刷物の良否判定時の基準位置となる基準座標を付与した画像である。そして、マッチング画像における基材の濃度を、印刷物の良否判定時の基準となる基準濃度に合わせて補正してレベル補正画像を作成する。次いで、印刷物の良否判定時の良品範囲内における少なくとも位置変動の上限又は下限である上限しきい値画像及び下限しきい値画像を作成する。次いで、レベル補正画像と、上限及び下限しきい値画像をそれぞれ比較し、レベル補正画像の任意の大きさの判定領域内において、上限又は下限しきい値画像のしきい値を超えた異常画素をカウントし、印刷物の良否判定を行う。 For example, Patent Document 1 discloses a technique for accurately inspecting defects such as poor density and printing defects even when a printed matter expands or contracts during the manufacturing process. Specifically, a matching image is created by pattern matching between an image of the printed matter to be inspected and a position reference image. The reference position image is an image to which reference coordinates are assigned as a reference position when judging the quality of the printed matter. Then, a level correction image is created by correcting the density of the base material in the matching image to match the reference density that is the reference when judging the quality of the printed matter. Next, an upper threshold image and a lower threshold image are created, which are at least the upper and lower limits of position variation within the acceptable range when judging the quality of the printed matter. Next, the level correction image is compared with the upper and lower threshold images, respectively, and abnormal pixels that exceed the threshold value of the upper or lower threshold image are counted within a judgment area of any size of the level correction image, to judge the quality of the printed matter.

なお、特許文献2には、以下の技術が開示されている。まず、印刷物の印刷面を光学的に走査して濃度信号を取出し、この濃度信号をサンプリングして所望数の濃度サンプルデータを取り出す。次いで、この濃度サンプルデータのうち最も濃度の高いものから順次適宜数のデータと、最も濃度の低いものから順次適宜数のデータと、をそれぞれ抽出する。そして、これら各適宜数のデータにつき濃度の高いものの平均値および濃度の低いものの平均値をそれぞれ算出する。そして、これら両平均値の差を求め、この差を予め定められた値と比較し、この比較の結果が所定範囲を超えているときに濃度不良と判定する。 Patent Document 2 discloses the following technology. First, the printed surface of the printed material is optically scanned to extract a density signal, and this density signal is sampled to extract the desired number of density sample data. Next, from this density sample data, an appropriate number of data items are extracted, starting from the highest density, and an appropriate number of data items are extracted, starting from the lowest density. Then, for each of these appropriate numbers of data items, the average value of the highest density data and the average value of the lowest density data are calculated. The difference between these two average values is then found and compared with a predetermined value, and if the result of this comparison is outside a specified range, it is determined that the density is poor.

特開2014-38425号公報JP 2014-38425 A 特開平05-185574号公報Japanese Patent Application Publication No. 05-185574

画像データを用いて検査対象の良否を判定する場合、例えば高速での処理が求められる場合など、十分な解像度が得られないことがある。本発明の目的の一つは、このような場合においても検査対象の良否を高い精度で判定することにある。 When image data is used to determine the quality of an object to be inspected, it may not be possible to obtain sufficient resolution, for example when high-speed processing is required. One of the objects of the present invention is to determine the quality of an object to be inspected with high accuracy even in such cases.

本発明によれば、検査対象を含む画像を取得する画像取得手段と、
前記画像のうち前記検査対象を含む領域において、第1枠を動かしながら前記第1枠内における画素値の統計データである第1データを生成し、当該第1データを用いて前記第1枠の位置を決定する第1位置決定手段と、
前記第1枠よりも小さい第2枠を前記第1枠内で動かしながら、前記第2枠内における画素値の統計データである第2データを生成し、当該第2データを用いて前記第2枠の位置を決定する第2位置決定手段と、
前記第1枠内の前記画素値に関する第3データと、前記第2枠内における前記画素値に関する第4データと、を用いて、前記検査対象の異常の有無を判定する判定手段と、
を備える検査装置が提供される。
According to the present invention, there is provided an image acquisition means for acquiring an image including an inspection object;
a first position determination means for generating first data, which is statistical data of pixel values within a first frame while moving the first frame in a region of the image including the inspection object, and determining a position of the first frame using the first data;
a second position determination means for generating second data, which is statistical data of pixel values within the second frame, while moving a second frame smaller than the first frame within the first frame, and determining a position of the second frame using the second data;
a determination means for determining the presence or absence of an abnormality in the inspection object by using third data on the pixel values in the first frame and fourth data on the pixel values in the second frame;
An inspection apparatus is provided comprising:

本発明によれば、コンピュータが、
検査対象を含む画像を取得する画像取得処理と、
前記画像のうち前記検査対象を含む領域において、第1枠を動かしながら前記第1枠内における画素値の統計データである第1データを生成し、当該第1データを用いて前記第1枠の位置を決定する第1位置決定処理と、
前記第1枠よりも小さい第2枠を前記第1枠内で動かしながら、前記第2枠内における画素値の統計データである第2データを生成し、当該第2データを用いて前記第2枠の位置を決定する第2位置決定処理と、
前記第1枠内の前記画素値に関する第3データと、前記第2枠内における前記画素値に関する第4データと、を用いて、前記検査対象の異常の有無を判定する判定処理と、
を行う検査方法が提供される。
According to the present invention, a computer
an image acquisition process for acquiring an image including an object to be inspected;
a first position determination process for generating first data, which is statistical data of pixel values within a first frame, while moving the first frame in a region of the image including the inspection object, and determining a position of the first frame using the first data;
a second position determination process for generating second data, which is statistical data of pixel values within the second frame, while moving a second frame smaller than the first frame within the first frame, and determining a position of the second frame using the second data;
a determination process for determining the presence or absence of an abnormality in the inspection object by using third data on the pixel values in the first frame and fourth data on the pixel values in the second frame;
An inspection method is provided for carrying out the above steps.

本発明によれば、コンピュータに、
検査対象を含む画像を取得する画像取得機能と、
前記画像のうち前記検査対象を含む領域において、第1枠を動かしながら前記第1枠内における画素値の統計データである第1データを生成し、当該第1データを用いて前記第1枠の位置を決定する第1位置決定機能と、
前記第1枠よりも小さい第2枠を前記第1枠内で動かしながら、前記第2枠内における画素値の統計データである第2データを生成し、当該第2データを用いて前記第2枠の位置を決定する第2位置決定機能と、
前記第1枠内の前記画素値に関する第3データと、前記第2枠内における前記画素値に関する第4データと、を用いて、前記検査対象の異常の有無を判定する判定機能と、
を持たせるプログラムが提供される。
According to the present invention, a computer includes:
an image acquisition function for acquiring an image including an object to be inspected;
a first position determination function that generates first data, which is statistical data of pixel values within a first frame while moving the first frame in a region of the image that includes the inspection object, and determines a position of the first frame using the first data;
a second position determination function that generates second data, which is statistical data of pixel values within the second frame, while moving a second frame smaller than the first frame within the first frame, and determines a position of the second frame using the second data;
a determination function for determining the presence or absence of an abnormality in the inspection object by using third data on the pixel values in the first frame and fourth data on the pixel values in the second frame;
A program will be provided to help students develop these skills.

本発明によれば、画像の解像度が十分でない場合においても、検査対象の良否を高い精度で判定できる。 According to the present invention, even when the image resolution is insufficient, the quality of the inspection object can be determined with high accuracy.

実施形態に係る検査装置の使用環境を説明するための図である。FIG. 1 is a diagram for explaining a usage environment of an inspection device according to an embodiment. 検査装置の機能構成の一例を示す図である。FIG. 2 illustrates an example of a functional configuration of an inspection apparatus. 撮像装置によって生成される画像の一例を示す図である。FIG. 2 is a diagram illustrating an example of an image generated by an imaging device. 第1位置決定部の動作の一例を示す図である。FIG. 11 is a diagram illustrating an example of an operation of a first position determining unit. 第2位置決定部の動作の一例を示す図である。FIG. 11 is a diagram illustrating an example of an operation of a second position determining unit. 検査装置のハードウェア構成例を示す図である。FIG. 2 illustrates an example of a hardware configuration of an inspection device. 検査装置が行う処理の一例を示すフローチャートである。10 is a flowchart illustrating an example of a process performed by an inspection device.

以下、本発明の実施の形態について、図面を用いて説明する。尚、すべての図面において、同様な構成要素には同様の符号を付し、適宜説明を省略する。 The following describes an embodiment of the present invention with reference to the drawings. Note that in all drawings, similar components are given similar reference numerals and descriptions will be omitted where appropriate.

図1は、実施形態に係る検査装置10の使用環境を説明するための図である。検査装置10は、撮像装置20と共に使用される。撮像装置20は、検査対象を撮像して画像を生成し、検査装置10に送信する。検査装置10は、この画像を処理することにより、検査対象の良否を判定する。 Figure 1 is a diagram for explaining the environment in which an inspection device 10 according to an embodiment is used. The inspection device 10 is used together with an imaging device 20. The imaging device 20 captures an image of an object to be inspected, generates an image, and transmits the image to the inspection device 10. The inspection device 10 processes the image to determine whether the object to be inspected is good or bad.

図示していないが、撮像装置20が対象物30を撮影しているとき、対象物30に入射する光量は一定となっている。一例として、撮影時の対象物30に対する光源及び撮像装置20の相対位置は一定となっている。これは、検査装置10は、検査対象の良否を判定する際に、画像の画素値を用いるためである。なお、画像がグレースケール(モノクロ画像)の場合、各画素の画素値は、一意に定まる。一方、画像がカラー画像の場合、検査装置10は、例えば、各色の画素値を用いてグレースケール上の画素値を算出し、この画素値を用いてもよいし、特定の色(例えばRGBにおける青色)の画素値を用いてもよい。 Although not shown, when the imaging device 20 is imaging the object 30, the amount of light incident on the object 30 is constant. As an example, the relative positions of the light source and imaging device 20 with respect to the object 30 during imaging are constant. This is because the inspection device 10 uses pixel values of the image when determining whether the inspection object is good or bad. Note that when the image is a grayscale (monochrome image), the pixel value of each pixel is uniquely determined. On the other hand, when the image is a color image, the inspection device 10 may, for example, calculate pixel values on the grayscale using the pixel values of each color and use these pixel values, or may use the pixel value of a specific color (for example, blue in RGB).

本図に示す例において、検査対象は、対象物30の一部である。対象物30は、例えば紙幣、パンフレット、及びポスターなどの印刷物であり、検査対象は、この印刷物の特定の部分である。検査装置10は、この検査対象の良否、例えば印刷濃度の良否を判定する。この時の判定速度は、例えば一枚当たり100ミリ秒以下、さらには20ミリ秒以下である。なお、対象物30が紙幣の場合、検査対象は、特定のマークである。このマークは、例えばユーリオンの少なくとも一部である。 In the example shown in this figure, the inspection target is a part of the object 30. The object 30 is, for example, a printed matter such as a banknote, pamphlet, or poster, and the inspection target is a specific part of this printed matter. The inspection device 10 judges whether the inspection target is good or bad, for example, whether the print density is good or bad. The judgment speed at this time is, for example, 100 milliseconds or less per sheet, or even 20 milliseconds or less. Note that when the object 30 is a banknote, the inspection target is a specific mark. This mark is, for example, at least a part of the euroion.

なお、対象物30が印刷物である場合、撮像装置20は、印刷物が印刷された直後に画像を生成し、その画像を検査装置10にリアルタイムで送信する。検査装置10は、画像を取得するたびに、検査対象の良否を判断する。印刷物の印刷が連続して行われ、かつすべての印刷物に対して検査が行われる場合、検査装置10及び撮像装置20は、撮像及び検査を連続して行う。 When the object 30 is a printed matter, the imaging device 20 generates an image immediately after the printed matter is printed and transmits the image to the inspection device 10 in real time. The inspection device 10 judges the quality of the inspection object each time it acquires an image. When the printed matter is printed continuously and all the printed matters are inspected, the inspection device 10 and the imaging device 20 perform imaging and inspection continuously.

図2は、検査装置10の機能構成の一例を示す図である。本図に示す例において、検査装置10は、検査装置10、第1位置決定部120、第2位置決定部130、判定部140、及び出力部150を備えている。 Figure 2 is a diagram showing an example of the functional configuration of the inspection device 10. In the example shown in this figure, the inspection device 10 includes an inspection device 10, a first position determination unit 120, a second position determination unit 130, a determination unit 140, and an output unit 150.

画像取得部110は、撮像装置20が生成した画像を取得する。 The image acquisition unit 110 acquires the image generated by the imaging device 20.

第1位置決定部120は、撮像装置20が取得した画像のうち第1枠を配置すべき領域を設定する。第1枠は、検査対象を含むことが可能な大きさを有しているのが好ましいが、これに限定されない。第1枠の大きさは、例えば検査対象の0.7倍以上1.5倍以下であるが、この大きさに限定されない。第1位置決定部120は、画像のうち検査対象を含む領域において、第1枠を動かしながら、各位置で第1枠の内側における画素値の統計データ(以下、第1データと記載)を生成する。第1データは、例えば画素値の分散であるが、画素値のばらつきの大きさを示す指標であれば、他の統計値であってもよい。そして、第1位置決定部120は、この第1データを用いて、第1枠の位置を決定する。 The first position determination unit 120 sets an area in the image acquired by the imaging device 20 where the first frame should be placed. The first frame is preferably large enough to include the inspection target, but is not limited to this size. The size of the first frame is, for example, 0.7 to 1.5 times the size of the inspection target, but is not limited to this size. The first position determination unit 120 moves the first frame in the area of the image including the inspection target and generates statistical data (hereinafter referred to as first data) of pixel values inside the first frame at each position. The first data is, for example, the variance of pixel values, but may be any other statistical value as long as it is an index indicating the magnitude of variation in pixel values. The first position determination unit 120 then uses this first data to determine the position of the first frame.

第2位置決定部130は、第1枠よりも小さい第2枠を第1枠内で動かし、かつ、各位置で第2枠内における画素値の統計データ(以下、第2データと記載)を生成する。第2枠の大きさは、検査対象を内側に含むことが可能であるのが好ましいが、例えば検査対象の0.5倍以上1.5倍以下であるが、この大きさに限定されない。第2データは、例えば画素値の分散であるが、画素値のばらつきの大きさを示す指標であれば、他の統計値であってもよい。そして第2位置決定部130は、当該第2データを用いて第2枠の位置を決定する。 The second position determination unit 130 moves a second frame, which is smaller than the first frame, within the first frame, and generates statistical data of pixel values within the second frame at each position (hereinafter referred to as second data). The size of the second frame is preferably capable of including the inspection object within it, and is, for example, between 0.5 and 1.5 times the inspection object, but is not limited to this size. The second data is, for example, the variance of pixel values, but may be any other statistical value as long as it is an index indicating the magnitude of variation in pixel values. The second position determination unit 130 then uses the second data to determine the position of the second frame.

ここで、検査対象の周囲は無地(ただし特定の色が付されている場合はある)又は検査対象と比較して色の濃淡が少ない場合を想定する。このような場合の一例は、対象物30が紙幣などの印刷物であり、検査対象がマークである。 Here, we assume that the area surrounding the object to be inspected is plain (but may have a particular color) or has a color with less shading compared to the object to be inspected. One example of such a case is when the object 30 is a printed matter such as a banknote, and the object to be inspected is a mark.

第1枠は、検査対象と、検査対象の周囲を含んでいる。この場合、検査対象が第1枠のほぼ中央に位置すると、第1枠内の画素値のばらつきは大きくなる。そこで、第1位置決定部120は、画素値のばらつきが最も大きくなるように(例えば分散が最も大きくなるように)、第1枠の位置を決定する。第1位置決定部120が決定した位置において、第1枠は、検査対象を内側に含んでいる。なお、このような場合の一例は、対象物30が紙幣などの印刷物であり、検査対象がマークである。 The first frame includes the inspection object and the area surrounding the inspection object. In this case, if the inspection object is located approximately in the center of the first frame, the variation in pixel values within the first frame will be large. Therefore, the first position determination unit 120 determines the position of the first frame so that the variation in pixel values is maximized (for example, so that the variance is maximized). At the position determined by the first position determination unit 120, the first frame includes the inspection object within it. Note that an example of such a case is when the object 30 is a printed matter such as a banknote, and the inspection object is a mark.

第2枠は、第1枠よりも小さい。このため、第2枠のうち、検査対象の周囲が占める割合は、第1枠と比較して小さい。第2枠の大きさは、検査対象とほぼ同じか、わずかに大きい程度であることが好ましい。この場合、検査対象が第2枠のほぼ中央に位置すると、第2枠内の画素値のばらつきは小さくなる。そこで、第2位置決定部130は、画素値のばらつきが最も小さくなるように(例えば分散が最も小さくなるように)、第2枠の位置を決定する。第2位置決定部130が決定した位置において、第2枠は、検査対象を内側に含んでいる。 The second frame is smaller than the first frame. Therefore, the proportion of the second frame that is taken up by the periphery of the inspection object is smaller than that of the first frame. It is preferable that the size of the second frame is approximately the same as or slightly larger than the inspection object. In this case, when the inspection object is positioned approximately in the center of the second frame, the variation in pixel values within the second frame is small. Therefore, the second position determination unit 130 determines the position of the second frame so that the variation in pixel values is minimized (for example, so that the variance is minimized). At the position determined by the second position determination unit 130, the second frame includes the inspection object inside.

判定部140は、第1枠内の画素値に関するデータ(以下、第3データと記載)と、第2枠内の画素値に関するデータ(以下、第4データと記載)と、を用いて、検査対象の異常の有無を判断する。 The determination unit 140 determines whether or not there is an abnormality in the test subject using data relating to pixel values within the first frame (hereinafter referred to as third data) and data relating to pixel values within the second frame (hereinafter referred to as fourth data).

例えば対象物30が印刷物であり、検査対象がこの印刷物の一部であり、判定部140がこの検査対象の濃度が薄いか否かを判定する場合、第3データの一例は画素値の最大値及び最小値の一方である。この場合、第4データは画素値の最大値及び最小値の他方である。例えば検査対象の色が当該検査対象の下地(周囲)の色よりも濃い場合(例えば白色又は薄い色の下地にその下地より濃い色のマークを印刷する場合)、第3データは画素値の最大値であり、第4データは画素値の最小値である。一方、例えば検査対象の色が当該検査対象の下地(周囲)の色よりも濃い場合(例えば黒色など濃い色の下地にその下地より薄い色のマークを印刷する場合)、第3データは画素値の最小値であり、第4データは画素値の最大値である。そして判定部140は、第3データと第4データの比及び差の少なくとも一方を用いて異常の有無を判定する。例えば第3データが画素値の最大値であり、第4データが画素値の最小値の場合、判定部140は、第3データ/第4データが基準値以下の場合に検査対象の濃度は異常であると判断する。また、第3データが画素値の最小値であり、第4データが画素値の最大値の場合、判定部140は、第4データ/第3データが基準値以下の場合に検査対象の濃度は異常であると判断する。また、いずれの場合においても、判定部140は、第3データと第4データの差が基準値以下の場合に検査対象の濃度は異常であると判断してもよい。 For example, when the object 30 is a printed matter, the inspection object is a part of the printed matter, and the judgment unit 140 judges whether the density of the inspection object is light, an example of the third data is one of the maximum and minimum pixel values. In this case, the fourth data is the other of the maximum and minimum pixel values. For example, when the color of the inspection object is darker than the color of the base (surroundings) of the inspection object (for example, when a mark of a darker color than the base is printed on a white or light-colored base), the third data is the maximum pixel value, and the fourth data is the minimum pixel value. On the other hand, when the color of the inspection object is darker than the color of the base (surroundings) of the inspection object (for example, when a mark of a lighter color than the base is printed on a dark-colored base such as black), the third data is the minimum pixel value, and the fourth data is the maximum pixel value. Then, the judgment unit 140 judges whether or not there is an abnormality using at least one of the ratio and difference between the third data and the fourth data. For example, when the third data is the maximum pixel value and the fourth data is the minimum pixel value, the judgment unit 140 judges that the density of the inspection object is abnormal if the third data/fourth data is equal to or less than the reference value. Furthermore, when the third data is the minimum pixel value and the fourth data is the maximum pixel value, the determination unit 140 determines that the density of the test object is abnormal when the fourth data/third data is equal to or less than the reference value. In either case, the determination unit 140 may determine that the density of the test object is abnormal when the difference between the third data and the fourth data is equal to or less than the reference value.

なお、判定部140は、第1枠内の複数の画素を画素値の大きい順(又は小さい順)に並べ、上位の所定数の画素値の平均値を算出し、この平均値を第3データとしてもよい。この場合、判定部140は、第2枠内の複数の画素を画素値の小さい順(又は大きい順)に並べ、上位の所定数の画素値の平均値を算出し、この平均値を第4データとしてもよい。さらに、判定部140は、第1枠内(ただし第2枠を除く)の画素値の平均を第3データとして、第2枠内の画素値の平均を第4データとしてもよい。 The determination unit 140 may arrange the pixels in the first frame in ascending (or descending) order of pixel value, calculate the average of a predetermined number of the top pixel values, and use this average as the third data. In this case, the determination unit 140 may arrange the pixels in the second frame in ascending (or descending) order of pixel value, calculate the average of a predetermined number of the top pixel values, and use this average as the fourth data. Furthermore, the determination unit 140 may use the average of the pixel values in the first frame (excluding the second frame) as the third data, and the average of the pixel values in the second frame as the fourth data.

出力部150は、判定部140の判定結果を出力する。この出力先はディスプレイであってもよいしスピーカであってもよい。出力部150は、異常を有する対象物30が検出された場合にのみ、所定の出力を行ってもよい。 The output unit 150 outputs the determination result of the determination unit 140. This output destination may be a display or a speaker. The output unit 150 may perform a predetermined output only when an object 30 having an abnormality is detected.

次に、図3、図4、及び図5を用いて、第1位置決定部120、第2位置決定部130、及び判定部140で行われる処理の具体例を説明する。これらの図において、対象物30は紙幣などの印刷物である。 Next, specific examples of the processing performed by the first position determination unit 120, the second position determination unit 130, and the determination unit 140 will be described with reference to Figures 3, 4, and 5. In these figures, the target object 30 is a printed matter such as a banknote.

図3は、撮像装置20によって生成される画像の一例を示す図である。本図に示す例において、検査対象32は下地に印刷されたマークである。また、検査対象32の周囲は余白領域34となっており、下地がほぼそのまま表れている。また、余白領域34の外側には、所定の模様などが印刷されている。撮像装置20によって生成される画像210は、検査対象32及び余白領域34を内側に含むとともに、余白領域34の外側の領域も含んでいる。 Figure 3 is a diagram showing an example of an image generated by the imaging device 20. In the example shown in this figure, the inspection object 32 is a mark printed on a substrate. In addition, the inspection object 32 is surrounded by a margin area 34, with the substrate being almost completely visible. In addition, a predetermined pattern or the like is printed outside the margin area 34. The image 210 generated by the imaging device 20 includes the inspection object 32 and margin area 34 inside, and also includes the area outside the margin area 34.

図4は、第1位置決定部120の動作の一例を示す図である。第1位置決定部120によって設定される第1枠212は、余白領域34の外側の領域をなるべく含まない大きさになっている。このため、第1枠212の位置を適切にする(例えば第1枠212内の画素値のばらつきが最大になるようにする)と、画像210のうち第1枠212によって切り取られる領域(すなわち第1枠212の内側に位置する領域)は、ほぼ、検査対象32及び余白領域34によって占められる。 Figure 4 is a diagram showing an example of the operation of the first position determination unit 120. The first frame 212 set by the first position determination unit 120 is sized so as to include as little of the area outside the margin area 34 as possible. Therefore, when the position of the first frame 212 is appropriately set (for example, so that the variation in pixel values within the first frame 212 is maximized), the area of the image 210 cut out by the first frame 212 (i.e., the area located inside the first frame 212) is almost entirely occupied by the inspection object 32 and the margin area 34.

図5は、第2位置決定部130の動作の一例を示す図である。第2位置決定部130によって設定される第2枠214は、第1枠212より小さいが、検査対象32を内側に含んでおり、かつ、余白領域34をなるべく含まない大きさになっている。このため、第1枠212内において第2枠214の位置を適切にする(例えば第2枠214内の画素値のばらつきが最小になるようにする)と、画像210のうち第2枠214によって切り取られる領域(すなわち第2枠214の内側に位置する領域)は、ほぼ検査対象32によって占められる。第2位置決定部130は、このような処理を行うことにより、画像の解像度が低い場合でも、画像から検査対象32を高い精度で切り取ることができる。また、温度や湿度などにより、検査対象32が変形することがある。このような場合においても、画像から検査対象32を高い精度で切り取ることができる。 Figure 5 is a diagram showing an example of the operation of the second position determination unit 130. The second frame 214 set by the second position determination unit 130 is smaller than the first frame 212, but includes the inspection object 32 inside and is sized to include as little of the margin area 34 as possible. Therefore, when the position of the second frame 214 is appropriately set within the first frame 212 (for example, so that the variation in pixel values within the second frame 214 is minimized), the area of the image 210 cut out by the second frame 214 (i.e., the area located inside the second frame 214) is almost entirely occupied by the inspection object 32. By performing such processing, the second position determination unit 130 can cut out the inspection object 32 from the image with high accuracy even if the image resolution is low. In addition, the inspection object 32 may be deformed due to temperature, humidity, etc. Even in such a case, the inspection object 32 can be cut out from the image with high accuracy.

そして、余白領域34の色が検査対象32の色よりも薄い場合、又は余白領域34が白地の場合、第1枠212内の画素値の最大値は、余白領域34の画素値を示している。また、第2枠214内の画素値の最小値は、検査対象32の画素値を示している。このため、判定部140は、第1枠212内の画素値の最大値と第2枠214内の画素値の最小値を比較することにより、検査対象32の濃度の異常の有無を判断できる。 When the color of the margin area 34 is lighter than the color of the inspection object 32, or when the margin area 34 is white, the maximum pixel value in the first frame 212 indicates the pixel value of the margin area 34. The minimum pixel value in the second frame 214 indicates the pixel value of the inspection object 32. Therefore, the determination unit 140 can determine whether or not there is an abnormality in the density of the inspection object 32 by comparing the maximum pixel value in the first frame 212 with the minimum pixel value in the second frame 214.

一方、余白領域34の色が検査対象32の色よりも濃い場合、第1枠212内の画素値の最小値は、余白領域34の画素値を示している。また、第2枠214内の画素値の最大値は、検査対象32の画素値を示している。このため、判定部140は、第1枠212内の画素値の最小値と第2枠214内の画素値の最大値を比較することにより、検査対象32の濃度の異常の有無を判断できる。 On the other hand, if the color of the margin area 34 is darker than the color of the inspection object 32, the minimum pixel value in the first frame 212 indicates the pixel value of the margin area 34. Furthermore, the maximum pixel value in the second frame 214 indicates the pixel value of the inspection object 32. Therefore, the judgment unit 140 can judge whether or not there is an abnormality in the density of the inspection object 32 by comparing the minimum pixel value in the first frame 212 with the maximum pixel value in the second frame 214.

そして判定部140は、このような処理を行うことにより、画像の解像度が低い場合でも、検査対象32の良否を高い精度で判断できる。 By performing this type of processing, the judgment unit 140 can judge with high accuracy whether the inspection object 32 is good or bad, even if the image resolution is low.

なお、一つの対象物30に対して複数の検査対象32が設定されていてもよい。この場合、検査装置10は、複数の検査対象32のそれぞれに対して第3データ及び第4データの生成処理を行う。そして判定部140は、これら複数組の第3データ及び第4データを用いて、対象物の異常の有無を判定する。 Note that multiple inspection targets 32 may be set for one object 30. In this case, the inspection device 10 performs a process of generating third data and fourth data for each of the multiple inspection targets 32. The determination unit 140 then uses these multiple sets of third data and fourth data to determine whether or not the object has an abnormality.

例えば判定部140は複数の検査対象32それぞれに対して異常の有無を判定し、これらの判定結果を用いて、対象物30の異常の有無を判定してもよい。この場合、判定部140は、所定割合以上の検査対象32で異常があると判定された場合に、その対象物30は異常であると判断する。また判定部140は、複数の検査対象32が互いに異なる場所に印刷された同一のマーク(例えばそれぞれがユーリオンの少なくとも一部)である場合、これら複数の検査対象32それぞれの第3データの平均値を算出するとともに、これら複数の検査対象32それぞれの第4データの平均値を算出し、これら2つの平均値を第3データ及び第4データの代わりに用いてもよい。 For example, the determination unit 140 may determine whether or not there is an abnormality for each of the multiple inspection targets 32, and use these determination results to determine whether or not there is an abnormality in the object 30. In this case, the determination unit 140 determines that the object 30 is abnormal when a predetermined percentage or more of the inspection targets 32 are determined to be abnormal. Furthermore, when the multiple inspection targets 32 are the same mark printed in different locations (e.g., each is at least a part of a europium), the determination unit 140 may calculate the average value of the third data for each of the multiple inspection targets 32 and the average value of the fourth data for each of the multiple inspection targets 32, and use these two average values instead of the third data and the fourth data.

図6は、検査装置10のハードウェア構成例を示す図である。検査装置10は、バス1010、プロセッサ1020、メモリ1030、ストレージデバイス1040、入出力インタフェース1050、及びネットワークインタフェース1060を有する。 Figure 6 is a diagram showing an example of the hardware configuration of the inspection device 10. The inspection device 10 has a bus 1010, a processor 1020, a memory 1030, a storage device 1040, an input/output interface 1050, and a network interface 1060.

バス1010は、プロセッサ1020、メモリ1030、ストレージデバイス1040、入出力インタフェース1050、及びネットワークインタフェース1060が、相互にデータを送受信するためのデータ伝送路である。ただし、プロセッサ1020などを互いに接続する方法は、バス接続に限定されない。 The bus 1010 is a data transmission path for the processor 1020, memory 1030, storage device 1040, input/output interface 1050, and network interface 1060 to transmit and receive data to and from each other. However, the method of connecting the processor 1020 and other components to each other is not limited to a bus connection.

プロセッサ1020は、CPU(Central Processing Unit) やGPU(Graphics Processing Unit)などで実現されるプロセッサである。 The processor 1020 is a processor realized by a CPU (Central Processing Unit) or a GPU (Graphics Processing Unit).

メモリ1030は、RAM(Random Access Memory)などで実現される主記憶装置である。 Memory 1030 is a main storage device realized by RAM (Random Access Memory) or the like.

ストレージデバイス1040は、HDD(Hard Disk Drive)、SSD(Solid State Drive)、メモリカード、又はROM(Read Only Memory)などで実現される補助記憶装置である。ストレージデバイス1040は検査装置10の各機能(例えば画像取得部110、第1位置決定部120、第2位置決定部130、判定部140、及び出力部150)を実現するプログラムモジュールを記憶している。プロセッサ1020がこれら各プログラムモジュールをメモリ1030上に読み込んで実行することで、そのプログラムモジュールに対応する各機能が実現される。 The storage device 1040 is an auxiliary storage device realized by a hard disk drive (HDD), a solid state drive (SSD), a memory card, or a read only memory (ROM). The storage device 1040 stores program modules that realize each function of the inspection device 10 (e.g., the image acquisition unit 110, the first position determination unit 120, the second position determination unit 130, the judgment unit 140, and the output unit 150). The processor 1020 loads each of these program modules into the memory 1030 and executes them, thereby realizing each function corresponding to the program module.

入出力インタフェース1050は、検査装置10と各種入出力機器とを接続するためのインタフェースである。例えば検査装置10は、入出力インタフェース1050を介して撮像装置20と通信してもよい。 The input/output interface 1050 is an interface for connecting the inspection device 10 to various input/output devices. For example, the inspection device 10 may communicate with the imaging device 20 via the input/output interface 1050.

ネットワークインタフェース1060は、検査装置10をネットワークに接続するためのインタフェースである。このネットワークは、例えばLAN(Local Area Network)やWAN(Wide Area Network)である。ネットワークインタフェース1060がネットワークに接続する方法は、無線接続であってもよいし、有線接続であってもよい。ただし、検査装置10はネットワークインタフェース1060を有していなくてもよい。 The network interface 1060 is an interface for connecting the inspection device 10 to a network. This network is, for example, a LAN (Local Area Network) or a WAN (Wide Area Network). The method for connecting the network interface 1060 to the network may be a wireless connection or a wired connection. However, the inspection device 10 does not have to have the network interface 1060.

図7は、検査装置10が行う処理の一例を示すフローチャートである。新たな対象物30が存在している場合(例えば新たに対象物30としての印刷物が印刷された場合)、撮像装置20は、対象物30を撮影し、画像を生成する。検査装置10は、撮像装置20が画像を生成するたびに、本図に示す処理を行う。この処理はリアルタイムで行われるのが好ましい。 Figure 7 is a flowchart showing an example of processing performed by the inspection device 10. When a new object 30 is present (for example, when a new printed matter is printed as the object 30), the imaging device 20 captures the object 30 and generates an image. The inspection device 10 performs the processing shown in this figure each time the imaging device 20 generates an image. This processing is preferably performed in real time.

検査装置10の画像取得部110は、撮像装置20から送信されてきた画像を取得する(ステップS10)。すると、検査装置10の第1位置決定部120は、この画像における第1枠の位置を決定する(ステップS20)。次いで検査装置10の第2位置決定部130は、ステップS20で決定した第1枠内において、第2枠の位置を決定する。この際、第2位置決定部130は、第2枠を動かすとき、最初の第2枠の位置を、第1枠の中心を含むように(例えば中心同士が重なるように)するのが好ましい(ステップS30)。ステップS20,S30で行われる処理の詳細は、図2~図5を用いて説明した通りである。 The image acquisition unit 110 of the inspection device 10 acquires the image transmitted from the imaging device 20 (step S10). Then, the first position determination unit 120 of the inspection device 10 determines the position of the first frame in this image (step S20). Next, the second position determination unit 130 of the inspection device 10 determines the position of the second frame within the first frame determined in step S20. At this time, when the second position determination unit 130 moves the second frame, it is preferable that the initial position of the second frame includes the center of the first frame (for example, so that the centers overlap) (step S30). Details of the processing performed in steps S20 and S30 are as described using Figures 2 to 5.

次いで検査装置10の判定部140は、検査対象の良否を判断する(ステップS40)。ステップS40で行われる処理の詳細は、図2~図5を用いて説明した通りである。そして、出力部150は、この判断結果を出力する(ステップS50)。 Then, the judgment unit 140 of the inspection device 10 judges whether the inspection object is good or bad (step S40). Details of the process performed in step S40 are as explained using Figures 2 to 5. Then, the output unit 150 outputs this judgment result (step S50).

以上、本実施形態によれば、検査装置10を用いることにより、撮像装置20が生成する画像の解像度が低い場合においても、検査対象の良否を高い精度で判断できる。特に検査対象が印刷物であり、かつ、この印刷物の基材が紙の場合、温度や湿度で検査対象そのものの形状や大きさが変化する。より具体的には、印刷時に温度や湿度によって検査対象の形状や大きさが変化する場合、及び、検査時に温度や湿度によって検査対象の形状や大きさが変化する場合がある。このような場合においても、検査装置10を用いると、検査対象の良否を高い精度で判断できる。 As described above, according to this embodiment, by using the inspection device 10, the quality of the inspection object can be determined with high accuracy even when the resolution of the image generated by the imaging device 20 is low. In particular, when the inspection object is a printed matter and the base material of this printed matter is paper, the shape and size of the inspection object itself changes with temperature and humidity. More specifically, there are cases where the shape and size of the inspection object changes due to temperature and humidity during printing, and cases where the shape and size of the inspection object changes due to temperature and humidity during inspection. Even in such cases, by using the inspection device 10, the quality of the inspection object can be determined with high accuracy.

以上、図面を参照して本発明の実施形態について述べたが、これらは本発明の例示であり、上記以外の様々な構成を採用することもできる。 The above describes the embodiments of the present invention with reference to the drawings, but these are merely examples of the present invention, and various configurations other than those described above can also be adopted.

また、上述の説明で用いた複数のフローチャートでは、複数の工程(処理)が順番に記載されているが、各実施形態で実行される工程の実行順序は、その記載の順番に制限されない。各実施形態では、図示される工程の順番を内容的に支障のない範囲で変更することができる。また、上述の各実施形態は、内容が相反しない範囲で組み合わせることができる。 In addition, in the multiple flow charts used in the above explanation, multiple steps (processing) are described in order, but the order of execution of the steps performed in each embodiment is not limited to the order described. In each embodiment, the order of the steps shown in the figures can be changed to the extent that does not cause any problems in terms of content. In addition, each of the above-mentioned embodiments can be combined to the extent that the content is not contradictory.

上記の実施形態の一部または全部は、以下の付記のようにも記載されうるが、以下に限られない。
1.検査対象を含む画像を取得する画像取得手段と、
前記画像のうち前記検査対象を含む領域において、第1枠を動かしながら前記第1枠内における画素値の統計データである第1データを生成し、当該第1データを用いて前記第1枠の位置を決定する第1位置決定手段と、
前記第1枠よりも小さい第2枠を前記第1枠内で動かしながら、前記第2枠内における画素値の統計データである第2データを生成し、当該第2データを用いて前記第2枠の位置を決定する第2位置決定手段と、
前記第1枠内の前記画素値に関する第3データと、前記第2枠内における前記画素値に関する第4データと、を用いて、前記検査対象の異常の有無を判定する判定手段と、
を備える検査装置。
2.上記1に記載の検査装置において、
前記第1データ及び前記第2データは、前記画素値の分散である、検査装置。
3.上記1又は2に記載の検査装置において、
前記検査対象は印刷物の一部である、検査装置。
4.上記3に記載の検査装置において、
前記印刷物は紙幣である、検査装置。
5.上記3又は4に記載の検査装置において、
前記第3データは、前記画素値の最大値及び最小値の一方に関しており、
前記第4データは、前記画素値の最大値及び最小値の他方に関している、検査装置。
6.上記5に記載の検査装置において、
前記判定手段は、前記第3データと前記第4データの比及び差の少なくとも一方を用いて前記異常の有無を判定する、検査装置。
7.上記3又は4に記載の検査装置において、
前記第3データは、前記第1枠内の複数の前記画素値を大きい順または小さい順に並べたときの、上位の所定数の画素値の平均値であり、
前記第4データは、前記第2枠内の複数の前記画素値を小さい順または大きい順に並べたときの、上位の所定数の画素値の平均値である、検査装置。
8.上記3~7のいずれか一項に記載の検査装置において、
前記印刷物は、複数の前記検査対象を有しており、
前記判定手段は、前記複数の検査対象それぞれの前記第3データ及び前記第4データを用いて、前記異常の有無を判定する、検査装置。
9.コンピュータが、
検査対象を含む画像を取得する画像取得処理と、
前記画像のうち前記検査対象を含む領域において、第1枠を動かしながら前記第1枠内における画素値の統計データである第1データを生成し、当該第1データを用いて前記第1枠の位置を決定する第1位置決定処理と、
前記第1枠よりも小さい第2枠を前記第1枠内で動かしながら、前記第2枠内における画素値の統計データである第2データを生成し、当該第2データを用いて前記第2枠の位置を決定する第2位置決定処理と、
前記第1枠内の前記画素値に関する第3データと、前記第2枠内における前記画素値に関する第4データと、を用いて、前記検査対象の異常の有無を判定する判定処理と、
を行う検査方法。
10.上記9に記載の検査方法において、
前記第1データ及び前記第2データは、前記画素値の分散である、検査方法。
11.上記9又は10に記載の検査方法において、
前記検査対象は印刷物の一部である、検査方法。
12.上記11に記載の検査方法において、
前記印刷物は紙幣である、検査方法。
13.上記11又は12に記載の検査方法において、
前記第3データは、前記画素値の最大値及び最小値の一方に関しており、
前記第4データは、前記画素値の最大値及び最小値の他方に関している、検査方法。
14.上記13に記載の検査方法において、
前記判定処理において、前記コンピュータは、前記第3データと前記第4データの比及び差の少なくとも一方を用いて前記異常の有無を判定する、検査方法。
15.上記11又は12に記載の検査方法において、
前記第3データは、前記第1枠内の複数の前記画素値を大きい順または小さい順に並べたときの、上位の所定数の画素値の平均値であり、
前記第4データは、前記第2枠内の複数の前記画素値を小さい順または大きい順に並べたときの、上位の所定数の画素値の平均値である、検査方法。
16.上記11~15のいずれか一項に記載の検査方法において、
前記印刷物は、複数の前記検査対象を有しており、
前記判定処理において、前記コンピュータは、前記複数の検査対象それぞれの前記第3データ及び前記第4データを用いて、前記異常の有無を判定する、検査方法。
17. コンピュータに、
検査対象を含む画像を取得する画像取得機能と、
前記画像のうち前記検査対象を含む領域において、第1枠を動かしながら前記第1枠内における画素値の統計データである第1データを生成し、当該第1データを用いて前記第1枠の位置を決定する第1位置決定機能と、
前記第1枠よりも小さい第2枠を前記第1枠内で動かしながら、前記第2枠内における画素値の統計データである第2データを生成し、当該第2データを用いて前記第2枠の位置を決定する第2位置決定機能と、
前記第1枠内の前記画素値に関する第3データと、前記第2枠内における前記画素値に関する第4データと、を用いて、前記検査対象の異常の有無を判定する判定機能と、
を持たせるプログラム。
18.上記17に記載のプログラムにおいて、
前記第1データ及び前記第2データは、前記画素値の分散である、プログラム。
19.上記17又は18に記載のプログラムにおいて、
前記検査対象は印刷物の一部である、プログラム。
20.上記19に記載のプログラムにおいて、
前記印刷物は紙幣である、プログラム。
21.上記19又は20に記載のプログラムにおいて、
前記第3データは、前記画素値の最大値及び最小値の一方に関しており、
前記第4データは、前記画素値の最大値及び最小値の他方に関している、プログラム。
22.上記21に記載のプログラムにおいて、
前記判定機能は、前記第3データと前記第4データの比及び差の少なくとも一方を用いて前記異常の有無を判定する、プログラム。
23.上記19又は20に記載のプログラムにおいて、
前記第3データは、前記第1枠内の複数の前記画素値を大きい順または小さい順に並べたときの、上位の所定数の画素値の平均値であり、
前記第4データは、前記第2枠内の複数の前記画素値を小さい順または大きい順に並べたときの、上位の所定数の画素値の平均値である、プログラム。
24.上記19~23のいずれか一項に記載のプログラムにおいて、
前記印刷物は、複数の前記検査対象を有しており、
前記判定機能は、前記複数の検査対象それぞれの前記第3データ及び前記第4データを用いて、前記異常の有無を判定する、プログラム。
A part or all of the above-described embodiments may be described as, but is not limited to, the following supplementary notes.
1. An image acquisition means for acquiring an image including an inspection object;
a first position determination means for generating first data, which is statistical data of pixel values within a first frame while moving the first frame in a region of the image including the inspection object, and determining a position of the first frame using the first data;
a second position determination means for generating second data, which is statistical data of pixel values within the second frame, while moving a second frame smaller than the first frame within the first frame, and determining a position of the second frame using the second data;
a determination means for determining the presence or absence of an abnormality in the inspection object by using third data on the pixel values in the first frame and fourth data on the pixel values in the second frame;
An inspection device comprising:
2. In the inspection device described in 1 above,
An inspection apparatus, wherein the first data and the second data are variances of the pixel values.
3. In the inspection device according to 1 or 2 above,
An inspection device, wherein the inspection object is a part of a printed matter.
4. In the inspection device described in 3 above,
The inspection device, wherein the printed matter is a banknote.
5. In the inspection device according to 3 or 4 above,
the third data relates to one of a maximum value and a minimum value of the pixel values;
The fourth data relates to the other of the maximum and minimum pixel values.
6. In the inspection device described in 5 above,
The determination means determines the presence or absence of the abnormality using at least one of a ratio and a difference between the third data and the fourth data.
7. In the inspection device according to 3 or 4 above,
the third data is an average value of a predetermined number of top pixel values when the plurality of pixel values in the first frame are sorted in ascending or descending order,
The fourth data is an average value of a predetermined number of top pixel values when the multiple pixel values in the second frame are sorted in ascending or descending order.
8. In the inspection device according to any one of 3 to 7 above,
The printed matter has a plurality of the inspection targets,
The determination means determines the presence or absence of the abnormality using the third data and the fourth data for each of the plurality of inspection objects.
9. The computer:
an image acquisition process for acquiring an image including an object to be inspected;
a first position determination process for generating first data, which is statistical data of pixel values within a first frame, while moving the first frame in a region of the image including the inspection object, and determining a position of the first frame using the first data;
a second position determination process for generating second data, which is statistical data of pixel values within the second frame, while moving a second frame smaller than the first frame within the first frame, and determining a position of the second frame using the second data;
a determination process for determining the presence or absence of an abnormality in the inspection object by using third data on the pixel values in the first frame and fourth data on the pixel values in the second frame;
An inspection method.
10. In the inspection method according to the above 9,
An inspection method, wherein the first data and the second data are variances of the pixel values.
11. In the inspection method according to 9 or 10 above,
An inspection method, wherein the inspection object is a part of a printed matter.
12. In the inspection method according to 11 above,
The inspection method, wherein the printed matter is a banknote.
13. In the inspection method according to 11 or 12 above,
the third data relates to one of a maximum value and a minimum value of the pixel values;
An inspection method, wherein the fourth data relates to the other of the maximum and minimum values of the pixel values.
14. In the inspection method according to 13 above,
An inspection method, wherein in the determination process, the computer determines the presence or absence of the abnormality using at least one of a ratio and a difference between the third data and the fourth data.
15. In the inspection method according to 11 or 12 above,
the third data is an average value of a predetermined number of top pixel values when the plurality of pixel values in the first frame are sorted in ascending or descending order,
An inspection method, wherein the fourth data is an average value of a predetermined number of top pixel values when the multiple pixel values in the second frame are sorted in ascending or descending order.
16. In the inspection method according to any one of 11 to 15 above,
The printed matter has a plurality of the inspection targets,
The inspection method, wherein in the judgment process, the computer judges the presence or absence of the abnormality using the third data and the fourth data for each of the plurality of inspection objects.
17. On the computer:
an image acquisition function for acquiring an image including an object to be inspected;
a first position determination function that generates first data, which is statistical data of pixel values within a first frame while moving the first frame in a region of the image that includes the inspection object, and determines a position of the first frame using the first data;
a second position determination function that generates second data, which is statistical data of pixel values within the second frame, while moving a second frame smaller than the first frame within the first frame, and determines a position of the second frame using the second data;
a determination function for determining the presence or absence of an abnormality in the inspection object by using third data on the pixel values in the first frame and fourth data on the pixel values in the second frame;
A program that allows you to have
18. In the program according to 17 above,
The first data and the second data are variances of the pixel values.
19. In the program according to 17 or 18 above,
A program in which the inspection object is a part of a printed matter.
20. In the program according to 19 above,
The program, wherein the printed matter is a banknote.
21. In the program according to 19 or 20 above,
the third data relates to one of a maximum value and a minimum value of the pixel values;
The fourth data relates to the other of the maximum and minimum values of the pixel values.
22. In the program according to 21 above,
The determination function determines the presence or absence of the abnormality using at least one of a ratio and a difference between the third data and the fourth data.
23. In the program according to 19 or 20 above,
the third data is an average value of a predetermined number of top pixel values when the plurality of pixel values in the first frame are sorted in ascending or descending order,
The fourth data is an average value of a predetermined number of top pixel values when the multiple pixel values in the second frame are sorted in ascending or descending order.
24. In the program according to any one of claims 19 to 23,
The printed matter has a plurality of the inspection targets,
The determination function determines the presence or absence of the abnormality using the third data and the fourth data for each of the multiple inspection objects.

10 検査装置
20 撮像装置
30 対象物
32 検査対象
34 余白領域
110 画像取得部
120 第1位置決定部
130 第2位置決定部
140 判定部
150 出力部
210 画像
212 第1パターン
214 第2パターン
REFERENCE SIGNS LIST 10 Inspection device 20 Imaging device 30 Object 32 Inspection object 34 Blank area 110 Image acquisition section 120 First position determination section 130 Second position determination section 140 Determination section 150 Output section 210 Image 212 First pattern 214 Second pattern

Claims (8)

検査対象を含む画像を取得する画像取得手段と、
前記画像のうち前記検査対象を含む領域において、第1枠を動かしながら前記第1枠内における画素値の統計データである第1データを生成し、当該第1データを用いて前記第1枠の位置を決定する第1位置決定手段と、
前記第1枠よりも小さい第2枠を前記第1位置決定手段によって位置が決定された前記第1枠内で動かしながら、前記第2枠内における画素値の統計データである第2データを生成し、当該第2データを用いて前記第2枠の位置を決定する第2位置決定手段と、
前記第1枠内の前記画素値に関する第3データと、前記第2枠内における前記画素値に関する第4データと、を用いて、前記検査対象の異常の有無を判定する判定手段と、
を備え
前記検査対象は、印刷物の一部であって、下地に印刷されたマークであり、
前記検査対象の周囲には余白領域が存在し、
前記検査対象が前記下地よりも濃い場合は、前記第3データは前記画素値の最大値に関しており、前記第4データは前記画素値の最小値に関しており、
前記検査対象が前記下地よりも薄い場合は、前記第3データは前記画素値の最小値に関しており、前記第4データは前記画素値の最大値に関している、検査装置。
An image acquisition means for acquiring an image including an inspection object;
a first position determination means for generating first data, which is statistical data of pixel values within a first frame while moving the first frame in a region of the image including the inspection object, and determining a position of the first frame using the first data;
a second position determination means for generating second data which is statistical data of pixel values within the second frame while moving a second frame smaller than the first frame within the first frame whose position has been determined by the first position determination means, and determining a position of the second frame using the second data;
a determination means for determining the presence or absence of an abnormality in the inspection object by using third data on the pixel values in the first frame and fourth data on the pixel values in the second frame;
Equipped with
The inspection target is a part of a printed matter, that is, a mark printed on a base,
A margin area is present around the inspection target,
When the inspection object is darker than the background, the third data relates to a maximum value of the pixel value, and the fourth data relates to a minimum value of the pixel value.
When the object to be inspected is thinner than the base, the third data relates to a minimum value of the pixel value, and the fourth data relates to a maximum value of the pixel value .
請求項1に記載の検査装置において、
前記第1データ及び前記第2データは、前記画素値の分散である、検査装置。
2. The inspection device according to claim 1,
An inspection apparatus, wherein the first data and the second data are variances of the pixel values.
請求項1又は2に記載の検査装置において、
前記印刷物は紙幣である、検査装置。
3. The inspection device according to claim 1 ,
The inspection device, wherein the printed matter is a banknote.
請求項1~3のいずれか一項に記載の検査装置において、
前記判定手段は、前記第3データと前記第4データの比及び差の少なくとも一方を用いて前記異常の有無を判定する、検査装置。
In the inspection device according to any one of claims 1 to 3 ,
The determination means determines the presence or absence of the abnormality using at least one of a ratio and a difference between the third data and the fourth data.
請求項1又は2に記載の検査装置において、
前記第3データは、前記第1枠内の複数の前記画素値を大きい順または小さい順に並べたときの、上位の所定数の画素値の平均値であり、
前記第4データは、前記第2枠内の複数の前記画素値を小さい順または大きい順に並べたときの、上位の所定数の画素値の平均値である、検査装置。
3. The inspection device according to claim 1 ,
the third data is an average value of a predetermined number of top pixel values when the plurality of pixel values in the first frame are sorted in ascending or descending order,
The fourth data is an average value of a predetermined number of top pixel values when the multiple pixel values in the second frame are sorted in ascending or descending order.
請求項1~5のいずれか一項に記載の検査装置において、
前記印刷物は、複数の前記検査対象を有しており、
前記判定手段は、前記複数の検査対象それぞれの前記第3データ及び前記第4データを用いて、前記異常の有無を判定する、検査装置。
In the inspection device according to any one of claims 1 to 5 ,
The printed matter has a plurality of the inspection targets,
The determination means determines the presence or absence of the abnormality using the third data and the fourth data for each of the plurality of inspection objects.
コンピュータが、
検査対象を含む画像を取得する画像取得処理と、
前記画像のうち前記検査対象を含む領域において、第1枠を動かしながら前記第1枠内における画素値の統計データである第1データを生成し、当該第1データを用いて前記第1枠の位置を決定する第1位置決定処理と、
前記第1枠よりも小さい第2枠を前記第1位置決定処理によって位置が決定された前記第1枠内で動かしながら、前記第2枠内における画素値の統計データである第2データを生成し、当該第2データを用いて前記第2枠の位置を決定する第2位置決定処理と、
前記第1枠内の前記画素値に関する第3データと、前記第2枠内における前記画素値に関する第4データと、を用いて、前記検査対象の異常の有無を判定する判定処理と、
を行い、
前記検査対象は、印刷物の一部であって、下地に印刷されたマークであり、
前記検査対象の周囲には余白領域が存在し、
前記検査対象が前記下地よりも濃い場合は、前記第3データは前記画素値の最大値に関しており、前記第4データは前記画素値の最小値に関しており、
前記検査対象が前記下地よりも薄い場合は、前記第3データは前記画素値の最小値に関しており、前記第4データは前記画素値の最大値に関している検査方法。
The computer
an image acquisition process for acquiring an image including an object to be inspected;
a first position determination process for generating first data, which is statistical data of pixel values within a first frame, while moving the first frame in a region of the image including the inspection object, and determining a position of the first frame using the first data;
a second position determination process for generating second data, which is statistical data of pixel values within the second frame, while moving a second frame smaller than the first frame within the first frame whose position has been determined by the first position determination process, and determining a position of the second frame using the second data;
a determination process for determining the presence or absence of an abnormality in the inspection object by using third data on the pixel values in the first frame and fourth data on the pixel values in the second frame;
Do the following:
The inspection target is a part of a printed matter, that is, a mark printed on a base,
A margin area is present around the inspection target,
When the inspection object is darker than the background, the third data relates to a maximum value of the pixel value, and the fourth data relates to a minimum value of the pixel value.
When the object to be inspected is thinner than the base, the third data relates to a minimum value of the pixel value, and the fourth data relates to a maximum value of the pixel value .
コンピュータに、
検査対象を含む画像を取得する画像取得機能と、
前記画像のうち前記検査対象を含む領域において、第1枠を動かしながら前記第1枠内における画素値の統計データである第1データを生成し、当該第1データを用いて前記第1枠の位置を決定する第1位置決定機能と、
前記第1枠よりも小さい第2枠を前記第1位置決定機能によって位置が決定された前記第1枠内で動かしながら、前記第2枠内における画素値の統計データである第2データを生成し、当該第2データを用いて前記第2枠の位置を決定する第2位置決定機能と、
前記第1枠内の前記画素値に関する第3データと、前記第2枠内における前記画素値に関する第4データと、を用いて、前記検査対象の異常の有無を判定する判定機能と、
を持たせ
前記検査対象は、印刷物の一部であって、下地に印刷されたマークであり、
前記検査対象の周囲には余白領域が存在し、
前記検査対象が前記下地よりも濃い場合は、前記第3データは前記画素値の最大値に関しており、前記第4データは前記画素値の最小値に関しており、
前記検査対象が前記下地よりも薄い場合は、前記第3データは前記画素値の最小値に関しており、前記第4データは前記画素値の最大値に関しているプログラム。
On the computer,
an image acquisition function for acquiring an image including an object to be inspected;
a first position determination function that generates first data, which is statistical data of pixel values within a first frame while moving the first frame in a region of the image that includes the inspection object, and determines a position of the first frame using the first data;
a second position determination function that generates second data, which is statistical data of pixel values within the second frame, while moving a second frame smaller than the first frame within the first frame whose position has been determined by the first position determination function, and determines the position of the second frame using the second data;
a determination function for determining the presence or absence of an abnormality in the inspection object by using third data on the pixel values in the first frame and fourth data on the pixel values in the second frame;
Let them have
The inspection target is a part of a printed matter, that is, a mark printed on a base,
A margin area is present around the inspection target,
When the inspection object is darker than the background, the third data relates to a maximum value of the pixel value, and the fourth data relates to a minimum value of the pixel value.
When the object to be inspected is thinner than the base, the third data relates to a minimum value of the pixel value, and the fourth data relates to a maximum value of the pixel value .
JP2021045465A 2021-03-19 2021-03-19 Inspection device, inspection method, and program Active JP7643112B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2021045465A JP7643112B2 (en) 2021-03-19 2021-03-19 Inspection device, inspection method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2021045465A JP7643112B2 (en) 2021-03-19 2021-03-19 Inspection device, inspection method, and program

Publications (2)

Publication Number Publication Date
JP2022144446A JP2022144446A (en) 2022-10-03
JP7643112B2 true JP7643112B2 (en) 2025-03-11

Family

ID=83455142

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2021045465A Active JP7643112B2 (en) 2021-03-19 2021-03-19 Inspection device, inspection method, and program

Country Status (1)

Country Link
JP (1) JP7643112B2 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002269571A (en) 2001-03-14 2002-09-20 Nec Corp Object-detecting device and object-detecting method used therefor
JP2005293211A (en) 2004-03-31 2005-10-20 Toshiba Corp Texture pattern detection method and texture pattern detection apparatus
JP2016091172A (en) 2014-10-31 2016-05-23 キヤノン株式会社 Image processing apparatus, control method therefor, and program
JP2020016948A (en) 2018-07-23 2020-01-30 株式会社キーエンス Image inspection device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002269571A (en) 2001-03-14 2002-09-20 Nec Corp Object-detecting device and object-detecting method used therefor
JP2005293211A (en) 2004-03-31 2005-10-20 Toshiba Corp Texture pattern detection method and texture pattern detection apparatus
JP2016091172A (en) 2014-10-31 2016-05-23 キヤノン株式会社 Image processing apparatus, control method therefor, and program
JP2020016948A (en) 2018-07-23 2020-01-30 株式会社キーエンス Image inspection device

Also Published As

Publication number Publication date
JP2022144446A (en) 2022-10-03

Similar Documents

Publication Publication Date Title
US7978903B2 (en) Defect detecting method and defect detecting device
CN107315011B (en) Image processing apparatus, image processing method, and storage medium
JP7293842B2 (en) Generation method, program, generation device, output device and transmission device
US12548144B2 (en) Inspection apparatus, method of controlling the same, inspection system, and storage medium
JP2008203034A (en) Defect detection device and method
JP2013224833A (en) Visual inspection device, visual inspection method and computer program
US20240119583A1 (en) Inspection system for print medium, control method, and storage medium
KR20210086303A (en) Pattern inspection apparatus based on deep learning and inspection method using the same
JP2018036279A5 (en)
JPWO2007132925A1 (en) Surface inspection device
JP2018004272A (en) Pattern inspection device and pattern inspection method
US20230401695A1 (en) Inspection apparatus, method of controlling the same, and storage medium
US11854183B2 (en) Image processing apparatus, image processing method, and non-transitory computer-readable storage medium
US20240177296A1 (en) Inspection apparatus, method of controlling the same, and storage medium
JP3907874B2 (en) Defect inspection method
JP2020008543A (en) Inspection device, image reading device, image forming device, inspection method, and program
JP7643112B2 (en) Inspection device, inspection method, and program
JP2002024802A (en) Image processing system
JP4163199B2 (en) Inspection device, inspection method
US12450727B2 (en) Image processing apparatus, image processing method, and medium that obtains a difference in color information at corresponding positions between a composite image and a print image
JP2007226616A (en) Printed matter inspection apparatus, printed matter inspection method, printing apparatus, printing method, program, recording medium
JP7729148B2 (en) Information processing device, information processing system, and program
JP7300155B2 (en) Teaching device in solid preparation appearance inspection, and teaching method in solid preparation appearance inspection
CN116223513A (en) Imaging quality analysis system and method for cigarette carton appearance detection equipment
JP7805198B2 (en) Printability evaluation device and printability evaluation method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20240206

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20240911

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20241001

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20241007

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20250128

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20250210

R150 Certificate of patent or registration of utility model

Ref document number: 7643112

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150