JPH11218502A - Inspection apparatus for defect of article - Google Patents

Inspection apparatus for defect of article

Info

Publication number
JPH11218502A
JPH11218502A JP3394798A JP3394798A JPH11218502A JP H11218502 A JPH11218502 A JP H11218502A JP 3394798 A JP3394798 A JP 3394798A JP 3394798 A JP3394798 A JP 3394798A JP H11218502 A JPH11218502 A JP H11218502A
Authority
JP
Japan
Prior art keywords
article
binarization
image
pixels
black
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
JP3394798A
Other languages
Japanese (ja)
Inventor
Koji Yamada
孝治 山田
Akira Otsuki
陽 大槻
Shuji Onaka
周次 大仲
Satoshi Watanabe
聡 渡辺
Ichiro Hamano
一郎 濱野
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.)
Sumitomo Pharmaceuticals Co Ltd
NEC Robotics Engineering Ltd
Shibuya Corp
Original Assignee
Shibuya Kogyo Co Ltd
Sumitomo Pharmaceuticals Co Ltd
NEC Robotics Engineering Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shibuya Kogyo Co Ltd, Sumitomo Pharmaceuticals Co Ltd, NEC Robotics Engineering Ltd filed Critical Shibuya Kogyo Co Ltd
Priority to JP3394798A priority Critical patent/JPH11218502A/en
Publication of JPH11218502A publication Critical patent/JPH11218502A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To obtain an inspection apparatus by which the quality of an article can be judged correctly even when the product having an irregularity in the density of, e.g. a frosted glass is supplied. SOLUTION: An image by a camera 7A is binarized on the basis of a binarization level which is decided in advance by a binarization means 14. An inspection region is set by an inspection-region setting means 21, inside the image which is binarized by the binarization means 14. The quality of an article is judged by a judgment means 23 on the basis of the image inside the inspection region. When a frosted glass is dense, the contour region the object which is sorted to be a black pixel creeps into the inspection region so as to be judged to be a defective article. Then, by binarization-level adjusting means 19, the total number of white or black pixels obtained by the binarization means 14 is adjudged so as to agree with a preset number or reference images. Thereby, it is possible to prevent the contour part of the article as the black pixel from creeping into the inspection region.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、例えばシリンジの先端
部におけるゴミや傷等の有無を検査するための物品の欠
陥検査装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an article defect inspection apparatus for inspecting, for example, the presence or absence of dirt or scratches at the tip of a syringe.

【0002】[0002]

【従来の技術】従来、カメラを用いた物品の欠陥検査装
置として、物品を撮影するカメラと、このカメラによる
画像を予め定めた2値化レベルに基づいて2値化する2
値化手段と、この2値化手段で2値化された画像内に検
査領域を設定する検査領域設定手段と、この検査領域設
定手段で設定された検査領域内の画像に基づいて当該物
品の良否を判定する判定手段とを備えたものが知られて
いる。この種の欠陥検査装置においては、上記検査領域
内の黒又は白の画素数をカウントして、その総画素数が
許容範囲内となっていないときに当該物品が不良である
と判定している。より具体的には、光り透過型の物品の
欠陥検査装置の場合、傷やゴミは光りを反射して黒くな
るので、検査領域内に予め定めた所定量以上の黒の画素
数があるときに、不良と判定することができる。
2. Description of the Related Art Conventionally, as an article defect inspection apparatus using a camera, a camera for photographing an article and a camera for binarizing an image by the camera based on a predetermined binarization level.
Binarizing means, an inspection area setting means for setting an inspection area in the image binarized by the binarizing means, and an image of the article based on the image in the inspection area set by the inspection area setting means. There is known a device provided with a determination unit for determining pass / fail. In this type of defect inspection apparatus, the number of black or white pixels in the inspection area is counted, and when the total number of pixels is not within an allowable range, the article is determined to be defective. . More specifically, in the case of a defect inspection device for a light transmission type article, scratches and dust reflect light and become black, so when the number of black pixels equal to or greater than a predetermined amount is present in the inspection area. Can be determined to be defective.

【0003】[0003]

