JP3035578B2 - Inspection condition determination device, inspection device, and shutter speed determination device - Google Patents

Inspection condition determination device, inspection device, and shutter speed determination device

Info

Publication number
JP3035578B2
JP3035578B2 JP10147196A JP14719698A JP3035578B2 JP 3035578 B2 JP3035578 B2 JP 3035578B2 JP 10147196 A JP10147196 A JP 10147196A JP 14719698 A JP14719698 A JP 14719698A JP 3035578 B2 JP3035578 B2 JP 3035578B2
Authority
JP
Japan
Prior art keywords
inspection
imaging
image
inspection condition
temporary
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.)
Expired - Lifetime
Application number
JP10147196A
Other languages
Japanese (ja)
Other versions
JPH11339014A (en
Inventor
雅弘 河内
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Omron Corp
Original Assignee
Omron 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 Omron Corp 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

Landscapes

  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)
  • Image Input (AREA)
  • Image Processing (AREA)
  • Closed-Circuit Television Systems (AREA)
  • Image Analysis (AREA)

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. 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 is a slight individual difference in shape, pattern, and the like. 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 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 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, 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 in 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.

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

1 検査装置 2 カメラ 3 照明装置 4 画像処理部 5 光電スイッチ 6 対象物 7 ベルトコンベア 8 撮像領域 10 レンズ 11 絞り系 12 受光部 13 画像信号変換部 14 シャッタ速度制御部 REFERENCE SIGNS LIST 1 inspection device 2 camera 3 lighting device 4 image processing unit 5 photoelectric switch 6 object 7 belt conveyor 8 imaging area 10 lens 11 aperture system 12 light receiving unit 13 image signal conversion unit 14 shutter speed control unit

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G06T 1/00 G01N 21/89 G06T 7/00 H04N 7/18 ──────────────────────────────────────────────────続 き Continued on the front page (58) Field surveyed (Int.Cl. 7 , DB name) G06T 1/00 G01N 21/89 G06T 7/00 H04N 7/18

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 対象物が像手段の撮像領域に進入する
ことを検出する対象物検出手段と、前記対象物検出手段
が対象物を検出したことに応じて対象物を撮像し、撮像
することによって取得した画像信号を出力する撮像手段
と、対象物を検査する場合の検査条件を設定する検査条
件設定手段と、前記撮像手段からの画像信号に基づい
て、前記検査条件設定手段で設定する検査条件を決定す
る検査条件決定装置において、 検査の一時的な検査条件を仮検査条件として前記検査条
件設定手段で設定し、順次移動する対象物列のうち、そ
れぞれの対象物が撮像領域に進入したことを前記検出手
段で順次検出し、検出の度に対象物を前記撮像手段で撮
像し、それぞれの撮像の度に前記検査条件設定手段で仮
検査条件を変更して設定し、撮像することによって取得
したそれぞれの画像データに基づいて、検査に適した画
像信号を取得したときの仮検査条件を決定し、その仮検
査条件に基づいて検査条件を設定することを特徴とする
検査条件決定装置。
And object detecting means for detecting that enters the imaging area of 1. A object IMAGING means captures an object in response to said object detecting means detects an object and imaging Imaging means for outputting an image signal obtained by the above, an inspection condition setting means for setting an inspection condition when inspecting an object, and setting by the inspection condition setting means based on an image signal from the imaging means. In the inspection condition determination device for determining the inspection condition, 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 target objects enters the imaging region. That the detecting means sequentially detects the object, an image of the object is captured by the image capturing means at each detection, and the temporary inspection condition is changed and set by the inspection condition setting means at each image capturing, and the image is captured. To Determining a temporary inspection condition when an image signal suitable for the inspection is acquired based on the respective image data acquired by the above, and setting the inspection condition based on the temporary inspection condition. apparatus.
【請求項2】 対象物が像手段の撮像領域に進入する
ことを検出する対象物検出手段と、前記対象物検出手段
が対象物を検出したことに応じて対象物を撮像し、撮像
することによって取得した画像信号を出力する撮像手段
と、所定の検査条件を設定する検査条件設定手段と、撮
像手段からの画像信号を画像処理することによって、対
象物を検査する対象物検査手段を備えた検査装置におい
て、 検査の一時的な検査条件を仮検査条件として前記
検査条件設定手段で設定し、順次移動する対象物列のう
ち、それぞれの対象物が撮像領域に進入したことを前記
検出手段で順次検出し、検出の度に対象物を前記撮像手
段で撮像し、それぞれの撮像の度に前記検査条件設定手
段で仮検査条件を変更して設定し、撮像することによっ
て取得したそれぞれの画像データに基づいて、検査に適
した画像信号を取得したときの仮検査条件を決定し、そ
の仮検査条件に基づいて検査条件を設定することを特徴
とする検査装置。
And object detecting means for detecting that enters the imaging area of wherein objects IMAGING means captures an object in response to said object detecting means detects an object and imaging An imaging unit that outputs an image signal obtained by the imaging unit, 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, a temporary inspection condition of the inspection is set as a temporary inspection condition by the inspection condition setting means, and the detection means detects that each of the sequentially moving object rows has entered the imaging area. Are sequentially detected at each detection, the object is imaged by the imaging means at each detection, and the tentative inspection conditions are changed and set by the inspection condition setting means at each imaging, and each is obtained by imaging. Based on the image data, it determines a temporary test conditions when acquiring the image signal suitable for the inspection, inspection apparatus and sets the inspection conditions based on the temporary examination conditions.
【請求項3】 対象物が像手段の撮像領域に進入する
ことを検出する対象物検出手段と、前記対象物検出手段
が対象物を検出したことに応じて対象物を撮像し、撮像
することによって取得した画像信号を出力するカメラ
と、対象物を撮像する場合のシャッタ速度を設定するシ
ャッタ速度設定手段と、前記撮像手段からの画像信号に
基づいて、前記シャッタ速度設定手段で設定するシャッ
タ速度を決定するシャッタ速度決定装置において、 前記カメラの一時的なシャッタ速度を仮シャッタ速度と
して前記シャッタ速度設定手段で設定し、順次移動する
対象物列のうち、それぞれの対象物が撮像領域に進入し
たことを前記検出手段で順次検出し、検出の度に対象物
を前記カメラで撮像し、それぞれの撮像の度に前記シャ
ッタ速度設定手段で仮シャッタ速度を変更して設定し、
撮像することによって取得したそれぞれの画像データに
基づいて、検査に適した画像信号を取得したときの仮シ
ャッタ速度を決定し、その仮シャッタ速度に基づいてシ
ャッタ速度を設定することを特徴とするシャッタ速度決
定装置。
And object detecting means for detecting that enters the imaging area of wherein the object is an imaging means captures an object in response to said object detecting means detects an object and imaging A camera that outputs an image signal obtained by the above, a shutter speed setting unit that sets a shutter speed when capturing an image of an object, and a shutter that is set by the shutter speed setting unit based on an image signal from the imaging unit. In the shutter speed determination device for determining a speed, 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 target arrays enters the imaging area. The detection means sequentially detects the object, and the camera picks up an image of the object every time the detection is performed. Tsu is set to change the data rate,
A shutter characterized by determining a temporary shutter speed at the time of acquiring an image signal suitable for inspection based on each image data acquired by imaging, and setting the shutter speed based on the temporary shutter speed. Speed determination device.
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 JPH11339014A (en) 1999-12-10
JP3035578B2 true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4847390B2 (en) * 2007-04-27 2011-12-28 オプテックスエフエー株式会社 Image processing device
JP6537332B2 (en) * 2014-04-28 2019-07-03 キヤノン株式会社 Image processing method and photographing apparatus

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2924514B2 (en) * 1992-11-13 1999-07-26 日産自動車株式会社 Cross-sectional shape measuring device
JPH06325159A (en) * 1993-05-10 1994-11-25 Mitsubishi Electric Corp Image illuminance adjusting method

