JPH1172445A - Recognition apparatus for linear body - Google Patents

Recognition apparatus for linear body

Info

Publication number
JPH1172445A
JPH1172445A JP9233752A JP23375297A JPH1172445A JP H1172445 A JPH1172445 A JP H1172445A JP 9233752 A JP9233752 A JP 9233752A JP 23375297 A JP23375297 A JP 23375297A JP H1172445 A JPH1172445 A JP H1172445A
Authority
JP
Japan
Prior art keywords
linear
foreign
foreign matter
linear body
area
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
JP9233752A
Other languages
Japanese (ja)
Inventor
Tadashi Itagaki
忠司 板垣
Satoshi Matsushita
智 松下
Hiromasa Sato
浩正 佐藤
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.)
Toshiba Engineering Corp
Original Assignee
Toshiba Engineering 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 Toshiba Engineering Corp filed Critical Toshiba Engineering Corp
Priority to JP9233752A priority Critical patent/JPH1172445A/en
Publication of JPH1172445A publication Critical patent/JPH1172445A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To obtain a recognition apparatus, for a linear body, by which the linear body can be recognized in a foreign-body detection. SOLUTION: The imaging magnification of an imaging device 33 is adjusted in such a way that the width of a linear body becomes one pixel or lower on an image. In this case, on the basis of an image signal obtained by the imaging device 33, the number of foreign bodies existing on an object to be imaged, their area and their peripheral length are detected. The peripheral length L(K) of every foreign body is divided by its area S(K) so as to obtain a divided value L/S. On condition that the divided value is 2 or higher, the detected foreign body is judged to be a linear body.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、画像処理により、
線状体を画像上において検出、認識できるようにした線
状体認識装置に関するものである。
[0001] The present invention relates to an image processing apparatus,
The present invention relates to a linear object recognition device capable of detecting and recognizing a linear object on an image.

【0002】[0002]

【従来の技術】画像上において、線状体を含む異物を検
出するようにした装置は、従来より、例えばPTPシー
ト錠剤の外観検査装置において知られている。ここで、
PTPシートは、PVCシートのポケット部に円形状
(真円、楕円を含む)錠剤(カプセルを含む)を供給し
た後、これらポケット部をシールするようにPVCシー
ト裏面にアルミフィルムを熱圧着して製造される。こう
して製造されるPTPシート錠剤は、ポケット部に錠剤
が供給された状態(アルミフィルムの熱圧着前)におい
て、異物がPVCシート上に混入していないかどうかが
検査される。
2. Description of the Related Art An apparatus for detecting foreign matter including a linear body on an image is conventionally known as, for example, a visual inspection apparatus for a PTP sheet tablet. here,
The PTP sheet is formed by supplying a circular tablet (including a perfect circle and an ellipse) tablets (including capsules) to the pockets of the PVC sheet, and then thermocompression bonding an aluminum film to the back of the PVC sheet so as to seal these pockets. Manufactured. In the PTP sheet tablet manufactured in this way, in a state where the tablet is supplied to the pocket portion (before the thermocompression bonding of the aluminum film), it is inspected whether or not foreign matter is mixed in the PVC sheet.

【0003】図5は、上述したPTPシート錠剤の異物
検査装置として使用されているPTPシート錠剤の外観
検査装置を示すブロック図である。この外観検査装置4
0はPVCシート(後にアルミフィルムの熱圧着により
PTPシートとされる)30を搬送する搬送装置31
と、搬送装置31を制御する搬送制御装置35と、搬送
装置31で搬送されたPVCシート30をシート下面よ
り照射するストロボ32と、ストロボ32で照射された
PVCシート30をシート上面より撮像するCCDカメ
ラ等からなる撮像装置33と、撮像装置33から出力さ
れる画像データを処理し、PVCシート上に異物が混入
していないかどうかを検査する画像処理装置34と、画
像処理装置34の検査結果、異物が混入されていると判
定された場合に、その異物が混入されている錠剤等をP
TPシート錠剤単位で排出するための排出装置36と、
排出装置36を制御するための排出制御装置37を備え
ている。
FIG. 5 is a block diagram showing a PTP sheet tablet appearance inspection apparatus used as the PTP sheet tablet foreign substance inspection apparatus described above. This visual inspection device 4
Reference numeral 0 denotes a conveying device 31 that conveys a PVC sheet (which is later formed into a PTP sheet by thermocompression bonding of an aluminum film) 30
A conveyance control device 35 for controlling the conveyance device 31; a strobe 32 for irradiating the PVC sheet 30 conveyed by the conveyance device 31 from below the sheet; and a CCD for imaging the PVC sheet 30 irradiated by the strobe 32 from the top surface of the sheet. An imaging device 33 composed of a camera or the like; an image processing device 34 for processing image data output from the imaging device 33 and inspecting whether a foreign substance has entered the PVC sheet; and an inspection result of the image processing device 34 If it is determined that a foreign substance has been mixed, the
A discharge device 36 for discharging in TP sheet tablets;
A discharge control device 37 for controlling the discharge device 36 is provided.