【発明が解決しようとする課題】しかしながら従来は、
上記2値化手段により予め定めた2値化レベルに基づい
て画像を2値化していたので、物品によってその色の濃
さや表面加工状態等にばらつきがある場合には、当該物
品の透過光画像或いは反射光画像の明るさにばらつきが
発生するので、上記2値化手段によって得られる画像に
も物品毎のばらつきが発生し、それが誤検出につながっ
ていた。例えば物品がシリンジの場合、注射針が装着さ
れる先端部はスリガラスとなっているが、その先端部に
光りを透過させて画像を得るようにした場合には、スリ
ガラスが薄いと全体として白く2値化された画像が得ら
れ、スリガラスが濃いと全体として黒く2値化された画
像が得られる。そして特にスリガラスが濃い場合には、
予め定めた検査領域内に黒く2値化された部分が入り込
み易くなり、その場合には傷やゴミがなくても検査領域
内に一定量以上の黒の画素数が検出されてしまうので、
良品であるにも拘らず不良品と判定される結果となって
いた。本発明はそのような事情に鑑み、例えばスリガラ
スの濃さにばらつきがあるような物品が供給されても、
その良否を正しく判定することができる物品の欠陥検査
装置を提供するものである。
However, conventionally,
Since the image is binarized based on the binarization level determined in advance by the binarization means, if there is variation in the color depth or surface processing state of the article, the transmitted light image of the article Alternatively, since the brightness of the reflected light image varies, the image obtained by the binarizing means also varies from article to article, which leads to erroneous detection. For example, when the article is a syringe, the tip to which the injection needle is attached is ground glass, but when an image is obtained by transmitting light to the tip, if the ground glass is thin, the whole becomes white. A binarized image is obtained, and when the ground glass is dark, a binarized image as a whole is obtained. And especially when the ground glass is dark,
A black binarized portion easily enters a predetermined inspection area, and in this case, a certain number or more of black pixels is detected in the inspection area even if there is no scratch or dust.
The result was that the product was determined to be defective despite being good. The present invention has been made in view of such circumstances, for example, even when an article having a variation in the thickness of the ground glass is supplied,
It is an object of the present invention to provide an article defect inspection apparatus capable of correctly determining the quality.

【0004】[0004]

【課題を解決するための手段】すなわち本発明は、上述
した従来の物品の欠陥検査装置において、上記2値化手
段における2値化レベルを、該2値化手段によって得ら
れる白又は黒の合計画素数が予め定めた基準画素数に一
致するように調整する2値化レベル調整手段を設けたも
のである。
According to the present invention, in the above-described conventional defect inspection apparatus for articles, the binarization level of the binarization means is determined by the sum of white or black obtained by the binarization means. It is provided with a binarization level adjusting means for adjusting the number of pixels to be equal to a predetermined number of reference pixels.

【0005】[0005]

【作用】上記構成によれば、上述した例で言えば、スリ
ガラスが濃い場合には全体として黒く2値化された画像
が得られるので、黒の合計画素数が多く、白の合計画素
数が少なくなる。すると上記2値化レベル調整手段は、
上記2値化手段における2値化レベルを調整し、該2値
化手段によって得られる白又は黒の合計画素数が予め定
めた基準画素数に一致するように設定する。つまりスリ
ガラスが濃くても薄くても、上記2値化手段によって得
られる画像における白又は黒の合計画素数は、予め定め
た基準画素数に一致するようになる。したがってその基
準画素数を、黒く2値化された部分が検査領域内に入り
込んでしまうことがないように設定しておけば、スリガ
ラスが濃くても薄くても黒く2値化された部分が検査領
域内に入り込んでしまうことが防止でき、その入り込み
による誤検出を防止することができる。その結果、スリ
ガラスの濃さにばらつきがあるような物品が供給されて
も、それらの良否を正しく判定することができる。
According to the above configuration, in the above-described example, when the ground glass is dark, a binarized black image is obtained as a whole, so that the total number of black pixels is large and the total number of white pixels is small. Less. Then, the binarization level adjustment means:
The binarization level in the binarization unit is adjusted, and the total number of white or black pixels obtained by the binarization unit is set so as to match a predetermined reference pixel number. That is, regardless of whether the ground glass is dark or light, the total number of white or black pixels in the image obtained by the binarizing means matches the predetermined reference pixel number. Therefore, if the number of reference pixels is set so that the black binarized portion does not enter the inspection area, the black binarized portion is inspected regardless of whether the ground glass is dark or light. It is possible to prevent entry into the area and prevent erroneous detection due to the entry. As a result, even if articles having a variation in the thickness of the ground glass are supplied, their acceptability can be correctly determined.

【0006】[0006]

