JPH11339014A - Inspection condition deciding device, inspecting device and shutter speed deciding device - Google Patents

Inspection condition deciding device, inspecting device and shutter speed deciding device

Info

Publication number
JPH11339014A
JPH11339014A JP10147196A JP14719698A JPH11339014A JP H11339014 A JPH11339014 A JP H11339014A JP 10147196 A JP10147196 A JP 10147196A JP 14719698 A JP14719698 A JP 14719698A JP H11339014 A JPH11339014 A JP H11339014A
Authority
JP
Japan
Prior art keywords
inspection
imaging
image
shutter speed
inspection condition
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.)
Granted
Application number
JP10147196A
Other languages
Japanese (ja)
Other versions
JP3035578B2 (en
Inventor
Masahiro Kawachi
雅弘 河内
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.)
Omron Corp
Original Assignee
Omron Corp
Omron Tateisi Electronics Co
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 Omron Corp, Omron Tateisi Electronics Co filed Critical Omron Corp
Priority to JP10147196A priority Critical patent/JP3035578B2/en
Publication of JPH11339014A publication Critical patent/JPH11339014A/en
Application granted granted Critical
Publication of JP3035578B2 publication Critical patent/JP3035578B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To decide an inspection condition such as a shutter speed suited for a moving object in an inspecting device for image picking up and inspecting the moving object. SOLUTION: Each object in a successively moving object entering an image pickup area is successively detected (5). Each time the object is detected up (2), and each time the object is image picked up, an inspection condition such as a shutter speed is changed (14), and the inspection condition suited for inspection is decided based on an image signal obtained by picking up the object (4).

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、順次移動する対象
物列に対してそれぞれの対象物を検査する技術に関する
もので、特にその検査条件を対象物に適した条件に変更
する検査条件決定装置、検査条件決定方法及び検査装置
に関する。例えば、ベルトコンベア上を流れてくる各対
象物を検出し、対象物を撮像することによって、対象物
を検査する検査装置のシャッタ速度などの検査条件を変
更することに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a technique for inspecting a sequentially moving object row for each object, and more particularly to an inspection condition determining apparatus for changing the inspection conditions to conditions suitable for the object. , An inspection condition determination method and an inspection apparatus. For example, the present invention relates to changing inspection conditions such as a shutter speed of an inspection device that inspects an object by detecting each object flowing on a belt conveyor and imaging the object.

【0002】[0002]

【従来の技術】従来、順次移動してくる対象物列のう
ち、それぞれの対象物が撮像領域に進入したことを検出
して、対象物を撮像し、撮像することによって得られた
それぞれの画像データに基づいて、それぞれの対象物を
検査する検査装置が存在する。
2. Description of the Related Art Conventionally, of a sequence of sequentially moving objects, each of the images obtained by detecting that each object has entered an imaging area, imaging the object, and imaging the object. There is an inspection device that inspects each object based on data.

【0003】この検査装置では、対象物を適切な検査条
件で設定するために検査条件が変更できるようになって
いる。そのため、さまざまな検査条件で、対象物を撮像
し、撮像することによって得られた画像データの中から
最も検査に適している画像データを抽出しその画像デー
タを撮像したときの検査条件に設定してる。
In this inspection apparatus, inspection conditions can be changed in order to set an object under appropriate inspection conditions. Therefore, under various inspection conditions, an object is imaged, and image data most suitable for inspection is extracted from image data obtained by imaging, and set as inspection conditions when the image data is imaged. Te

【0004】図3は、上記検査装置で対象物を検査した
場合の外観を示している。検査装置1は、カメラ2、照
明装置3、画像処理部4及び光電スイッチ5から構成さ
れている。検査の間、対象物6の列はベルトコンベア7
によって順次矢印の方向へ移動する。光電スイッチ5
は、カメラ2の撮像領域8に対象物6が進入したことを
画像処理部6に出力する。ここで、撮像領域8は、一つ
の対象物6のみが入る大きさに設定されている。もしく
は、撮像領域8に一つの対象物6のみが入るように対象
物同士の間隔が空けられて対象物6の列が作られてい
る。画像処理部4は、光電スイッチ5から対象物が撮像
領域に進入したことを示す進入検出信号を受け付けたこ
とに応じて、カメラ2に対象物6を撮像させる。カメラ
2は、撮像したことによって取得した画像信号を画像処
理部4に出力する。
FIG. 3 shows an external appearance when an object is inspected by the inspection apparatus. The inspection device 1 includes a camera 2, a lighting device 3, an image processing unit 4, and a photoelectric switch 5. During the inspection, the rows of objects 6 are
Move sequentially in the direction of the arrow. Photoelectric switch 5
Outputs to the image processing unit 6 that the object 6 has entered the imaging area 8 of the camera 2. Here, the imaging region 8 is set to have a size that allows only one target object 6 to enter. Alternatively, the rows of the target objects 6 are formed with an interval between the target objects so that only one target object 6 enters the imaging region 8. The image processing unit 4 causes the camera 2 to image the object 6 in response to receiving the entry detection signal indicating that the object has entered the imaging area from the photoelectric switch 5. The camera 2 outputs an image signal obtained by capturing an image to the image processing unit 4.

【0005】画像処理部4は、受け取った画像信号を画
像データに変換して、画像処理することによって特徴量
を算出し、予め登録されている基準特徴量と、実際に撮
像することによって得られた特徴量との相関値を求める
などして比較することによって対象物6の良否などの検
査を行う。
[0005] The image processing unit 4 converts the received image signal into image data, performs image processing to calculate a feature amount, and obtains a reference feature amount registered in advance and actual imaging. Inspection of the quality of the target object 6 is performed by obtaining a correlation value with the obtained feature amount and comparing the values.

【0006】ここで、照明装置3は、撮像の度に照明し
てもよいし、常に照明していてもよい。なお、ここで
は、カメラ2と照明装置3とが一体に構成されている。
画像処理部4で、画像データを画像処理し、対象物の検
査結果を外部に出力する。
Here, the illumination device 3 may illuminate each time an image is taken, or may always illuminate. Here, the camera 2 and the lighting device 3 are integrally configured.
The image processing unit 4 performs image processing on the image data, and outputs an inspection result of the object to the outside.

【0007】そして、カメラ2を用いて対象物6を検査
する場合、適切な画像信号を得る必要がある。この場
合、カメラ2のシャッタ速度、照明の明るさ及び撮像領
域などの検査条件を適切な値に設定しなければならな
い。
When inspecting the object 6 using the camera 2, it is necessary to obtain an appropriate image signal. In this case, inspection conditions such as the shutter speed, illumination brightness, and imaging area of the camera 2 must be set to appropriate values.

【0008】従来、これらの検査条件を設定するため
に、ベルトコンベア7を停止させ、カメラ2の撮像領域
8内に静止した対象物6を配置して、カメラによる撮像
の度に検査条件を変更してカメラ2で対象物を撮像し、
それぞれの検査条件に対応した対象物の画像信号を取得
し、その画像信号を画像処理することで取得した画像信
号の中で最も検査に適した画像信号を決定し、その最も
適した画像信号を取得したときの検査条件の値を求めて
いた。そして、この求まった値で検査装置1の検査条件
を設定し、実際に対象物6を順次検査している。
Conventionally, in order to set these inspection conditions, the belt conveyor 7 is stopped, the stationary object 6 is arranged in the imaging area 8 of the camera 2, and the inspection conditions are changed every time an image is taken by the camera. Camera 2 to image the object
The image signal of the object corresponding to each inspection condition is acquired, and the image signal which is most suitable for the inspection is determined among the image signals acquired by performing image processing on the image signal, and the most suitable image signal is determined. The value of the inspection condition at the time of acquisition was determined. Then, the inspection conditions of the inspection apparatus 1 are set with the obtained values, and the object 6 is actually inspected sequentially.

【0009】[0009]