【0004】以下に、従来の検査装置の動作を説明す
る。搬送装置は搬送タイミング信号を出力しており、ス
トロボ32と撮像装置33はこの搬送タイミング信号に
基づいて、それぞれ照射タイミングと撮像タイミングの
同期をとっている。画像処理装置34は撮像装置33か
らの画像信号を取り込み、図6に示されるフローチャー
トに従って異物検査を行う。
[0004] The operation of the conventional inspection apparatus will be described below. The transport device outputs a transport timing signal, and the strobe 32 and the imaging device 33 synchronize the irradiation timing and the imaging timing, respectively, based on the transport timing signal. The image processing device 34 captures the image signal from the imaging device 33 and performs a foreign substance inspection according to the flowchart shown in FIG.

【0005】以下、図6に従って画像処理装置の動作に
ついて説明する。まず、ステップS21において撮像装
置からの画像データを取り込む。この場合画像データは
適当な公知の技術により、A/D変換後にコントラスト
に基づく二値化処理がなされて画像メモリに取り込まれ
る。次に、ステップS22でPVCシート画像データの
有無を判断し、有の場合にステップS23に進み、ステ
ップS23において、取り込まれた画像において異物検
査が行われる。
Hereinafter, the operation of the image processing apparatus will be described with reference to FIG. First, in step S21, image data from the imaging device is fetched. In this case, the image data is subjected to binarization processing based on contrast after A / D conversion by an appropriate known technique, and is taken into an image memory. Next, in step S22, the presence or absence of PVC sheet image data is determined. If yes, the process proceeds to step S23. In step S23, a foreign substance inspection is performed on the captured image.

【0006】そしてステップS24において、異物があ
ると判定された場合は、ステップS25において、上述
したように、その異物をPTPシート錠剤単位で排出す
るよう排出制御装置にデータ転送を行い、ステップS2
1に戻る。一方ステップS24において、異物が無いと
判定された場合は、そのままステップS1に戻る。
If it is determined in step S24 that there is a foreign substance, in step S25, as described above, data is transferred to the discharge control device to discharge the foreign substance in units of PTP sheet tablets.
Return to 1. On the other hand, if it is determined in step S24 that there is no foreign matter, the process returns to step S1.

【0007】[0007]

【発明が解決しようとする課題】従来の異物検査装置
は、上述したように、異物の有無を検出することができ
るが、その検出された異物がどのような物であるかの異
物の認識をすることはできない。ところで、異物が線状
体である場合、線状体は風圧等により移動し易く、異物
検査装置による検査位置からPTPシート錠剤の排出処
理位置までの工程間に、PVCシート上を検出された位
置から他の位置に移動している恐れがある。このため、
従来装置では、検出された異物が線状体である場合を考
慮して、異物が検出されたPVCシート及びそのPVC
シート上に供給されている錠剤から作られるPTPシー
ト錠剤を排出すると共に、その前後2枚のPTPシート
錠剤も排出するようにしている。
As described above, the conventional foreign matter inspection apparatus can detect the presence or absence of a foreign matter, but recognizes the foreign matter as to what kind of the detected foreign matter is. I can't. By the way, when the foreign substance is a linear body, the linear body is easily moved by wind pressure or the like, and the position detected on the PVC sheet during the process from the inspection position by the foreign substance inspection device to the discharge processing position of the PTP sheet tablet. May have moved to another location. For this reason,
In the conventional apparatus, in consideration of the case where the detected foreign matter is a linear body, the PVC sheet where the foreign matter is detected and the PVC sheet thereof are used.
A PTP sheet tablet made from the tablets supplied on the sheet is discharged, and two PTP sheet tablets before and after the PTP sheet tablet are also discharged.