【実施例】以下、図示実施例について本発明を説明する
と、図1において、物品としてのシリンジ1(図5参
照)は、その先端部を上方に向けた状態で図示しないホ
ルダに収容されており、該シリンジ1はホルダに収容さ
れた状態でコンベヤ2からスターホイール3を介して物
品の欠陥検査装置4内に搬入される。上記物品の欠陥検
査装置4はスターホイール3と同期して回転する回転テ
ーブル5と、この回転テーブル5の外周部等間隔位置に
設けられ、それぞれ上記ホルダが載置される多数の回転
台6とを備えている。上記回転テーブル5の周囲には、
90度の間隔で3台のカメラ7A、7B、7Cを回転テ
ーブル5の中心に向けて配置してあり、かつ各カメラ7
A〜7Cの前面にそれぞれ光源8を配設固定してある。
上記スターホイール3から各回転台6に供給載置された
シリンジ1は、回転台6が静止した状態で回転テーブル
5の回転に伴って搬送され、最初の第1カメラ7Aと光
源8との間を通過される。上記各カメラ7A〜7Cは、
それぞれシリンジ1がその前面を通過する際にこれを撮
影するようになっている。シリンジ1が第1カメラ7A
の前面を通過した後に、上記回転台6が120度回転さ
れ、その状態で該シリンジ1が第2カメラ7Bの前面を
通過して該第2カメラ7Bによって撮影されるようにな
る。そしてこれと同様に、シリンジ1が第2カメラ7B
の前面を通過すると、上記回転台6が再び同方向に12
0度回転された後に静止されるようになり、シリンジ1
はその状態で第3カメラ7Cの前面を通過して該第3カ
メラ7Cによって撮影されるようになる。上記第3カメ
ラCを通過したシリンジ1は、スターホイール9を介し
てコンベヤ2上に搬出され、後に述べる判定手段によっ
て不良と判定されたシリンジ1は下流側に設けた図示し
ないリジェクト装置によって該コンベヤ2上から外部に
排出されるようになる。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described below with reference to the illustrated embodiment. In FIG. 1, a syringe 1 (see FIG. 5) as an article is housed in a holder (not shown) with its tip end directed upward. The syringe 1 is carried into the article defect inspection device 4 from the conveyor 2 via the star wheel 3 while being accommodated in the holder. The article defect inspection device 4 includes a rotary table 5 that rotates in synchronization with the star wheel 3, and a plurality of rotary tables 6 provided at regular intervals on the outer peripheral portion of the rotary table 5, on each of which the holder is mounted. It has. Around the rotary table 5,
Three cameras 7A, 7B, 7C are arranged at 90-degree intervals toward the center of the rotary table 5, and each camera 7
Light sources 8 are arranged and fixed on the front surfaces of A to 7C, respectively.
The syringe 1 supplied and placed from the star wheel 3 to each turntable 6 is conveyed with the rotation of the turntable 5 with the turntable 6 stationary, and the syringe 1 is moved between the first first camera 7A and the light source 8. Is passed through. Each of the cameras 7A to 7C is
Each is taken as the syringe 1 passes over the front surface thereof. Syringe 1 is the first camera 7A
, The turntable 6 is rotated 120 degrees, and in this state, the syringe 1 passes through the front surface of the second camera 7B and is taken by the second camera 7B. And, similarly, the syringe 1 is connected to the second camera 7B.
, The turntable 6 is again moved in the same direction by 12 degrees.
After being rotated 0 degrees, it comes to rest and the syringe 1
Is passed through the front surface of the third camera 7C in this state, and is taken by the third camera 7C. The syringe 1 having passed through the third camera C is carried out onto the conveyor 2 via the star wheel 9, and the syringe 1 determined to be defective by the determination means described later is rejected by a reject device (not shown) provided on the downstream side. 2 to be discharged to the outside from above.

【0007】図2に示すように、上記各カメラ7Aから
の信号はA/D変換手段11により例えば256階調の
白黒画像に変換され、このA/D変換手段11によって
得られた画像は位置補正手段12により、例えばその肩
部a、a’(図5参照)が予め定めた検査枠内の基準位
置となるように位置補正される。次に、ヒストグラム作
成手段13は上記A/D変換手段11によって得られた
256階調の白黒画像から、図3に示すように、256
階調毎の画素についてそれぞれの発生画素数を集計した
ヒストグラムを作成する。そして2値化手段14は、予
め設定した2値化レベルに基づいて上記256階調の画
素を白又は黒の画素に選別する。図示実施例では、上記
2値化手段14は2値化レベルを設定するために、ロウ
スライスレベル設定手段15とハイスライスレベル設定
手段16とを備えており、図3に示すようにロウスライ
スレベル設定手段15で設定したロウスライスレベルよ
りも明るく、かつハイスライスレベル設定手段16で設
定したハイスライスレベルよりも暗い画素を白と選別
し、それ以外の画素を黒と選別するようになっている。
本実施例では、上記ハイスライスレベルはシリンジ1を
透過せずに直接カメラ7Aに入力された明るい光りを黒
と判定するように設定してあり、この設定値は固定され
たままで変更されることはない。
As shown in FIG. 2, the signal from each of the cameras 7A is converted by the A / D converter 11 into a monochrome image of, for example, 256 gradations, and the image obtained by the A / D converter 11 The correcting means 12 corrects the position so that, for example, the shoulders a and a '(see FIG. 5) become the reference positions in the predetermined inspection frame. Next, the histogram creating means 13 converts the 256 grayscale black and white image obtained by the A / D conversion means 11 into 256
A histogram is created by summing the number of generated pixels for each pixel of each gradation. Then, the binarizing means 14 selects the pixels of 256 gradations into white or black pixels based on a preset binarization level. In the illustrated embodiment, the binarizing means 14 includes a low slice level setting means 15 and a high slice level setting means 16 for setting the binarization level. As shown in FIG. Pixels brighter than the low slice level set by the setting means 15 and darker than the high slice level set by the high slice level setting means 16 are selected as white, and the other pixels are selected as black. .
In the present embodiment, the high slice level is set so that bright light directly input to the camera 7A is determined as black without passing through the syringe 1, and this set value is changed while being fixed. There is no.