【発明が解決しようとする課題】しかしながら、従来の
技術では、対象物6に対応した検査条件を決定するため
に、対象物6をカメラ2で撮像し、その撮像画像に応じ
た検査条件を決定していた。対象物6をカメラ2で撮像
するために、停止させたベルトコンベア7上の対象物6
を撮像していた。しかしながら、検査中はベルトコンベ
ア7は動作しており、検査条件決定時(ベルトコンベア
7が停止している時)に撮像した画像と、検査時(ベル
トコンベア7が動作している時)の画像とが異なってい
た。このため、検査条件設定時に求めた検査条件が必ず
しも実際の検査時に適切でないという問題点を生じてい
た。
However, in the prior art, in order to determine the inspection condition corresponding to the object 6, the object 6 is imaged by the camera 2, and the inspection condition corresponding to the captured image is determined. Was. In order to image the object 6 with the camera 2, the object 6 on the stopped belt conveyor 7
Was imaged. However, during the inspection, the belt conveyor 7 is operating, and an image captured when the inspection conditions are determined (when the belt conveyor 7 is stopped) and an image captured during the inspection (when the belt conveyor 7 is operating). And was different. For this reason, there has been a problem that the inspection conditions obtained at the time of setting the inspection conditions are not always appropriate at the time of actual inspection.

【0010】例えば、光電スイッチ5で対象物6の進入
を検出し、カメラ2で対象物6を撮像する場合、撮像領
域8内の対象物6の位置が、検査条件設定時と実際の検
査時との間で異なる場合がある。検査時にベルトコンベ
ア7は常に移動しているため、検査条件設定時に、ベル
トコンベア7上で光電スイッチ5が対象物6を検出する
位置に、その対象物6を正確に配置することができない
ためである。
For example, when the entry of the object 6 is detected by the photoelectric switch 5 and the image of the object 6 is taken by the camera 2, the position of the object 6 in the imaging area 8 is determined when the inspection conditions are set and when the actual inspection is performed. And may be different. Because the belt conveyor 7 is always moving at the time of inspection, the target object 6 cannot be accurately arranged at a position where the photoelectric switch 5 detects the object 6 on the belt conveyor 7 at the time of setting the inspection conditions. is there.

【0011】さらに、検査時において移動するベルトコ
ンベア7上の対象物6を撮像した場合には、対象物が移
動しているため、ぶれた画像データに基づいて検査する
ことがある。一方、検査条件設定時において、静止した
対象物を撮像した場合には、対象物6がぶれていない画
像に基づいて検査条件が設定される。このように、検査
時に移動する対象物6を撮像した画像と、検査条件設定
時に静止した対象物6を撮像した画像とでは異なってい
る場合がある。
Further, when an image of the object 6 on the moving belt conveyor 7 is taken at the time of inspection, the inspection may be performed based on blurred image data because the object is moving. On the other hand, when an image of a stationary object is taken at the time of setting the inspection condition, the inspection condition is set based on an image in which the object 6 is not blurred. As described above, there is a case where an image obtained by capturing the moving object 6 at the time of the inspection is different from an image obtained by capturing the stationary object 6 at the time of setting the inspection condition.

【0012】さらには、通常、検査条件設定時には、良
品の対象物のみを検査条件設定に用いるが、良品とはい
えそれぞれの対象物には、わずかながら形状や模様など
の個体差が存在する。従って、良品の対象物を適度に入
れ替えて検査条件を設定する必要があり、煩雑であると
いう問題点があった。
Furthermore, when setting the inspection conditions, usually, only non-defective objects are used for setting the inspection conditions. However, although the objects are non-defective, there are slight individual differences such as shapes and patterns in each of the objects. Therefore, it is necessary to set the inspection conditions by appropriately replacing non-defective objects, and there is a problem that the inspection is complicated.

【0013】この発明は、これらの問題点に着目してな
されたものであって、検査条件設定時と実際の検査時と
で検査環境を同じにして、検査条件を設定できるように
すること、さらには、対象物の個体差を考慮して検査条
件を設定することを技術課題としている。
[0013] The present invention has been made in view of these problems, and is to make it possible to set the inspection conditions by setting the inspection environment the same at the time of setting the inspection conditions and at the time of the actual inspection. Further, it is a technical task to set an inspection condition in consideration of an individual difference of an object.

【0014】[0014]

【課題を解決するための手段】請求項1、2及び4の発
明は、順次移動する対象物列のうち、それぞれの対象物
が撮像領域に進入したことを順次検出し、検出の度に対
象物を撮像し、撮像の度に検査条件を変更し、撮像する
ことによって得られる画像信号に基づいて、検査に適し
た検査条件を設定することを特徴としている。
According to the first, second and fourth aspects of the present invention, it is possible to sequentially detect that each of the objects in the sequentially moving object sequence has entered the imaging area, It is characterized in that an object is imaged, an inspection condition is changed each time an image is captured, and an inspection condition suitable for the inspection is set based on an image signal obtained by imaging.

【0015】請求項3の発明は、順次移動する対象物列
のうち、それぞれの対象物が撮像領域に進入したことを
順次検出し、検出の度に対象物をカメラで撮像し、撮像
の度にカメラのシャッタ速度を変更し、撮像することに
よって得られる画像信号に基づいて、検査に適したシャ
ッタ速度を設定することを特徴としている。
According to a third aspect of the present invention, in the sequence of sequentially moving objects, it is sequentially detected that each object has entered the imaging area, and the object is imaged by the camera each time the object is detected. The present invention is characterized in that the shutter speed of the camera is changed and a shutter speed suitable for inspection is set based on an image signal obtained by imaging.

【0016】[0016]

【発明の実施の形態】この発明の実施の形態にかかる検
査装置の検査時の処理は従来の技術の欄で説明したもの
と同じであるので、検査装置の検査に関する説明を省略
する。従来技術と異なる検査条件設定について説明す
る。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The processing at the time of inspection of an inspection apparatus according to an embodiment of the present invention is the same as that described in the section of the prior art, so that the description of the inspection of the inspection apparatus will be omitted. An inspection condition setting different from that of the related art will be described.

【0017】検査条件設定時は、ベルトコンベア7は動
作しており、ベルトコンベア7上の対象物6が、一定の
速度で矢印の方向へ、移動している。対象物6がカメラ
1の撮像領域8に進入したことを検出する光電スイッチ
5がベルトコンベア7の脇に設置されている。光電スイ
ッチ5は、対象物6の撮像領域8への進入を検出する
と、進入検出信号を画像処理部4へ出力する。画像処理
部4は、進入検出信号を受け取ったことに応じてカメラ
2で対象物を撮像させ、画像信号を得る、これを所定回
数、検査条件を撮像の都度変更して繰り返す。そして、
得られた画像信号を画像処理することによって、最も検
査に適切な画像信号を決定し、それに対応する検査条件
を決定する。
When the inspection conditions are set, the belt conveyor 7 is operating, and the object 6 on the belt conveyor 7 is moving at a constant speed in the direction of the arrow. A photoelectric switch 5 for detecting that the object 6 has entered the imaging area 8 of the camera 1 is installed beside the belt conveyor 7. When the photoelectric switch 5 detects the entry of the object 6 into the imaging area 8, the photoelectric switch 5 outputs an entry detection signal to the image processing unit 4. The image processing unit 4 causes the camera 2 to image the object in response to receiving the entry detection signal, obtains an image signal, and repeats this process a predetermined number of times, changing the inspection condition each time the image is captured. And
By performing image processing on the obtained image signal, an image signal most suitable for inspection is determined, and an inspection condition corresponding thereto is determined.

【0018】検査装置1の構成例を説明する。図1に検
査装置1の構成例を示す。カメラ2は、レンズ10、絞
り系11、受光部12、画像信号変換部13、シャッタ
速度調整部14をシャッタ速度制御部15を備えてい
る。
A configuration example of the inspection apparatus 1 will be described. FIG. 1 shows a configuration example of the inspection apparatus 1. The camera 2 includes a lens 10, an aperture system 11, a light receiving unit 12, an image signal converting unit 13, a shutter speed adjusting unit 14, and a shutter speed control unit 15.