【0008】しかしながら、異物が例えば錠剤のかけら
のような線状体でない場合は、PVCシート上を線状体
のように移動することはない。したがって、異物が線状
体でない場合は、異物が検出されたPVCシート部分か
らなるPTPシート錠剤のみを排出すれば良い。このよ
うな場合までも、線状体の場合を考慮して、そのPTP
シート錠剤のみならず、その前後2枚のPTPシート錠
剤を排出するようにしていたのでは、無駄が生じ製造効
率が低下すると共に、製造コストが高くなる。
However, when the foreign substance is not a linear body such as a piece of a tablet, it does not move on the PVC sheet like a linear body. Therefore, when the foreign matter is not a linear body, only the PTP sheet tablet composed of the PVC sheet portion where the foreign matter is detected may be discharged. Even in such a case, considering the case of a linear body, its PTP
Discharging not only the sheet tablets but also the two PTP sheet tablets before and after the sheet tablets wastes production efficiency, and increases production cost.

【0009】そこで、本発明は、このような従来の問題
点を解決するためになされたもので、異物検出において
線状体を認識することができ、もって、異物検出におい
て線状体を他の異物と区別して取り扱うことができる線
状体認識装置を得ることを目的としている。
Accordingly, the present invention has been made to solve such a conventional problem, and it is possible to recognize a linear object in foreign object detection, and thus to detect another linear object in foreign object detection. It is an object of the present invention to obtain a linear object recognition device that can be handled separately from foreign matter.

【0010】[0010]

【課題を解決するための手段】上述した従来の課題を解
決するため、本発明は、被撮像体を撮像して画像信号を
出力する撮像手段と、前記撮像手段より出力された画像
信号に基づいて、前記被撮像体上に存在する異物を検出
する異物検出手段と、前記異物検出手段により検出され
た異物の面積を前記画像信号に基づいて算出する面積算
出手段と、前記異物検出手段により検出された前記異物
の周囲長を前記画像信号に基づいて算出する周囲長算出
手段と、前記周囲長算出手段により算出された周囲長と
前記面積算出手段により算出された面積とに基づいて前
記異物が線状体であることを判定する判定手段とを備え
てなるものである。
SUMMARY OF THE INVENTION In order to solve the above-mentioned conventional problems, the present invention provides an image pickup means for picking up an image of an object to be picked up and outputting an image signal, and an image signal output from the image pickup means. A foreign matter detecting means for detecting foreign matter present on the object to be imaged; an area calculating means for calculating an area of the foreign matter detected by the foreign matter detecting means based on the image signal; A perimeter calculating means for calculating the perimeter of the foreign matter based on the image signal; and the perimeter based on the perimeter calculated by the perimeter calculating means and the area calculated by the area calculating means. Determining means for determining that the object is a linear body.

【0011】また、本発明において、前記判定手段は前
記異物の周囲長を前記異物の面積で除した除算値に基づ
いて前記異物が線状体であることを判定するものであ
る。
In the present invention, the judging means judges that the foreign matter is a linear body based on a divided value obtained by dividing a peripheral length of the foreign matter by an area of the foreign matter.

【0012】このような構成によれば、異物が線状体で
あることを認識することができ、線状体を他の異物と区
別して検出することができる。なお、実施の形態におい
ては、画像信号に基づいて得られるコントラスト(コン
トラスト差)に基づく二値化信号を用いて、異物の検
出、面積の算出、周囲長の算出を行っている。
According to such a configuration, it is possible to recognize that the foreign matter is a linear body, and it is possible to detect the linear body separately from other foreign bodies. In the embodiment, detection of a foreign substance, calculation of an area, and calculation of a perimeter are performed using a binarized signal based on a contrast (contrast difference) obtained based on an image signal.

【0013】また、本発明において、前記判定手段は、
線状体の幅が画像上においてΔ画素以下となるように撮
像倍率を調整した場合に、前記除算値が2/Δ以上とな
ることを条件として前記異物が線状体であることを判定
するものである。
[0013] In the present invention, the determining means may include:
When the imaging magnification is adjusted so that the width of the linear body is equal to or less than Δ pixels on the image, it is determined that the foreign matter is a linear body on condition that the division value is equal to or greater than 2 / Δ. Things.