【0008】さらに、上記2値化手段14は、白画素の
カウント手段17を備えており、このカウント手段17
は上記2値化レベルで選別された白画素の合計画素数を
カウントするようになっている。比較手段18は、予め
定めた基準画素数と上記カウント手段17でカウントし
た白画素の合計画素数とを比較し、両者が一致しないと
きには2値化レベル調整手段19によってロウスライス
レベルが調整されるようになる。より具体的には、白画
素の合計画素数が上記基準画素数よりも少ない場合に
は、2値化レベル調整手段19によってロウスライスレ
ベルはより暗くなるように図3の左方向に移動され、そ
れによって白と選別される画素を増大させる。これとは
逆に、白画素の合計画素数が上記基準画素数よりも多い
場合には、ロウスライスレベルはより明るくなるように
図3の右方向に移動され、それによって白と選別される
画素を減少させる。なお、予め定めた基準画素数と白画
素の合計画素数とが一致するとは、その数が厳密に一致
することに限定されるものではない。図3のヒストグラ
ムから明らかなように、1つの階調内に分類される画素
数は必ずしも1つではなく、ロウスライスレベルを1階
調ずらすと白画素の合計画素数が大きく変動する可能性
がある。このため、基準画素数に一定の許容範囲を持た
せることができ、或いは1つの基準画素数により近い白
画素が得られる階調となるロウスライスレベルにおける
合計画素数で上記一致とみなし、さらには1つの基準画
素数を丁度越え、又は越えない白画素が得られる階調と
なるロウスライスレベルにおける合計画素数で上記一致
とみなすことができる。
Further, the binarizing means 14 includes white pixel counting means 17.
Counts the total number of white pixels selected at the binarization level. The comparing means 18 compares the predetermined number of reference pixels with the total number of white pixels counted by the counting means 17, and when they do not match, the low slice level is adjusted by the binarization level adjusting means 19. Become like More specifically, when the total number of white pixels is smaller than the reference pixel number, the row slice level is moved to the left in FIG. This increases the number of pixels that are selected as white. Conversely, if the total number of white pixels is greater than the reference number of pixels, the row slice level is shifted to the right in FIG. Decrease. The fact that the predetermined number of reference pixels matches the total number of white pixels is not limited to the fact that the numbers exactly match. As is clear from the histogram of FIG. 3, the number of pixels classified into one gradation is not necessarily one, and if the row slice level is shifted by one gradation, the total number of white pixels may vary greatly. is there. For this reason, the reference pixel number can be given a certain allowable range, or the above-mentioned match is regarded as the total number of pixels at the low slice level at which a gray level at which a white pixel closer to one reference pixel number is obtained is obtained. The above-mentioned coincidence can be regarded as the total number of pixels at the low slice level at which a gray level at which a white pixel just exceeds or does not exceed one reference pixel is obtained.