【0019】撮像しようとする映像がレンズ10及び絞
り系11を介して受光部12で受光され映像信号が画像
信号変換部13に出力される。出力された映像信号は、
画像信号に変換されて、画像処理部4へ出力される。画
像処理部4は、画像信号を受け取ると、画像信号を画像
データに変換する。この画像データに基づいて検査条件
を決定する。
An image to be picked up is received by a light receiving section 12 through a lens 10 and an aperture system 11, and a video signal is output to an image signal converting section 13. The output video signal is
It is converted into an image signal and output to the image processing unit 4. Upon receiving the image signal, the image processing unit 4 converts the image signal into image data. Inspection conditions are determined based on the image data.

【0020】受光部12は、CCD撮像素子を用いてお
り、電子シャッタ式の撮像手段を用いている。シャッタ
速度制御部14は、受光部12のCCD撮像素子の電荷
蓄積時間を制御することによって、画像の明度を変更さ
せる。
The light receiving section 12 uses a CCD image pickup device, and uses an electronic shutter type image pickup means. The shutter speed control unit 14 changes the brightness of the image by controlling the charge accumulation time of the CCD image sensor of the light receiving unit 12.

【0021】光電スイッチ5は、撮像領域内への対象物
の進入を検出した場合に、進入検出信号を画像処理部4
へ出力する。照明装置3は、撮像タイミングに応じてカ
メラ2の撮像領域の対象物6に対して照明するか、もし
くは常に撮像領域に対して照明している。
The photoelectric switch 5 outputs an entry detection signal to the image processing unit 4 when detecting entry of an object into the image pickup area.
Output to The illumination device 3 illuminates the target 6 in the imaging region of the camera 2 or constantly illuminates the imaging region according to the imaging timing.

【0022】次に、画像処理部4の検査条件設定の処理
について、フローチャートを用いて説明する。検査条件
設定処理のフローチャートが図2に示されている。な
お、図中の「ST」は、本文中の「ステップ」に対応す
る。
Next, the processing for setting the inspection conditions of the image processing section 4 will be described with reference to a flowchart. FIG. 2 shows a flowchart of the inspection condition setting process. Note that “ST” in the figure corresponds to “step” in the text.

【0023】まず、光電スイッチ6からの進入検出信号
が画像処理部4に入力されたかどうかを判別する(ステ
ップ1)。進入検出信号があるまで、以後の処理は行わ
れない。進入検出信号が入力された場合に、画像処理部
4は、カメラ2によって対象物を撮像させる(ステップ
2)。そして、撮像することによってカメラ2から出力
された画像信号を画像データに変換し、この画像データ
に関して検査の適合度を算出する(ステップ3)。検査
の適合度の算出については、後述する。また、このと
き、撮像時における検査条件の値と算出した適合度とを
対応づけて画像処理部4で記憶しておく。本発明の実施
の形態では、検査条件の一つとしてシャッタ速度を用い
ており、ここではシャッタ速度の値を記憶しておく。
First, it is determined whether an entry detection signal from the photoelectric switch 6 has been input to the image processing unit 4 (step 1). No further processing is performed until there is an entry detection signal. When the entry detection signal is input, the image processing unit 4 causes the camera 2 to image the target (Step 2). Then, the image signal output from the camera 2 is converted into image data by taking an image, and the fitness of the inspection is calculated for the image data (step 3). The calculation of the degree of conformity of the inspection will be described later. At this time, the image processing unit 4 stores the value of the inspection condition at the time of imaging in association with the calculated conformity. In the embodiment of the present invention, the shutter speed is used as one of the inspection conditions, and the value of the shutter speed is stored here.

【0024】次に、検査条件を変更する(ステップ
4)。本実施の形態では、検査条件の一つとしてとし
て、シャッタ速度を変更する。シャッタ速度の他の検査
条件としては、照明の明るさ、絞りなどがある。照明の
明るさを変更する場合には、照明装置3の照明の明るさ
を制御する明るさ制御部を検査装置1の構成に加えれば
よい。また、絞りを変更する場合には、絞り系11の絞
り量を制御する絞り制御部を検査装置1の構成に加えれ
ばよい。必要に応じて、特定の検査条件を指定すること
によって、検査条件設定処理が行われる。
Next, the inspection conditions are changed (step 4). In the present embodiment, the shutter speed is changed as one of the inspection conditions. Other inspection conditions for the shutter speed include the brightness of the illumination and the aperture. When changing the brightness of the illumination, a brightness control unit for controlling the brightness of the illumination of the illumination device 3 may be added to the configuration of the inspection device 1. When changing the aperture, an aperture control unit for controlling the aperture amount of the aperture system 11 may be added to the configuration of the inspection apparatus 1. The inspection condition setting process is performed by designating a specific inspection condition as needed.

【0025】それぞれ変更された検査条件で、カメラ2
が所定回数だけ対象物6を撮像したかどうかを画像処理
部4が判別し、所定回数まで達するまで検査条件を変え
てカメラ2による撮像が行われる(ステップ5)。所定
回数まで撮像された場合は、算出された適合度の中か
ら、最も良い値の適合度を求め、画像処理部4に記憶さ
れている検査条件と適合度の中から、それに対応する検
査条件を決定する。シャッタ速度の適合度の場合は、予
め決められた適合度に最も近いものが最も良い適合度と
して求められる。また、算出された複数の適合度の中か
ら2、3の適合度を決定し、それぞれの適合度に対応す
る検査条件の値の平均値を算出して、検査条件を決定し
てもよい。
Under the changed inspection conditions, the camera 2
The image processing unit 4 determines whether or not the object 6 has been imaged a predetermined number of times, and the camera 2 performs imaging under different inspection conditions until the predetermined number of times is reached (step 5). When the images have been imaged up to the predetermined number of times, the best value of the degree of matching is determined from the calculated degrees of matching, and the inspection conditions corresponding to the inspection conditions and the degrees of matching stored in the image processing unit 4 are determined. To determine. In the case of the suitability of the shutter speed, the closest suitability to the predetermined suitability is obtained as the best suitability. Alternatively, two or three degrees of fitness may be determined from the plurality of degrees of fitness calculated, and the average of the values of the inspection conditions corresponding to each degree of fitness may be calculated to determine the inspection conditions.

【0026】そして、求められた検査条件で検査装置2
が設定され、実際の対象物2の検査が行われる。
The inspection apparatus 2 is operated under the determined inspection conditions.
Is set, and the actual inspection of the object 2 is performed.

【0027】最後に、シャッタ速度に関する画像の検査
の適合度の算出を説明する。まず、対象物の表面が無地
であるものについて適合度を算出する場合について説明
する。シャッタ速度を変更することによって、得られる
画像の明度が変化する。したがって、最適な検査条件で
検査するためには、得られる画像の明度が適切な値にな
るように、シャッタ速度を設定することが必要になる。
得られる画像データが濃淡画像データの場合を考える。
縦の画素数がM,横の画素数がNで、計M×Nの画素数
の濃淡画像データを取得した場合、各画素の濃淡値をI
(i,j)とする。ただし、i=0、1、2、、、、M
−1、j=0、1、2、、、、N−1である。この場合
の画像の平均明度Dは、次の式(1)によって求まる。
Finally, the calculation of the degree of conformity of the image inspection with respect to the shutter speed will be described. First, a description will be given of a case where the degree of conformity is calculated for an object whose surface is plain. By changing the shutter speed, the brightness of the obtained image changes. Therefore, in order to perform inspection under the optimum inspection conditions, it is necessary to set the shutter speed so that the brightness of the obtained image becomes an appropriate value.
Consider a case where the obtained image data is grayscale image data.
When the number of pixels in the vertical direction is M and the number of pixels in the horizontal direction is N, and gray-scale image data of a total of M × N pixels is obtained, the gray-scale value of each pixel is represented by I
(I, j). Where i = 0, 1, 2,..., M
−1, j = 0, 1, 2,..., N−1. The average brightness D of the image in this case is obtained by the following equation (1).

【0028】[0028]

【数1】 この式で算出される平均明度が予め決められている基準
平均明度に最も近い場合の画像を撮像した時の、シャッ
タ速度の値を検査条件に設定すればよい。
(Equation 1) The value of the shutter speed at the time of capturing an image when the average brightness calculated by this equation is closest to the predetermined reference average brightness may be set as the inspection condition.

