JP2020122662A - Illumination device for surface inspection and surface inspection device - Google Patents

Illumination device for surface inspection and surface inspection device Download PDF

Info

Publication number
JP2020122662A
JP2020122662A JP2019012957A JP2019012957A JP2020122662A JP 2020122662 A JP2020122662 A JP 2020122662A JP 2019012957 A JP2019012957 A JP 2019012957A JP 2019012957 A JP2019012957 A JP 2019012957A JP 2020122662 A JP2020122662 A JP 2020122662A
Authority
JP
Japan
Prior art keywords
illumination
illumination pattern
pattern
surface inspection
line
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2019012957A
Other languages
Japanese (ja)
Inventor
徹 岩▲崎▼
Toru Iwasaki
徹 岩▲崎▼
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.)
Kowa Co Ltd
Original Assignee
Kowa Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kowa Co Ltd filed Critical Kowa Co Ltd
Priority to JP2019012957A priority Critical patent/JP2020122662A/en
Publication of JP2020122662A publication Critical patent/JP2020122662A/en
Pending legal-status Critical Current

Links

Images

Landscapes

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

Abstract

To provide an illumination device for surface inspection which can optionally change a direction and width of pattern illumination to an object to be inspected while rapidly drawing an illumination pattern 13.SOLUTION: The illumination device for surface inspection comprises: a liquid crystal drawing portion 10 which draws the illumination pattern 13 having a bright belt-like portion 13a and a dark belt-like portion 13b which are alternately arranged by a raster scanning system; and an FPGA 12 (a control device) which is for drawing the illumination pattern 13 on the liquid crystal drawing portion 10. The FPGA 12, which forms a processing circuit which sequentially calculates drawing data of each of scan lines for drawing the illumination pattern 13 on the liquid crystal drawing portion 10 according to a predetermined drawing parameter, draws the illumination pattern 13 on the liquid crystal drawing portion 10 by using the sequentially calculated drawing data of each of the scan lines.SELECTED DRAWING: Figure 4

Description

この発明は、明るい帯状部と暗い帯状部とが交互に配列されたパターン照明を検査対象の表面に照射するための表面検査用照明装置と、同装置を組み込んだ表面検査装置に関する。 The present invention relates to a surface inspection illumination device for irradiating a surface of an inspection object with pattern illumination in which bright strips and dark strips are alternately arranged, and a surface inspection device incorporating the same.

滑らかな表面を有する製品(ガラス製品、フィルム製品、表面にメッキや塗装等が施された製品等々)を検査対象として、その表面に凹凸や傷などの欠陥が有るか否かを検査する方法として、明るい帯状部と暗い帯状部とが交互に配列されたパターン照明を用いた表面検査装置が広く知られている(例えば、特許文献1を参照)。
表面検査装置には、パターン照明を照射するための光源としては、照明パターンを液晶描画部に描画することができる液晶照明装置が組み込まれている。
As a method for inspecting products with smooth surfaces (glass products, film products, products with plating or coating on the surface, etc.) to see if there are defects such as unevenness or scratches on the surface A surface inspection device using pattern illumination in which bright strips and dark strips are alternately arranged is widely known (for example, see Patent Document 1).
A liquid crystal illumination device capable of drawing an illumination pattern on a liquid crystal drawing unit is incorporated in the surface inspection device as a light source for irradiating pattern illumination.

この種の表面検査装置は、検査対象の表面に上記パターン照明のパターンの明暗をシフトさせながら照射して当該検査対象の表面を撮像して得られた複数の画像を用いて、反射光量の差や輝度の変化に基づき、表面における欠陥の有無を検査する(検査方法の原理については、例えば、非特許文献1及び2を参照)。 This type of surface inspection apparatus uses a plurality of images obtained by irradiating the surface of the inspection object while shifting the brightness of the pattern of the pattern illumination and capturing the surface of the inspection object to obtain a difference in reflected light amount. The presence or absence of a defect on the surface is inspected on the basis of the change of the brightness or the brightness (for the principle of the inspection method, see, for example, Non-Patent Documents 1 and 2).

検査対象が複雑な形状でしかも多岐にわたるような場合(たとえばクルマのボデーであって複数の車種が流れてくる検査ラインなど)、正常な表面部分と凹凸や傷などの欠陥がある部分とで、反射光量や輝度の差が大きくなるように、パターン照明における明暗の各帯状部の幅や、検査対象の表面に対するそれら各帯状部の向きを変更する必要がある。 When the inspection target has a complicated shape and a wide variety (for example, an inspection line where multiple body types flow in a car body), there are normal surface parts and parts with defects such as irregularities and scratches. It is necessary to change the widths of the bright and dark strips in the pattern illumination and the orientations of the strips with respect to the surface of the inspection target so that the difference in the amount of reflected light and the brightness becomes large.

そこで、従来の表面検査装置には、パターン照明を照射するための光源(照明装置)をロボットアームに取り付けて、ロボットアームの駆動によりパターン照明の向き(具体的には、明暗の各帯状の向き)を変更する構成を採用するものがある。
また、液晶照明装置の制御部にフレームメモリを搭載し、当該メモリに様々なバリエーションの照明パターンの要素データを記憶させておき、検査対象に応じて最適な照明パターンの要素データを読み出して使用する構成を採用する従来装置も知られている。
Therefore, in the conventional surface inspection apparatus, a light source (illumination device) for irradiating pattern illumination is attached to the robot arm, and the direction of the pattern illumination is driven by the robot arm (specifically, the direction of each strip of light and dark). ) There are some that adopt a configuration that changes.
Further, a frame memory is mounted in the control unit of the liquid crystal lighting device, element data of various variations of the illumination pattern is stored in the memory, and the element data of the optimal illumination pattern is read and used according to the inspection target. A conventional device adopting the configuration is also known.

しかし、ロボットアームの駆動によりパターン照明の向きを変更する構成の従来装置にあっては、ロボットアームの制御が煩雑であり、装置全体が大形化し、かつ設備コストが高価格となる欠点があった。
また、フレームメモリに様々なバリエーションの照明パターンの要素データを記憶させておく構成をした従来の照明装置にあっては、大容量のフレームメモリが必要となって制御部が大形化し、且つ製造コストが高価格となるばかりか、フレームメモリからの要素データの読み出しに時間がかかるため、照明パターンを迅速に描画することができず、そのことが表面検査の高速化を妨げる要因となっていた。
However, in the conventional device configured to change the direction of the pattern illumination by driving the robot arm, there is a drawback that the control of the robot arm is complicated, the entire device becomes large, and the equipment cost becomes high. It was
Further, in the conventional lighting device configured to store the element data of various variations of the illumination pattern in the frame memory, a large-capacity frame memory is required, and the control unit becomes large, and Not only is the cost high, but it also takes time to read the element data from the frame memory, so it is not possible to draw the illumination pattern quickly, which hinders the speedup of surface inspection. ..

実用新案登録第3197766号公報Utility model registration No. 3197766

広瀬修、外3名、「パターン照明を用いたフィルム表面凹凸欠陥の検出」、精密工学会誌、VOL.66,No.7、2000年、P1098-1102Osamu Hirose, 3 others, "Detection of irregularities on film surface using pattern illumination", Journal of Precision Engineering, VOL.66, No.7, 2000, P1098-1102 楜澤信、外1名、「移動パターン光源を用いた欠陥検出技術の開発」、精密工学会誌、VOL.67,No.11、2001年、P1839-1843Shin Uzawa, 1 person, "Development of defect detection technology using moving pattern light source", Japan Society for Precision Engineering, VOL.67, No.11, 2001, P1839-1843

本発明は、上述した事情に鑑みてなされたもので、ロボットアーム等の補助設備を必要とせず、検査対象に対するパターン照明の向きを任意に変更することができ、しかも照明パターンを迅速に描画することができる表面検査用照明装置の提供を目的とする。 The present invention has been made in view of the above-described circumstances, does not require auxiliary equipment such as a robot arm, can arbitrarily change the direction of pattern illumination with respect to an inspection target, and quickly draws an illumination pattern. An object of the present invention is to provide a lighting device for surface inspection which can be used.

上記目的を達成するために、本発明は、明度の異なる明るい帯状部と暗い帯状部とが交互に配列されたパターン照明を検査対象の表面に照射し、当該検査対象の表面を撮像して得られた画像を用いて、当該検査対象の表面状態を検査する表面検査装置に組み込まれ、パターン照明を検査対象の表面に照射するための表面検査用照明装置であって、次の構成を備えたことを特徴としている。
すなわち、本発明に係る表面検査用照明装置は、明るい帯状部と暗い帯状部とが交互に配列された照明パターンをラスター走査方式をもって描画する描画部と、この描画部に照明パターンを描画するための制御デバイスとを備え、この制御デバイスは、あらかじめ設定された描画パラメータに応じて、描画部に照明パターンを描画するための各走査線ごとの描画データを逐次算出する処理回路を構成し、当該逐次算出された各走査線ごとの描画データにより、描画部に照明パターンを描画することを特徴とする。
In order to achieve the above-mentioned object, the present invention irradiates the surface of an inspection target with pattern illumination in which bright strips and dark strips having different lightnesses are alternately arranged, and obtains by imaging the surface of the inspection target. A surface inspection illuminating device for irradiating the surface of the inspection target with pattern illumination, which is incorporated in a surface inspection device for inspecting the surface state of the inspection target using the obtained image, and has the following configuration. It is characterized by that.
That is, the illumination device for surface inspection according to the present invention, for drawing the illumination pattern in the raster scanning method, the drawing unit for drawing the illumination pattern in which the bright strips and the dark strips are arranged alternately, The control device constitutes a processing circuit that sequentially calculates drawing data for each scanning line for drawing an illumination pattern on the drawing unit according to a drawing parameter set in advance. It is characterized in that an illumination pattern is drawn on the drawing unit by the drawing data for each scanning line that is sequentially calculated.