【0014】図4に示すように、線状体は非常に細長い
長方形と考えることができる。従って、画像(処理画
面)上において線状体の幅がΔ画素となるように、撮像
装置の撮像倍率を調整すると、画像上において、線状体
の周囲長Lは、線状体の長さをd画素とすると、L=2
×d+2×Δとして得られる。一方、面積SはS=Δ×
dとして得られる。従って、除算値は、
As shown in FIG. 4, the linear body can be considered as a very elongated rectangle. Therefore, when the imaging magnification of the imaging device is adjusted so that the width of the linear body becomes Δ pixels on the image (processing screen), the peripheral length L of the linear body on the image becomes the length of the linear body. Is d pixels, L = 2
× d + 2 × Δ. On the other hand, the area S is S = Δ ×
obtained as d. Therefore, the division value is

【0015】 L/S=(2×d+2×Δ)/(Δ×d)=2/Δ+2/d (1)L / S = (2 × d + 2 × Δ) / (Δ × d) = 2 / Δ + 2 / d (1)

【0016】となる。ここで、2/dは非常に小さい値
となり無視できるので、上記式(1)の値は略2/Δと
なる。従って、線状体の幅をΔ画素以下としておけば
(1)式の右辺は2/Δ以上となる。よって、周囲長を
周囲面積で割った除算値が2/Δ以上となる場合の異物
を線状体と定義することにより、検出された異物より線
状体を認識できる。
## EQU1 ## Here, since 2 / d is a very small value and can be ignored, the value of the above equation (1) is approximately 2 / Δ. Therefore, if the width of the linear body is set to Δ pixels or less, the right side of the expression (1) becomes 2 / Δ or more. Therefore, by defining a foreign substance in the case where the value obtained by dividing the perimeter by the peripheral area to be 2 / Δ or more as a linear substance, the linear substance can be recognized from the detected foreign substance.

【0017】この場合、例えば撮像手段の撮像倍率によ
り線状体の幅Δ画素を処理画像上で1画素以下(未満)
としておけば上記除算値は2以上(2より大)となり、
2画素以下(未満)とすれば上記除算値は1以上(1よ
り大)となり、3画素以下(未満)とすれば上記除算値
は2/3以上(2/3より大)となる。なお、上記
(1)式において、線状体から外れて幅の大きな長方形
(正方形)に近づけば近づくほど、(1)式の値は小さ
な値となり、線状体でないことが認識できる。
In this case, for example, the width Δ pixel of the linear object is set to 1 pixel or less (less than) on the processed image according to the imaging magnification of the imaging means.
, The above division value is 2 or more (greater than 2),
If the number is 2 pixels or less (less than), the division value becomes 1 or more (greater than 1). If the number of pixels is 3 pixels or less (less than), the division value becomes 2/3 or more (greater than 2/3). In the above equation (1), the value of the equation (1) becomes smaller as the rectangle departs from the linear body and approaches a large rectangle (square), and it can be recognized that the object is not a linear body.

【0018】一方、線状体の幅はそのままで、長さが小
さくなる場合(例えば短い線状体が検出されたとき)
は、上記式による認識条件(2/Δ以上)をそのまま使
用して、線状体を認識することができる(この場合は上
式右辺の第2項が若干大きくなってくる)。また、図3
の15a,15bで示すように線状体が2分割されて画
像に表れるときは、それぞれが1つの線状体として、2
つの線状体が認識されることとなる。なお、(1)式の
右辺において、異物の形状判断、あるいは長方形におけ
るどちらが長辺でどちらが短辺(幅)であるかの判断認
識は不要である。
On the other hand, when the length of the linear body is reduced while the width of the linear body remains unchanged (for example, when a short linear body is detected).
Can be used to recognize a linear body using the recognition condition (2 / Δ or more) as it is (in this case, the second term on the right side of the above equation becomes slightly larger). FIG.
When the linear body is divided into two and appears in the image as shown by 15a and 15b in FIG.
Two linear objects will be recognized. In the right side of the equation (1), it is not necessary to determine the shape of the foreign substance or to determine which of the rectangles is the longer side and which is the shorter side (width).

【0019】[0019]