【0029】次に、対象物の表面に文字などの模様があ
るものについての適合度を算出する場合について説明す
る。検査に適した画像とは、コントラストがはっきりし
ている画像である。すなわち、画像の分散値が最も大き
い画像が検査に適している。縦の画素数がM,横の画素
数がNで、計M×Nの画素数の濃淡画像データを取得し
た場合、各画素の濃淡値をI(i,j)とする。ただ
し、i=0、1、2、、、、M−1、j=0、1、
2、、、、N−1である。この場合の画像の分散値は、
次の式(2)によって求まる。
Next, a description will be given of a case where the degree of conformity is calculated for an object having a pattern such as a character on the surface of the object. An image suitable for inspection is an image having a clear contrast. That is, the image having the largest variance of the image is suitable for the inspection. When the number of pixels in the vertical direction is M and the number of pixels in the horizontal direction is N, and when gray-scale image data having a total number of M × N pixels is acquired, the gray-scale value of each pixel is defined as I (i, j). Where i = 0, 1, 2,..., M−1, j = 0, 1,
2, ..., N-1. The variance of the image in this case is
It is obtained by the following equation (2).

【0030】[0030]

【数2】 この式で算出される分散値が最も大きな場合の画像を撮
像した時の、シャッタ速度の値を検査条件に設定すれば
よい。
(Equation 2) What is necessary is just to set the value of the shutter speed at the time of capturing the image when the variance value calculated by this formula is the largest as the inspection condition.

【0031】[0031]

【発明の効果】請求項1、請求項2及び請求項4の発明
では、撮像領域に対象物が進入する度に、対象物を撮像
し、シャッタ速度などの検査条件を変更することによっ
て、画像データを取得し、それぞれの画像データに基づ
いて検査に適した検査条件を設定しているので、実際の
検査の時と同じ環境で検査条件を設定でき、さらには、
対象物の個体差を考慮して検査条件を設定することがで
きる。
According to the first, second and fourth aspects of the present invention, each time an object enters the image pickup area, the image of the object is taken and the inspection conditions such as the shutter speed are changed to obtain an image. Since the data is acquired and the inspection conditions suitable for the inspection are set based on the respective image data, the inspection conditions can be set in the same environment as the actual inspection, and furthermore,
Inspection conditions can be set in consideration of individual differences of the object.

【0032】請求項3の発明では、検査条件としてシャ
ッタ速度を変更して撮像することによって、検査に適し
た明度で検査条件を設定することができる。
According to the third aspect of the present invention, by changing the shutter speed as an inspection condition and imaging an image, the inspection condition can be set with lightness suitable for the inspection.

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

【図1】検査装置の構成を示すブロック図である。FIG. 1 is a block diagram illustrating a configuration of an inspection device.

【図2】検査装置の検査条件設定の処理を示すフローチ
ャートである。
FIG. 2 is a flowchart illustrating a process of setting an inspection condition of the inspection apparatus.

【図3】検査装置の外観を示す外観図である。FIG. 3 is an external view showing an external appearance of the inspection device.

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

1 検査装置 2 カメラ 3 照明装置 4 画像処理部 5 光電スイッチ 6 対象物 7 ベルトコンベア 8 撮像領域 10 レンズ 11 絞り系 12 受光部 13 画像信号変換部 14 シャッタ速度制御部 DESCRIPTION OF SYMBOLS 1 Inspection apparatus 2 Camera 3 Lighting device 4 Image processing unit 5 Photoelectric switch 6 Object 7 Belt conveyor 8 Image pickup area 10 Lens 11 Aperture system 12 Light receiving unit 13 Image signal conversion unit 14 Shutter speed control unit

─────────────────────────────────────────────────────
────────────────────────────────────────────────── ───

【手続補正書】[Procedure amendment]

【提出日】平成11年5月27日[Submission date] May 27, 1999

【手続補正1】[Procedure amendment 1]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】全文[Correction target item name] Full text

【補正方法】変更[Correction method] Change

【補正内容】[Correction contents]

【書類名】 明細書[Document Name] Statement

【発明の名称】 検査条件決定装置、検査装置及びシャ
ッタ速度決定装置
Patent application title: Inspection condition determination device, inspection device and shutter speed determination device

【特許請求の範囲】[Claims]

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

【0001】[0001]

【発明の属する技術分野】本発明は、順次移動する対象
物列に対してそれぞれの対象物を検査する技術に関する
もので、特にその検査条件を対象物に適した条件に変更
する検査条件決定装置、検査条件決定方法及び検査装置
に関する。例えば、ベルトコンベア上を流れてくる各対
象物を検出し、対象物を撮像することによって、対象物
を検査する検査装置のシャッタ速度などの検査条件を変
更することに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a technique for inspecting a sequentially moving object row for each object, and more particularly to an inspection condition determining apparatus for changing the inspection conditions to conditions suitable for the object. , An inspection condition determination method and an inspection apparatus. For example, the present invention relates to changing inspection conditions such as a shutter speed of an inspection device that inspects an object by detecting each object flowing on a belt conveyor and imaging the object.

【0002】[0002]

【従来の技術】従来、順次移動してくる対象物列のう
ち、それぞれの対象物が撮像領域に進入したことを検出
して、対象物を撮像し、撮像することによって得られた
それぞれの画像データに基づいて、それぞれの対象物を
検査する検査装置が存在する。
2. Description of the Related Art Conventionally, of a sequence of sequentially moving objects, each of the images obtained by detecting that each object has entered an imaging area, imaging the object, and imaging the object. There is an inspection device that inspects each object based on data.

【0003】この検査装置では、対象物を適切な検査条
件で設定するために検査条件が変更できるようになって
いる。そのため、さまざまな検査条件で、対象物を撮像
し、撮像することによって得られた画像データの中から
最も検査に適している画像データを抽出しその画像デー
タを撮像したときの検査条件に設定してる。
In this inspection apparatus, inspection conditions can be changed in order to set an object under appropriate inspection conditions. Therefore, under various inspection conditions, an object is imaged, and image data most suitable for inspection is extracted from image data obtained by imaging, and set as inspection conditions when the image data is imaged. We have that.

【0004】図3は、上記検査装置で対象物を検査した
場合の外観を示している。検査装置1は、カメラ2、照
明装置3、画像処理部4及び光電スイッチ5から構成さ
れている。検査の間、対象物6の列はベルトコンベア7
によって順次矢印の方向へ移動する。光電スイッチ5
は、カメラ2の撮像領域8に対象物6が進入したことを
画像処理部6に出力する。ここで、撮像領域8は、一つ
の対象物6のみが入る大きさに設定されている。もしく
は、撮像領域8に一つの対象物6のみが入るように対象
物同士の間隔が空けられて対象物6の列が作られてい
る。画像処理部4は、光電スイッチ5から対象物が撮像
領域に進入したことを示す進入検出信号を受け付けたこ
とに応じて、カメラ2に対象物6を撮像させる。カメラ
2は、撮像したことによって取得した画像信号を画像処
理部4に出力する。
FIG. 3 shows an external appearance when an object is inspected by the inspection apparatus. The inspection device 1 includes a camera 2, a lighting device 3, an image processing unit 4, and a photoelectric switch 5. During the inspection, the rows of objects 6 are
Move sequentially in the direction of the arrow. Photoelectric switch 5
Outputs to the image processing unit 6 that the object 6 has entered the imaging area 8 of the camera 2. Here, the imaging region 8 is set to have a size that allows only one target object 6 to enter. Alternatively, the rows of the target objects 6 are formed with an interval between the target objects so that only one target object 6 enters the imaging region 8. The image processing unit 4 causes the camera 2 to image the object 6 in response to receiving an entry detection signal indicating that the object has entered the imaging area from the photoelectric switch 5. The camera 2 outputs an image signal obtained by capturing an image to the image processing unit 4.

