JPH04304576A - Picture processor - Google Patents
Picture processorInfo
- Publication number
- JPH04304576A JPH04304576A JP3068612A JP6861291A JPH04304576A JP H04304576 A JPH04304576 A JP H04304576A JP 3068612 A JP3068612 A JP 3068612A JP 6861291 A JP6861291 A JP 6861291A JP H04304576 A JPH04304576 A JP H04304576A
- Authority
- JP
- Japan
- Prior art keywords
- image
- calculation
- memory
- picture
- lighting
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)
- Image Processing (AREA)
- Image Analysis (AREA)
Abstract
Description
【0001】0001
【産業上の利用分野】この発明は、画像処理装置に関し
、特に、工場内の生産ラインなどにおいて、検査面を通
過する被検査物を照明して撮像するとともに、この撮像
結果を用いて前記被検査物の良否判別処理などの識別を
行なう画像処理装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus, and particularly to an image processing apparatus that illuminates and images an object to be inspected passing through an inspection surface in a production line in a factory, and uses the result of this imaging to take an image of the object. The present invention relates to an image processing device that performs identification such as quality determination processing of inspection objects.
【0002】0002
【従来の技術】画像処理装置が用いられる工場内の検査
ラインにおいて、被検査物が刻印文字,または傷などの
ように表面の凹状態に基づいて検査されるものである場
合は、従来次のような方法で検査を行なっていた。[Prior Art] In an inspection line in a factory where an image processing device is used, when the object to be inspected is inspected based on engraved characters or concavities on the surface such as scratches, the following conventional method is used. The test was conducted in a similar manner.
【0003】第1の方法としては、撮像デバイスである
テレビカメラの撮像方向と同じ方向から、前記被検査物
に対して丸型の蛍光灯などを用いて一様光による反射照
明を施す。この照明条件のもとに撮像して得られた画像
信号を、予め定められたしきい値で2値化して、前記被
検査物の表面の凹部分によってできる影の有無、位置、
形状などを抽出し、この抽出結果に基づいて被検査物の
良否を判別処理する方法がある。[0003] As a first method, uniform reflected illumination is applied to the object to be inspected from the same direction as the imaging direction of a television camera, which is an imaging device, using a round fluorescent lamp or the like. The image signal obtained by imaging under this illumination condition is binarized using a predetermined threshold value, and the presence/absence and position of a shadow formed by a concave portion on the surface of the object to be inspected is determined.
There is a method of extracting the shape, etc., and determining whether the inspected object is good or bad based on the extraction result.
【0004】第2の方法としては、直管型蛍光灯などを
用いて、被検査物に対して斜方照明を施す。この照明条
件のもとに撮像して得られた画像信号を、予め定められ
たしきい値で2値化して、表面の凹部分によってできる
影の有無、位置、形状などを抽出して、この抽出結果に
基づいて前記被検査物の良否を判別処理するものがある
。特に、この方法では被検査物に対する照明光の入射角
を浅くすることができるため、凹部分が浅い場合でも、
影のコントラストを向上させることができるという利点
がある。[0004] As a second method, a straight tube fluorescent lamp or the like is used to provide oblique illumination to the object to be inspected. The image signal obtained by imaging under this illumination condition is binarized using a predetermined threshold value, and the presence/absence, position, shape, etc. of shadows caused by concave parts of the surface are extracted. There is a method for determining the quality of the object to be inspected based on the extraction result. In particular, with this method, the angle of incidence of the illumination light on the object to be inspected can be made shallow, so even if the concave portion is shallow,
This has the advantage that the contrast of shadows can be improved.
【0005】[0005]
【発明が解決しようとする課題】しかしながら、前述し
た第1の方法においては、被検査物の表面の凹部分の大
きさ、深さの程度によりその判別結果がまちまちである
という問題があった。つまり、前記凹部分が浅いとき影
のコントラストが悪くなったり、前記凹部分の深さに対
してその幅が無視できないほど大きいときには、前記凹
部分の底が明るく撮像されてしまったりする。そのため
に、得られた画像信号を2値化しようとしたとき前記凹
部分の有無、位置、形状を正しく抽出できないために、
被検査物の良否を正確に判別することができないという
問題点があった。However, the first method described above has a problem in that the determination results vary depending on the size and depth of the concave portion on the surface of the object to be inspected. That is, when the recessed portion is shallow, the contrast of the shadow becomes poor, and when the width of the recessed portion is so large that it cannot be ignored compared to the depth, the bottom of the recessed portion may be imaged brightly. Therefore, when attempting to binarize the obtained image signal, it is not possible to correctly extract the presence, position, and shape of the concave portion.
There is a problem in that it is not possible to accurately determine whether the inspected object is good or bad.
【0006】また前述した第2の方法においては、一方
向から照明を施しているために、前記凹部分の方向によ
って影ができる部分とできない部分が存在する。そのた
め、撮像して得られた画像信号を予め定められたしきい
値で2値化した場合、前記凹部分の位置形状を正しく抽
出することができないために、正確な良否判別が困難で
あるという問題もあった。Furthermore, in the second method described above, since illumination is applied from one direction, there are areas where shadows are formed and areas where shadows are not formed depending on the direction of the recessed portion. Therefore, when the image signal obtained by imaging is binarized using a predetermined threshold, the position and shape of the concave portion cannot be extracted correctly, making it difficult to accurately determine pass/fail. There were also problems.
【0007】それゆえにこの発明の目的は、被写体の所
定の面における凹部分または凸部分の有無、位置、形状
などを常に正しく抽出して、前記被検査物に対する識別
の精度を向上させることのできる画像処理装置を提供す
ることである。Therefore, it is an object of the present invention to always correctly extract the presence, position, shape, etc. of concave or convex portions on a predetermined surface of an object, thereby improving the accuracy of identification of the object to be inspected. An object of the present invention is to provide an image processing device.
【0008】[0008]
【課題を解決するための手段】この発明による画像処理
装置は、被写体の所定の面を撮像して得られた画像信号
を処理する画像処理装置である。詳細には前記処理装置
は前記所定面を、それぞれ異なる方向から斜方照明する
複数の光源と、予め定められた複数の点灯パターンに従
って、かつ前記点灯パターンを順次更新しながら前記複
数光源を個別に点灯制御する点灯制御手段と、前記点灯
制御手段によって更新される前記点灯パターンごとに、
前記撮像して得られた画像信号を画像データにして個別
に記憶す記憶手段と、前記記憶手段に記憶された前記各
画像データに基づいて、画像間演算をする演算手段と、
前記演算手段の演算結果に基づいて、前記被写体を識別
する識別手段と、前記識別手段による識別の結果を出力
する出力手段とを備えて構成される。An image processing apparatus according to the present invention is an image processing apparatus that processes an image signal obtained by imaging a predetermined surface of a subject. In detail, the processing device includes a plurality of light sources that obliquely illuminate the predetermined surface from different directions, and individually illuminates the plurality of light sources according to a plurality of predetermined lighting patterns and sequentially updates the lighting patterns. For each lighting control means that controls lighting and the lighting pattern updated by the lighting control means,
a storage means for converting the image signal obtained by the imaging into image data and storing the image data individually; and a calculation means for performing an inter-image calculation based on each of the image data stored in the storage means;
The camera is configured to include identification means for identifying the subject based on the calculation result of the calculation means, and output means for outputting the result of identification by the identification means.
【0009】[0009]
【作用】この発明にかかる画像処理装置は上述のように
構成されて、転送制御手段によって順次更新される前記
光源の点灯パターンごとに、被写体の所定面に対してそ
れぞれ異なる方向から斜方照明が施されて、複数の異な
る画像データが得られる。したがって、演算手段による
画像間演算は前記複数の画像データに基づいて行なわれ
ることになるので、その演算結果の精度は高くなり、ひ
いては識別手段が前記演算結果に基づいて行なう前記被
写体の識別の精度も向上する。[Operation] The image processing apparatus according to the present invention is configured as described above, and oblique illumination is applied from different directions to a predetermined surface of a subject for each lighting pattern of the light source that is sequentially updated by the transfer control means. is applied to obtain a plurality of different image data. Therefore, since the inter-image calculation by the calculation means is performed based on the plurality of image data, the accuracy of the calculation result becomes high, and the accuracy of the identification of the subject performed by the identification means based on the calculation result. It also improves.
【0010】0010
【実施例】以下、この発明の一実施例について図面を参
照して詳細に説明する。DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below in detail with reference to the drawings.
【0011】この実施例では、画像処理装置を、被写体
の刻印文字の印字検査に適用した場合を想定して説明す
る。[0011] This embodiment will be described assuming that the image processing apparatus is applied to print inspection of engraved characters on an object.
【0012】図1は、本発明の一実施例による画像処理
装置の概略構成を示す図である。FIG. 1 is a diagram showing a schematic configuration of an image processing apparatus according to an embodiment of the present invention.
【0013】図において画像処理装置は、その表面に予
め定められた文字が刻印された被検査物を撮像するカメ
ラ1、前記カメラ1が出力するビデオ信号を入力し、応
じて画像データ処理する画像データ処理部5および第1
ないし第3光源2ないし4および光電スイッチ33を含
む。In the figure, the image processing apparatus includes a camera 1 for taking an image of an object to be inspected with predetermined characters engraved on its surface, and a video signal outputted from the camera 1 inputted thereto, and image data processing is performed accordingly. Data processing unit 5 and first
to third light sources 2 to 4 and a photoelectric switch 33.
【0014】前記画像データ処理部5は、画像入力部2
2、デジタルメモリである画像メモリ23、画像出力部
24、ビデオモニタ25、タイミング制御部26、アド
レス/データバス27、CPU(中央処理装置)28、
ROM29、RAM30、I/O(入出力)制御部31
ならびに画像間演算部32を含む。The image data processing section 5 includes the image input section 2
2. An image memory 23 which is a digital memory, an image output section 24, a video monitor 25, a timing control section 26, an address/data bus 27, a CPU (central processing unit) 28,
ROM29, RAM30, I/O (input/output) control unit 31
and an inter-image calculation section 32.
【0015】前記画像入力部22は、前段に接続された
カメラ1が撮像した画像をアナログのビデオ信号として
入力し、応じて前記ビデオ信号をA/D(アナログ/デ
ジタル)変換して、濃淡画像データとして次段に接続さ
れた画像メモリ23に出力する。また、画像入力部22
は撮像して得られた画像について、予め定められた基準
位置からのずれ量を画像上で被検査物の縁部を囲むよう
に設定された位置ずれ量検出用ウィンドウを用いて検出
する機能を兼ね備える。The image input unit 22 inputs an image captured by the camera 1 connected to the previous stage as an analog video signal, and accordingly A/D (analog/digital) converts the video signal to create a grayscale image. It is output as data to the image memory 23 connected to the next stage. In addition, the image input section 22
has a function that detects the amount of deviation from a predetermined reference position for the image obtained by imaging using a positional deviation detection window that is set to surround the edge of the object to be inspected on the image. Have both.
【0016】前記画像メモリ23は、与えられる濃淡画
像データを、それぞれ1画素単位で格納して、3画面分
の画像データを個別に格納できるメモリ領域ma,mb
およびmcを有する。また、画像メモリ23は、任意の
タイミングでデータの読み書きが行なわれる。The image memory 23 has memory areas ma and mb that can store the given grayscale image data in units of one pixel and individually store image data for three screens.
and mc. Furthermore, data is read and written to and from the image memory 23 at arbitrary timing.
【0017】前記画像間演算部32は、前記画像入力部
22において算出された前記位置ずれ量に基づいて決定
された読出順序に基づいて、前記画像メモリ23より2
個の画像データを位置ずれ補正しつつ読出して画像間演
算し、その演算結果を再度画像メモリ23に格納する機
能を有する。The inter-image calculation unit 32 selects two images from the image memory 23 based on the reading order determined based on the positional deviation amount calculated by the image input unit 22.
It has a function of reading out individual image data while correcting positional deviations, performing inter-image calculations, and storing the calculation results in the image memory 23 again.
【0018】画像出力部24は、前段に接続された画像
メモリ23から与えられる画像データを入力し、応じて
D/A(デジタル/アナログ)変換して、1画面分のビ
デオ信号にして次段に接続されたビデオモニタ25に与
える。The image output unit 24 inputs image data provided from the image memory 23 connected to the previous stage, performs D/A (digital/analog) conversion accordingly, and converts it into a video signal for one screen to be sent to the next stage. to a video monitor 25 connected to.
【0019】ビデオモニタ25は、モニタ機能を備え、
前段に接続された画像出力部24から与えられる前記ビ
デオ信号により画面表示を行なう。The video monitor 25 has a monitoring function,
Screen display is performed using the video signal supplied from the image output unit 24 connected to the previous stage.
【0020】前記アドレス/データバス27には、画像
メモリ23、CPU28、ROM29、RAM30およ
びI/O制御部31が接続されることにより、これら各
部により簡単なマイクロコンピュータが構成される。こ
のマイクロコンピュータにおいては、CPU28が前記
ROM29に予め格納されているプログラムを実行する
ことにより特徴量演算処理などの各種画像処理が実行さ
れる。An image memory 23, a CPU 28, a ROM 29, a RAM 30, and an I/O control section 31 are connected to the address/data bus 27, whereby a simple microcomputer is constructed by these sections. In this microcomputer, the CPU 28 executes a program stored in the ROM 29 in advance to perform various image processing such as feature calculation processing.
【0021】前記タイミング制御部26は、前記CPU
28と連動して画像入力部22、画像メモリ23、およ
び画像出力部24におけるデータの入出力を制御するた
めのタイミング信号を生成し、前記各部に与える。[0021] The timing control section 26
28, a timing signal for controlling data input/output in the image input section 22, image memory 23, and image output section 24 is generated and applied to each section.
【0022】図2(a)および(b)は前掲図1に示さ
れた画像処理装置を刻印文字の印字検査に適用した場合
の設置状態を示す外観図である。FIGS. 2(a) and 2(b) are external views showing the installed state when the image processing apparatus shown in FIG. 1 is applied to the printing inspection of engraved characters.
【0023】図2(a)において、前述した画像処理装
置は、コンベア6上を搬送される被検査物8の表面に刻
印された文字の形状を良否判別するように設けられる。In FIG. 2(a), the above-mentioned image processing device is provided to judge whether the shape of the character stamped on the surface of the object to be inspected 8 conveyed on the conveyor 6 is good or bad.
【0024】前記コンベア6上において、所定の検査面
7が設けられる。前記検査面7に被検査物8が搬送され
て位置したとき、光電スイッチ33により検出されて、
前記検出信号は画像データ処理部5に与えられる。また
前記検査面7上に位置する被検査物8を上方から撮像す
るようにカメラ1が固定して設けられる。さらに、前記
検査面7の斜め上方には、3個の光源2ないし4が固定
して設けられる。前記光源2ないし4は、図2(b)に
示されるように、前記検査面7における光束9、10お
よび11の入射角12、13および14をほぼ同じとし
、それぞれの光束9ないし11のなす角15、16およ
び17が、前記検査面7上で60°の角度をなすように
固定して設けられている。これらの光源2ないし4は、
シャッタ機能付の光源装置などのように点灯制御機能を
備えるものである。A predetermined inspection surface 7 is provided on the conveyor 6. When the inspection object 8 is transported and positioned on the inspection surface 7, it is detected by the photoelectric switch 33,
The detection signal is given to the image data processing section 5. Further, a camera 1 is fixedly provided so as to take an image of the object to be inspected 8 located on the inspection surface 7 from above. Further, three light sources 2 to 4 are fixedly provided diagonally above the inspection surface 7. As shown in FIG. 2(b), the light sources 2 to 4 have substantially the same incident angles 12, 13 and 14 of the light beams 9, 10 and 11 on the inspection surface 7, and the angles of incidence of the light beams 9 to 11 are approximately the same. Corners 15, 16 and 17 are fixedly provided on the inspection surface 7 to form an angle of 60°. These light sources 2 to 4 are
It has a lighting control function, such as a light source device with a shutter function.
【0025】図3(a)ないし(d)は、前掲図2(a
)および(b)に示された印字検査時において、良否判
定される被検査物の文字の刻印例を説明するための概略
図である。FIGS. 3(a) to 3(d) are similar to FIG. 2(a) shown above.
FIG. 4 is a schematic diagram illustrating an example of marking of characters on the object to be inspected to be judged as pass/fail during the print inspection shown in FIGS.
【0026】図3(a)は、該画像処理装置において良
品18と判定される場合の文字の刻印例を示す平面図で
ある。良品18は、その刻印部19に文字ABCが明確
に刻まれている。前掲図3(a)のA−B方向の断面図
が図3(b)に示される。図3(b)に示されるように
、良品18における刻印部19は、文字ABCをその表
面に凹部分にして形成していることがわかる。一方、図
3(c)および(d)は、不良品20および21の表面
の平面図てある。図3(c)に示される不良品20は、
刻印された文字ABCがAの部分で文字欠けを起こして
いる不良刻印状態にある。また、図3(d)に示される
不良品21は、刻印されている文字が誤っている。FIG. 3(a) is a plan view showing an example of character engraving when the image processing apparatus determines that the product is non-defective 18. In the non-defective product 18, the characters ABC are clearly engraved on the stamp portion 19. A sectional view taken along the line AB in FIG. 3(a) above is shown in FIG. 3(b). As shown in FIG. 3(b), it can be seen that the stamped portion 19 of the non-defective product 18 is formed with the letters ABC as a concave portion on its surface. On the other hand, FIGS. 3(c) and 3(d) are plan views of the surfaces of the defective products 20 and 21. The defective product 20 shown in FIG. 3(c) is
The engraved letters ABC are in a defective engraved state with a missing character at the A part. Moreover, the defective product 21 shown in FIG. 3(d) has incorrect characters engraved on it.
【0027】前掲図2(a)のようにして設置された画
像処理装置は、コンベア6上を搬送されて検査面7上に
位置した被検査物8について、たとえば良品18のよう
に正確に刻印部19を形成するものについては、良品で
ある結果を出力し、逆に文字欠けや文字違いを起こして
いる不良品20または21を検出すれば、被検査物8は
不良品であることを出力するように動作する。The image processing device installed as shown in FIG. Regarding the part 19, if a defective product 20 or 21 with missing or incorrect characters is detected, it is output that the inspected object 8 is a defective product. It works like that.
【0028】図4は、前掲図2(a)および(b)に示
されるように設けられた画像処理装置の刻印文字の印字
検査の動作を示す概略処理フロー図である。FIG. 4 is a schematic process flow diagram showing the operation of inspecting the printing of engraved characters by the image processing apparatus provided as shown in FIGS. 2(a) and 2(b).
【0029】図5(a)ないし(e)は、前掲図4に示
される処理フロー実行によって得られる画像を表わす概
略図である。FIGS. 5A to 5E are schematic diagrams showing images obtained by executing the processing flow shown in FIG. 4 above.
【0030】次に、前掲図2(a)に示されるように設
けられた画像処理装置の被検査物8の表面に刻印された
文字の印字検査の動作を、図4に示される処理フローに
従って、図1ないし図3および図5を参照しながら説明
する。Next, the operation of inspecting the characters engraved on the surface of the object to be inspected 8 of the image processing apparatus installed as shown in FIG. 2(a) will be carried out according to the processing flow shown in FIG. , will be explained with reference to FIGS. 1 to 3 and 5.
【0031】なお、図4に示される処理フローは、予め
プログラムとしてメモリRAM30の所定の記憶領域に
ストアされて、CPU28の制御のもとに実行される。
また、図4に示される処理フローの各処理ステップは、
画像信号の1画面分に要する時間とし、同一ステップ内
の処理はすべて1画面分の時間で実行される。The processing flow shown in FIG. 4 is stored in advance as a program in a predetermined storage area of the memory RAM 30 and executed under the control of the CPU 28. In addition, each processing step of the processing flow shown in FIG.
The time required for one screen of image signals is assumed, and all processing within the same step is executed in the time for one screen.
【0032】図2(a)に示されるように、コンベア6
によって搬送された被検査物8が検査面7に到達したこ
とを、光電スイッチ33によって検出されると、前記検
出信号は画像データ処理部5のI/O制御部31を介し
てCPU28に与えられる。CPU28は、与えられる
前記検知信号入力に応答して、図4に示される処理フロ
ーを実行開始する。As shown in FIG. 2(a), the conveyor 6
When the photoelectric switch 33 detects that the object 8 to be inspected, which has been transported by the . The CPU 28 starts executing the processing flow shown in FIG. 4 in response to the detection signal input.
【0033】CPU28は、図4のステップST1(図
中、ST1と略す)において、光電スイッチ33から被
検査物8の検知入力があるか否かを判別している。この
とき、光電スイッチ33の検知入力があるまではステッ
プST1の判別処理が繰返し実行され、光電スイッチ3
3の検知入力があると、CPU28は、次のステップS
T2以降の処理に分岐する。At step ST1 in FIG. 4 (abbreviated as ST1 in the figure), the CPU 28 determines whether or not there is a detection input of the object to be inspected 8 from the photoelectric switch 33. At this time, the determination process in step ST1 is repeatedly executed until there is a detection input from the photoelectric switch 33.
When there is a detection input of 3, the CPU 28 executes the next step S.
Branches to processing after T2.
【0034】CPU28は、ステップST2ないしステ
ップST4の処理において、まず1番目の光源である第
1光源2を点灯し、カメラ1から撮像して得られたビデ
オ信号は、画像入力部22を介して画像データとして画
像メモリ23に与えられる。画像メモリ23は、前記画
像データをそのメモリ領域maにストアする。なお、第
1光源2を点灯したことによって得られた画像データを
画像aと呼ぶ。前記画像aは、図5(a)に示されるよ
うな凹凸によって形成された刻印文字を表わす。次に、
画像入力部22により、前記画像aの位置ずれ量Zaが
算出される。In the processing from step ST2 to step ST4, the CPU 28 first turns on the first light source 2, which is the first light source, and the video signal obtained by capturing the image from the camera 1 is inputted via the image input section 22. It is given to the image memory 23 as image data. The image memory 23 stores the image data in its memory area ma. Note that the image data obtained by turning on the first light source 2 will be referred to as image a. The image a represents an engraved character formed by unevenness as shown in FIG. 5(a). next,
The image input unit 22 calculates the positional shift amount Za of the image a.
【0035】CPU28は、次にステップST5ないし
ステップST7に示される処理を実行する。まず、1番
目の光源2を消灯するとともに、2番目の光源3を点灯
し、同様にして得られる画像データを、図5(b)の画
像bにして画像メモリ23のメモリ領域mbにストアす
る。このとき、並行して前記画像bの位置ずれ量Zbが
算出される。The CPU 28 then executes the processing shown in steps ST5 to ST7. First, the first light source 2 is turned off, the second light source 3 is turned on, and the image data obtained in the same manner is stored in the memory area mb of the image memory 23 as image b in FIG. 5(b). . At this time, the positional deviation amount Zb of the image b is calculated in parallel.
【0036】その後、CPU28はステップST8およ
びステップST10に示される処理を実行する。まず、
2番目の光源3が消灯されるとともに、3番目の光源4
が点灯されて、得られた画像データは画像メモリ23の
メモリ領域mcに図5(c)の画像cとしてストアされ
るとともに、前記画像cの位置ずれ量Zcが算出される
。Thereafter, the CPU 28 executes the processes shown in step ST8 and step ST10. first,
While the second light source 3 is turned off, the third light source 4 is turned off.
is turned on, and the obtained image data is stored in the memory area mc of the image memory 23 as image c in FIG. 5(c), and the positional shift amount Zc of the image c is calculated.
【0037】以上のようにして、画像メモリ23には画
像a、bおよびcがそれぞれメモリ領域ma、mbおよ
びmcに個別にストアされる。この画像aないし画像c
のそれぞれは、図5(a)ないし(c)に示されるよう
な凹凸によって形成された刻印文字による濃淡画像デー
タを表わす。図5(a)に示されるように画像aは光源
2のみを点灯した照明条件のもとに得られた画像データ
を表わし、図5(b)の画像bは、光源3のみを点灯し
た照明条件のもとに得られた画像データを表わし、同様
にして図5(c)の画像cは、光源4のみを点灯した照
明条件のもとに得られた画像データを表わす。As described above, images a, b, and c are individually stored in memory areas ma, mb, and mc in the image memory 23, respectively. This image a to image c
5(a) to 5(c) each represent grayscale image data of stamped characters formed by unevenness as shown in FIGS. 5(a) to 5(c). As shown in FIG. 5(a), image a represents image data obtained under illumination conditions in which only light source 2 is turned on, and image b in FIG. 5(b) represents image data obtained under illumination conditions in which only light source 3 is turned on. Similarly, image c in FIG. 5C represents image data obtained under illumination conditions in which only the light source 4 is turned on.
【0038】次に、CPU28は、ステップST11な
いしステップST13の処理において、タイミング制御
部26を介して画像間演算部32による画像間演算を実
行する。つまり、画像間演算部32は、画像メモリ23
のメモリ領域maおよびmbにそれぞれストアされてい
る画像aおよびbを、それぞれ算出された位置ずれ量Z
aおよびZbに基づいて位置ずれ補正しながら前記メモ
リ23から読出して、両画像について画像間演算を行な
い、その演算結果画像abをメモリ領域maにストアす
る。Next, the CPU 28 executes inter-image calculation by the inter-image calculation unit 32 via the timing control unit 26 in steps ST11 to ST13. In other words, the inter-image calculation unit 32 uses the image memory 23
The images a and b stored in the memory areas ma and mb of
The image a and Zb are read out from the memory 23 while correcting the positional deviation, inter-image calculation is performed on both images, and the calculation result image ab is stored in the memory area ma.
【0039】前記画像間演算部32が実行する画像間演
算は、2つの入力画像データの小さい方を出力するmi
n演算を実行していると想定する。CPU28は、演算
結果画像abがメモリ領域maにストアされたことに応
答して、I/O制御部31を介して第3光源4を消灯す
るよう制御する。The inter-image arithmetic operation executed by the inter-image arithmetic unit 32 is performed by mi
Assume that we are performing n operations. In response to the calculation result image ab being stored in the memory area ma, the CPU 28 controls the third light source 4 to turn off via the I/O control unit 31.
【0040】前記演算結果画像abは画像メモリ23の
メモリ領域maにおいて、図5(d)に示されるような
凹凸部を有した画像データとしてストアされる。前記画
像abは、明らかに図5(a)および(b)の画像間で
min演算を実行して得られた演算結果画像であること
がわかる。The calculation result image ab is stored in the memory area ma of the image memory 23 as image data having irregularities as shown in FIG. 5(d). It is clear that the image ab is a calculation result image obtained by performing a min calculation between the images in FIGS. 5(a) and 5(b).
【0041】以上のようにして演算結果画像abが算出
されると、続いてCPU28はステップST14ないし
ST16の処理を実行して画像abcを算出する。詳細
には、画像間演算部32は、前記画像abおよび画像メ
モリ23のメモリ領域mcにストアされている画像cに
より画像間演算を前述と同様に実行する。この演算結果
画像abcは、画像メモリ23のメモリ領域mbにスト
アされる。前記演算結果画像abcは、図5(e)に示
されるように、図5(d)の画像abと図5(c)の画
像cのmin演算結果を表すことがわかる。After the calculation result image ab is calculated as described above, the CPU 28 subsequently executes the processing of steps ST14 to ST16 to calculate the image abc. Specifically, the inter-image calculation unit 32 performs the inter-image calculation using the image ab and the image c stored in the memory area mc of the image memory 23 in the same manner as described above. This calculation result image abc is stored in the memory area mb of the image memory 23. It can be seen that the calculation result image abc represents the min calculation result of the image ab of FIG. 5(d) and the image c of FIG. 5(c), as shown in FIG. 5(e).
【0042】上述のようにして得られた演算結果画像a
bcは、光源2ないし4の個別の照明によって形成され
た影の部分は暗いために、画像間演算部32によるmi
n演算の実行によって刻印の凹部分が正しく抽出されて
いることがわかる。Calculation result image a obtained as described above
Since the shadow portion formed by the individual illumination of light sources 2 to 4 is dark, bc is
It can be seen that the concave portion of the stamp is correctly extracted by executing the n operation.
【0043】CPU28は、ステップST17およびS
T18の処理において前記刻印の凹部分が正しく抽出さ
れた画像abcを、さらに予め定められたしきい値を用
いて2値化処理することにより、被検査物8の表面に刻
印された凹部分を正確に抽出することができる。そして
、CPU28は前記2値化処理結果を予め定められた基
準となる2値化データと比較照合しながら、前記被検査
物8の表面に形成された刻印文字の良否を判別する。
そして、前記判別結果を、アドレス/データバス27を
介してビデオモニタ25に画面表示するか、またはI/
O制御部31を介して図示されない表示デバイスまたは
印字デバイスに出力するようにしてもよい。その後、再
度、ステップST1に戻る。[0043] The CPU 28 performs steps ST17 and S
By further binarizing the image abc in which the concave portions of the stamp were correctly extracted in the process of T18 using a predetermined threshold value, the concave portions stamped on the surface of the object to be inspected 8 can be extracted. can be extracted accurately. Then, the CPU 28 compares and checks the result of the binarization process with the binarized data serving as a predetermined reference, and determines whether the stamped characters formed on the surface of the object to be inspected 8 are good or bad. Then, the determination result is displayed on the video monitor 25 via the address/data bus 27, or
The data may be output to a display device or a printing device (not shown) via the O control unit 31. After that, the process returns to step ST1 again.
【0044】なお、前記ステップST17における良否
判別処理は、たとえば、必ず刻印が存在する部分に設定
された着目領域における、良品18の面積値、あるいは
画像パターンを基準値として予め登録しておき、被検査
物8の計測データと前記基準値との比較照合により良否
判別する方法が一般的である。[0044] The quality determination process in step ST17 is performed by registering in advance the area value or image pattern of the non-defective product 18 in a region of interest set in a portion where a stamp is always present as a reference value, and A common method is to compare the measurement data of the inspection object 8 with the reference value to determine whether it is good or bad.
【0045】以上説明した実施例においては、被検査物
8に対する照明用光源の数を光源2ないし4の3個を使
う構成としたが、照明用の光源の数は3個に特定されず
、2個あるいは4個以上としてパターンを増加させて、
前記演算精度を向上させるようにしてもよい。さらに、
画像間演算部32における画像間演算は、CPU28に
よるソフトウェア処理によって実行されてもよい。
また、前記画像間演算は、min演算に限定されず、類
似の効果を得る別の演算方法を用いてもよい。In the embodiment described above, three light sources 2 to 4 are used for illuminating the object 8 to be inspected, but the number of illuminating light sources is not limited to three; Increase the pattern by adding 2 or 4 or more,
The calculation accuracy may be improved. moreover,
The inter-image calculation in the inter-image calculation unit 32 may be executed by software processing by the CPU 28. Further, the inter-image calculation is not limited to the min calculation, and another calculation method that obtains a similar effect may be used.
【0046】[0046]
【発明の効果】本発明による画像処理装置によれば、被
写体の所定面を、異なる方向から複数の斜方照明を施し
て複数の異なる画像データを得ることができるので、相
互に画像間演算をした演算結果の精度は向上し、たとえ
ば前記所定面に形成されている凹部分が浅い場合でも、
影のコントラストを向上させて、かつ前記凹部分全体を
正しく抽出することができるという効果がある。According to the image processing apparatus according to the present invention, it is possible to obtain a plurality of different image data by applying a plurality of oblique illuminations to a predetermined surface of a subject from different directions, so that calculations between images can be performed mutually. The accuracy of the calculation results improved, for example, even if the concave portion formed on the predetermined surface is shallow,
This has the effect of improving the contrast of shadows and correctly extracting the entire concave portion.
【0047】また、前記所定面に対して斜方照明を施す
ための複数の光源は、それぞれ個別に配設されるので、
たとえば前記被写体が搬送される検査ラインのコンベア
などの搬送経路を妨害することがないという効果がある
。Furthermore, since the plurality of light sources for providing oblique illumination to the predetermined surface are individually arranged,
For example, there is an effect that the conveyance route such as a conveyor of an inspection line through which the subject is conveyed is not obstructed.
【0048】さらに、前記斜方照明の数と同じだけの画
像フレーム数に要する時間内で、良好な演算結果画像が
得られるため、前記所定面に対する高精度および高速な
識別処理が実行できるという効果がある。Furthermore, since a good calculation result image can be obtained within the time required for the same number of image frames as the number of oblique illuminations, it is possible to perform high-accuracy and high-speed identification processing on the predetermined surface. There is.
【図1】本発明の一実施例による画像処理装置の概略構
成を示す図である。FIG. 1 is a diagram showing a schematic configuration of an image processing device according to an embodiment of the present invention.
【図2】(a)および(b)は、図1に示された画像処
理装置を刻印文字の印字検査に適用した場合の設置状態
を示す外観図である。2A and 2B are external views showing an installed state when the image processing apparatus shown in FIG. 1 is applied to a print inspection of engraved characters.
【図3】(a)ないし(d)は、図2(a)および(b
)に示された印字検査時において、良否判定される被検
査物の文字の刻印例を説明するための概略図である。FIGS. 3(a) to (d) represent FIGS. 2(a) and (b).
) is a schematic diagram illustrating an example of marking of characters on an object to be inspected to be judged as pass/fail during the print inspection shown in FIG.
【図4】図2(a)および(b)に示されるように設け
られた画像処理装置の刻印文字の印字検査の動作を示す
概略処理フロー図である。FIG. 4 is a schematic processing flow diagram showing the operation of inspecting the printing of stamped characters by the image processing apparatus provided as shown in FIGS. 2(a) and 2(b).
【図5】(a)ないし(e)は、図4に示される処理フ
ロー実行によって得られる画像を表わす概略図である。5A to 5E are schematic diagrams showing images obtained by executing the processing flow shown in FIG. 4;
1 カメラ
2、3および4 光源
5 画像データ処理部
22 画像入力部
23 画像メモリ
25 ビデオモニタ
28 CPU
32 画像間演算部
ma 、mbおよびmc メモリ領域なお、各図中
、同一符号は同一または相当部分を示す。1 Cameras 2, 3, and 4 Light source 5 Image data processing section 22 Image input section 23 Image memory 25 Video monitor 28 CPU 32 Inter-image calculation section ma, mb, and mc Memory area Note that in each figure, the same reference numerals indicate the same or equivalent parts. shows.
Claims (1)
画像信号を処理する画像処理装置であって、前記所定面
を、それぞれ異なる方向から斜方照明する複数の光源と
、予め定められた複数の点灯パターンに従って、かつ前
記点灯パターンを順次更新しながら前記複数光源を個別
に点灯制御する点灯制御手段と、前記点灯制御手段によ
って更新される前記点灯パターンごとに、前記撮像して
得られた画像信号を画像データにして個別に記憶する記
憶手段と、前記記憶手段に記憶された前記各画像データ
に基づいて、画像間演算をする演算手段と、前記演算手
段の演算結果に基づいて、前記被写体を識別する識別手
段と、前記識別手段による識別の結果を出力する出力手
段とを備えた、画像処理装置。1. An image processing device that processes an image signal obtained by imaging a predetermined surface of a subject, comprising: a plurality of light sources that obliquely illuminate the predetermined surface from different directions; lighting control means for controlling the lighting of the plurality of light sources individually according to the plurality of lighting patterns and sequentially updating the lighting patterns; storage means for converting the image signals into image data and storing them individually; a calculation means for performing inter-image calculations based on the respective image data stored in the storage means; and based on the calculation results of the calculation means, An image processing apparatus, comprising: an identification means for identifying the subject; and an output means for outputting a result of identification by the identification means.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3068612A JPH04304576A (en) | 1991-04-01 | 1991-04-01 | Picture processor |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3068612A JPH04304576A (en) | 1991-04-01 | 1991-04-01 | Picture processor |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH04304576A true JPH04304576A (en) | 1992-10-27 |
Family
ID=13378763
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP3068612A Pending JPH04304576A (en) | 1991-04-01 | 1991-04-01 | Picture processor |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH04304576A (en) |
-
1991
- 1991-04-01 JP JP3068612A patent/JPH04304576A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP3669698B2 (en) | Inspection method and inspection apparatus for printed matter | |
| JPH11211442A (en) | Method and device for detecting defect of object surface | |
| JPH0783851A (en) | Method for detecting and processing defective | |
| JPH07159337A (en) | Defect inspection method for semiconductor device | |
| JP2000163579A (en) | Appearance inspection method and apparatus | |
| JPH0737891B2 (en) | Unevenness detection device | |
| JPS6042884B2 (en) | IC lead bending inspection device | |
| KR20090121612A (en) | Corrugated cardboard quality inspection automatic inspection method and device | |
| JPH07101048A (en) | Printing inspection method and device | |
| JPH10132754A (en) | Lead frame appearance inspection device | |
| JP2561193B2 (en) | Print pattern inspection device | |
| JP2000266514A (en) | Metal plate inspection method and device | |
| JPH0514951B2 (en) | ||
| JP4613090B2 (en) | Inspection device | |
| JPH02163879A (en) | Method and device for checking quality of printed matter | |
| JPH0519938B2 (en) | ||
| JPH043820B2 (en) | ||
| JP4474006B2 (en) | Inspection device | |
| JP2818347B2 (en) | Appearance inspection device | |
| JPH01150987A (en) | Method for recognizing shape | |
| JP2517385Y2 (en) | Resin chip inspection device for semiconductor devices | |
| JPH11271232A (en) | Method and device for detecting defect in wiring on printed board | |
| JP2003215061A (en) | Apparatus and method for inspecting pin, pin product and method for manufacturing pin product | |
| JPH0382940A (en) | Internal defect detection method for cylindrical workpiece | |
| JPH0619252B2 (en) | Soldering inspection device for printed wiring boards |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20001003 |