【発明の実施の形態】以下、本発明の実施の形態を図に
従って説明する。図1は本発明の実施の形態に係る線状
体認識装置を示すブロック図である。この線状体認識装
置は、図5に示したPTPシート錠剤における外観検査
装置に適用され、その全体外観構成は図5に示した構成
と同じである。図1に示される線状体認識装置は、撮像
装置33と、撮像装置33に接続された信号前処理部2
と、信号前処理部2に接続された画像メモリ3と、画像
メモリ33に接続されたマスク処理部4と、マスク処理
部4に接続された異物の検出、面積、周囲長算出部5
と、この算出部5に接続された除算部6と、除算部6に
接続されると共に設定部8に接続された比較部7とを備
えている。比較部7には排出制御装置37が接続されて
いる。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing a linear object recognition device according to an embodiment of the present invention. This linear object recognition device is applied to the appearance inspection device for the PTP sheet tablet shown in FIG. 5, and the overall appearance configuration is the same as the configuration shown in FIG. The linear object recognition device illustrated in FIG. 1 includes an imaging device 33 and a signal preprocessing unit 2 connected to the imaging device 33.
And an image memory 3 connected to the signal preprocessing unit 2, a mask processing unit 4 connected to the image memory 33, detection of foreign matter connected to the mask processing unit 4, an area and perimeter calculation unit 5
And a division unit 6 connected to the calculation unit 5 and a comparison unit 7 connected to the division unit 6 and connected to the setting unit 8. An emission control device 37 is connected to the comparison unit 7.

【0020】以上の構成において、撮像装置33からの
画像信号は信号前処理部2に入力され、ここでA/D変
換され、また二値化処理がなされる。なお、この二値化
処理には画像のコントラスト(あるいはコントラスト
差)に基づく、従来より公知の手法が採用されており、
ここでの説明は省略する。
In the above configuration, the image signal from the imaging device 33 is input to the signal pre-processing unit 2, where it is subjected to A / D conversion and binarization processing. Note that a conventionally known method based on the contrast (or contrast difference) of the image is used for the binarization process.
The description here is omitted.

【0021】信号前処理部2より得られた画像信号は、
マスク処理部4でPVCシートのポケット部にマスク処
理が施され、次に異物の検出、面積、周囲長算出部5で
異物の個数、それぞれの面積、それぞれの周囲長が算出
される。これらの値はそれぞれ格納され、これらの値を
用いて除算部6はそれぞれの異物の周囲長Lを面積Sで
割った値を算出する。
The image signal obtained from the signal preprocessing unit 2 is
The mask processing section 4 performs a masking process on the pocket portion of the PVC sheet, and then the foreign substance detection, area, and perimeter calculating section 5 calculates the number of foreign substances, their respective areas, and their respective perimeters. These values are respectively stored, and using these values, the dividing unit 6 calculates a value obtained by dividing the peripheral length L of each foreign matter by the area S.

【0022】比較部7は設定部8に設定された値と除算
部6より得られた除算値を比較し、除算値(L/S)が
設定値(2)以上となることを条件として、異物が線状
体であることを判定する。
The comparison unit 7 compares the value set in the setting unit 8 with the division value obtained by the division unit 6, and on condition that the division value (L / S) is equal to or more than the set value (2). It is determined that the foreign matter is a linear body.

【0023】設定値を2としたのは、PTPシート錠剤
の外観検査装置における撮像倍率は、図3に示す画像の
ように、縦200μm、横130mmの長方形の被撮像
面が、画面上でそれぞれ480画素、640画素として
表され、僅か50μm程度の線状体はその幅が1画素以
下(未満)で撮像され、(1)式の右辺第1項(2/
Δ)を2以上として取り扱えば十分と考えられるからで
ある。
The reason why the setting value is set to 2 is that the imaging magnification of the PTP sheet tablet in the appearance inspection apparatus is as shown in FIG. A linear object having a width of only about 50 μm, which is represented as 480 pixels or 640 pixels, is imaged with a width of 1 pixel or less (less than), and the first term (2/2 /
This is because it is considered sufficient to treat Δ) as 2 or more.

【0024】比較部7において線状体が認識された場
合、すなわち除算値が2以上となった場合は、従来通
り、排出制御装置37により、その線状体が検出された
PVCシート部分よりなるPTPシート錠剤、およびそ
の前後のPTPシート錠剤の併せて3枚分のPTPシー
ト錠剤を排出する。
When the linear unit is recognized by the comparing unit 7, that is, when the division value is 2 or more, the discharge control unit 37 forms the PVC sheet portion where the linear unit is detected, as in the related art. A total of three PTP sheet tablets including the PTP sheet tablets and the PTP sheet tablets before and after the PTP sheet tablets are discharged.