【0005】画像処理部4は、受け取った画像信号を画
像データに変換して、画像処理することによって特徴量
を算出し、予め登録されている基準特徴量と、実際に撮
像することによって得られた特徴量との相関値を求める
などして比較することによって対象物6の良否などの検
査を行う。
[0005] The image processing unit 4 converts the received image signal into image data, performs image processing to calculate a feature amount, and obtains a reference feature amount registered in advance and actual imaging. Inspection of the quality of the target object 6 is performed by obtaining a correlation value with the obtained feature amount and comparing the values.

【0006】ここで、照明装置3は、撮像の度に照明し
てもよいし、常に照明していてもよい。なお、ここで
は、カメラ2と照明装置3とが一体に構成されている。
画像処理部4で、画像データを画像処理し、対象物の検
査結果を外部に出力する。
Here, the illumination device 3 may illuminate each time an image is taken, or may always illuminate. Here, the camera 2 and the lighting device 3 are integrally configured.
The image processing unit 4 performs image processing on the image data, and outputs an inspection result of the object to the outside.

【0007】そして、カメラ2を用いて対象物6を検査
する場合、適切な画像信号を得る必要がある。この場
合、カメラ2のシャッタ速度、照明の明るさ及び撮像領
域などの検査条件を適切な値に設定しなければならな
い。
When inspecting the object 6 using the camera 2, it is necessary to obtain an appropriate image signal. In this case, inspection conditions such as the shutter speed, illumination brightness, and imaging area of the camera 2 must be set to appropriate values.

【0008】従来、これらの検査条件を設定するため
に、ベルトコンベア7を停止させ、カメラ2の撮像領域
8内に静止した対象物6を配置して、カメラによる撮像
の度に検査条件を変更してカメラ2で対象物を撮像し、
それぞれの検査条件に対応した対象物の画像信号を取得
し、その画像信号を画像処理することで取得した画像信
号の中で最も検査に適した画像信号を決定し、その最も
適した画像信号を取得したときの検査条件の値を求めて
いた。そして、この求まった値で検査装置1の検査条件
を設定し、実際に対象物6を順次検査している。
Conventionally, in order to set these inspection conditions, the belt conveyor 7 is stopped, the stationary object 6 is arranged in the imaging area 8 of the camera 2, and the inspection conditions are changed every time an image is taken by the camera. Camera 2 to image the object
The image signal of the object corresponding to each inspection condition is acquired, and the image signal which is most suitable for the inspection is determined among the image signals acquired by performing image processing on the image signal, and the most suitable image signal is determined. The value of the inspection condition at the time of acquisition was determined. Then, the inspection conditions of the inspection apparatus 1 are set with the obtained values, and the object 6 is actually inspected sequentially.

【0009】[0009]

【発明が解決しようとする課題】しかしながら、従来の
技術では、対象物6に対応した検査条件を決定するため
に、対象物6をカメラ2で撮像し、その撮像画像に応じ
た検査条件を決定していた。対象物6をカメラ2で撮像
するために、停止させたベルトコンベア7上の対象物6
を撮像していた。しかしながら、検査中はベルトコンベ
ア7は動作しており、検査条件決定時(ベルトコンベア
7が停止している時)に撮像した画像と、検査時(ベル
トコンベア7が動作している時)の画像とが異なってい
た。このため、検査条件設定時に求めた検査条件が必ず
しも実際の検査時に適切でないという問題点を生じてい
た。
However, in the prior art, in order to determine the inspection condition corresponding to the object 6, the object 6 is imaged by the camera 2, and the inspection condition corresponding to the captured image is determined. Was. In order to image the object 6 with the camera 2, the object 6 on the stopped belt conveyor 7
Was imaged. However, during the inspection, the belt conveyor 7 is operating, and an image captured when the inspection conditions are determined (when the belt conveyor 7 is stopped) and an image captured during the inspection (when the belt conveyor 7 is operating). And was different. For this reason, there has been a problem that the inspection conditions obtained at the time of setting the inspection conditions are not always appropriate at the time of actual inspection.

【0010】例えば、光電スイッチ5で対象物6の進入
を検出し、カメラ2で対象物6を撮像する場合、撮像領
域8内の対象物6の位置が、検査条件設定時と実際の検
査時との間で異なる場合がある。検査時にベルトコンベ
ア7は常に移動しているため、検査条件設定時に、ベル
トコンベア7上で光電スイッチ5が対象物6を検出する
位置に、その対象物6を正確に配置することができない
ためである。
For example, when the entry of the object 6 is detected by the photoelectric switch 5 and the image of the object 6 is taken by the camera 2, the position of the object 6 in the imaging area 8 is determined when the inspection conditions are set and when the actual inspection is performed. And may be different. Because the belt conveyor 7 is always moving at the time of inspection, the target object 6 cannot be accurately arranged at a position where the photoelectric switch 5 detects the object 6 on the belt conveyor 7 at the time of setting the inspection conditions. is there.

【0011】さらに、検査時において移動するベルトコ
ンベア7上の対象物6を撮像した場合には、対象物が移
動しているため、ぶれた画像データに基づいて検査する
ことがある。一方、検査条件設定時において、静止した
対象物を撮像した場合には、対象物6がぶれていない画
像に基づいて検査条件が設定される。このように、検査
時に移動する対象物6を撮像した画像と、検査条件設定
時に静止した対象物6を撮像した画像とでは異なってい
る場合がある。
Further, when an image of the object 6 on the moving belt conveyor 7 is taken at the time of inspection, the inspection may be performed based on blurred image data because the object is moving. On the other hand, when an image of a stationary object is taken at the time of setting the inspection condition, the inspection condition is set based on an image in which the object 6 is not blurred. As described above, there is a case where an image obtained by capturing the moving object 6 at the time of the inspection is different from an image obtained by capturing the stationary object 6 at the time of setting the inspection condition.

【0012】さらには、通常、検査条件設定時には、良
品の対象物のみを検査条件設定に用いるが、良品とはい
えそれぞれの対象物には、わずかながら形状や模様など
の個体差が存在する。従って、良品の対象物を適度に入
れ替えて検査条件を設定する必要があり、煩雑であると
いう問題点があった。
Furthermore, when setting the inspection conditions, usually, only non-defective objects are used for setting the inspection conditions. However, although the objects are non-defective, there are slight individual differences such as shapes and patterns in each of the objects. Therefore, it is necessary to set the inspection conditions by appropriately replacing non-defective objects, and there is a problem that the inspection is complicated.

【0013】この発明は、これらの問題点に着目してな
されたものであって、検査条件設定時と実際の検査時と
で検査環境を同じにして、検査条件を設定できるように
すること、さらには、対象物の個体差を考慮して検査条
件を設定することを技術課題としている。
[0013] The present invention has been made in view of these problems, and is to make it possible to set the inspection conditions by setting the inspection environment the same at the time of setting the inspection conditions and at the time of the actual inspection. Further, it is a technical task to set an inspection condition in consideration of an individual difference of an object.

【0014】[0014]

【課題を解決するための手段】請求項1及び2の発明
は、順次移動する対象物列のうち、それぞれの対象物が
撮像領域に進入したことを順次検出し、検出の度に対象
物を撮像し、撮像の度に検査条件を変更し、撮像するこ
とによって得られる画像信号に基づいて、検査に適した
検査条件を設定することを特徴としている。
According to the first and second aspects of the present invention, in a sequence of sequentially moving objects, it is sequentially detected that each of the objects has entered the imaging area, and each time the object is detected, the object is detected. It is characterized in that imaging conditions are changed each time imaging is performed, and inspection conditions suitable for inspection are set based on an image signal obtained by imaging.

【0015】請求項3の発明は、順次移動する対象物列
のうち、それぞれの対象物が撮像領域に進入したことを
順次検出し、検出の度に対象物をカメラで撮像し、撮像
の度にカメラのシャッタ速度を変更し、撮像することに
よって得られる画像信号に基づいて、検査に適したシャ
ッタ速度を設定することを特徴としている。
According to a third aspect of the present invention, in the sequence of sequentially moving objects, it is sequentially detected that each object has entered the imaging area, and the object is imaged by the camera each time the object is detected. The present invention is characterized in that the shutter speed of the camera is changed and a shutter speed suitable for inspection is set based on an image signal obtained by imaging.