このように本発明に係る表面検査用照明装置は、制御デバイスにより逐次算出された各走査線ごとの描画データにより、描画部に照明パターンを描画する構成であるため、フレームメモリに様々なバリエーションの照明パターンの要素データを記憶させておく必要がなく、しかも照明パターンを迅速に描画することができる。 As described above, the lighting apparatus for surface inspection according to the present invention is configured to draw the illumination pattern on the drawing unit based on the drawing data for each scanning line that is sequentially calculated by the control device. It is not necessary to store the element data of the illumination pattern, and the illumination pattern can be drawn quickly.

ここで、制御デバイスは、描画パラメータとして、照明パターンを形成する明るい帯状部の走査方向への幅寸法と、暗い帯状部の走査方向への幅寸法と、各帯状部を傾斜して描画するための各走査線ごとの当該各帯状部の走査方向へのシフト量と、があらかじめ設定され、これらの各設定値を含む描画パラメータに基づき、描画部に照明パターンを描画するための、各走査線ごとの描画データを逐次生成していく構成とすることができる。 Here, the control device draws, as drawing parameters, the width dimension in the scanning direction of the bright strips forming the illumination pattern, the width dimension in the scanning direction of the dark strips, and the slanted rendering of each strip. And the shift amount of each strip in the scanning direction for each scanning line are set in advance, and each scanning line for drawing the illumination pattern on the drawing unit based on the drawing parameters including these set values. The drawing data for each can be sequentially generated.

さらに、上述した制御デバイスは、描画パラメータとして、各帯状部を幅方向へ移動させるためのシフト量を走査方向に変換した値があらかじめ設定され、この設定値を含む描画パラメータに基づき、描画部に照明パターンを描画するための、各走査線ごとの描画データを逐次生成していく構成とすることもできる。 Further, the control device described above is preset with a value obtained by converting the shift amount for moving each strip in the width direction into the scanning direction as a drawing parameter, and based on the drawing parameter including this set value, the drawing unit It is also possible to adopt a configuration in which drawing data for each scanning line for drawing an illumination pattern is sequentially generated.

なお、上述した制御デバイスは、例えば、FPGA(Field Programmable Gate Array)で構成することができる。 The control device described above can be configured by, for example, an FPGA (Field Programmable Gate Array).

また、本発明に係る表面検査装置は、上述した表面検査用照明装置を光源として組み込んだことを特徴とする A surface inspection apparatus according to the present invention is characterized by incorporating the above-described surface inspection illumination device as a light source.

以上説明したように、本発明に係る表面検査用照明装置は、制御デバイスにより逐次算出された各走査線ごとの描画データにより、描画部に照明パターンを描画する構成であるため、フレームメモリに様々なバリエーションの照明パターンの要素データを記憶させておく必要がなく、しかも照明パターンを迅速に描画することができる。 As described above, the lighting device for surface inspection according to the present invention is configured to draw the illumination pattern on the drawing unit by the drawing data for each scanning line that is sequentially calculated by the control device, and therefore, the surface inspection lighting device can be used for various purposes in the frame memory. It is not necessary to store the element data of various variations of the illumination pattern, and the illumination pattern can be drawn quickly.

(a)は本発明の実施形態に係る表面検査装置の概要を示す模式図、(b)〜(e)は本発明の実施形態に係る表面検査用照明装置において液晶描画部に描画される照明パターンの具体例を示す図である。(A) is a schematic diagram which shows the outline of the surface inspection apparatus which concerns on embodiment of this invention, (b)-(e) is the illumination drawn by the liquid crystal drawing part in the illuminating device for surface inspection which concerns on embodiment of this invention. It is a figure which shows the specific example of a pattern. 一般的な液晶描画部の構成と、液晶描画部に照明パターンを描画するための信号を説明するための図である。It is a figure for demonstrating the structure of a general liquid crystal drawing part, and the signal for drawing an illumination pattern on a liquid crystal drawing part. (a)〜(d)は本発明の実施形態に係る表面検査用照明装置において、照明パターンを生成するために必要な設定要素を説明するための図である。(A)-(d) is a figure for demonstrating the setting element required in order to produce|generate an illumination pattern in the illuminating device for surface inspections which concern on embodiment of this invention. 本発明の実施形態に係る表面検査用照明装置が備えるFPGAの内部に構成された、照明パターンを描画するための処理回路の概要を示すブロック図である。It is a block diagram which shows the outline|summary of the processing circuit comprised in the FPGA with which the illuminating device for surface inspections which concerns on embodiment of this invention is comprised, and for drawing an illumination pattern. 本発明の実施形態に係る表面検査用照明装置による液晶描画部の走査線に出力する描画データを説明するための図である。It is a figure for explaining drawing data output to a scanning line of a liquid crystal drawing part by a lighting installation for surface inspection concerning an embodiment of the present invention. 本発明の実施形態に係る表面検査用照明装置による液晶描画部の走査線に出力する他の描画データを説明するための図である。It is a figure for demonstrating the other drawing data output to the scanning line of the liquid crystal drawing part by the illuminating device for surface inspection which concerns on embodiment of this invention. 本発明の実施形態に係る表面検査用照明装置による液晶描画部の走査線に出力するさらに他の描画データを説明するための図である。It is a figure for demonstrating further another drawing data output to the scanning line of the liquid crystal drawing part by the surface inspection illuminating device which concerns on embodiment of this invention. 本発明の実施形態に係る表面検査用照明装置による液晶描画部の走査線に出力するさらに他の描画データを説明するための図である。It is a figure for demonstrating further another drawing data output to the scanning line of the liquid crystal drawing part by the surface inspection illuminating device which concerns on embodiment of this invention.

以下、この発明の実施の形態について図面を参照して詳細に説明する。
本実施形態に係る表面検査用装置は、ガラス製品、フィルム製品、表面にメッキや塗装等が施された製品など、滑らかな表面を有する各種製品を検査対象4として、その表面に凹凸や傷などの欠陥が有るか否かを検査する機能を備えている。
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
The surface inspection apparatus according to the present embodiment uses various products having a smooth surface, such as glass products, film products, and products whose surfaces are plated or coated, to be inspected 4, and the surface has irregularities or scratches. It has a function of inspecting whether or not there is a defect.

図1(a)は、本発明の実施形態に係る表面検査装置の概要を示す模式図である。
表面検査装置は、表面検査用照明装置(以下、単に照明装置ということもある)1、撮像装置2及びコンピュータ3を含む構成となっている。
照明装置1は、表面検査用のパターン照明を検査対象4の表面に照射するための光源となる構成要素であり、本実施形態では液晶描画部10を備えた液晶照明装置を採用している。液晶照明装置は、描画データに応じて種々の照明パターンを液晶描画部10に描画することができ、バックライト11からの光線を液晶描画部10を通して検査対象4へ照射する構成となっている。
FIG. 1A is a schematic diagram showing an outline of a surface inspection apparatus according to an embodiment of the present invention.
The surface inspection device is configured to include a surface inspection illumination device (hereinafter, also simply referred to as an illumination device) 1, an imaging device 2, and a computer 3.
The illumination device 1 is a component serving as a light source for irradiating the surface of the inspection object 4 with pattern illumination for surface inspection. In the present embodiment, a liquid crystal illumination device including a liquid crystal drawing unit 10 is adopted. The liquid crystal lighting device can draw various illumination patterns on the liquid crystal drawing unit 10 according to the drawing data, and irradiate the inspection object 4 with light rays from the backlight 11 through the liquid crystal drawing unit 10.

撮像装置2は、検査対象4の表面を撮像して、その表面画像を得るための構成要素である。この撮像装置2には、例えば、デジタルビデオカメラなどを採用することができる。
コンピュータ3は、照明装置1と撮像装置2とを同期して制御するための中央制御部としての機能を備えるとともに、撮像装置2によって取得した検査対象4の表面画像を用いて、欠陥の有無を検査する機能も備えている。なお、コンピュータ3により処理される表面検査の原理については、既に周知となっているため、詳細な説明は省略する(例えば、特許文献1、非特許文献1及び2を参照)。
The image pickup device 2 is a component for picking up an image of the surface of the inspection object 4 and obtaining an image of the surface. For example, a digital video camera or the like can be adopted as the image pickup device 2.
The computer 3 has a function as a central control unit for controlling the illumination device 1 and the imaging device 2 in synchronization with each other, and uses the surface image of the inspection target 4 acquired by the imaging device 2 to determine the presence or absence of a defect. It also has an inspection function. Since the principle of the surface inspection processed by the computer 3 is already well known, detailed description is omitted (for example, refer to Patent Document 1, Non-Patent Documents 1 and 2).