【0009】以上のようにして白画素の合計画素数が予
め定めた基準画素数に一致するように調整されると、次
に検査領域設定手段21は、図5に示すように、上記2
値化手段14によって2値化された画像内に検査領域2
2を設定する。このとき、後に詳述するように、白画素
の合計画素数が予め定めた基準画素数に一致するように
調整された状態では、該検査領域21は、本来的に黒と
選別されるようなシリンジの輪郭に沿った黒画素の領域
内に設定されることがないようになっている。そして次
に、判定手段23は上記検査領域22内の黒画素の有無
を検出し、黒画素が検出されればそれは傷やゴミ25で
あるので、該判定手段23は当該シリンジ1を不良品と
判定するようになる。上述した作業は3台のカメラ7A
〜7C毎に行なわれ、少なくとも1台のカメラからの画
像について判定手段23が不良と判断すれば、最終的に
当該シリンジ1を不良と判定するようになっている。
When the total number of white pixels is adjusted to match the predetermined number of reference pixels as described above, the inspection area setting means 21 then proceeds to the above-described step 2 as shown in FIG.
The inspection area 2 is included in the image binarized by the binarizing unit 14.
Set 2. At this time, as described later in detail, in a state where the total number of white pixels is adjusted to match a predetermined reference number of pixels, the inspection area 21 is originally selected as black. It is not set in the area of the black pixel along the contour of the syringe. Then, the judging means 23 detects the presence or absence of a black pixel in the inspection area 22. If a black pixel is detected, it is a scratch or dust 25, so the judging means 23 judges the syringe 1 as a defective product. It will be determined. The above-mentioned work is performed by three cameras 7A
This is performed every .about.7C, and if the determination unit 23 determines that the image from at least one camera is defective, the syringe 1 is finally determined to be defective.

【0010】以上の構成において、仮に図3に示すロウ
スライスレベルによって白画素の合計画素数が予め定め
た基準画素数に一致するように調整されたとする。この
場合には、図5の想像線で示すシリンジ1の輪郭部分は
中央部分よりも光が透過されにくくなるので、正常なシ
リンジの場合、その輪郭に沿って一定の幅だけが黒に選
別され、それ以外は白と選別される。そしてこの状態で
シリンジ1内に上記検査領域22を設定した際には、該
検査領域22は白と選別された領域内に設定されるよう
になっており、該検査領域22は黒と選別された領域内
にはかからないようになっている。したがってこの状態
を設定した後に、判定手段23により検査領域22内の
黒画素の有無を検出し、黒画素が検出されればそれは傷
やゴミ25であるので、判定手段23によって当該シリ
ンジを不良品と判定することができる。
In the above configuration, it is assumed that the total number of white pixels is adjusted by the row slice level shown in FIG. 3 so as to match a predetermined reference number of pixels. In this case, the outline of the syringe 1 indicated by the imaginary line in FIG. 5 is more difficult to transmit light than the center portion. Therefore, in the case of a normal syringe, only a certain width along the outline is selected as black. Otherwise, it is sorted as white. When the inspection area 22 is set in the syringe 1 in this state, the inspection area 22 is set in an area selected as white, and the inspection area 22 is selected as black. So that it does not cover the area. Therefore, after setting this state, the determination unit 23 detects the presence or absence of a black pixel in the inspection area 22. If a black pixel is detected, it is a scratch or dust 25. Can be determined.

【0011】他方、上記シリンジよりもスリガラスが濃
いシリンジが供給された場合には、図4に示すように、
上述の場合に比較して全体として黒く2値化された画像
が得られる。つまり図4において、図3と同一のロウス
ライスレベルを基準とすると、該ロウスライスレベルよ
りも右側の白と選別された画素数が少なく、左側の黒と
選別された画素数が多くなる。この場合には、図5にお
けるシリンジ1の輪郭部分における黒画素の幅が広くな
っているので、該黒部分が検査領域22内に入り込んで
しまい、傷やゴミがなくても検査領域22内に一定量以
上の黒の画素数が検出されて良品であるにも拘らず不良
品と判定される結果となる。しかるにこの場合には、予
め定めた基準画素数よりも白画素の合計画素数が少ない
ので、上記2値化レベル調整手段19は白画素が多くな
るように、上記ロウスライスレベルを図4の矢印および
想像線で示すように、左方向にシフトさせる。そして白
画素の合計画素数が予め定めた基準画素数に一致するま
でロウスライスレベルを左方向にシフトすれば、その状
態ではシリンジ1の輪郭部分が黒と選別され、それ以外
は白と選別されるようになる。この状態は実質的に図3
の場合と同一の状態となり、したがって検査領域22は
白と選別された領域内に設定され、シリンジの輪郭部分
が該検査領域22にかかることはない。その結果、スリ
ガラスが濃いシリンジが供給されても、判定手段23に
よって当該シリンジの良否を正確に判定することができ
る。
On the other hand, when a syringe whose ground glass is darker than the above-mentioned syringe is supplied, as shown in FIG.
As a whole, an image that is binarized black as compared to the above case is obtained. That is, in FIG. 4, when the same row slice level as that in FIG. 3 is used as a reference, the number of pixels selected as white on the right side is smaller than the row slice level, and the number of pixels selected as black on the left side is larger. In this case, since the width of the black pixel in the outline portion of the syringe 1 in FIG. 5 is wide, the black portion enters the inspection area 22 and even if there is no flaw or dust, the inspection area 22 is not damaged. A certain number or more of black pixels is detected, and the result is determined as a defective product although it is a non-defective product. In this case, however, since the total number of white pixels is smaller than the predetermined number of reference pixels, the binarization level adjusting means 19 adjusts the row slice level so as to increase the number of white pixels by the arrow in FIG. And shift to the left as indicated by the imaginary line. If the row slice level is shifted to the left until the total number of white pixels coincides with the predetermined reference number of pixels, the outline of the syringe 1 is selected as black in that state, and the rest is selected as white. Become so. This state is substantially equivalent to FIG.
Therefore, the inspection area 22 is set in the area selected as white, and the outline of the syringe does not cover the inspection area 22. As a result, even if a syringe with a thick ground glass is supplied, the quality of the syringe can be accurately determined by the determination unit 23.