【0025】一方、比較部7において、検出された異物
が線状体でないと判定された場合、すなわち除算値が2
に満たない場合は、比較部7は排出制御装置37を動作
させて、その異物が検出されたPVCシート部分よりな
るPTPシート錠剤を排出させる。
On the other hand, when the comparison unit 7 determines that the detected foreign matter is not a linear body, that is, when the divided value is 2
If the number is less than the above, the comparison unit 7 operates the discharge control device 37 to discharge the PTP sheet tablet formed of the PVC sheet portion where the foreign matter is detected.

【0026】図2は以上の動作を示すフローチャートで
あり、ステップS1において画像データを取り込み、ス
テップS2でPVCシート画像データの有無を判断し、
有の場合にステップS3でポケット部のマスク処理を行
う。ステップS4においては、異物の個数N、それぞれ
の面積S(n)、それぞれの周囲長L(n)が算出さ
れ、格納される。
FIG. 2 is a flowchart showing the above operation. In step S1, image data is fetched, and in step S2, the presence or absence of PVC sheet image data is determined.
If yes, mask processing of the pocket portion is performed in step S3. In step S4, the number N of foreign matters, their respective areas S (n), and their respective perimeters L (n) are calculated and stored.

【0027】図3はステップS3でマスク処理を行った
状態を示す画像であり、10はPVCシート、11はマ
スク部、12はポケット部(エッジ部)の画像を示して
いる。上述したステップS4の処理において、例えば、
図3に14で示すような線状体は1つの異物として検出
されるが、15で示すように、ポケット部12と交差す
るように混入している線状体は、マスク部11で分断さ
れ、2つの異物15a,15bとして認識されることと
なる。
FIG. 3 is an image showing a state where the mask processing has been performed in step S3, wherein 10 is an image of a PVC sheet, 11 is a mask portion, and 12 is an image of a pocket portion (edge portion). In the processing of step S4 described above, for example,
3 is detected as one foreign substance, but the linear body mixed so as to intersect with the pocket portion 12 as shown by 15 is divided by the mask portion 11. Are recognized as two foreign substances 15a and 15b.

【0028】図2に戻り、ステップS5では異物が検出
されたか否かを判定し、検出されない場合(N=0)は
ステップS1に戻り、次の画像信号の取り込みが行われ
る。一方、ステップS5において、異物が検出された場
合は、ステップS4においてN個の処理を行うためのパ
ラメータKを初期化して、ステップS7においてパラメ
ータKを更新し、ステップS8において、K番目の異物
についての周囲長L(K)をその面積(K)で除して除
算値Dを求める。
Returning to FIG. 2, in step S5, it is determined whether or not a foreign object has been detected. If not detected (N = 0), the process returns to step S1 to take in the next image signal. On the other hand, if a foreign matter is detected in step S5, the parameter K for performing N processes is initialized in step S4, the parameter K is updated in step S7, and the K-th foreign matter is detected in step S8. Is divided by its area (K) to obtain a division value D.

【0029】ステップS9ではこの除算値Dが2以上で
あるか否かを判定し、2以上である場合に線状体と判定
して、ステップS10において排出制御装置37にシー
ト3枚分のPTPシート錠剤を排出するための排出デー
タが転送される。
In step S9, it is determined whether or not the division value D is 2 or more. If it is 2 or more, it is determined that the object is a linear body. Discharge data for discharging the sheet tablet is transferred.

【0030】一方、ステップS9で除算値Dが2に満た
ない場合は線状体ではないと判定し、この場合はステッ
プS11において排出制御装置37にシート1枚分のP
TPシート錠剤を排出するための排出データが転送され
る。その後ステップS12において、検出された異物の
数Nだけ認識処理が行われたか否かを判定し、処理数K
がNに満たない場合はステップS7に戻る。
On the other hand, if the division value D is less than 2 in step S9, it is determined that the object is not a linear body.
Discharge data for discharging the TP sheet tablet is transferred. Thereafter, in step S12, it is determined whether or not the recognition process has been performed by the number N of the detected foreign substances, and the number of processes K
Is smaller than N, the process returns to step S7.