照明装置1は、液晶描画部10に照明パターンを描画するための制御デバイスを内蔵している。具体的には、制御デバイスとしてFPGA(Field Programmable Gate Array)12を採用している。
FPGA12は、演算プログラムをハードウエアにより構築できる半導体集積回路であって、演算プログラム回路をユーザが自由に設定できるとともに、その後も自由に設定変更できることを特徴としている。さらに、FPGA12は、ハードウエアで構築された演算プログラムをもって演算処理を実行するために、ソフトウエアによる演算プログラムを読み出して演算処理を実行するマイコンに比べて、きわめて高速な演算処理を実現できる特徴を有している。
本実施形態に係る照明装置1は、このFPGA12により液晶描画部10への照明パターンの描画処理を実行することで、照明パターンの高速な描画処理を実現している。
The lighting device 1 has a control device for drawing an illumination pattern in the liquid crystal drawing unit 10. Specifically, an FPGA (Field Programmable Gate Array) 12 is adopted as a control device.
The FPGA 12 is a semiconductor integrated circuit capable of constructing an arithmetic program by hardware, and is characterized in that the arithmetic program circuit can be freely set by the user and can be freely changed thereafter. Further, the FPGA 12 has a feature that it can realize extremely high-speed arithmetic processing as compared with a microcomputer that reads out the arithmetic program by software and executes the arithmetic processing because the arithmetic processing is executed by the arithmetic program constructed by hardware. Have
The illumination device 1 according to the present embodiment realizes the high-speed drawing process of the illumination pattern by executing the drawing process of the illumination pattern on the liquid crystal drawing unit 10 by the FPGA 12.

図1(b)〜(e)は、本実施形態に係る照明装置において液晶描画部に描画される照明パターンの具体例を示す図である。
本実施形態において、表面検査に用いる照明パターン13には、明度の異なる明るい帯状部13aと暗い帯状部13bとが交互に配列された縞模様の照明パターンを採用している。各帯状部13a,13bは、明度が相違すればどのような色に描画してもよいが、本実施形態では明るい帯状部を白色帯状部13aに、暗い帯状部を黒色帯状部13bにしている。
1B to 1E are diagrams showing specific examples of the illumination pattern drawn on the liquid crystal drawing unit in the lighting device according to the present embodiment.
In the present embodiment, the illumination pattern 13 used for the surface inspection employs a striped illumination pattern in which bright strip portions 13a and dark strip portions 13b having different lightness are alternately arranged. The strips 13a and 13b may be drawn in any color as long as the brightness is different, but in the present embodiment, the bright strips are white strips 13a and the dark strips are black strips 13b. ..

例えば、図1(b)及び(c)の照明パターン13は、液晶描画部10の横軸(走査方向)に対して各帯状部13a,13bの向きを傾斜させた形態としてあり、同図(d)の照明パターン13は、液晶描画部10の横軸に対して各帯状部13a,13bを垂直に配置して縦縞模様を形成しており、同図(e)の照明パターン13は、液晶描画部10の横軸に対して各帯状部13a,13bを平行に配置して横縞模様を形成している。
本実施形態に係る照明装置1は、このような各種の照明パターン13を、FPGA12による演算処理をもって、液晶描画部10に高速に描画する構成としてある。
For example, the illumination pattern 13 of FIGS. 1B and 1C has a configuration in which the strip portions 13a and 13b are inclined with respect to the horizontal axis (scanning direction) of the liquid crystal drawing unit 10. The illumination pattern 13 of d) has vertical stripes formed by vertically arranging the strip portions 13a and 13b with respect to the horizontal axis of the liquid crystal drawing unit 10. The illumination pattern 13 of FIG. The strip portions 13a and 13b are arranged in parallel to the horizontal axis of the drawing unit 10 to form a horizontal stripe pattern.
The illumination device 1 according to the present embodiment is configured to draw such various illumination patterns 13 on the liquid crystal drawing unit 10 at high speed by the arithmetic processing by the FPGA 12.

図2は、一般的な液晶描画部の構成と、液晶描画部に照明パターンを描画するための信号を説明するための図である。
液晶描画部10は、描画領域14とその周囲の非描画領域15で構成されており、垂直同期信号(VS)と水平同期信号(HS)とによりこの全体領域を同期制御している。さらに、DE信号(DE:Data Enable)により描画領域14と同期して、ビデオ信号(R,G,B)を出力し、これにより描画領域14に所望の照明パターン13を描画する構成となっている。
なお、上述した信号による液晶描画部10の制御方式は一例であって、その他にも種々の制御方式が既に周知となっており、本発明の照明装置1はそれらを適宜選択して採用できることは勿論である。
FIG. 2 is a diagram for explaining a configuration of a general liquid crystal drawing unit and a signal for drawing an illumination pattern on the liquid crystal drawing unit.
The liquid crystal drawing unit 10 is composed of a drawing area 14 and a non-drawing area 15 around the drawing area 14, and synchronously controls the entire area by a vertical synchronizing signal (VS) and a horizontal synchronizing signal (HS). Further, a video signal (R, G, B) is output in synchronization with the drawing area 14 by a DE signal (DE: Data Enable), and thereby a desired illumination pattern 13 is drawn in the drawing area 14. There is.
It should be noted that the control method of the liquid crystal drawing unit 10 based on the above-mentioned signals is an example, and various other control methods are already known, and the illumination device 1 of the present invention can appropriately select and employ them. Of course.

本実施形態に係る照明装置1は、ラスター走査(Raster scan)方式をもって液晶描画部10に照明パターン13を描画している。
液晶描画部10は、多数の画素が横一列に配列されて走査線(scan line)を形成しており、さらに第1ラインから最終ラインまでの多数本の走査線が上から下に向かって縦方向に配列されて、二次元のフレーム(画面)を構成している。
ラスター走査方式では、液晶描画部10の横軸と平行配置された走査線に対して、通常は図2の左から右に向かって描画データを出力し、これを下側の走査線に逐次移動しながら繰り返して、二次元の照明パターン13を液晶描画部10に描画していく。
The illumination device 1 according to the present embodiment draws the illumination pattern 13 on the liquid crystal drawing unit 10 by the raster scan method.
In the liquid crystal drawing unit 10, a large number of pixels are arranged in a horizontal line to form a scan line, and a large number of scan lines from the first line to the final line are vertically arranged from top to bottom. They are arranged in a direction to form a two-dimensional frame (screen).
In the raster scanning method, drawing data is normally output from the left to the right in FIG. 2 with respect to the scanning lines arranged in parallel with the horizontal axis of the liquid crystal drawing unit 10, and the drawing data is sequentially moved to the lower scanning lines. While repeating, the two-dimensional illumination pattern 13 is drawn on the liquid crystal drawing unit 10.

このようにして最初のフレーム(第1フレーム)に照明パターン13を描画した後、次のフレーム(第2フレーム)の描画に移行して、引き続き同じ照明パターン13を描画し、この描画処理をフレームを変えて繰り返し実行する。これにより特に条件を変えない限りは所定の照明パターンが固定された状態で液晶描画部10に描かれ続ける。 In this way, after the illumination pattern 13 is drawn in the first frame (first frame), the process moves to the drawing of the next frame (second frame), the same illumination pattern 13 is continuously drawn, and this drawing process is performed in the frame. Change and repeat. As a result, unless the conditions are changed, the liquid crystal drawing unit 10 continues to draw a predetermined illumination pattern in a fixed state.

図3は、照明パターンを生成するために必要な設定要素を説明するための図である。
同図(a)及び(b)に示すように、本実施形態に係る照明装置1は、走査線の向きと平行な横軸に対する各帯状部13a,13bの傾斜角度θを任意に設定して照明パターン13を形成することで、各帯状部13a,13bの向きをさまざまな方向へ自由に変更できるようにしてある。これによりロボットアーム等の外部機構を利用することなく、検査対象の表面に対する照明パターン13の向きを変更することができる。
また、白色帯状部13aの幅寸法Waと黒色帯状部13bの幅寸法Wbも、任意に設定することができるようにしてある。
FIG. 3 is a diagram for explaining setting elements necessary for generating an illumination pattern.
As shown in (a) and (b) of the figure, in the illumination device 1 according to the present embodiment, the inclination angle θ of each of the strip portions 13a and 13b with respect to the horizontal axis parallel to the direction of the scanning line is arbitrarily set. By forming the illumination pattern 13, the orientation of each strip 13a, 13b can be freely changed in various directions. Thereby, the direction of the illumination pattern 13 with respect to the surface of the inspection target can be changed without using an external mechanism such as a robot arm.
Further, the width dimension Wa of the white strip portion 13a and the width dimension Wb of the black strip portion 13b can be set arbitrarily.