【0012】なお、傷やゴミ25は黒画素に選別される
ので、該傷やゴミ25があればその分白画素数を減少さ
せることになるが、一般に上記基準画素数は傷やゴミ2
5による画素数よりも充分に大きな値となるので、傷や
ゴミ25の存在がロウスライスレベルを設定する際の悪
影響となることはない。また、図4は図3に比較してス
リガラスが濃くなった例を説明しているが、薄くなった
場合にはロウスライスレベルを逆にシフトさせればよい
ことは明らかである。また、上記実施例では白画素の合
計画素数を基準にしているが、黒画素の合計画素数を基
準にしてもよい。さらに、検査対象となる物品は必ずし
もシリンジに限定されるものではなく、その他の物品に
本発明を適用することができることは勿論である。そし
て上記実施例ではハイスライスレベルを固定している
が、物品の種類によってはロウスライスレベルを固定し
てハイスライスレベルを調整することができる。
Since the scratches and dust 25 are classified as black pixels, the number of white pixels is reduced by the presence of the scratches and dust 25.
Since the value is sufficiently larger than the number of pixels according to 5, the presence of the scratches and dust 25 does not adversely affect the setting of the row slice level. FIG. 4 illustrates an example in which the ground glass is darker than that in FIG. 3. However, when the ground glass becomes thinner, it is apparent that the row slice level may be shifted in reverse. In the above embodiment, the total number of white pixels is used as a reference, but the total number of black pixels may be used as a reference. Further, the article to be inspected is not necessarily limited to a syringe, and it goes without saying that the present invention can be applied to other articles. Although the high slice level is fixed in the above embodiment, the low slice level can be fixed and the high slice level can be adjusted depending on the type of article.

【0013】[0013]

【発明の効果】以上のように、本発明によれば、例えば
スリガラスの濃さにばらつきがあるような物品が供給さ
れても、その良否を正しく判定することができるという
効果が得られる。
As described above, according to the present invention, for example, even if articles having a variation in the thickness of the ground glass are supplied, the quality of the articles can be correctly determined.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の一実施例を示す概略平面図。FIG. 1 is a schematic plan view showing one embodiment of the present invention.

【図2】本発明を説明するための構成図。FIG. 2 is a configuration diagram for explaining the present invention.

【図3】図2のヒストグラム作成手段13によって得ら
れるヒストグラムの一例を示す図。
FIG. 3 is a diagram illustrating an example of a histogram obtained by a histogram creating unit 13 in FIG. 2;

【図4】上記ヒストグラム作成手段13によって得られ
るヒストグラムの他の例を示す図。
FIG. 4 is a diagram showing another example of a histogram obtained by the histogram creating means 13;

【図5】画像処理の状態を説明するための説明図。FIG. 5 is an explanatory diagram for explaining a state of image processing.

【符号の説明】[Explanation of symbols]

1…シリンジ(物品) 4…欠陥検査装置 7A、7B、7C…カメラ 8…光源 11…A/D変換手段 13…ヒストグラム作成手
段 14…2値化手段 15…ロウスライスレベル
設定手段 16…ハイスライスレベル設定手段 17…カウント手
段 18…比較手段 19…2値化レベ
ル調整手段 21…検査領域設定手段 22…検査領域 23…判定手段
DESCRIPTION OF SYMBOLS 1 ... Syringe (article) 4 ... Defect inspection apparatus 7A, 7B, 7C ... Camera 8 ... Light source 11 ... A / D conversion means 13 ... Histogram creation means 14 ... Binarization means 15 ... Low slice level setting means 16 ... High slice Level setting means 17 ... Counting means 18 ... Comparing means 19 ... Binary level adjusting means 21 ... Inspection area setting means 22 ... Inspection area 23 ... Determining means