Also Published As

Publication number Publication date
JPH11339014A (en) 1999-12-10

Similar Documents

Publication Publication Date Title
JP4932819B2 (en) Surface inspection apparatus and method
CN113810621B (en) Time-sharing exposure and TDI parallel processing device and method applied to multi-line linear array camera
KR20000071087A (en) Outdoor range finder
KR960003873B1 (en) Method for displaying defect & the apparatus thereof
JP3570198B2 (en) Image processing method and apparatus
JP3035578B2 (en) Inspection condition determination device, inspection device, and shutter speed determination device
US5245424A (en) Defect detection method
JP3871944B2 (en) Appearance inspection device
JPH08313454A (en) Image processing equipment
JP2001021332A (en) Surface inspecting device and its method
JP2002195952A (en) Surface flaw detecting device
US6570607B1 (en) Light and shade inspecting apparatus and light and shade inspecting method
JP2841961B2 (en) Visual recognition device
JP3841882B2 (en) Appearance inspection method and appearance inspection apparatus
KR200190210Y1 (en) Moving picture detection unit
CN113533343A (en) Detection method and device based on TDI linear array camera
JPH0735699A (en) Method and apparatus for detecting surface defect
JPH0829357A (en) Appearance inspection device for automation line
JP2683248B2 (en) Inspection method of colored periodic pattern
EP4010873B1 (en) Use of an hdr image in a visual inspection process
JP4390903B2 (en) Surface defect inspection method and apparatus
JP3657028B2 (en) Appearance inspection device
JP2000162089A (en) Method and apparatus for inspection of screen
TWM622922U (en) System for automatically searching for multi-grayscale regions of interest
JP3175946B2 (en) Object position measuring method and device

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