既述したように、本実施形態に係る照明装置1では、ラスター走査方式をもって液晶描画部10に照明パターン13を描画するので、各帯状部13a,13bが走査方向(すなわち、横軸と平行な方向)に対して傾斜しているときは、白色帯状部13aの幅寸法Waと黒色帯状部13bの幅寸法Wbを走査方向の寸法値に変換する必要がある。
図3(d)に示すように、白色帯状部13aの走査方向の幅寸法Haは、Ha=Wa/sinθの式をもって算出することができる。同様に、黒色帯状部13bの走査方向の幅寸法Hbは、Hb=Wb/sinθの式をもって算出することができる。
As described above, in the illumination device 1 according to the present embodiment, the illumination pattern 13 is drawn on the liquid crystal drawing unit 10 by the raster scanning method, so that each strip 13a, 13b is in the scanning direction (that is, parallel to the horizontal axis). Direction), it is necessary to convert the width dimension Wa of the white strip portion 13a and the width dimension Wb of the black strip portion 13b into dimension values in the scanning direction.
As shown in FIG. 3D, the width dimension Ha of the white strip portion 13a in the scanning direction can be calculated by the equation Ha=Wa/sin θ. Similarly, the width dimension Hb of the black strip portion 13b in the scanning direction can be calculated by the equation Hb=Wb/sin θ.

また、各帯状部13a,13bの傾斜角度θの設定値に応じて、各帯状部13a,13bを傾斜して描画するための各走査線ごとの各帯状部13a,13bの走査方向へのシフト量(ライン間シフト量)cを算出する必要がある。このライン間シフト量cは、c=1/tanθの式をもって算出することができる。
各走査線の描画処理に際して、このライン間シフト量が加味されることによって、液晶描画部10に各帯状部13a,13bが傾斜した二次元の照明パターン13を描画することができる。
Further, in accordance with the set value of the inclination angle θ of each strip 13a, 13b, each strip 13a, 13b is shifted in the scanning direction for each scanning line for drawing with inclination. It is necessary to calculate the amount (shift amount between lines) c. This line-to-line shift amount c can be calculated by the equation c=1/tan θ.
By adding the shift amount between the lines in the drawing process of each scanning line, the two-dimensional illumination pattern 13 in which the strip portions 13a and 13b are inclined can be drawn in the liquid crystal drawing unit 10.

また、本実施形態では、液晶描画部10に描画される照明パターン13について、各帯状部13a,13bを幅方向へ逐次移動させるためのシフト量Lをあらかじめ設定することもできる。これは検査を行う際、照明パターン13をシフトさせて画像を取得するためのものである。例えば、非特許文献2に記載されたような原理をもって表面検査を実施する場合に、照明パターン13をフレーム間でシフトして描画することが必要となる。 Further, in the present embodiment, with respect to the illumination pattern 13 drawn on the liquid crystal drawing unit 10, a shift amount L for sequentially moving the strip-shaped portions 13a and 13b in the width direction can be set in advance. This is for shifting the illumination pattern 13 and acquiring an image when performing an inspection. For example, when the surface inspection is performed based on the principle described in Non-Patent Document 2, it is necessary to shift the illumination pattern 13 between frames to draw.

このシフト量Lが設定されている場合は、当該シフト量Lを走査方向へのシフト量(フレーム間シフト量)sに変換する必要がある。図3(d)に示すように、このフレーム間シフト量sは、s=L/sinθの式をもって算出することができる。
なお、フレーム間シフト量sは、白色帯状部13aの走査方向の幅寸法Haと黒色帯状部13bの走査方向の幅寸法Hbのうち、いずれか小さい方の幅寸法よりも小さい値に設定される。
When this shift amount L is set, it is necessary to convert the shift amount L into a shift amount (interframe shift amount) s in the scanning direction. As shown in FIG. 3D, the interframe shift amount s can be calculated by the equation s=L/sin θ.
The inter-frame shift amount s is set to a value smaller than the smaller one of the width dimension Ha of the white strip portion 13a in the scanning direction and the width dimension Hb of the black strip portion 13b in the scanning direction. ..

なお、本実施形態では、図3(c)に示すように、走査方向に対する各帯状部13a,13bの傾斜角度θを、横軸と平行な角度を0゜とし、これを原点に時計方向の傾斜を正(+)、反時計方向の傾斜を負(−)と規定している。また、走査方向への移動(図3(d)の左から右)を正(+)、その逆方向(同じく右から左)を負(−)と規定している。 In the present embodiment, as shown in FIG. 3(c), the inclination angle θ of each of the strip portions 13a and 13b with respect to the scanning direction is set to an angle of 0° parallel to the horizontal axis, and this is the origin in the clockwise direction. The tilt is defined as positive (+) and the counterclockwise tilt is defined as negative (-). Further, the movement in the scanning direction (from left to right in FIG. 3D) is defined as positive (+), and the opposite direction (also from right to left) is defined as negative (-).

図4は、FPGAの内部に構成された照明パターンを描画するための処理回路の概要を示すブロック図である。
照明パターン13を描画するための処理回路は、ビデオタイミング生成部20と、照明パターン生成部21とを含んでいる。
FIG. 4 is a block diagram showing an outline of a processing circuit for drawing an illumination pattern configured inside the FPGA.
The processing circuit for drawing the illumination pattern 13 includes a video timing generation unit 20 and an illumination pattern generation unit 21.

ビデオタイミング生成部20には、描画対象となる液晶描画部10の仕様に基づき、当該液晶描画部10の水平総ピクセル数、水平アクティブピクセル数、垂直総ライン数、垂直アクティブライン数、水平ピクセルオフセット量、垂直ラインオフセット量の各情報が、あらかじめ設定されている。水平総ピクセル数は、図2に示した液晶描画部10において横方向に延びる走査線を構成する画素数である。水平アクティブピクセル数は、走査線を構成する画素のうち、同図の描画領域14に配置された画素数である。垂直総ライン数は、同図の液晶描画部10において縦方向に配列された走査線の総本数である。垂直アクティブライン数は、走査線の総本数のうち、同図の描画領域14に配置された走査線の本数である。 The video timing generation unit 20 includes a horizontal total pixel number, a horizontal active pixel number, a vertical total line number, a vertical active line number, and a horizontal pixel offset based on the specifications of the liquid crystal drawing unit 10 to be drawn. Each information of the amount and the vertical line offset amount is set in advance. The horizontal total number of pixels is the number of pixels forming a scanning line extending in the horizontal direction in the liquid crystal drawing unit 10 shown in FIG. The number of horizontal active pixels is the number of pixels arranged in the drawing area 14 in the figure among the pixels forming the scanning line. The vertical total number of lines is the total number of scanning lines arranged in the vertical direction in the liquid crystal drawing unit 10 of FIG. The number of vertical active lines is the number of scanning lines arranged in the drawing area 14 in the figure among the total number of scanning lines.

これらの設定値は、描画対象となる液晶描画部10を変更した際には、変更後の液晶描画部10の仕様に基づいて書き換えられる。ビデオタイミング生成部20を、後述する照明パターン生成部21と分けて構成することで、液晶描画部10の仕様変更(例えば、解像度の変更)に対して、ビデオタイミング生成部20だけの設定値の変更で対応できるため、当該仕様変更への対応が容易となる。 When the liquid crystal drawing unit 10 to be drawn is changed, these set values are rewritten based on the changed specifications of the liquid crystal drawing unit 10. By configuring the video timing generation unit 20 separately from the illumination pattern generation unit 21, which will be described later, when the specification of the liquid crystal drawing unit 10 is changed (for example, the resolution is changed), the set value of only the video timing generation unit 20 is set. Since changes can be dealt with, it is easy to deal with the changes in specifications.

ビデオタイミング生成部20は、これらの設定情報に基づき、図2に示した垂直同期信号(VS)、水平同期信号(HS)及びDE信号と、描画初期値の計算タイミング信号とを、クロック信号にタイミングを合わせて出力する。これらの出力信号のうち、垂直同期信号(VS)と水平同期信号(HS)は、液晶描画部10に送られる。また、DE信号は、照明パターン生成部21と液晶描画部10にそれぞれ送られる。そして、描画初期値の計算タイミング信号は、照明パターン生成部21に送られる。 The video timing generation unit 20 uses the vertical synchronization signal (VS), the horizontal synchronization signal (HS) and the DE signal shown in FIG. 2 and the timing signal for calculating the drawing initial value as clock signals based on these setting information. Output at the correct timing. Of these output signals, the vertical synchronizing signal (VS) and the horizontal synchronizing signal (HS) are sent to the liquid crystal drawing unit 10. Further, the DE signal is sent to the illumination pattern generation unit 21 and the liquid crystal drawing unit 10, respectively. Then, the calculation timing signal of the drawing initial value is sent to the illumination pattern generation unit 21.