【0031】以上のように、本発明の実施の形態におい
ては、異物の周囲長を面積で除した除算値が2以上であ
る場合に、その異物は線状体であると認識するようにし
たため、線状体を他の異物から容易に識別(認識)でき
る。
As described above, in the embodiment of the present invention, when the division value obtained by dividing the perimeter of the foreign matter by the area is 2 or more, the foreign matter is recognized as a linear body. In addition, the linear body can be easily identified (recognized) from other foreign substances.

【0032】以上、本発明の実施の形態は、線状体認識
装置として、PTPシート錠剤における線状体認識装置
を例にとって説明したが、本発明は工業製品等に対し、
例えば毛髪等、糸のようなものの認識にも適用できる。
As described above, the embodiment of the present invention has been described by taking the linear object recognition device for PTP sheet tablets as an example of the linear object recognition device.
For example, the present invention can be applied to recognition of a thread or the like such as hair.

【0033】[0033]

【発明の効果】以上の説明より明らかなように、本発明
に係る線状体認識装置によれば、線状体を認識すること
ができ、もって、本装置を例えばPTPシート錠剤の異
物検出に用いた場合は、線状体が検出された場合の取り
扱いを他の異物が検出された場合の取り扱いと区別して
取り扱うことができ、製造効率の向上、製造コストの低
減を図ることができるという効果を奏する。
As is apparent from the above description, the linear object recognizing device according to the present invention can recognize a linear object. When used, the handling when a linear object is detected can be handled separately from the handling when other foreign matter is detected, and the effect of improving manufacturing efficiency and reducing manufacturing cost can be achieved. To play.

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

【図1】本発明の実施の形態に係る線状体認識装置を示
すブロック図である。
FIG. 1 is a block diagram showing a linear object recognition device according to an embodiment of the present invention.

【図2】実施の形態の動作を示すフローチャートであ
る。
FIG. 2 is a flowchart showing the operation of the embodiment.

【図3】マスクされた画像を示す図である。FIG. 3 is a diagram showing a masked image.

【図4】線状体を画像上で示す説明図である。FIG. 4 is an explanatory diagram showing a linear body on an image.

【図5】従来のPTPシート錠剤の外観検査装置を示す
ブロック図である。
FIG. 5 is a block diagram showing a conventional PTP sheet tablet appearance inspection apparatus.

【図6】従来のPTPシート錠剤の外観検査装置の動作
を示すフローチャートである。
FIG. 6 is a flowchart showing the operation of a conventional PTP sheet tablet appearance inspection apparatus.

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

2 信号前処理部 3 画像メモリ 4 マスク処理部 5 異物の検出、面積、周囲長算出部 6 除算部 7 比較部 33 撮像装置 Reference Signs List 2 signal preprocessing unit 3 image memory 4 mask processing unit 5 foreign matter detection, area and perimeter calculation unit 6 division unit 7 comparison unit 33 imaging device

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 FI G06T 7/60 G06F 15/70 350D 355 ──────────────────────────────────────────────────の Continued on the front page (51) Int.Cl. 6 Identification code FI G06T 7/60 G06F 15/70 350D 355

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 被撮像体を撮像して画像信号を出力する
撮像手段と、前記撮像手段より出力された画像信号に基
づいて、前記被撮像体上に存在する異物を検出する異物
検出手段と、前記異物検出手段により検出された異物の
面積を前記画像信号に基づいて算出する面積算出手段
と、前記異物検出手段により検出された前記異物の周囲
長を前記画像信号に基づいて算出する周囲長算出手段
と、前記周囲長算出手段により算出された周囲長と前記
面積算出手段により算出された面積とに基づいて前記異
物が線状体であることを判定する判定手段とを備えてな
る線状体認識装置。
An imaging unit that captures an image of the object and outputs an image signal; and a foreign object detection unit that detects a foreign object present on the object based on the image signal output from the imaging unit. An area calculating means for calculating the area of the foreign matter detected by the foreign matter detecting means based on the image signal; and a peripheral length for calculating the circumferential length of the foreign matter detected by the foreign matter detecting means based on the image signal. A linear means comprising: calculating means; and determining means for determining that the foreign matter is a linear body based on the perimeter calculated by the perimeter calculating means and the area calculated by the area calculating means. Body recognition device.
【請求項2】 前記判定手段は、前記異物の周囲長を前
記異物の面積で除した除算値に基づいて前記異物が線状
体であることを判定する請求項1記載の線状体認識装
置。
2. The linear object recognizing device according to claim 1, wherein the determining unit determines that the foreign object is a linear object based on a division value obtained by dividing a peripheral length of the foreign object by an area of the foreign object. .
【請求項3】 前記判定手段は、線状体の幅がΔ画素以
下となるように撮像倍率を調整した場合に、前記除算値
が2/Δ以上となることを条件として前記異物が線状体
であることを判定する請求項2記載の線状体認識装置。
3. The method according to claim 1, wherein the determining unit adjusts the imaging magnification so that the width of the linear body is equal to or less than Δ pixels, and determines that the foreign matter is linear if the division value is equal to or greater than 2 / Δ. The linear object recognizing device according to claim 2, wherein the device determines that the object is a body.
【請求項4】 前記被撮像体はPTPシート錠剤である
請求項1乃至請求項3のいずれかに記載の線状体認識装
置。
4. The linear object recognition device according to claim 1, wherein the object to be imaged is a PTP sheet tablet.
JP9233752A 1997-08-29 1997-08-29 Recognition apparatus for linear body Pending JPH1172445A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9233752A JPH1172445A (en) 1997-08-29 1997-08-29 Recognition apparatus for linear body

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9233752A JPH1172445A (en) 1997-08-29 1997-08-29 Recognition apparatus for linear body