【0016】[0016]

【発明の実施の形態】この発明の実施の形態にかかる検
査装置の検査時の処理は従来の技術の欄で説明したもの
と同じであるので、検査装置の検査に関する説明を省略
する。従来技術と異なる検査条件設定について説明す
る。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The processing at the time of inspection of an inspection apparatus according to an embodiment of the present invention is the same as that described in the section of the prior art, so that the description of the inspection of the inspection apparatus will be omitted. An inspection condition setting different from that of the related art will be described.

【0017】検査条件設定時は、ベルトコンベア7は動
作しており、ベルトコンベア7上の対象物6が、一定の
速度で矢印の方向へ、移動している。対象物6がカメラ
1の撮像領域8に進入したことを検出する光電スイッチ
5がベルトコンベア7の脇に設置されている。光電スイ
ッチ5は、対象物6の撮像領域8への進入を検出する
と、進入検出信号を画像処理部4へ出力する。画像処理
部4は、進入検出信号を受け取ったことに応じてカメラ
2で対象物を撮像させ、画像信号を得る、これを所定回
数、検査条件を撮像の都度変更して繰り返す。そして、
得られた画像信号を画像処理することによって、最も検
査に適切な画像信号を決定し、それに対応する検査条件
を決定する。
When the inspection conditions are set, the belt conveyor 7 is operating, and the object 6 on the belt conveyor 7 is moving at a constant speed in the direction of the arrow. A photoelectric switch 5 for detecting that the object 6 has entered the imaging area 8 of the camera 1 is installed beside the belt conveyor 7. When the photoelectric switch 5 detects the entry of the object 6 into the imaging region 8, the photoelectric switch 5 outputs an entry detection signal to the image processing unit 4. The image processing unit 4 causes the camera 2 to image the object in response to receiving the entry detection signal, obtains an image signal, and repeats this process a predetermined number of times, changing the inspection condition each time the image is captured. And
By performing image processing on the obtained image signal, an image signal most suitable for inspection is determined, and an inspection condition corresponding thereto is determined.

【0018】検査装置1の構成例を説明する。図1に検
査装置1の構成例を示す。カメラ2は、レンズ10、絞
り系11、受光部12、画像信号変換部13、シャッタ
速度調整部14シャッタ速度制御部15を備えてい
る。
A configuration example of the inspection apparatus 1 will be described. FIG. 1 shows a configuration example of the inspection apparatus 1. The camera 2 includes a lens 10, an aperture system 11, a light receiving unit 12, an image signal conversion unit 13, a shutter speed adjustment unit 14 , and a shutter speed control unit 15.

【0019】撮像しようとする映像がレンズ10及び絞
り系11を介して受光部12で受光され映像信号が画像
信号変換部13に出力される。出力された映像信号は、
画像信号に変換されて、画像処理部4へ出力される。画
像処理部4は、画像信号を受け取ると、画像信号を画像
データに変換する。この画像データに基づいて検査条件
を決定する。
An image to be picked up is received by a light receiving section 12 through a lens 10 and an aperture system 11, and a video signal is output to an image signal converting section 13. The output video signal is
It is converted into an image signal and output to the image processing unit 4. Upon receiving the image signal, the image processing unit 4 converts the image signal into image data. Inspection conditions are determined based on the image data.

【0020】受光部12は、CCD撮像素子を用いてお
り、電子シャッタ式の撮像手段を用いている。シャッタ
速度制御部14は、受光部12のCCD撮像素子の電荷
蓄積時間を制御することによって、画像の明度を変更さ
せる。
The light receiving section 12 uses a CCD image pickup device, and uses an electronic shutter type image pickup means. The shutter speed control unit 14 changes the brightness of the image by controlling the charge accumulation time of the CCD image sensor of the light receiving unit 12.

【0021】光電スイッチ5は、撮像領域内への対象物
の進入を検出した場合に、進入検出信号を画像処理部4
へ出力する。照明装置3は、撮像タイミングに応じてカ
メラ2の撮像領域の対象物6に対して照明するか、もし
くは常に撮像領域に対して照明している。
The photoelectric switch 5 outputs an entry detection signal to the image processing unit 4 when detecting entry of an object into the image pickup area.
Output to The illumination device 3 illuminates the target 6 in the imaging region of the camera 2 or constantly illuminates the imaging region according to the imaging timing.

【0022】次に、画像処理部4の検査条件設定の処理
について、フローチャートを用いて説明する。検査条件
設定処理のフローチャートが図2に示されている。な
お、図中の「ST」は、本文中の「ステップ」に対応す
る。
Next, the processing for setting the inspection conditions of the image processing section 4 will be described with reference to a flowchart. FIG. 2 shows a flowchart of the inspection condition setting process. Note that “ST” in the figure corresponds to “step” in the text.

【0023】まず、光電スイッチ6からの進入検出信号
が画像処理部4に入力されたかどうかを判別する(ステ
ップ1)。進入検出信号があるまで、以後の処理は行わ
れない。進入検出信号が入力された場合に、画像処理部
4は、カメラ2によって対象物を撮像させる(ステップ
2)。そして、撮像することによってカメラ2から出力
された画像信号を画像データに変換し、この画像データ
に関して検査の適合度を算出する(ステップ3)。検査
の適合度の算出については、後述する。また、このと
き、撮像時における検査条件の値と算出した適合度とを
対応づけて画像処理部4で記憶しておく。本発明の実施
の形態では、検査条件の一つとしてシャッタ速度を用い
ており、ここではシャッタ速度の値を記憶しておく。
First, it is determined whether an entry detection signal from the photoelectric switch 6 has been input to the image processing unit 4 (step 1). No further processing is performed until there is an entry detection signal. When the entry detection signal is input, the image processing unit 4 causes the camera 2 to image the target (Step 2). Then, the image signal output from the camera 2 is converted into image data by taking an image, and the fitness of the inspection is calculated for the image data (step 3). The calculation of the degree of conformity of the inspection will be described later. At this time, the image processing unit 4 stores the value of the inspection condition at the time of imaging in association with the calculated conformity. In the embodiment of the present invention, the shutter speed is used as one of the inspection conditions, and the value of the shutter speed is stored here.

【0024】次に、検査条件を変更する(ステップ
4)。本実施の形態では、検査条件の一つとしてとし
て、シャッタ速度を変更する。シャッタ速度の他の検査
条件としては、照明の明るさ、絞りなどがある。照明の
明るさを変更する場合には、照明装置3の照明の明るさ
を制御する明るさ制御部を検査装置1の構成に加えれば
よい。また、絞りを変更する場合には、絞り系11の絞
り量を制御する絞り制御部を検査装置1の構成に加えれ
ばよい。必要に応じて、特定の検査条件を指定すること
によって、検査条件設定処理が行われる。
Next, the inspection conditions are changed (step 4). In the present embodiment, the shutter speed is changed as one of the inspection conditions. Other inspection conditions for the shutter speed include the brightness of the illumination and the aperture. When changing the brightness of the illumination, a brightness control unit for controlling the brightness of the illumination of the illumination device 3 may be added to the configuration of the inspection device 1. When changing the aperture, an aperture control unit for controlling the aperture amount of the aperture system 11 may be added to the configuration of the inspection apparatus 1. The inspection condition setting process is performed by designating a specific inspection condition as needed.