照明パターン生成部21には、液晶描画部10に描画する照明パターン13に関する設定値が、描画パラメータとしてあらかじめ設定される。
本実施形態では、図3(d)に示した白色帯状部13aの走査方向の幅寸法Ha、黒色帯状部13bの走査方向の幅寸法Hb、ライン間シフト量c、フレーム間シフト量sの各設定値が、描画パラメータとして、照明パターン生成部21にあらかじめ設定される。これらの設定値は、任意に書き換えることができる。
The illumination pattern generation unit 21 is preset with a setting value regarding the illumination pattern 13 drawn on the liquid crystal drawing unit 10 as a drawing parameter.
In the present embodiment, each of the width dimension Ha in the scanning direction of the white strip portion 13a, the width dimension Hb in the scanning direction of the black strip portion 13b, the inter-line shift amount c, and the inter-frame shift amount s shown in FIG. The set value is preset in the illumination pattern generation unit 21 as a drawing parameter. These set values can be rewritten arbitrarily.

照明パターン生成部21は、ビデオタイミング生成部20からフレーム初期値を入力したとき、これらの描画パラメータに基づき、液晶描画部10に描画する各フレームの最初の走査線(第1ライン)を描画するための描画データを生成して、液晶描画部10に出力する。さらに引き続き、ビデオタイミング生成部20から入力したDE信号に同期して、各走査線ごとの描画データ(ビデオ信号)を逐次生成していく。 When the frame initial value is input from the video timing generation unit 20, the illumination pattern generation unit 21 draws the first scanning line (first line) of each frame drawn in the liquid crystal drawing unit 10 based on these drawing parameters. The drawing data is generated and output to the liquid crystal drawing unit 10. Further subsequently, the drawing data (video signal) for each scanning line is sequentially generated in synchronization with the DE signal input from the video timing generation unit 20.

上述した各描画パラメータは、符号のない固定小数点フォーマットをもって照明パターン生成部21に設定される。
例えば、描画対象となる液晶描画部10を、1920×1080ピクセルの画面解像度を備えたフルHDの液晶ディスプレイで構成した場合、この液晶描画部10に少なくとも各帯状部13a,13bがそれぞれ1本以上描画されることを前提とすれば、各帯状部13a,13bの幅寸法Wa,Wbの最大値は、1920ピクセルの半分の寸法幅(960ピクセル)に設定すれば十分である。そして、傾斜角度θを1゜に設定したとき、各帯状部13a,13bの走査方向の幅寸法Ha,Hbが最大値となる。
そのときの各帯状部13a,13bの走査方向の幅寸法Ha,Hbは、Ha=Hb=960/sin1゜=55006.741となる。当該数値の整数部分5桁を2進数で演算処理するには16ビットが少なくとも必要となり、同様に当該数値の小数点部分3桁を2進数で演算処理するには少なくとも12ビットが必要となる。
The drawing parameters described above are set in the illumination pattern generation unit 21 in a fixed-point format with no sign.
For example, when the liquid crystal drawing unit 10 to be drawn is composed of a full HD liquid crystal display having a screen resolution of 1920×1080 pixels, the liquid crystal drawing unit 10 has at least one strip-shaped portion 13a or 13b, respectively. Assuming that drawing is performed, it is sufficient to set the maximum value of the width dimensions Wa and Wb of the strip portions 13a and 13b to a dimension width half the 1920 pixels (960 pixels). Then, when the inclination angle θ is set to 1°, the width dimensions Ha and Hb in the scanning direction of the strip portions 13a and 13b become maximum values.
The widths Ha and Hb in the scanning direction of the strip portions 13a and 13b at that time are Ha=Hb=960/sin1°=5506.741. At least 16 bits are required to arithmetically process the five digits of the integer part of the numerical value with a binary number, and similarly, at least 12 bits are required to arithmetically process the three digits of the decimal point part of the numerical value with a binary number.

そこで、本実施形態では、整数部分に16ビット、小数点部分に12ビットを割り当てた固定小数点フォーマットを採用している。
ここで、照明パターン生成部21は、演算処理は小数点部分も含めて実行するが、演算処理により得られた結果は、整数部分のみを用いて照明パターン13の描画データを作成するようにしている。これにより、FPGA12に構築する処理回路の構成を簡素化でき、照明パターン13をいっそう高速に描画できるようになる。上述した説明において、各帯状部13a,13bの走査方向の幅寸法Ha,Hbに関する最大値を求める際に、各帯状部13a,13bの傾斜角度θを1゜に設定したのも、整数部分のみで検討したからに他ならない。
なお、FPGA12に構築される照明パターン生成部21の仕様は、これに限定されないことは勿論である。
Therefore, in this embodiment, a fixed point format is used in which 16 bits are assigned to the integer part and 12 bits are assigned to the decimal point part.
Here, the illumination pattern generation unit 21 executes the calculation process including the decimal point part, but the result obtained by the calculation process is configured to create the drawing data of the illumination pattern 13 using only the integer part. .. As a result, the configuration of the processing circuit built in the FPGA 12 can be simplified and the illumination pattern 13 can be drawn at a higher speed. In the above description, the inclination angle θ of each strip 13a, 13b is set to 1° when obtaining the maximum value concerning the widths Ha, Hb in the scanning direction of each strip 13a, 13b. Because it was examined in.
The specification of the illumination pattern generation unit 21 built in the FPGA 12 is not limited to this.

さて、上述したように照明パターン生成部21が、固定小数点フォーマットの整数部分のみで照明パターン13の描画データを作成する場合、各帯状部13a,13bの傾斜角度θが0゜、すなわち図1(e)に示したような横縞模様の照明パターン13を描画する場合に、演算処理に不都合が生じるおそれがある。
すなわち、ライン間シフト量cは、c=1/tan0゜=∞となってしまうため、16ビットの二進数で処理される整数部分で、正確に傾斜角度θ=0゜の横縞模様の照明パターン13を描画することができない。
As described above, when the illumination pattern generation unit 21 creates the drawing data of the illumination pattern 13 using only the integer part of the fixed point format, the inclination angle θ of each strip 13a, 13b is 0°, that is, FIG. When drawing the horizontal striped illumination pattern 13 as shown in e), inconvenience may occur in the arithmetic processing.
That is, since the line shift amount c is c=1/tan0°=∞, it is an integer part processed by a 16-bit binary number, and a horizontal striped illumination pattern with an accurate inclination angle θ=0° is used. 13 cannot be drawn.

そこで、本実施形態では、傾斜角度θ=0゜の横縞模様の照明パターン13を描画する場合のみ、固定小数点フォーマットの整数部分の容量を大きく(例えば、16ビットから28ビットに変更)することで対応するようにしている。これにより、傾斜角度θ=0゜の横縞模様に近似させ、視覚的には横縞模様に見える照明パターン13を描画することが可能となる。ただしこの場合、θ=0°に対応した回路をFPGA12内に構築する必要がある。
あるいはまた、θ=0°を含むすべての角度について最初から整数部28ビットで対応するモードを用意してもよい。この場合はFPGA12内において同一の回路ですべての角度の描画を行うことができる。
Therefore, in the present embodiment, the capacity of the integer part of the fixed-point format is increased (for example, changed from 16 bits to 28 bits) only when the horizontal stripe illumination pattern 13 having the inclination angle θ=0° is drawn. I am trying to respond. This makes it possible to approximate the horizontal striped pattern with the inclination angle θ=0° and draw the illumination pattern 13 that visually looks like the horizontal striped pattern. However, in this case, a circuit corresponding to θ=0° needs to be built in the FPGA 12.
Alternatively, a mode may be prepared in which the integer part corresponds to 28 bits from the beginning for all angles including θ=0°. In this case, the same circuit in the FPGA 12 can draw all angles.

また、傾斜角度θ=0゜の横縞模様の照明パターン13を描画する場合のみ、アルゴリズムを変更して、あらかじめ用意した傾斜角度θ=0゜の横縞模様の照明パターン13の描画データをメモリから読み出して液晶描画部10に出力する構成としてもよい。 Further, only when the horizontal stripe illumination pattern 13 with the inclination angle θ=0° is drawn, the algorithm is changed to read the drawing data of the horizontal stripe illumination pattern 13 with the inclination angle θ=0° prepared from the memory. It may be configured to output to the liquid crystal drawing unit 10 in accordance with the above.

次に上述した照明パターン生成部21による液晶描画部10への照明パターン13の描画方法について説明する。
図5及び図6は、液晶描画部10の走査線に出力する描画データを説明するための図である。
各帯状部13a,13bが走査方向に対して傾斜した照明パターン13(例えば、図1(b)又は(c)の照明パターン)を描画するには、各走査線ごとに所定のオフセット量を加味して描画処理が実行される。なお、図5及び図6に基づく以下の描画方法では、シフト量L(フレーム間シフト量s)は設定せず、照明パターン13が静止した状態で液晶描画部10に描かれ続ける。
Next, a method of drawing the illumination pattern 13 on the liquid crystal drawing unit 10 by the above-described lighting pattern generation unit 21 will be described.
5 and 6 are diagrams for explaining drawing data output to the scanning lines of the liquid crystal drawing unit 10.
In order to draw the illumination pattern 13 (for example, the illumination pattern of FIG. 1B or 1C) in which the strip portions 13a and 13b are inclined with respect to the scanning direction, a predetermined offset amount is added for each scanning line. Then, the drawing process is executed. In the following drawing method based on FIG. 5 and FIG. 6, the shift amount L (interframe shift amount s) is not set, and the lighting pattern 13 continues to be drawn on the liquid crystal drawing unit 10 in a stationary state.