Publications (1)

Publication Number Publication Date
JPH1172445A true JPH1172445A (en) 1999-03-16

Family

ID=16960032

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9233752A Pending JPH1172445A (en) 1997-08-29 1997-08-29 Recognition apparatus for linear body

Country Status (1)

Country Link
JP (1) JPH1172445A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000171410A (en) * 1998-12-04 2000-06-23 Ckd Corp Visual inspection apparatus for ptp sheet and ptp packaging machine
JP2004507759A (en) * 2000-08-29 2004-03-11 グラクソ グループ リミテッド Method and system for real-time fluorescence measurement of trace elements
JP2005326246A (en) * 2004-05-14 2005-11-24 Ikegami Tsushinki Co Ltd Foreign matter detector
JP2006133052A (en) * 2004-11-05 2006-05-25 Ishizuka Glass Co Ltd Foreign matter inspection method and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000171410A (en) * 1998-12-04 2000-06-23 Ckd Corp Visual inspection apparatus for ptp sheet and ptp packaging machine
JP2004507759A (en) * 2000-08-29 2004-03-11 グラクソ グループ リミテッド Method and system for real-time fluorescence measurement of trace elements
JP2005326246A (en) * 2004-05-14 2005-11-24 Ikegami Tsushinki Co Ltd Foreign matter detector
JP2006133052A (en) * 2004-11-05 2006-05-25 Ishizuka Glass Co Ltd Foreign matter inspection method and device

Similar Documents

Publication Publication Date Title
JPH1172445A (en) Recognition apparatus for linear body
JPH11224892A (en) Failure detector of tape carrier and method of detecting failure
JPH10255019A (en) Vehicle recognizing device
JPH07282219A (en) Tablet inspection device equipped with image recognition means and tablet inspecting method
JP2000221139A (en) Defect detecting device
JPH08114432A (en) Device for inspecting transparent sheet containing net body
JPH0721388A (en) Picture recognizing device
JP3055205B2 (en) Fruit and Vegetable Scratch Detection Device
JP2002074332A (en) Method and device for detecting sealing defect of packing material and packing body
Chavda et al. Detection of defect in pharma-tablets using image processing
JP2000266514A (en) Method and device for inspecting metallic sheet
JP2000082143A (en) Surface defect inspection device
JPS6312987A (en) Detecting method for moving object
JPH11178894A (en) Method and device for inspecting appearance of tablet and blister sheet packer
JP7309017B1 (en) Tablet inspection device and tablet inspection method
JPS62154076A (en) Picture processing method
JP3409695B2 (en) Surface defect inspection method
JP3522383B2 (en) Work image processing device
JPH08161433A (en) Method and device for comparing images through correlation processing
JPH0729015A (en) Picture recognition device
JP2000249527A (en) Surface defect detector and its detection method
JP3271889B2 (en) Edge detection method for recognition target
JP4030157B2 (en) Inspection device size parameter inspection device
JP2004317187A (en) Visual inspection apparatus and ptp packaging machine
JPH07160887A (en) Method and device for patterm matching inspection

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040826

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20041013

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20041013

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20060301

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060404

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20060801