【0025】それぞれ変更された検査条件で、カメラ2
が所定回数だけ対象物6を撮像したかどうかを画像処理
部4が判別し、所定回数達するまで検査条件を変えて
カメラ2による撮像が行われる(ステップ5)。所定回
数まで撮像された場合は、算出された適合度の中から、
最も良い値の適合度を求め、画像処理部4に記憶されて
いる検査条件と適合度の中から、それに対応する検査条
件を決定する。シャッタ速度の適合度の場合は、予め決
められた適合度に最も近いものが最も良い適合度として
求められる。また、算出された複数の適合度の中から
2、3の適合度を決定し、それぞれの適合度に対応する
検査条件の値の平均値を算出して、検査条件を決定して
もよい。
Under the changed inspection conditions, the camera 2
The image processing unit 4 determines whether or not the object 6 has been imaged a predetermined number of times , and the camera 2 performs imaging under different inspection conditions until the predetermined number of times is reached (step 5). If the image has been captured up to a predetermined number of times,
The suitability of the best value is obtained, and the inspection condition corresponding to the inspection condition and the suitability stored in the image processing unit 4 is determined. In the case of the suitability of the shutter speed, the closest suitability to the predetermined suitability is obtained as the best suitability. Alternatively, two or three degrees of fitness may be determined from the plurality of degrees of fitness calculated, and the average of the values of the inspection conditions corresponding to each degree of fitness may be calculated to determine the inspection conditions.

【0026】そして、求められた検査条件で検査装置2
が設定され、実際の対象物2の検査が行われる。
The inspection apparatus 2 is operated under the determined inspection conditions.
Is set, and the actual inspection of the object 2 is performed.

【0027】最後に、シャッタ速度に関する画像の検査
の適合度の算出を説明する。まず、対象物の表面が無地
であるものについて適合度を算出する場合について説明
する。シャッタ速度を変更することによって、得られる
画像の明度が変化する。したがって、最適な検査条件で
検査するためには、得られる画像の明度が適切な値にな
るように、シャッタ速度を設定することが必要になる。
得られる画像データが濃淡画像データの場合を考える。
縦の画素数がM,横の画素数がNで、計M×Nの画素数
の濃淡画像データを取得した場合、各画素の濃淡値をI
(i,j)とする。ただし、i=0、1、2、、、、M
−1、j=0、1、2、、、、N−1である。この場合
の画像の平均明度Dは、次の式(数1)によって求ま
る。
Finally, the calculation of the degree of conformity of the image inspection with respect to the shutter speed will be described. First, a description will be given of a case where the degree of conformity is calculated for an object whose surface is plain. By changing the shutter speed, the brightness of the obtained image changes. Therefore, in order to perform inspection under the optimum inspection conditions, it is necessary to set the shutter speed so that the brightness of the obtained image becomes an appropriate value.
Consider a case where the obtained image data is grayscale image data.
When the number of pixels in the vertical direction is M and the number of pixels in the horizontal direction is N, and gray-scale image data of a total of M × N pixels is obtained, the gray-scale value of each pixel is represented by I
(I, j). Where i = 0, 1, 2,..., M
−1, j = 0, 1, 2,..., N−1. The average brightness D of the image in this case is obtained by the following equation (Equation 1).

【0028】[0028]

【数1】 この式で算出される平均明度が予め決められている基準
平均明度に最も近い場合の画像を撮像した時の、シャッ
タ速度の値を検査条件に設定すればよい。
(Equation 1) The value of the shutter speed at the time of capturing an image when the average brightness calculated by this equation is closest to the predetermined reference average brightness may be set as the inspection condition.

【0029】次に、対象物の表面に文字などの模様があ
るものについての適合度を算出する場合について説明す
る。検査に適した画像とは、コントラストがはっきりし
ている画像である。すなわち、画像の分散値が最も大き
い画像が検査に適している。縦の画素数がM,横の画素
数がNで、計M×Nの画素数の濃淡画像データを取得し
た場合、各画素の濃淡値をI(i,j)とする。ただ
し、i=0、1、2、、、、M−1、j=0、1、
2、、、、N−1である。この場合の画像の分散値は、
次の式(数2)によって求まる。
Next, a description will be given of a case where the degree of conformity is calculated for an object having a pattern such as a character on the surface of the object. An image suitable for inspection is an image having a clear contrast. That is, the image having the largest variance of the image is suitable for the inspection. When the number of pixels in the vertical direction is M and the number of pixels in the horizontal direction is N, and when gray-scale image data having a total number of M × N pixels is acquired, the gray-scale value of each pixel is defined as I (i, j). Where i = 0, 1, 2,..., M−1, j = 0, 1,
2, ..., N-1. The variance of the image in this case is
It is obtained by the following equation (Equation 2).

【0030】[0030]

【数2】 この式で算出される分散値が最も大きな場合の画像を撮
像した時の、シャッタ速度の値を検査条件に設定すれば
よい。
(Equation 2) What is necessary is just to set the value of the shutter speed at the time of capturing the image when the variance value calculated by this formula is the largest as the inspection condition.

【0031】[0031]

【発明の効果】請求項1及び請求項2の発明では、撮像
領域に対象物が進入する度に、対象物を撮像し、シャッ
タ速度などの検査条件を変更することによって、画像デ
ータを取得し、それぞれの画像データに基づいて検査に
適した検査条件を設定しているので、実際の検査の時と
同じ環境で検査条件を設定でき、さらには、対象物の個
体差を考慮して検査条件を設定することができる。
According to the first and second aspects of the present invention, each time an object enters the imaging area, the image of the object is captured, and image data is acquired by changing inspection conditions such as a shutter speed. Since the inspection conditions suitable for the inspection are set based on the respective image data, the inspection conditions can be set in the same environment as the actual inspection. Can be set.

【0032】請求項3の発明では、検査条件としてシャ
ッタ速度を変更して撮像することによって、検査に適し
た明度で検査条件を設定することができる。
According to the third aspect of the present invention, by changing the shutter speed as an inspection condition and imaging an image, the inspection condition can be set with lightness suitable for the inspection.

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

【図1】検査装置の構成を示すブロック図である。FIG. 1 is a block diagram illustrating a configuration of an inspection device.

【図2】検査装置の検査条件設定の処理を示すフローチ
ャートである。
FIG. 2 is a flowchart illustrating a process of setting an inspection condition of the inspection apparatus.

【図3】検査装置の外観を示す外観図である。FIG. 3 is an external view showing an external appearance of the inspection device.