本実施形態では、各帯状部13a,13bの走査線に対する傾斜角度θが正(+)の値の照明パターン13を描画する場合は、図5に示す手順で描画処理を実行する。 In the present embodiment, when drawing the illumination pattern 13 in which the inclination angle θ of each of the strips 13a and 13b with respect to the scanning line has a positive (+) value, the drawing process is executed according to the procedure shown in FIG.

まず、液晶描画部10の最初のフレーム(初期フレーム)における最初の走査線(第1ライン)は、最初の帯状部をオフセット部Aに設定し、このオフセット部Aを、次のように描画する。すなわち、一方の帯状部13a又は13bの全幅をオフセット量eに設定するとともに、当該一方の帯状部13a又は13bの色をオフセット色(本実施例の場合は黒か白であり、隣接する帯状部の色と同じにならないように選択される)に設定して、オフセット部Aを描画する。その後は、連続して他方の帯状部13b又は13aと一方の帯状部13a又は13bとを交互に描画していく。 First, in the first scanning line (first line) in the first frame (initial frame) of the liquid crystal drawing unit 10, the first strip-shaped portion is set as the offset portion A, and the offset portion A is drawn as follows. .. That is, the entire width of the one strip 13a or 13b is set to the offset amount e 1, and the color of the one strip 13a or 13b is set to the offset color (black or white in the present embodiment, and adjacent strips 13a or 13b). Set so that the color of the copy does not become the same), and the offset part A is drawn. After that, the other strip-shaped portion 13b or 13a and the one strip-shaped portion 13a or 13b are continuously and alternately drawn.

図5に示す具体例では、第1ラインにおけるオフセット部Aについて、白色帯状部13aの全幅Haをオフセット量eに設定して描画する。さらに、オフセット部Aに連続して、黒色帯状部13bと白色帯状部13aとを交互に描画していく。 In the specific example shown in FIG. 5, with respect to the offset portion A in the first line, the entire width Ha of the white strip portion 13a is set to the offset amount e 1 and drawn. Further, the black strip portion 13b and the white strip portion 13a are alternately drawn in succession to the offset portion A.

次に、初期フレームにおけるnライン目の走査線(第nライン、nは自然数)については、原則として、オフセット部A(最初の帯状部)からライン間シフト量cを逐次減算していく。すなわち、第2ラインでは、第1ラインで設定したオフセット量eからライン間シフト量cを減算して、オフセット部Aを描画する。続く第3ラインでは、第2ラインで設定したオフセット量eからライン間シフト量cを減算して、オフセット部分Aを描画する。
各ラインのオフセット部Aの次には、異なる色の帯状部13a,13bを交互に配置するように描画していく。
Next, for the scanning line of the nth line (nth line, n is a natural number) in the initial frame, as a general rule, the inter-line shift amount c is sequentially subtracted from the offset portion A (first strip portion). That is, in the second line, the offset amount A is drawn by subtracting the inter-line shift amount c from the offset amount e 1 set in the first line. In the subsequent third line, the offset amount A is drawn by subtracting the inter-line shift amount c from the offset amount e 2 set in the second line.
Next to the offset portion A of each line, drawing is performed so that the strip portions 13a and 13b of different colors are alternately arranged.

ここで、オフセット部Aの次に描画した帯状部(二番目の帯状部)の幅をa、さらにその次に描画した帯状部(三番目の帯状部)の幅をbとする。 Here, the width of the strip-shaped portion (second strip-shaped portion) drawn next to the offset portion A is a, and the width of the strip-shaped portion (third strip-shaped portion) drawn next is b.

そして、第n−1ラインのオフセット量en−1が、ライン間シフト量cよりも小さくなった場合(en−1<c)には、第n−1ラインにおける上記二番目の帯状部の幅aを使用して、次の第nラインのオフセット量eを算出して設定する。このオフセット量eは、a−|en−1−c|となる。 When the offset amount en -1 of the ( n-1 )th line becomes smaller than the inter-line shift amount c (en -1 <c), the second strip-shaped portion on the ( n-1 )th line is used. use width a, calculates and sets the offset amount e n of the next n-th line. The offset amount e n is, a- | a | e n-1 -c.

具体的には、図5の第3ラインに示すように、オフセット量eがライン間シフト量cよりも小さくなった場合(e<c)には、この第3ラインにおける二番目の帯状部の幅aを使用して、次の第4ラインのオフセット量eを算出して設定する。この第4ラインのオフセット量eは、a−|e−c|となる。このように最終ラインまで描画を終えた後、また第1ラインから描画を行うが、その際オフセット量を初期の設定値eに戻す。こうすることで特に初期条件を変えない限りは所定の照明パターンが固定された状態で液晶描画部10に描かれ続ける。 Specifically, as shown in the third line of FIG. 5, when the offset amount e 3 becomes smaller than the inter-line shift amount c (e 3 <c), the second strip shape in the third line is formed. Using the width a of the part, the offset amount e 4 of the next fourth line is calculated and set. Offset e 4 of the fourth line, a- | e 3 -c | become. After the drawing is completed up to the last line, the drawing is started from the first line, and the offset amount is returned to the initial set value e 1 at that time. By doing so, unless a particular initial condition is changed, a predetermined illumination pattern is fixed and continues to be drawn on the liquid crystal drawing unit 10.

次に、各帯状部13a,13bの走査線に対する傾斜角度θが負(−)の値の照明パターン13を描画する場合には、図6に示す手順で描画処理を実行する。 Next, when drawing the illumination pattern 13 in which the inclination angle θ of each of the strip portions 13a and 13b with respect to the scanning line is a negative (−) value, the drawing process is executed in the procedure shown in FIG.

まず、液晶描画部10の最初のフレーム(初期フレーム)における最初の走査線(第1ライン)には、オフセット量をゼロに設定し、一方の帯状部13a又は13bから描画を開始して、引き続き、隣接する帯状部が同じ色にならないように、交互に各帯状部13a及び13bを描画していく。 First, the offset amount is set to zero for the first scanning line (first line) in the first frame (initial frame) of the liquid crystal drawing unit 10, and drawing is started from one of the strip portions 13a or 13b, and then continued. , The strips 13a and 13b are drawn alternately so that the adjacent strips do not have the same color.

図6に示す具体例では、第1ラインを、白色帯状部13aから描画し、さらに連続して黒色帯状部13bと白色帯状部13aとを交互に描画していくようにしてある。 In the specific example shown in FIG. 6, the first line is drawn from the white band-shaped portion 13a, and the black band-shaped portion 13b and the white band-shaped portion 13a are alternately drawn continuously.

次に、初期フレームにおけるnライン目の走査線(第nライン、nは自然数)については、原則として、最初の帯状部をオフセット部Aに設定し、このオフセット部Aにライン間シフト量cを逐次加算していく。 Next, for the scanning line of the nth line (nth line, n is a natural number) in the initial frame, as a general rule, the first strip portion is set to the offset portion A, and the offset amount A is set to the line shift amount c. Sequentially add.

図6に示す具体例では、第2ラインのオフセット部Aは、第1ラインの最初の帯状部(白色帯状部13a)とは異なる黒色で描画している。なお、第1ラインはオフセット量がゼロだったので、第2ラインのオフセット量eはライン間シフト量cとなる。続く第3ラインでは、第2ラインで設定したオフセット量eにライン間シフト量cを同じ色で加算して、オフセット部分Aを描画する。
各ラインのオフセット部の次には、異なる色の帯状部13a,13bを交互に配置するように描画していく。
In the specific example shown in FIG. 6, the offset portion A of the second line is drawn in a black color different from that of the first strip portion (white strip portion 13a) of the first line. Since the offset amount of the first line was zero, the offset amount e 2 of the second line is the inter-line shift amount c. In the subsequent third line, the offset amount e 2 set in the second line is added with the inter-line shift amount c in the same color to draw the offset portion A.
Next to the offset portion of each line, drawing is performed so that strip portions 13a and 13b of different colors are alternately arranged.

ここでも、オフセット部分Aの次に描画した帯状部(二番目の帯状部)の幅をa、さらにその次に描画した帯状部(三番目の帯状部)の幅をbとする。 Also in this case, the width of the strip portion (second strip portion) drawn next to the offset portion A is a, and the width of the strip portion (third strip portion) drawn next is a.

