JP2005249615A - Different material inclusion-inspecting method - Google Patents

Different material inclusion-inspecting method Download PDF

Info

Publication number
JP2005249615A
JP2005249615A JP2004061384A JP2004061384A JP2005249615A JP 2005249615 A JP2005249615 A JP 2005249615A JP 2004061384 A JP2004061384 A JP 2004061384A JP 2004061384 A JP2004061384 A JP 2004061384A JP 2005249615 A JP2005249615 A JP 2005249615A
Authority
JP
Japan
Prior art keywords
image data
workpiece
reference image
work
inspection
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
JP2004061384A
Other languages
Japanese (ja)
Inventor
Takashi Toida
貴志 樋田
Takashi Hattori
貴志 服部
Tomio Kondo
富雄 近藤
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.)
Denso Corp
Original Assignee
Denso 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 Denso Corp filed Critical Denso Corp
Priority to JP2004061384A priority Critical patent/JP2005249615A/en
Publication of JP2005249615A publication Critical patent/JP2005249615A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)
  • Image Processing (AREA)
  • Image Analysis (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a different material inclusion-inspecting method responsive to a change in inspection environment. <P>SOLUTION: In the different material inclusion-inspecting method, a continuously supplied workpiece 1 is siccessively imaged by a camera 10 to acquire image data and the inclusion of a different workpiece is inspected on the basis of the image data. The inspecting method is equipped with a step (S130) for registering the image data S of the first workpiece 1 (master workpiece) as reference image data N, a step (S150) for comparing the image data P of each workpiece 1 supplied in succession to the master workpiece with the reference image data N to determine whether the workpiece 1 is assumed to be the same and a step (S170) for setting the image data P of the workpiece 1 determined to be the same to renew the reference image data N. Since the image data (S or P) of the workpiece 1 determined to be the same is set to the reference image data N to be compared with the image data P of the work 1, the inspection method is responsive to a change in inspection environment. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

本発明は、連続的に供給されるワークを、撮像装置で順次撮像して画像データを取得し、当該画像データに基づいて、異品種のワークの混入を検査する異品種混入検査方法に関するものである。   The present invention relates to a method for inspecting mixing of different kinds of workpieces, in which continuously supplied workpieces are sequentially picked up by an image pickup device to obtain image data, and based on the image data, inspection of mixing of different kinds of workpieces is performed. is there.

従来、連続的に供給されるワークを、撮像装置で順次撮像して画像データを取得し、当該画像データに基づいて、異品種のワークの混入を検査する異品種混入検査方法が知られている。この場合、予めマスタワークを撮像して基準画像データ(例えば基準画素数)を登録しておき、マスタワークと同一品種の生産の都度、登録されている基準画像データを読み出して、ワークの画像データと基準画像データとを比較し、同一品種とみなしえるか否かを判定している。   2. Description of the Related Art Conventionally, there is known a mixed product inspection method for sequentially capturing workpieces that are continuously supplied with an imaging device, acquiring image data, and inspecting mixing of different types of workpieces based on the image data. . In this case, the master work is imaged in advance and reference image data (for example, the number of reference pixels) is registered, and the registered reference image data is read out every time the same kind of the master work is produced, and the work image data is read out. And the reference image data are compared to determine whether they can be regarded as the same product type.

しかしながら、予めマスタワークを撮像し、基準画像データを登録しておくと、マスタワークによる基準画像データ登録時と現ワークの検査時とで検査環境に変化(例えば照明の照度変化、ラインのレイアウト変更、ワークの塗装状態の違い(例えば黒とつや消しの黒))があった場合、同一のワークであっても撮像装置が検出する照度(ワークからの反射光)が異なるため、その都度照明の調整、閾値の変更、基準画像データの再登録といった処置が必要となる恐れがある。特に、1つのラインで多品種(例えば数百種類)を生産する場合には、全ての品種について閾値の再調整や基準画像データの再登録をしなければならないため、多くの工数が必要となる。   However, if the master work is imaged in advance and the reference image data is registered, the inspection environment changes between the reference image data registration by the master work and the inspection of the current work (for example, illumination illuminance change, line layout change). If there is a difference in the paint state of the workpiece (for example, black and matte black), the illuminance (reflected light from the workpiece) detected by the imaging device will be different even for the same workpiece. There is a risk that a procedure such as changing the threshold value or re-registering the reference image data may be required. In particular, when producing many types (for example, several hundred types) on one line, it is necessary to readjust threshold values and re-register reference image data for all types, which requires a lot of man-hours. .

本発明は上記問題点に鑑み、検査環境の変化に強い異品種混入検査方法を提供することを目的とする。   The present invention has been made in view of the above-described problems, and an object of the present invention is to provide an inspection method for mixing different types that is resistant to changes in the inspection environment.

上記目的を達成する為に請求項1に記載の異品種混入検査方法は、連続的に供給されるワークを、撮像装置で順次撮像して画像データを取得し、当該画像データに基づいて、異品種のワークの混入を検査する異品種混入検査方法である。そして、最初に供給されるマスタワークの画像データを、基準画像データとして登録する登録ステップと、マスタワークに続いて供給される各ワークの画像データを、基準画像データと比較して、同一品種とみなしえるか否かを判定する判定ステップと、判定ステップにより、同一品種判定されたワークの画像データを、新たな基準画像データとして、基準画像データを更新する更新ステップとを備えることを特徴とする。   In order to achieve the above object, the inspection method for mixed product of different types according to claim 1 obtains image data by sequentially imaging workpieces that are continuously supplied with an imaging device, and based on the image data, This is a method for inspecting mixing of different kinds of workpieces. Then, a registration step of registering the image data of the master work supplied first as reference image data, and comparing the image data of each work supplied following the master work with the reference image data A determination step for determining whether or not the images can be regarded, and an update step for updating the reference image data with the image data of the workpiece determined to be the same type determined by the determination step as new reference image data. .

このように本発明の異品種混入検査方法によると、最初に供給されるマスタワークのみ、画像データをそのまま基準画像データとして登録する(良品判定)が、それ以後のワークについては、現ワークの直前に同一品種判定されたワークの画像データを基準画像データとして、現ワークの画像データを比較する構成としている。   As described above, according to the inspection method for mixing different kinds of the present invention, the image data is registered as the reference image data as it is only for the first supplied master work (non-defective product determination). The image data of the current workpiece is compared with the image data of the workpiece determined as the same type as the reference image data.

従って、常に同一品種判定された最新の画像データを基準画像データとして比較をするので、例えば生産タイミングによって照明の照度が異なる場合や、生産中に照度が徐々に変化する場合であっても、照明の調整、閾値の変更、基準画像データの再登録といった処置をすることなく、異品種混入検査を実行することができる。すなわち、本発明の異品種混入検査方法は、マスタワークの画像データを予め基準画像データとして固定登録する場合よりも、検査環境の変化に強い検査方法である。   Therefore, since the latest image data determined with the same product type is always compared as the reference image data, even if the illumination illuminance varies depending on the production timing or when the illumination changes gradually during production, It is possible to execute the mixed product inspection without taking steps such as adjusting the threshold value, changing the threshold value, and re-registering the reference image data. That is, the inspection method for mixing different types of the present invention is an inspection method that is more resistant to changes in the inspection environment than the case where master image data is fixedly registered in advance as reference image data.

尚、マスタワークは比較されることなくそのまま基準画像データとなるため、良品であることを確認したうえで撮像することが好ましい。   Since the master work becomes the reference image data as it is without being compared, it is preferable to take an image after confirming that the master work is a non-defective product.

また、本発明の異品種混入検査方法は、照明の照度変化といった検査環境の変化に対して強いので、請求項2に記載のように、画像データが、特に検査環境の変化(撮像装置が検出する照度(ワークからの反射光)の変化)の影響を受ける輝度により画像内に含まれる所定領域を識別して得られる構成についてより効果的である。尚、それ以外(例えば色)の処理によって画像データを取得する場合も、少なからず照明の照度変化といった検査環境の変化の影響を受けるので、本発明の適用が可能である。   In addition, since the inspection method for mixing different kinds of the present invention is strong against changes in the inspection environment such as illumination illuminance changes, as described in claim 2, image data changes particularly in the inspection environment (detected by the imaging device). This is more effective for a configuration obtained by identifying a predetermined area included in an image based on luminance affected by illuminance (change in reflected light from the workpiece). In addition, when acquiring image data by processing other than that (for example, color), the present invention is applicable because it is affected by changes in the inspection environment such as changes in illumination intensity.

より具体的には、請求項3に記載のように、2値化処理により抽出された所定領域の画素数を画像データとしても良い。尚、輝度による処理として、白黒による2値化処理以外にもグレー処理や各画素のRGBデータを利用したカラー処理を適用することもできる。また、画像データとして、画素数以外にも位置(座標)や平均輝度(濃度)等を適用しても良い。   More specifically, as described in claim 3, the number of pixels in a predetermined area extracted by binarization processing may be used as image data. In addition to the black and white binarization processing, gray processing and color processing using RGB data of each pixel can be applied as the luminance processing. In addition to the number of pixels, position (coordinates), average luminance (density), and the like may be applied as image data.

以下、本発明の実施の形態を図に基づいて説明する。
(第1の実施形態)
図1は、異品種混入検査を実行するための画像処理装置の概略構成を示すブロック図である。図1において、符号1は被写体としての生産ライン2(例えば搬送ベルト)上のワークであり、本実施形態においては、ケース内にセンサチップが実装された回路基板が収納するセンサである。そして、ワーク1は、図1に示すように白抜き矢印方向に連続的に搬送されている。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
(First embodiment)
FIG. 1 is a block diagram showing a schematic configuration of an image processing apparatus for executing a different product mixture inspection. In FIG. 1, reference numeral 1 denotes a work on a production line 2 (for example, a conveyor belt) as a subject, and in this embodiment, a sensor is housed in a circuit board on which a sensor chip is mounted in a case. And the workpiece | work 1 is continuously conveyed in the direction of a white arrow as shown in FIG.

図1に示すように、画像処理装置100は、撮像装置としてのカメラ10と、撮像により得られた画像を所定処理する制御部20と、制御部20による判定結果を外部に出力する報知部30とにより構成される。   As shown in FIG. 1, the image processing apparatus 100 includes a camera 10 as an imaging apparatus, a control unit 20 that performs predetermined processing on an image obtained by imaging, and a notification unit 30 that outputs a determination result by the control unit 20 to the outside. It consists of.

カメラ10は、生産ライン2上に配置され、連続的に流れてくるワーク1を順次撮像するものであり、本実施形態においては撮像素子としてCCD素子を備えるCCDカメラを適用している。そして、撮像により得られる画像信号を制御部20に出力する。   The camera 10 is arranged on the production line 2 and sequentially images the workpiece 1 flowing continuously. In the present embodiment, a CCD camera including a CCD element is applied as an imaging element. Then, an image signal obtained by imaging is output to the control unit 20.

制御部20は、マイクロコンピュータで構成され、各種処理を実行する中央処理ユニット21(以下CPUと示す)と、ROM、EEPROM、RAM等のメモリ22と、I/O及びこれらの構成を接続するバスライン(図示せず)により構成される。   The control unit 20 is composed of a microcomputer, and includes a central processing unit 21 (hereinafter referred to as a CPU) that executes various processes, a memory 22 such as a ROM, an EEPROM, and a RAM, an I / O, and a bus that connects these configurations. It is comprised by a line (not shown).

CPU21は、カメラ10からの画像信号を所定処理して画像データとし、当該画像データをメモリ22に格納するとともに、メモリ22に格納されている基準画像データと画像データとを比較する。そして、その判定結果を報知部30及びライン制御部110に出力する。尚、本実施形態におけるCPU21は、撮像された画像(信号)を所定の閾値(輝度)によって白か黒かに2値化し、抽出された所定領域(例えば黒領域)の画素数(画像データ)を計数する。また、当該画素数を基準画素数(基準画像データ)と比較することにより、撮像されたワーク1が良品(同一品種)であるか不良品(異品種)であるかの判定を行う。尚、本実施形態においては、マスタワークの画像データを予め基準画像データとしてメモリ22に格納(固定登録)しておらず、その品種の生産時に登録する方法を適用している。その詳細については後述する。   The CPU 21 performs predetermined processing on the image signal from the camera 10 to generate image data, stores the image data in the memory 22, and compares the reference image data stored in the memory 22 with the image data. Then, the determination result is output to the notification unit 30 and the line control unit 110. Note that the CPU 21 in the present embodiment binarizes the captured image (signal) into white or black according to a predetermined threshold (brightness), and extracts the number of pixels (image data) in a predetermined area (for example, black area). Count. Further, by comparing the number of pixels with the reference pixel number (reference image data), it is determined whether the imaged work 1 is a non-defective product (same product type) or a defective product (different product type). In the present embodiment, the master work image data is not stored as the reference image data in the memory 22 in advance (fixed registration), but is registered at the time of production of the product type. Details thereof will be described later.

報知部30は、CPU21からの判定信号に基づいて判定結果を外部に出力するものであり、例えばCRT等の表示装置や、警報音等を出力する音声出力装置を適用することができる。本実施形態においては、撮像されたワーク1の画像とともに判定結果を表示するCRTと、不良品(異品種)の場合には警報音を出力する音声出力装置とを適用している。   The notification unit 30 outputs a determination result to the outside based on a determination signal from the CPU 21. For example, a display device such as a CRT or a sound output device that outputs an alarm sound or the like can be applied. In the present embodiment, a CRT that displays a determination result together with a captured image of the work 1 and a sound output device that outputs an alarm sound in the case of a defective product (different product) are applied.

ライン制御部110は、CPU21からの判定信号に基づいて、生産ライン2の駆動状態を制御するものである。本実施形態においては、異品種判定信号を受けた場合に、異品種判定されたワーク1が、生産ライン2から分岐された図示されない不良排出コンベアに払い出される構成となっている。   The line control unit 110 controls the driving state of the production line 2 based on a determination signal from the CPU 21. In the present embodiment, when a different kind determination signal is received, the work 1 that has been determined to have a different kind is delivered to a defective discharge conveyor (not shown) branched from the production line 2.

以上のように構成される画像処理装置100は、異品種混入検査に適用される。次に、本実施形態の特徴点である異品種混入検査方法について、図2に示すフローを用いて説明する。   The image processing apparatus 100 configured as described above is applied to the inspection for mixing different types of products. Next, the different product mixing inspection method, which is a feature of the present embodiment, will be described using the flow shown in FIG.

所定品種であるワーク1の生産が開始し、生産ライン2上をワーク1が搬送されている状態において、制御部20のCPU21は、ワーク1の検出信号を受ける(S100)と、当該検出信号が1つ目のワーク1のものであるかどうか判定する(S110)。本実施形態においては、生産ライン2におけるカメラ10の撮像エリアの直前に非接触式の検出装置(図示せず)が配置されており、当該検出装置によりワーク1を検出する構成となっている。そして、前品種の生産が終了(ワークを生産ライン2から全て払い出した状態)してから、CPU21が最初に受けたワーク1の検出信号に該当するワーク1をマスタワークと判定する。尚、ワーク1の検出方法としては、上記検出装置以外にも、カメラ10からの検出信号であっても良いし、例えばロボットによりカメラ10の撮像エリアにワーク1が供給される構成の場合、ロボットからの位置信号であっても良い。   In a state where the production of the workpiece 1 of the predetermined type has started and the workpiece 1 is being transported on the production line 2, the CPU 21 of the control unit 20 receives the detection signal of the workpiece 1 (S100), and the detection signal is It is determined whether or not the workpiece is the first workpiece 1 (S110). In the present embodiment, a non-contact type detection device (not shown) is disposed immediately before the imaging area of the camera 10 in the production line 2, and the workpiece 1 is detected by the detection device. Then, after the production of the previous product is finished (a state in which all the workpieces are paid out from the production line 2), the workpiece 1 corresponding to the detection signal of the workpiece 1 received first by the CPU 21 is determined as the master workpiece. In addition to the detection device, the workpiece 1 may be detected by a detection signal from the camera 10. For example, when the workpiece 1 is supplied to the imaging area of the camera 10 by the robot, the robot 1 It may be a position signal from.

S110において、S100にて検出されたワーク1を1つ目であると判定した場合、CPU21は、ワーク1をマスタワークとして画像を取り込み、各画素をメモリ22内に予め格納されている閾値と比較して2値化処理する。そして、抽出された所定領域(黒判定された領域)の画素数をマスタワークの画像データSとして取得する(S120)。そして、この画像データSを基準画像データNとしてメモリ22に格納する(S130)。   If it is determined in S110 that the work 1 detected in S100 is the first work, the CPU 21 captures an image using the work 1 as a master work and compares each pixel with a threshold value stored in advance in the memory 22. Then, binarization processing is performed. Then, the number of pixels of the extracted predetermined area (area determined to be black) is acquired as image data S of the master work (S120). Then, the image data S is stored in the memory 22 as the reference image data N (S130).

S110において、S100にて検出されたワーク1をマスタワークでないと判定した場合、CPU21は、カメラ10により撮像された画像を取り込み、各画素をメモリ22内に予め格納されている閾値と比較して2値化処理する。そして、抽出された所定領域の画素数を画像データPとして取得し(S140)、この画像データPを基準画像データNと比較する(S150)。尚、メモリ22には、S150において比較する際の所定の公差が予め格納されており、S150において、CPU21は基準画像データNに上記公差を加味して画像データPと比較する。   In S110, when it is determined that the workpiece 1 detected in S100 is not a master workpiece, the CPU 21 captures an image captured by the camera 10 and compares each pixel with a threshold value stored in advance in the memory 22. Perform binarization. Then, the number of pixels in the extracted predetermined area is acquired as image data P (S140), and this image data P is compared with the reference image data N (S150). Note that a predetermined tolerance for comparison in S150 is stored in the memory 22 in advance, and in S150, the CPU 21 compares the reference image data N with the tolerance and compares it with the image data P.

ここで、ワーク1の画像データPを基準画像データNと比較して同一品種とみなしえる(基準画像データN(公差含む)の所定範囲内に画像データPが含まれる)場合、CPU21はワーク1を良品(同一品種)として判定する(S160)。具体的には、CPU21は、報知部30のCRTにワーク1の画像信号及び良品信号を出力し、報知部30のCRTはワーク1の画像と良品である旨を表示する。また、CPU21は、ライン制御部110にも良品信号を出力し、ライン制御部110はワーク1を良品(同一品種)として次工程(異品種混入検査工程以降)に搬送する。   Here, when the image data P of the work 1 is compared with the reference image data N and can be regarded as the same product type (the image data P is included within a predetermined range of the reference image data N (including tolerance)), the CPU 21 determines that the work 1 Are determined as non-defective products (same product type) (S160). Specifically, the CPU 21 outputs the image signal of the work 1 and the non-defective signal to the CRT of the notification unit 30 and displays that the CRT of the notification unit 30 is the image of the work 1 and the non-defective product. Further, the CPU 21 outputs a non-defective product signal to the line control unit 110, and the line control unit 110 conveys the workpiece 1 as a non-defective product (same product type) to the next process (after the different product mixing inspection process).

また、CPU21は、ワーク1の画像データPを新たに基準画像データNとして更新し、メモリ22に格納する(S170)。すなわち、撮像されたワーク1を良品(同一品種)判定した場合、CPU21は、ワーク1の画像データPを基準画像データNとし、次のワーク1の判定(S150)を実行する。   Further, the CPU 21 newly updates the image data P of the work 1 as the reference image data N and stores it in the memory 22 (S170). That is, when the imaged workpiece 1 is determined as a non-defective product (same product type), the CPU 21 sets the image data P of the workpiece 1 as the reference image data N, and executes the next workpiece 1 determination (S150).

それに対し、ワーク1の画像データPと基準画像データNを比較して同一品種とみなしえない(基準画像データN(公差含む)の所定範囲内に画像データPが含まれない)場合、CPU21はワーク1を不良品(異品種)として判定する(S180)。具体的には、CPU21は、報知部30のCRT及び音声出力装置に、ワーク1の画像信号及び不良品信号を出力する。従って、報知部30のCRTはワーク1の画像と不良品である旨を表示し、音声出力装置は不良品として警報音を発生する。また、CPU21は、ライン制御部110にも不良品信号を出力し、ライン制御部110はワーク1を不良品(異品種)として生産ライン2から分岐する不良排出コンベアに搬送する。すなわち、良品から除外する。尚、この不良排出コンベアに搬送されたワーク1は、別途作業員にて異品種であるかの確認がなされる。   On the other hand, when the image data P of the work 1 and the reference image data N are compared and cannot be regarded as the same product type (when the image data P is not included in the predetermined range of the reference image data N (including tolerance)), the CPU 21 The workpiece 1 is determined as a defective product (different product) (S180). Specifically, the CPU 21 outputs the image signal and defective product signal of the work 1 to the CRT and sound output device of the notification unit 30. Therefore, the CRT of the notification unit 30 displays the image of the work 1 and the fact that it is a defective product, and the audio output device generates an alarm sound as a defective product. Further, the CPU 21 also outputs a defective product signal to the line control unit 110, and the line control unit 110 conveys the workpiece 1 as a defective product (different product) to a defective discharge conveyor branched from the production line 2. That is, it is excluded from non-defective products. In addition, it is confirmed whether the workpiece | work 1 conveyed by this defect discharge conveyor is a different kind by a separate worker.

この場合、CPU21は、基準画像データNを更新せず、それまでの基準画像データNを用いて、次のワーク1の判定(S150)を行う。   In this case, the CPU 21 does not update the reference image data N, and uses the reference image data N so far to determine the next workpiece 1 (S150).

尚、順次カメラ10にワーク1が供給されている間は、上述のS100〜S180が繰り返し実行される。   Note that while the workpiece 1 is sequentially supplied to the camera 10, the above-described S100 to S180 are repeatedly executed.

従来、連続的に供給されるワーク1を、カメラ10で順次撮像して画像データを取得し、当該画像データに基づいて、異品種のワーク1の混入を検査する場合、予めマスタワークを撮像して基準画像データ(例えば基準画素数)を登録しておき、マスタワークと同一品種の生産の都度、固定登録されている基準画像データを読み出して、ワーク1の画像データと基準画像データとを比較し、同一品種とみなしえるか否かを判定していた。   Conventionally, when continuously supplying workpieces 1 are sequentially captured by the camera 10 to acquire image data, and inspection of mixing of different types of workpieces 1 is performed based on the image data, the master workpiece is imaged in advance. Then, reference image data (for example, the number of reference pixels) is registered, and each time the same product type as the master work is produced, the fixedly registered reference image data is read, and the image data of work 1 is compared with the reference image data. However, it was determined whether they could be regarded as the same variety.

しかしながら、予め基準画像データを固定登録しておくと、基準画像データの登録時とワーク1の検査時とで検査環境に変化(例えば照明の照度変化、ラインのレイアウト変更、ワーク1の塗装状態の違い(例えば黒とつや消しの黒))があった場合、同一のワーク1であってもカメラ10が検出する照度(ワーク1からの反射光)が異なるため、その都度照明の調整、閾値の変更、基準画像データの再登録といった処置をする必要が生じていた。特に、1つの生産ライン1で多品種(例えば数百種類)のワーク1を生産する場合、全ての品種について閾値の再調整や基準画像データの再登録をしなければならないため、多くの工数が必要であった。   However, if the reference image data is fixedly registered in advance, the inspection environment changes between the registration of the reference image data and the inspection of the workpiece 1 (for example, illumination intensity change, line layout change, workpiece 1 coating state). If there is a difference (for example, black and matte black), the illuminance (reflected light from the work 1) detected by the camera 10 is different even for the same work 1, so that the illumination is adjusted and the threshold is changed each time. Therefore, it has become necessary to take measures such as re-registration of the reference image data. In particular, when producing a wide variety (for example, several hundred types) of workpieces 1 on a single production line 1, it is necessary to readjust threshold values and re-register reference image data for all types. It was necessary.

しかしながら、S100〜180に示す本実施形態の異品種混入検査方法によると、最初に供給されるワーク1(マスタワーク)のみ、2値化処理により得られた画像データSをそのまま基準画像データNとして登録(良品判定)するが、それ以後のワーク1については、ワーク1の直前に良品(同一品種)判定されたワーク1の画像データ(S又はP)を基準画像データNとして、ワーク1の画像データPが比較される。   However, according to the different kind mixing inspection method of this embodiment shown in S100 to 180, only the work 1 (master work) supplied first is used as the reference image data N as it is as the image data S obtained by the binarization process. Although registration (non-defective product determination) is performed, for the subsequent workpiece 1, the image data (S or P) of the workpiece 1 in which the non-defective product (same product type) is determined immediately before the workpiece 1 is set as the reference image data N, and the image of the workpiece 1 Data P is compared.

したがって、常に良品(同一品種)判定された最新の画像データ(S又はP)を基準画像データNとして、ワーク1の画像データPを比較判定するので、生産タイミングによって検査環境に変化がある場合だけでなく、生産中に検査環境に変化(例えば照度が徐々に変化)する場合であっても、照明の調整、閾値の変更、基準画像データNの再登録といった処置をすることなく、異品種混入検査を実行することができる。すなわち、本発明の異品種混入検査方法は、マスタワークの画像データSを予め基準画像データNとして固定登録する場合よりも、検査環境の変化に強い検査方法である。   Accordingly, since the latest image data (S or P) that is always determined to be non-defective (same product type) is used as the reference image data N, the image data P of the work 1 is compared and determined, so only when the inspection environment changes depending on the production timing. In addition, even when the inspection environment changes during production (for example, the illuminance gradually changes), mixing different types of products without taking measures such as adjusting the illumination, changing the threshold, or re-registering the reference image data N An inspection can be performed. That is, the different product mixture inspection method of the present invention is an inspection method that is more resistant to changes in the inspection environment than the case where the master work image data S is fixedly registered in advance as the reference image data N.

また、本実施形態の異品種混入検査方法は、照明の照度変化といった検査環境の変化に対して強いので、本実施形態で示したように、特に検査環境の変化(カメラ10が検出する照度(ワーク1からの反射光)の変化)の影響を受ける輝度により画像内に含まれる所定領域を識別(2値化処理)し、画像データ(S又はP)を取得する構成についてより効果的である。   In addition, since the different kind mixing inspection method of the present embodiment is resistant to changes in the inspection environment such as the illumination illuminance change, as shown in the present embodiment, the change in the inspection environment (the illuminance (detected by the camera 10 ( It is more effective for a configuration in which a predetermined region included in an image is identified (binarization processing) by luminance affected by a change) of reflected light from the work 1 and image data (S or P) is acquired. .

尚、1つ目のワーク1(マスタワーク)の場合、その画像データSは、比較判定されることなくそのまま基準画像データNとなるため、良品(生産する品種と同一品種)であることを確認したうえでカメラ10により撮像することが好ましい。   In the case of the first work 1 (master work), the image data S becomes the reference image data N as it is without being compared, so it is confirmed that it is a non-defective product (the same kind as the kind to be produced). In addition, it is preferable to take an image with the camera 10.

以上本発明の好ましい実施形態について説明したが、本発明は上述の実施形態のみに限定されず、種々変更して実施することができる。   Although the preferred embodiments of the present invention have been described above, the present invention is not limited to the above-described embodiments, and can be implemented with various modifications.

本実施形態において、ワーク1が生産ライン2上を搬送され、画像処理装置100のカメラ10に順次供給される構成を示した。しかしながら、ワーク1がカメラ10に対して順次供給される構成であれば、上記構成に限定されるものではない。   In the present embodiment, the configuration in which the workpiece 1 is transported on the production line 2 and sequentially supplied to the camera 10 of the image processing apparatus 100 is shown. However, the configuration is not limited to the above as long as the workpiece 1 is sequentially supplied to the camera 10.

また、本実施形態において、制御部20のCPU21が、カメラ10により撮像された画像の中から、所定の閾位(輝度)に基づいて各画素を2値化処理し、所定領域を識別する例を示した。しかしながら、輝度以外にも、例えば色(RGB値)によって所定領域を識別する構成であっても良い。カメラ10によりワーク1を撮像し、その画像を所定処理して画像データ(S又はP)とする構成であれば、少なからず照明の照度変化といった検査環境の変化の影響を受けるので、本発明の適用が可能である。   In this embodiment, the CPU 21 of the control unit 20 binarizes each pixel based on a predetermined threshold level (luminance) from an image captured by the camera 10 and identifies a predetermined area. showed that. However, other than the luminance, for example, a configuration in which the predetermined area is identified by a color (RGB value) may be used. If it is the structure which images the workpiece | work 1 with the camera 10 and carries out the predetermined | prescribed process and makes the image data (S or P), since it will receive to the influence of the change of an inspection environment, such as the illumination intensity change of illumination, Applicable.

また、本実施形態において、CPU21が、ワーク1の画像を白か黒かの2値化処理し、2値化処理により抽出された所定領域(例えば黒判定された領域)の画素数を画像データ(S又はP)とする例を示した。しかしながら、画像データ(S又はP)として、画素数以外にも位置(座標)や平均輝度(濃度)等を適用しても良い。また、輝度による処理として、白黒2値化処理以外にもグレー処理や各画素のRGBデータを利用したカラー処理を適用しても良い。   In the present embodiment, the CPU 21 binarizes the image of the work 1 to white or black, and sets the number of pixels in a predetermined area (for example, an area determined to be black) extracted by the binarization process as image data. An example of (S or P) is shown. However, as image data (S or P), position (coordinates), average luminance (density), or the like may be applied in addition to the number of pixels. In addition to the black and white binarization processing, gray processing or color processing using RGB data of each pixel may be applied as the luminance processing.

また、本実施形態において、S180にて不良品(異品種)判定する際、CPU21は、ライン制御部110に不良品信号を出力し、ワーク1を生産ライン2から不良排出コンベアに搬送して、良品から自動的に除外する例を示した。しかしながら、それ以外にも、S180にて不良品判定する場合に、CPU21は例えば生産ライン2を停止する信号をライン制御部110に出力しても良い。この場合、ライン停止後、作業員がワーク1を現物確認し、その良否結果(同一品種であるか異品種であるか)のデータを手動入力することにより、画像データPが新たに基準画像データNとして更新されるか、そのまま基準画像データNが維持されるかが決定され、生産ライン2が搬送を再開する構成としても良い。   In this embodiment, when determining a defective product (different product) in S180, the CPU 21 outputs a defective product signal to the line control unit 110, conveys the work 1 from the production line 2 to the defective discharge conveyor, An example of automatically excluding from good products was shown. However, in addition to this, when determining a defective product in S180, the CPU 21 may output a signal for stopping the production line 2 to the line control unit 110, for example. In this case, after the line is stopped, the worker confirms the actual work 1 and manually inputs the data of the pass / fail result (whether the product is the same product type or a different product type), whereby the image data P is newly added to the reference image data. A configuration may be adopted in which whether it is updated as N or the reference image data N is maintained as it is is determined, and the production line 2 resumes conveyance.

本発明の異品種混入検査を実行するための画像処理装置の概略構成を示すブロック図である。It is a block diagram which shows schematic structure of the image processing apparatus for performing the different kind mixing inspection of this invention. 異品種混入検査方法を説明するためのフローである。It is a flow for demonstrating the different kind mixing inspection method.

符号の説明Explanation of symbols

1・・・ワーク
10・・・カメラ(撮像装置)
20・・・制御部
21・・・中央処理ユニット(CPU)
22・・・メモリ
30・・・報知部
100・・・画像処理装置
110・・・ライン制御部
DESCRIPTION OF SYMBOLS 1 ... Work 10 ... Camera (imaging device)
20 ... Control unit 21 ... Central processing unit (CPU)
22 ... Memory 30 ... Notification unit 100 ... Image processing device 110 ... Line control unit

Claims (3)

連続的に供給されるワークを、撮像装置で順次撮像して画像データを取得し、当該画像データに基づいて、異品種のワークの混入を検査する異品種混入検査方法であって、
最初に供給されるマスタワークの画像データを、基準画像データとして登録する登録ステップと、
前記マスタワークに続いて供給される各ワークの画像データを、前記基準画像データと比較して、同一品種とみなしえるか否かを判定する判定ステップと、
前記判定ステップにより、同一品種判定された前記ワークの画像データを、新たな基準画像データとして、前記基準画像データを更新する更新ステップとを備えることを特徴とする異品種混入検査方法。
A continuously supplied workpiece is sequentially imaged by an imaging device to acquire image data, and based on the image data, a different kind mixing inspection method for inspecting mixing of different kinds of works,
A registration step of registering image data of the master work supplied first as reference image data;
A determination step of determining whether the image data of each workpiece supplied following the master workpiece is compared with the reference image data, and can be regarded as the same product type,
An inspection method for mixing different types of products, comprising: an update step of updating the reference image data by using, as new reference image data, the image data of the workpiece determined by the determining step as the same type.
前記画像データは、前記撮像装置により撮像された画像を、輝度によって前記画像内に含まれる所定領域を識別して得られることを特徴とする請求項1に記載の異品種検査方法。   The method of claim 1, wherein the image data is obtained by identifying a predetermined area included in the image based on brightness of the image captured by the imaging device. 前記画像データは、2値化処理により抽出された所定領域の画素数であることを特徴とする請求項2に記載の異品種検査方法。   The method of claim 2, wherein the image data is the number of pixels in a predetermined area extracted by binarization processing.
JP2004061384A 2004-03-04 2004-03-04 Different material inclusion-inspecting method Pending JP2005249615A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004061384A JP2005249615A (en) 2004-03-04 2004-03-04 Different material inclusion-inspecting method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004061384A JP2005249615A (en) 2004-03-04 2004-03-04 Different material inclusion-inspecting method

Publications (1)

Publication Number Publication Date
JP2005249615A true JP2005249615A (en) 2005-09-15

Family

ID=35030219

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004061384A Pending JP2005249615A (en) 2004-03-04 2004-03-04 Different material inclusion-inspecting method

Country Status (1)

Country Link
JP (1) JP2005249615A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011107021A (en) * 2009-11-19 2011-06-02 Mitsubishi Heavy Industries Food & Packaging Machinery Co Ltd Inspection method and device of hot-melt adhesion section
WO2013027550A1 (en) * 2011-08-25 2013-02-28 富士機械製造株式会社 Method for generating master data for substrate inspection
CN105700289A (en) * 2015-12-24 2016-06-22 深圳市凯木金科技有限公司 Method for on-site rapid analysis and processing of bad images of image pickup module
WO2018173649A1 (en) 2017-03-23 2018-09-27 富士フイルム株式会社 Drug recognizing device, drug recognizing method, and drug recognizing program
WO2019193924A1 (en) * 2018-04-03 2019-10-10 富士フイルム富山化学株式会社 Drug determination device and drug determination method

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011107021A (en) * 2009-11-19 2011-06-02 Mitsubishi Heavy Industries Food & Packaging Machinery Co Ltd Inspection method and device of hot-melt adhesion section
WO2013027550A1 (en) * 2011-08-25 2013-02-28 富士機械製造株式会社 Method for generating master data for substrate inspection
JP2013044663A (en) * 2011-08-25 2013-03-04 Fuji Mach Mfg Co Ltd Method for producing substrate inspection master data
CN105700289A (en) * 2015-12-24 2016-06-22 深圳市凯木金科技有限公司 Method for on-site rapid analysis and processing of bad images of image pickup module
WO2018173649A1 (en) 2017-03-23 2018-09-27 富士フイルム株式会社 Drug recognizing device, drug recognizing method, and drug recognizing program
JPWO2018173649A1 (en) * 2017-03-23 2019-12-12 富士フイルム富山化学株式会社 Drug recognition device, drug recognition method, and drug recognition program
US11574141B2 (en) 2017-03-23 2023-02-07 Fujifilm Toyama Chemical Co., Ltd. Drug recognizing apparatus, drug recognizing method, and drug recognizing program
WO2019193924A1 (en) * 2018-04-03 2019-10-10 富士フイルム富山化学株式会社 Drug determination device and drug determination method
JPWO2019193924A1 (en) * 2018-04-03 2021-04-01 富士フイルム富山化学株式会社 Drug determination device and drug determination method

Similar Documents

Publication Publication Date Title
US7505149B2 (en) Apparatus for surface inspection and method and apparatus for inspecting substrate
KR102102874B1 (en) Automatic optical inspection system and operating method thereof
JP4536280B2 (en) Component mounter, mounting inspection method
CA3029218C (en) Inspection method, inspection and reporting method, manufacturing method including the inspection method, inspection apparatus, and manufacturing apparatus
US9147241B2 (en) Glass bottle inspection method and apparatus
JP6303352B2 (en) Appearance inspection system
JP2007183274A (en) Visual inspection device and inspection method of flexible circuit board
JP2005249615A (en) Different material inclusion-inspecting method
KR101522312B1 (en) Inspection device for pcb product and inspecting method using the same
JP5832167B2 (en) Component presence / absence determination apparatus and component presence / absence determination method
JP2005181218A (en) Board inspecting device
JP2008070242A (en) Noise-removing method and apparatus, unevenness defect inspecting method and apparatus
JP2007309729A (en) Visual inspection method of press-worked product and visual inspection system used therein
JP2009080004A (en) Inspection device
JP2010230435A (en) Device for inspecting display panel lighting and method for inspecting display panel lighting
JP2009288050A (en) Imaging device and inspection device
JP2015210226A (en) Visual inspection device and visual inspection method
KR20150024122A (en) Method for inspecting vehicle component
KR102005345B1 (en) An automobile junction box terminal vision inspection method using line scan camera
JP2000258353A (en) Defect inspection method and device
JP2006189463A (en) Inspection method of article surface
JP2006242584A (en) Irregularity defect detecting method and apparatus
JP2007147320A (en) Inspection device
JP2005156381A (en) Inspection device for electronic device
KR20220040789A (en) Vision measuring device and operating method thereof

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060426

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20080918

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080924

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20090203