【符号の説明】 1 検査装置 2 カメラ 3 照明装置 4 画像処理部 5 光電スイッチ 6 対象物 7 ベルトコンベア 8 撮像領域 10 レンズ 11 絞り系 12 受光部 13 画像信号変換部 14 シャッタ速度制御部[Description of Signs] 1 Inspection device 2 Camera 3 Lighting device 4 Image processing unit 5 Photoelectric switch 6 Target object 7 Belt conveyor 8 Image pickup area 10 Lens 11 Aperture system 12 Light receiving unit 13 Image signal conversion unit 14 Shutter speed control unit

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 対象物が前記撮像手段の撮像領域に進入
することを検出する対象物検出手段と、前記対象物検出
手段が対象物を検出したことに応じて対象物を撮像し、
撮像することによって取得した画像信号を出力する撮像
手段と、対象物を検査する場合の検査条件を設定する検
査条件設定手段と、前記撮像手段からの画像信号に基づ
いて、前記検査条件設定手段で設定する検査条件を決定
する検査条件決定装置において、 検査の一時的な検査条件を仮検査条件として前記検査条
件設定手段で設定し、順次移動する対象物列のうち、そ
れぞれの対象物が撮像領域に進入したことを前記検出手
段で順次検出し、検出の度に対象物を前記撮像手段で撮
像し、それぞれの撮像の度に前記検査条件設定手段で仮
検査条件を変更して設定し、撮像することによって取得
したそれぞれの画像データに基づいて、検査に適した画
像信号を取得したときの仮検査条件を決定し、その仮検
査条件に基づいて検査条件を設定することを特徴とする
検査条件決定装置。
An object detection unit configured to detect that the object enters an imaging area of the imaging unit; and an object imaged in response to the object detection unit detecting the object.
An imaging unit that outputs an image signal obtained by imaging, an inspection condition setting unit that sets an inspection condition when inspecting an object, and an inspection condition setting unit based on an image signal from the imaging unit. In the inspection condition determining apparatus for determining an inspection condition to be set, a temporary inspection condition of the inspection is set as a temporary inspection condition by the inspection condition setting means, and each of the sequentially moving object rows is an imaging area. The detection means sequentially detects that the object has entered, and each time the object is detected, the object is imaged by the imaging means. The tentative inspection conditions for obtaining an image signal suitable for the inspection are determined based on the respective image data obtained by performing the inspection, and the inspection conditions are set based on the tentative inspection conditions. An inspection condition determination device characterized by the following.
【請求項2】 対象物が前記撮像手段の撮像領域に進入
することを検出する対象物検出手段と、前記対象物検出
手段が対象物を検出したことに応じて対象物を撮像し、
撮像することによって取得した画像信号を出力する撮像
手段と、所定の検査条件を設定する検査条件設定手段
と、撮像手段からの画像信号を画像処理することによっ
て、対象物を検査する対象物検査手段を備えた検査装置
において、 検査の一時的な検査条件を仮検査条件として前記検査条
件設定手段で設定し、順次移動する対象物列のうち、そ
れぞれの対象物が撮像領域に進入したことを前記検出手
段で順次検出し、検出の度に対象物を前記撮像手段で撮
像し、それぞれの撮像の度に前記検査条件設定手段で仮
検査条件を変更して設定し、撮像することによって取得
したそれぞれの画像データに基づいて、検査に適した画
像信号を取得したときの仮検査条件を決定し、その仮検
査条件に基づいて検査条件を設定することを特徴とする
検査装置。
2. An object detection means for detecting that an object enters an imaging area of the imaging means, and an image of the object in response to the object detection means detecting the object.
An imaging unit that outputs an image signal obtained by imaging, an inspection condition setting unit that sets predetermined inspection conditions, and an object inspection unit that inspects an object by performing image processing on an image signal from the imaging unit In the inspection apparatus provided with, a temporary inspection condition of the inspection is set as a temporary inspection condition by the inspection condition setting means, and it is determined that each of the sequentially moving target rows has entered the imaging region. Detected sequentially by the detecting means, the object is imaged by the imaging means at each detection, the temporary inspection conditions are changed and set by the inspection condition setting means at each imaging, each obtained by imaging An inspection apparatus that determines a temporary inspection condition when an image signal suitable for the inspection is acquired based on the image data of the above, and sets the inspection condition based on the temporary inspection condition. .
【請求項3】 対象物が前記撮像手段の撮像領域に進入
することを検出する対象物検出手段と、前記対象物検出
手段が対象物を検出したことに応じて対象物を撮像し、
撮像することによって取得した画像信号を出力するカメ
ラと、対象物を撮像する場合のシャッタ速度を設定する
シャッタ速度設定手段と、前記撮像手段からの画像信号
に基づいて、前記シャッタ速度設定手段で設定するシャ
ッタ速度を決定するシャッタ速度決定装置において、 前記カメラの一時的なシャッタ速度を仮シャッタ速度と
して前記シャッタ速度設定手段で設定し、順次移動する
対象物列のうち、それぞれの対象物が撮像領域に進入し
たことを前記検出手段で順次検出し、検出の度に対象物
を前記カメラで撮像し、それぞれの撮像の度に前記シャ
ッタ速度設定手段で仮シャッタ速度を変更して設定し、
撮像することによって取得したそれぞれの画像データに
基づいて、検査に適した画像信号を取得したときの仮シ
ャッタ速度を決定し、その仮シャッタ速度に基づいてシ
ャッタ速度を設定することを特徴とするシャッタ速度決
定装置。
3. An object detection means for detecting that the object enters the imaging area of the imaging means, and an image of the object in response to the object detection means detecting the object,
A camera that outputs an image signal obtained by imaging, a shutter speed setting unit that sets a shutter speed when an object is imaged, and a shutter speed setting unit that sets the shutter speed based on an image signal from the imaging unit. A shutter speed determining device for determining a shutter speed to be set, wherein a temporary shutter speed of the camera is set as a temporary shutter speed by the shutter speed setting means, and each of the sequentially moving objects in the object line is an image pickup area. The detection means sequentially detects that the object has entered, the object is imaged by the camera at each detection, and the temporary shutter speed is changed and set by the shutter speed setting means at each time of imaging, and set.
A shutter characterized by determining a temporary shutter speed at the time of acquiring an image signal suitable for inspection based on respective image data acquired by imaging, and setting the shutter speed based on the temporary shutter speed. Speed determination device.
【請求項4】 順次移動する対象物列のうち、それぞれ
の対象物が撮像領域に進入したことを順次検出し、検出
の度に対象物を撮像し、撮像の度に検査条件を変更し、
撮像することによって得られる画像信号に基づいて、検
査に適した検査条件を設定する検査条件設定方法。
4. A sequentially moving object row, sequentially detecting that each object has entered the imaging area, imaging the object at each detection, changing the inspection condition at each imaging,
An inspection condition setting method for setting inspection conditions suitable for inspection based on an image signal obtained by imaging.
JP10147196A 1998-05-28 1998-05-28 Inspection condition determination device, inspection device, and shutter speed determination device Expired - Lifetime JP3035578B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10147196A JP3035578B2 (en) 1998-05-28 1998-05-28 Inspection condition determination device, inspection device, and shutter speed determination device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10147196A JP3035578B2 (en) 1998-05-28 1998-05-28 Inspection condition determination device, inspection device, and shutter speed determination device

Publications (2)

Publication Number Publication Date
JPH11339014A true JPH11339014A (en) 1999-12-10
JP3035578B2 JP3035578B2 (en) 2000-04-24

Family

ID=15424737

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10147196A Expired - Lifetime JP3035578B2 (en) 1998-05-28 1998-05-28 Inspection condition determination device, inspection device, and shutter speed determination device

Country Status (1)

Country Link
JP (1) JP3035578B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008276466A (en) * 2007-04-27 2008-11-13 Optex Fa Co Ltd Image processor
JP2021170404A (en) * 2014-04-28 2021-10-28 キヤノン株式会社 Image processing method and imaging device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06147850A (en) * 1992-11-13 1994-05-27 Nissan Motor Co Ltd Cross-sectional profile measuring equipment
JPH06325159A (en) * 1993-05-10 1994-11-25 Mitsubishi Electric Corp Image illuminance adjusting method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06147850A (en) * 1992-11-13 1994-05-27 Nissan Motor Co Ltd Cross-sectional profile measuring equipment
JPH06325159A (en) * 1993-05-10 1994-11-25 Mitsubishi Electric Corp Image illuminance adjusting method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008276466A (en) * 2007-04-27 2008-11-13 Optex Fa Co Ltd Image processor
JP2021170404A (en) * 2014-04-28 2021-10-28 キヤノン株式会社 Image processing method and imaging device

Also Published As

Publication number Publication date
JP3035578B2 (en) 2000-04-24

Similar Documents

Publication Publication Date Title
JPH05181970A (en) Moving image processor
KR20000071087A (en) Outdoor range finder
JP5481012B2 (en) Surface inspection device
JP2000193601A (en) Surface defect inspecting device
JP3871944B2 (en) Appearance inspection device
EP0443062B1 (en) Device for inspecting quality of printed matter and method thereof
US5245424A (en) Defect detection method
JP3035578B2 (en) Inspection condition determination device, inspection device, and shutter speed determination device
JPH08313454A (en) Image processing equipment
JP2001021332A (en) Surface inspecting device and its method
JPH09264856A (en) Article appearance inspection device
JP2556894B2 (en) Print quality inspection device and method
JP2009080004A (en) Inspection device
JP2009192358A (en) Defect inspection device
JP3841882B2 (en) Appearance inspection method and appearance inspection apparatus
JP3052493B2 (en) Visual recognition system
JP2876999B2 (en) Printing defect inspection equipment
JPH0735699A (en) Method and apparatus for detecting surface defect
JP3657028B2 (en) Appearance inspection device
KR102428871B1 (en) Vision test device using sequential light technic
KR200190210Y1 (en) Moving picture detection unit
JP4390903B2 (en) Surface defect inspection method and apparatus
JP3175946B2 (en) Object position measuring method and device
JPH0388079A (en) Method for recognizing object
JPS6319543A (en) Binarizing processing method for variable density picture in picture processing

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090225

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100225

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110225

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110225

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120225

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120225

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130225

Year of fee payment: 13

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140225

Year of fee payment: 14

EXPY Cancellation because of completion of term