そして、第n−1ラインのオフセット量en−1にライン間シフト量cを加算した値が、第n−1ラインにおける上記三番目の帯状部の幅bよりも大きくなった場合(en−1+c>b)には、第n−1ラインにおける当該三番目の帯状部の幅bを使用して、次の第nラインのオフセット量eを算出して設定する。このオフセット量eは、en−1+c−bとなる。そして、そのオフセット部Aの色は別の色に変更する。 Then, if the value obtained by adding the offset amount e n-1 to the line between the shift amount c of the n-1 line, becomes larger than the width b of the third strip portion in the n-1 line (e n -1 + c to> b), using the width b of the third strip portion in the n-1 line, calculates and sets the offset amount e n of the next n-th line. The offset amount e n becomes e n-1 + c-b . Then, the color of the offset portion A is changed to another color.

具体的には、図6の第3ラインに示すように、オフセット量eにライン間シフト量cを加算した値が、第3ラインにおける三番目の帯状部の幅bよりも大きくなった場合(e+c>b)に、この第3ラインにおける三番目の帯状部の幅bを使用して、次の第4ラインのオフセット量eを算出して設定する。すなわち、次の第4ラインのオフセット量eは、e+c−bとなる。この第4ラインのオフセット部Aの色は、白に変更する。このように最終ラインまで描画を終えた後、また第1ラインから描画を行うが、その際オフセット量を初期の設定値(ゼロ)に戻す。こうすることで特に初期条件を変えない限りは所定の照明パターンが固定された状態で液晶描画部10に描かれ続ける。 Specifically, as shown in the third line in FIG. 6, when the value obtained by adding the inter-line shift amount c to the offset amount e 3 is larger than the width b of the third strip in the third line. The width b of the third strip in the third line is used for (e 3 +c>b) to calculate and set the offset amount e 4 of the next fourth line. That is, the offset amount e 4 of the next fourth line is e 3 +c−b. The color of the offset portion A of the fourth line is changed to white. After the drawing is completed up to the last line, the drawing is started from the first line, and the offset amount is returned to the initial setting value (zero). By doing so, unless a particular initial condition is changed, a predetermined illumination pattern is fixed and continues to be drawn on the liquid crystal drawing unit 10.

次に、シフト量Lを設定した場合の照明パターン13の描画方法について、図7及び図8を参照して説明する。
液晶描画部10に描画される照明パターン13についてシフト量Lをあらかじめ設定した場合には、図3(d)に示したフレーム間シフト量sだけ走査方向又はその逆方向へ移動させた照明パターン13を、各フレームごとに描画していく。
Next, a method of drawing the illumination pattern 13 when the shift amount L is set will be described with reference to FIGS. 7 and 8.
When the shift amount L is preset for the illumination pattern 13 drawn on the liquid crystal drawing unit 10, the illumination pattern 13 moved in the scanning direction or the opposite direction by the inter-frame shift amount s shown in FIG. 3D. Is drawn for each frame.

例えば、図7に示すように、照明パターン13を4枚のフレームによって1周期分を走査方向へ移動させて初期フレームの位置に戻す場合は、次のように各フレームを描画すればよい。
すなわち、初期フレームの各ライン(第nライン)について、先端から1周期分の画像Bを4分割した分割画像B1〜B4を想定し、それら各分割画像B1〜B4に相当する画像を後ろから、各フレームにおける同じラインの先端に逐次追加して、照明パターンを描画する。各分割画像B1〜B4の幅は、フレーム間シフト量sとなる。
For example, as shown in FIG. 7, when the illumination pattern 13 is moved in the scanning direction by four frames and returned to the position of the initial frame, each frame may be drawn as follows.
That is, for each line (nth line) of the initial frame, assume that divided images B1 to B4 are obtained by dividing the image B for one period from the leading end into four, and the images corresponding to these divided images B1 to B4 are set from the rear, An illumination pattern is drawn by sequentially adding to the tip of the same line in each frame. The width of each of the divided images B1 to B4 is the interframe shift amount s.

具体的には、図7に示すように、第2フレームにおける同じライン(第nライン)の先端には、後ろから1つ目の分割画像B1(幅s)に相当する画像を追加して、照明パターン13を描画し、同様に、第3フレームでは後ろから2つ目までの分割画像B1+B2(幅2s)に相当する画像を追加し、第4フレームでは後ろから3つ目までの分割画像B1+B2+B3(幅3s)に相当する画像を追加し、第5フレームでは後ろから4つ目までの分割画像B1+B2+B3+B4(幅4s)に相当する画像を追加して、それぞれ照明パターン13を描画していく。 Specifically, as shown in FIG. 7, an image corresponding to the first divided image B1 (width s) from the rear is added to the tip of the same line (nth line) in the second frame, The illumination pattern 13 is drawn, and similarly, in the third frame, an image corresponding to the second divided image B1+B2 (width 2s) from the back is added, and in the fourth frame, the third divided image B1+B2+B3 from the back is added. An image corresponding to (width 3s) is added, and in the fifth frame, an image corresponding to the fourth divided image B1+B2+B3+B4 (width 4s) from the back is added, and the illumination pattern 13 is drawn.

次の周期のフレーム、すなわち第6フレーム以降は、図7に示した第2フレームから第5フレームまでの手順を繰り返して、移動する照明パターン13を描画していけばよい。 For the frame of the next cycle, that is, the sixth frame and thereafter, the moving illumination pattern 13 may be drawn by repeating the procedure from the second frame to the fifth frame shown in FIG. 7.

また、図8に示すように、照明パターン13を4枚のフレームによって1周期分を走査方向と逆の方向へ移動させて初期フレームの位置に戻す場合は、次のように各フレームを描画すればよい。 Further, as shown in FIG. 8, when the illumination pattern 13 is moved to the position of the initial frame by moving one cycle by the four frames in the direction opposite to the scanning direction, each frame is drawn as follows. Good.

すなわち、初期フレームの各ライン(第nライン)について、先端から1周期分の画像Bを4分割した分割画像B1〜B4を想定し、それらの各分割画像B1〜B4に相当する画像を前から切り取って、各フレームにおける同じラインの描画を実行する。 That is, for each line (nth line) of the initial frame, assume that divided images B1 to B4 are obtained by dividing the image B for one period from the leading end into four, and the images corresponding to these divided images B1 to B4 are arranged from the front. Cut out and draw the same line in each frame.

具体的には、図8に示すように、第2フレームにおける同じライン(第nライン)では、前から1つ目の分割画像B4(幅s)に相当する画像を切り取って照明パターン13を描画する。同様に、第3フレームでは前から2つ目までの分割画像B4+B3(幅2s)に相当する画像を切り取り、第4フレームでは前から3つ目までの分割画像B4+B3+B2(幅3s)に相当する画像を切り取り、第5フレームでは前から4つ目までの分割画像B4+B3+B2+B1(幅4s)に相当する画像を切り取って、それぞれ同じライン(第nライン)を描画していく。 Specifically, as shown in FIG. 8, in the same line (nth line) in the second frame, the image corresponding to the first divided image B4 (width s) is cut out and the illumination pattern 13 is drawn. To do. Similarly, in the third frame, an image corresponding to the second divided image B4+B3 (width 2s) from the front is cut out, and in the fourth frame, an image corresponding to the third divided image B4+B3+B2 (width 3s). In the fifth frame, the image corresponding to the fourth divided image B4+B3+B2+B1 (width 4s) from the front is cut, and the same line (nth line) is drawn.

次の周期のフレーム、すなわち第6フレーム以降は、図8に示した第2フレームから第5フレームまでの手順を繰り返して、移動する照明パターン13を描画していけばよい。 From the frame of the next cycle, that is, the sixth frame and thereafter, the moving illumination pattern 13 may be drawn by repeating the procedure from the second frame to the fifth frame shown in FIG.

図7及び図8に示した描画方法では、照明パターン13を4枚のフレームによって1周期分を走査方向へ移動させる描画方法を示したが、任意の枚数のフレームによって1周期分を走査方向へ移動させることもできる。その場合は、先端から1周期分の画像をフレームの枚数に対応する数の画像に分割して、上述した実施形態と同様に、それらの分割画像を各フレームごとに追加又は切り取っていけばよい。 In the drawing method shown in FIGS. 7 and 8, the drawing method is shown in which the illumination pattern 13 is moved in the scanning direction by four frames, but one cycle is moved in the scanning direction by an arbitrary number of frames. It can also be moved. In that case, one cycle of the image from the tip may be divided into a number of images corresponding to the number of frames, and the divided images may be added or cut out for each frame, as in the above-described embodiment. ..

また、移動する照明パターン13を描画する各フレームの間に、静止した照明パターン13を描画するフレームを適宜挿入することで、照明パターン13が間欠的に移動する画像を描画することも可能である。 It is also possible to draw an image in which the lighting pattern 13 moves intermittently by appropriately inserting a frame for drawing the stationary lighting pattern 13 between each frame for drawing the moving lighting pattern 13. ..

なお、本発明は上述した実施形態に限定されるものではなく、必要に応じて種々の応用実施例や変形実施が可能であることは勿論である。 It should be noted that the present invention is not limited to the above-described embodiment, and it is needless to say that various application examples and modified implementations are possible as necessary.