フロントページの続き (72)発明者 山田 孝治 大阪府茨木市蔵垣内1丁目3番45号 住友 製薬株式会社茨木工場内 (72)発明者 大槻 陽 大阪府茨木市蔵垣内1丁目3番45号 住友 製薬株式会社茨木工場内 (72)発明者 大仲 周次 神奈川県横浜市神奈川区新浦島町1−1− 25 日本電気ロボットエンジニアリング株 式会社内 (72)発明者 渡辺 聡 神奈川県横浜市神奈川区新浦島町1−1− 25 日本電気ロボットエンジニアリング株 式会社内 (72)発明者 濱野 一郎 石川県金沢市大豆田本町甲58番地 澁谷工 業株式会社内Continued on the front page (72) Inventor Koji Yamada 1-3-45, Kurakinai, Ibaraki-shi, Osaka Sumitomo Pharmaceutical Co., Ltd. Ibaraki Plant (72) Inventor Yo Yotsuki 1-3-45, Kurakinai, Ibaraki-shi, Osaka Sumitomo Pharma Co., Ltd. (72) Inventor Shuji Onaka 1-1-25 Shinurashima-cho, Kanagawa-ku, Yokohama-shi, Kanagawa Prefecture Within NEC Corporation (72) Inventor Satoshi Watanabe 1-1-1, Shinurashima-cho, Kanagawa-ku, Yokohama-shi, Kanagawa Prefecture 1-25 Inside of NEC Robot Engineering Co., Ltd. (72) Inventor Ichiro Hamano 58, Kozudahonmachi, Kanazawa-shi, Ishikawa Prefecture Inside Shibuya Kogyo Co., Ltd.

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 物品を撮影するカメラと、このカメラに
よる画像を予め定めた2値化レベルに基づいて2値化す
る2値化手段と、この2値化手段で2値化された画像内
に検査領域を設定する検査領域設定手段と、この検査領
域設定手段で設定された検査領域内の画像に基づいて当
該物品の良否を判定する判定手段とを備えた物品の欠陥
検査装置において、 上記2値化手段における2値化レベルを、該2値化手段
によって得られる白又は黒の合計画素数が予め定めた基
準画素数に一致するように調整する2値化レベル調整手
段を設けたことを特徴とする物品の欠陥検査装置。
1. A camera for photographing an article, a binarizing unit for binarizing an image by the camera based on a predetermined binarization level, and an image in the binarized image by the binarizing unit. A defect inspection apparatus for an article, comprising: an inspection area setting means for setting an inspection area in the inspection area; and a determination means for determining acceptability of the article based on an image in the inspection area set by the inspection area setting means. A binarization level adjusting unit for adjusting a binarization level of the binarization unit so that the total number of white or black pixels obtained by the binarization unit matches a predetermined reference pixel number; An article defect inspection apparatus characterized by the following.
【請求項2】 上記物品の欠陥検査装置は、カメラによ
る画像を多数の階調の白黒画像に変換する変換回路と、
この変換回路によって得られた画像から各階調毎の発生
画素数を示すヒストグラムを作成するヒストグラム作成
手段とを備え、上記2値化手段は上記2値化レベルに基
づいて上記ヒストグラムの各階調を白又は黒に2値化す
ることを特徴とする請求項1に記載の物品の欠陥検査装
置。
2. A defect inspection apparatus for an article, comprising: a conversion circuit for converting an image obtained by a camera into a black and white image having a large number of gradations;
Histogram generating means for generating a histogram indicating the number of pixels generated for each gradation from the image obtained by the conversion circuit, wherein the binarization means converts each gradation of the histogram to white based on the binarization level. 2. The article defect inspection apparatus according to claim 1, wherein the article is binarized into black.
【請求項3】 上記2値化手段は、上記2値化レベルに
基づいて得られる白又は黒の画素をカウントしてその合
計画素数を求めるカウント手段と、該カウント手段で求
めた合計画素数と予め定めた基準画素数とを比較する比
較手段とを備えていることを特徴とする請求項1又は請
求項2に記載の物品の欠陥検査装置。
3. The binarizing means counts white or black pixels obtained based on the binarization level to obtain a total number of pixels, and a total number of pixels obtained by the counting means. 3. The article defect inspection apparatus according to claim 1, further comprising: a comparison unit configured to compare the reference number of pixels with a predetermined number of reference pixels.
【請求項4】 上記2値化レベルは、当該レベルよりも
暗い画素を黒、明るい画像を白と選別するロウスライス
レベルを備え、上記2値化レベル調整手段はこのロウス
ライスレベルを調整することを特徴とする請求項1ない
し請求項3のいずれかに記載の物品の欠陥検査装置。
4. The binarization level includes a row slice level for selecting a pixel darker than the level as black and a bright image as white, and the binarization level adjusting means adjusts the row slice level. The article defect inspection apparatus according to any one of claims 1 to 3, wherein:
【請求項5】 上記2値化レベルは、当該レベルよりも
暗い画素を白、明るい画像を黒と選別するハイスライス
レベルを備えていることを特徴とする請求項4に記載の
物品の欠陥検査装置。
5. The article defect inspection according to claim 4, wherein the binarization level includes a high slice level for selecting a pixel darker than the level as white and a bright image as black. apparatus.
【請求項6】 上記物品は、注射針が取付けられる先端
部がスリガラスとなっているシリンジであって、上記物
品の欠陥検査装置はその先端部の欠陥の有無を検査する
ことを特徴とする請求項1ないし請求項5のいずれかに
記載の物品の欠陥検査装置。
6. The article is a syringe having a ground glass tip at which a syringe needle is attached, and wherein the defect inspection apparatus for the article inspects the tip for defects. An article defect inspection apparatus according to any one of claims 1 to 5.
JP3394798A 1998-01-30 1998-01-30 Inspection apparatus for defect of article Pending JPH11218502A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3394798A JPH11218502A (en) 1998-01-30 1998-01-30 Inspection apparatus for defect of article

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3394798A JPH11218502A (en) 1998-01-30 1998-01-30 Inspection apparatus for defect of article

Publications (1)

Publication Number Publication Date
JPH11218502A true JPH11218502A (en) 1999-08-10

Family

ID=12400711

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3394798A Pending JPH11218502A (en) 1998-01-30 1998-01-30 Inspection apparatus for defect of article

Country Status (1)

Country Link
JP (1) JPH11218502A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102305597A (en) * 2011-04-29 2012-01-04 无锡众望四维科技有限公司 Method for automatically detecting abnormal shape of injector part by using mechanical vision system
KR101318652B1 (en) * 2011-12-14 2013-10-16 현대자동차주식회사 Detecting Method for Movement of Vehicle

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102305597A (en) * 2011-04-29 2012-01-04 无锡众望四维科技有限公司 Method for automatically detecting abnormal shape of injector part by using mechanical vision system
KR101318652B1 (en) * 2011-12-14 2013-10-16 현대자동차주식회사 Detecting Method for Movement of Vehicle

Similar Documents

Publication Publication Date Title
US5444480A (en) Method of inspecting solid body for foreign matter
US7346207B2 (en) Image defect inspection method, image defect inspection apparatus, and appearance inspection apparatus
KR100472129B1 (en) Defect detector and method of detecting defect
JP3820348B2 (en) Method for identifying scattered material, dirt and other defects in a transported object
US20070286471A1 (en) Auto Distinction System And Auto Distinction Method
JPH11211442A (en) Method and device for detecting defect of object surface
EP1612544B1 (en) Machine for inspecting glass bottles
JPH07332951A (en) Apparatus and method for inspecting image
JPH0566203A (en) Apparatus for photographing and inspecting surface of body under inspection
KR20080011235A (en) Substrate inspection device
JPH11218502A (en) Inspection apparatus for defect of article
JP3155106B2 (en) Bottle seal appearance inspection method and apparatus
JPH06118026A (en) Method for inspecting vessel inner surface
JPH07121721A (en) Printed character inspecting method
JP2002303588A (en) Pattern defect inspection device
JPH07146253A (en) Tester for adhesive polarizing film
JP2876999B2 (en) Printing defect inspection equipment
JP4653340B2 (en) Can appearance inspection device using a three-plate CCD camera
JPH08189901A (en) Testing device using picture signal
JPH0224543A (en) Visual inspection method of bottle
JPH06242018A (en) Surface inspection system
JPH08219943A (en) Defect inspection apparatus for color filter
JP2756738B2 (en) Apparatus for visual inspection of semiconductor devices
JPH11183401A (en) Device for inspecting defect in article
JP2735964B2 (en) Label inspection device

Legal Events

Date Code Title Description
A621 Written request for application examination

Effective date: 20041130

Free format text: JAPANESE INTERMEDIATE CODE: A621

A711 Notification of change in applicant

Effective date: 20051026

Free format text: JAPANESE INTERMEDIATE CODE: A712

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20060914

A131 Notification of reasons for refusal

Effective date: 20060919

Free format text: JAPANESE INTERMEDIATE CODE: A131

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20070202