1:照明装置、2:撮像装置、3:コンピュータ、4:検査対象、
10:液晶描画部、11:バックライト、12:FPGA(制御デバイス)、13:照明パターン、13a:白色帯状部(明るい帯状部)、13b:黒色帯状部(暗い帯状部)、14:描画領域、15:非描画領域、
20:ビデオタイミング生成部、21:照明パターン生成部、
A:オフセット部、B:最初から1周期分の画像、B1,B2,B3,B4:分割画像
1: Illumination device, 2: Imaging device, 3: Computer, 4: Inspection target,
10: Liquid crystal drawing unit, 11: Backlight, 12: FPGA (control device), 13: Illumination pattern, 13a: White band (light band), 13b: Black band (dark band), 14: Drawing area , 15: non-drawing area,
20: video timing generation unit, 21: illumination pattern generation unit,
A: offset part, B: image for one cycle from the beginning, B1, B2, B3, B4: divided images

Claims (5)

明度の異なる明るい帯状部と暗い帯状部とが交互に配列されたパターン照明を検査対象の表面に照射し、当該検査対象の表面を撮像して得られた画像を用いて、当該検査対象の表面状態を検査する表面検査装置に組み込まれ、
前記パターン照明を前記検査対象の表面に照射するための表面検査用照明装置であって、
前記明るい帯状部と前記暗い帯状部とが交互に配列された照明パターンをラスター走査方式をもって描画する描画部と、この描画部に前記照明パターンを描画するための制御デバイスとを備え、
前記制御デバイスは、あらかじめ設定された描画パラメータに応じて、前記描画部に前記照明パターンを描画するための各走査線ごとの描画データを逐次算出する処理回路を構成し、当該逐次算出された各走査線ごとの描画データにより、前記描画部に前記照明パターンを描画することを特徴とした表面検査用照明装置。
The surface of the inspection target is irradiated with pattern illumination in which bright strips and dark strips of different brightness are alternately arranged, and the image obtained by imaging the surface of the inspection target is used. Built into the surface inspection device that inspects the condition,
A surface inspection illumination device for irradiating the surface of the inspection object with the pattern illumination,
A drawing unit that draws an illumination pattern in which the bright strips and the dark strips are arranged alternately by a raster scanning method; and a control device for drawing the illumination pattern on the drawing unit,
The control device constitutes a processing circuit that sequentially calculates drawing data for each scanning line for drawing the illumination pattern in the drawing unit according to a drawing parameter set in advance, and An illumination device for surface inspection, wherein the illumination pattern is drawn on the drawing unit according to drawing data for each scanning line.
前記制御デバイスは、
前記描画パラメータとして、前記照明パターンを形成する前記明るい帯状部の走査方向への幅寸法と、前記暗い帯状部の走査方向への幅寸法と、前記各帯状部を傾斜して描画するための各走査線ごとの当該各帯状部の走査方向へのシフト量と、があらかじめ設定され、
これらの各設定値を含む前記描画パラメータに基づき、前記描画部に前記照明パターンを描画するための、各走査線ごとの描画データを逐次生成していくことを特徴とする請求項1に記載の表面検査用照明装置。
The control device is
As the drawing parameter, the width dimension in the scanning direction of the bright strip-shaped portion forming the illumination pattern, the width dimension in the scanning direction of the dark strip-shaped portion, and each for drawing the respective strip-shaped portions with inclination The shift amount in the scanning direction of each strip portion for each scanning line is preset,
The drawing data for each scanning line for drawing the illumination pattern on the drawing unit is sequentially generated based on the drawing parameter including each of these set values. Lighting device for surface inspection.
前記制御デバイスは、
前記描画パラメータとして、さらに前記各帯状部を幅方向へ移動させるためのシフト量を走査方向に変換した値があらかじめ設定され、
この設定値を含む前記描画パラメータに基づき、前記描画部に前記照明パターンを描画するための、各走査線ごとの描画データを逐次生成していくことを特徴とする請求項2に記載の表面検査用照明装置。
The control device is
As the drawing parameter, a value obtained by converting the shift amount for moving the strips in the width direction in the scanning direction is set in advance,
The surface inspection according to claim 2, wherein drawing data for each scanning line for drawing the illumination pattern on the drawing unit is sequentially generated based on the drawing parameter including the set value. Lighting equipment.
前記制御デバイスを、FPGAで構成したことを特徴とする請求項1乃至3のいずれか一項に記載の表面検査用照明装置。 The illumination device for surface inspection according to claim 1, wherein the control device is configured by an FPGA. 請求項1乃至4のいずれか一項に記載の表面検査用照明装置を、光源として組み込んだことを特徴とする表面検査装置。 A surface inspection device comprising the surface inspection illumination device according to claim 1 incorporated as a light source.
JP2019012957A 2019-01-29 2019-01-29 Illumination device for surface inspection and surface inspection device Pending JP2020122662A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019012957A JP2020122662A (en) 2019-01-29 2019-01-29 Illumination device for surface inspection and surface inspection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019012957A JP2020122662A (en) 2019-01-29 2019-01-29 Illumination device for surface inspection and surface inspection device

Publications (1)

Publication Number Publication Date
JP2020122662A true JP2020122662A (en) 2020-08-13

Family

ID=71992511

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019012957A Pending JP2020122662A (en) 2019-01-29 2019-01-29 Illumination device for surface inspection and surface inspection device

Country Status (1)

Country Link
JP (1) JP2020122662A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006227555A (en) * 2005-02-18 2006-08-31 Okayama Prefecture Multiwindow display device and multiwindow image management method
JP2006267022A (en) * 2005-03-25 2006-10-05 Kurabo Ind Ltd Defect inspection device and method
JP2010234237A (en) * 2009-03-31 2010-10-21 Toray Eng Co Ltd Coating apparatus and coating method
JP3197766U (en) * 2015-03-17 2015-06-04 バイスリープロジェクツ株式会社 Surface inspection device
WO2017163716A1 (en) * 2016-03-23 2017-09-28 古野電気株式会社 Radar device and wake display method
JP2017227474A (en) * 2016-06-20 2017-12-28 タカノ株式会社 Lighting device and image inspection device
US20180195972A1 (en) * 2015-07-02 2018-07-12 Eisenmann Se Installation for the optical inspection of surface regions of objects
JP2018205005A (en) * 2017-05-31 2018-12-27 株式会社キーエンス Image inspection device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006227555A (en) * 2005-02-18 2006-08-31 Okayama Prefecture Multiwindow display device and multiwindow image management method
JP2006267022A (en) * 2005-03-25 2006-10-05 Kurabo Ind Ltd Defect inspection device and method
JP2010234237A (en) * 2009-03-31 2010-10-21 Toray Eng Co Ltd Coating apparatus and coating method
JP3197766U (en) * 2015-03-17 2015-06-04 バイスリープロジェクツ株式会社 Surface inspection device
US20180195972A1 (en) * 2015-07-02 2018-07-12 Eisenmann Se Installation for the optical inspection of surface regions of objects
WO2017163716A1 (en) * 2016-03-23 2017-09-28 古野電気株式会社 Radar device and wake display method
JP2017227474A (en) * 2016-06-20 2017-12-28 タカノ株式会社 Lighting device and image inspection device
JP2018205005A (en) * 2017-05-31 2018-12-27 株式会社キーエンス Image inspection device

Similar Documents

Publication Publication Date Title
JP4113570B2 (en) Image processing method, image processing system, and image processing program
JP5443303B2 (en) Appearance inspection apparatus and appearance inspection method
CN105631926A (en) Image processing apparatus and method
JP2007322162A (en) Three-dimensional shape measuring apparatus and three-dimensional shape measuring method
JP5612969B2 (en) Appearance inspection apparatus and appearance inspection method
JP5824278B2 (en) Image processing device
JP5242248B2 (en) Defect detection apparatus, defect detection method, defect detection program, and recording medium
JP5481012B2 (en) Surface inspection device
JP2017227474A (en) Lighting device and image inspection device
WO2023108545A1 (en) Method for constructing defect detection model of micro led array panel, apparatures for dectectig pixel defect and devices
JP6479178B2 (en) Image processing apparatus, imaging apparatus, microscope system, image processing method, and image processing program
JP2004133919A (en) Device and method for generating pseudo three-dimensional image, and program and recording medium therefor
JP3825383B2 (en) 3D shape measuring method and 3D shape measuring apparatus
JP2020122662A (en) Illumination device for surface inspection and surface inspection device
JP4581424B2 (en) Appearance inspection method and image processing apparatus
JP2011002401A (en) Correction coefficient calculating method in luminance measuring apparatus, and luminance measuring apparatus
JP2017194380A (en) Inspection device, recording medium and program
JP7306620B2 (en) Surface defect inspection device and surface defect inspection method
JP2009079934A (en) Three-dimensional measuring method
JP2017016169A (en) Inspection method, inspection apparatus, image processing apparatus, program, and recording medium
JP4576187B2 (en) Defect information detection device
JP4028118B2 (en) Fiber dive angle measuring method and system
JP2000125289A (en) Method for generating image with emphasized recessed part
JPH08186808A (en) Method and device for processing image
WO2016174701A1 (en) Endoscopic device and method for measuring three-dimensional shape

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20211216

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20221021

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20221026

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20230417