Optical measuring device

JP7588497B2Active Publication Date: 2024-11-22KEYENCE CORP
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
JP2020193513
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2020-11-20
Publication Date
2024-11-22
Estimated Expiration
2040-11-20

AI Technical Summary

Benefits of technology

【0021】 以上説明したように、ワークの異なる部位に応じた複数の基準画像を、それぞれ寸法測定領域、寸法測定項目、及び判定閾値を関連付けて記憶しておき、測定領域に入ったワークの部位を撮像して取得された測定画像と複数の基準画像との一致判定を行い、いずれかの基準画像と一致した場合に、その基準画像に関連付けられた寸法測定領域、寸法測定項目、及び判定閾値を適用した寸法測定を実行し、これがワークの異なる部位に対して複数回繰り返し実行された複数の寸法測定の結果に基づいて、ワークの寸法に関する総合判定を行うことができる。これにより、視野範囲よりも長いワークであっても段取り替えを行うことなく、各部の寸法検査を実行して総合判定まで行うことができるので、光学測定装置の使い勝手を向上させることができる。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007588497000001
    Figure 0007588497000001
  • Figure 0007588497000002
    Figure 0007588497000002
  • Figure 0007588497000003
    Figure 0007588497000003
Patent Text Reader

Abstract

To provide an optical measurement device which improves the usability by enabling a dimensional inspection for each part to perform comprehensive determination without setup change even for a workpiece longer than a visual field range.SOLUTION: An optical measurement device 1 comprises: a storage unit which stores a plurality of reference images in association with a dimension measurement region, a dimension measurement item, and a determination threshold respectively; an image acquisition unit 71 which acquires a measurement image of a portion of the workpiece of a measurement region; an image determination unit 73d which performs matching determination between the reference image and the measurement image; an execution unit 73e which executes dimensional measurement applied with the dimension measurement region, dimension measurement item and determination threshold associated with the reference image to the measurement image when the measurement image matches the reference image; and a comprehensive determination unit 73f which performs comprehensive determination on the basis of the results of the plurality of times of dimensional measurement executed in plural times to different portions of the workpiece.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to an optical measurement device that projects measurement light onto a measurement area to measure a measurement object. [Background technology]

[0002] For example, Patent Document 1 discloses a method for detecting misalignment between two substrates by irradiating light from a light source onto an image sensor through the outer periphery of the bonded substrates and projecting an image of the substrate edges onto the image sensor. A telecentric lens is provided on the image sensor side, and the image of the substrate edges is projected onto the image sensor via the telecentric lens. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] JP 2012-7898 A Summary of the Invention [Problem to be solved by the invention]

[0004] However, when generating parallel light using a telecentric optical system as in Patent Document 1, the field of view range in which the parallel light can be irradiated tends to be narrow, and the optical system required to widen the field of view becomes large, making it practically difficult.

[0005] On the other hand, long workpieces may be the measurement target. For long workpieces, dimensional inspection may be required at multiple locations separated in the longitudinal direction. In this case, a part of the long workpiece may be located outside the field of view of the optical measuring device, making it impossible to perform dimensional inspection outside the field of view. As a result, it is necessary to move the workpiece in the longitudinal direction, change the reference image, and repeat the process of changing the setup and then inspecting the dimensions the required number of times. Then, all inspection results must be output to an external control device such as a PLC (Programmable Logic Controller), and a comprehensive judgment must be made by the PLC.

[0006] Inspecting such long workpieces requires creating a program to send a changeover signal from the PLC and a program to perform a comprehensive judgment in the PLC, which places a heavy burden on the user and makes the system difficult to use. In addition, for users who are not familiar with programming, even programming can be difficult.

[0007] The present invention has been made in consideration of the above points, and its purpose is to improve the usability of optical measuring devices by making it possible to perform dimensional inspection of each part without changing the setup, even for workpieces that are longer than the field of view, and by enabling a comprehensive judgment to be made within the optical measuring device. [Means for solving the problem]

[0008] In order to achieve the above-mentioned object, the first disclosure is premised on an optical measuring device that performs dimensional measurements of different portions of a workpiece passing through a measurement area, with a light-projecting housing having a light-projection window and a light-receiving housing having a light-receiving window and a light-receiving telecentric lens attached to it that generates parallel light that is projected onto a measurement area where a workpiece is placed, and a light-receiving housing having a light-receiving window and a light-receiving telecentric lens onto which the parallel light that has passed through the measurement area is incident and a two-dimensional imaging element that receives the light that has passed through the light-receiving telecentric lens attached, the light-projecting window and the light-receiving window being installed so that the light-projecting window and the light-receiving window are opposed to each other.

[0009] The optical measuring device comprises a memory unit that stores a plurality of reference images corresponding to different portions of a workpiece, each associated with a dimension measurement area, a dimension measurement item, and a judgment threshold; an image acquisition unit that images the portion of the workpiece that has entered the measurement area using the two-dimensional imaging element and acquires a measurement image of the portion; an image judgment unit that performs a match judgment between the measurement image acquired by the image acquisition unit and the plurality of reference images stored in the memory unit based on the plurality of reference images; an execution unit that, when it is determined by the image judgment unit that the measurement image matches one of the plurality of reference images, performs a dimensional measurement on the measurement image by applying the dimension measurement area, dimension measurement item, and judgment threshold associated with the reference image; and a comprehensive judgment unit that makes an overall judgment on the dimensions of the workpiece based on the results of the plurality of dimensional measurements performed repeatedly multiple times by the execution unit on different portions of the workpiece.

[0010] According to this configuration, when the light-projecting housing and the light-receiving housing are installed so that the light-projecting window and the light-receiving window face each other, the parallel light generated by the light-projecting telecentric lens is projected onto the measurement area, and the parallel light that passes through the measurement area passes through the light-receiving telecentric lens and is received by the two-dimensional image sensor. When a telecentric optical system is used as in this configuration, the field of view is limited. Therefore, for example, when performing dimensional inspection of multiple locations separated in the longitudinal direction of a long workpiece, a method of moving the workpiece in the longitudinal direction and passing it through the measurement area can be considered.

[0011] According to this configuration, a part of the workpiece that has entered the measurement area is imaged by a two-dimensional imaging element to obtain a measurement image of the part, and an image judgment unit judges whether the obtained measurement image matches any of the multiple reference images. If the measurement image matches any of the multiple reference images, dimensional measurement is performed on the measurement image by applying the dimension measurement area, dimension measurement items, and judgment threshold associated with the reference image. After that, another part of the workpiece is similarly imaged and judged for match, and if matched, dimensional measurement is performed by applying the dimension measurement area, dimension measurement items, and judgment threshold associated with the reference image. Therefore, it is possible to perform dimensional inspection of multiple parts of the workpiece without changing the setup, and there is no need to create a program for sending a setup change signal from an external control device.

[0012] Furthermore, since the overall judgment unit performs an overall judgment based on the results of multiple dimensional measurements obtained by repeatedly performing dimensional measurements multiple times, there is no need to create a program to cause an external control device to perform the overall judgment.

[0013] In the second disclosure, the optical measuring device includes a registration unit that, during setup, assigns identification information for identifying a plurality of images acquired by causing the two-dimensional image sensor to capture images of different parts of a workpiece, and registers each of the images as a reference image. The storage unit can store the reference image to which the identification information has been assigned. The identification information may be, for example, a number, and the number or the like is associated with the reference image and displayed on the display unit, allowing the user to identify the plurality of reference images.

[0014] In a third disclosure, the optical measuring device includes a setting unit capable of setting a dimension measurement area, a dimension measurement item, and a judgment threshold for each reference image registered in the registration unit. The storage unit can store the dimension measurement area, the dimension measurement item, and the judgment threshold set by the setting unit, the identification information, and the reference image in association with each other.

[0015] In the fourth disclosure, the setting unit is provided with a selection unit that selects an arbitrary reference image from a plurality of reference images, so that a user can select a desired reference image from a plurality of reference images. The reference image selected by the selection unit is displayed on the display unit, so that the user can confirm the reference image selected. The setting unit is configured to be capable of setting a dimension measurement area, a dimension measurement item, and a judgment threshold to be applied to the reference image displayed on the display unit, so that the dimension measurement area, the dimension measurement item, and the judgment threshold can be set while confirming the reference image.

[0016] In the fifth disclosure, the image determination unit can perform a match determination between a reference image registered by the registration unit and a measurement image acquired by the image acquisition unit.

[0017] In the sixth disclosure, the comprehensive judgment section can give a comprehensive judgment of "pass" only when all of the results of a plurality of dimensional measurements are within a judgment threshold value.

[0018] In a seventh disclosure, the comprehensive judgment unit can accept a selection of whether to subject all results of a plurality of dimensional measurements to comprehensive judgment, or to subject only some of the results to comprehensive judgment.

[0019] In the eighth disclosure, the image judgment unit performs a match judgment between one of the multiple reference images stored in the memory unit and a measurement image acquired by the image acquisition unit, and if it is determined that there is no match, it can accept a selection of whether or not to perform a match judgment between another reference image and the measurement image.

[0020] In the ninth disclosure, if the result of judgment by the image judgment unit is that there is no reference image that matches the measurement image acquired by the image acquisition unit, the comprehensive judgment unit can determine the judgment result as poor. Effect of the Invention

[0021] As described above, a plurality of reference images corresponding to different parts of a workpiece are stored in association with a dimension measurement area, a dimension measurement item, and a judgment threshold, a match judgment is performed between a measurement image acquired by imaging a part of the workpiece that has entered the measurement area and the plurality of reference images, and if a match occurs with any of the reference images, a dimension measurement is performed using the dimension measurement area, the dimension measurement item, and the judgment threshold associated with that reference image, and a comprehensive judgment regarding the dimensions of the workpiece is made based on the results of multiple dimension measurements that are repeatedly performed multiple times for different parts of the workpiece. This makes it possible to perform dimensional inspection of each part and make a comprehensive judgment without changing the setup, even for a workpiece that is longer than the field of view, thereby improving the usability of the optical measuring device. [Brief description of the drawings]

[0022] [Figure 1] 1 is a schematic diagram of an optical measurement device according to an embodiment of the present invention. [Diagram 2] 11 is a perspective view showing a form in which a light projecting unit and a light receiving unit are fixed to a fixing member for use; FIG. [Diagram 3] 11 is a side view showing a form in which a light projecting unit and a light receiving unit are fixed to a fixing member for use. FIG. [Figure 4] 11 is a perspective view showing a form in which a light projecting unit and a light receiving unit are installed without using a fixing member; FIG. [Diagram 5] 11 is a side view showing a form in which the light projecting unit and the light receiving unit are installed without using a fixing member. FIG. [Figure 6] 11 is a vertical cross-sectional view taken along the optical axis when the light projecting unit and the light receiving unit are fixed to a fixing member for use. FIG. [Figure 7] FIG. 2 is a vertical cross-sectional view of the light receiving unit. [Figure 8] 8 is a view equivalent to FIG. 7, showing a state in which the telecentric lens and the light-receiving side reflector are removed. [Figure 9] 10 is a flowchart showing an example of a processing procedure when setting the optical measurement device. [Figure 10]FIG. 13 is a diagram illustrating an example of a setting user interface screen. [Figure 11] FIG. 13 is a diagram showing an example of a user interface screen for detailed settings. [Figure 12] FIG. 13 is a diagram showing an example of a user interface screen for specifying measurement conditions. [Figure 13] FIG. 13 is a diagram showing an example of a user interface screen for specifying a tolerance. [Figure 14] 10 is a flowchart showing an example of a processing procedure during operation of the optical measuring device. [Figure 15] FIG. 13 is a diagram illustrating an example of a user interface screen during operation. [Figure 16A] FIG. 13 is a diagram showing an example of a user interface screen that displays only the results of a currently selected processing pattern. [Figure 16B] FIG. 13 is a diagram showing an example of a user interface screen in which the results of a currently active processing pattern are highlighted. [Figure 17] FIG. 2 is a side view showing an example of a long workpiece. [Figure 18] FIG. 13 is a diagram showing an example of a user interface screen for setting a reference image. [Figure 19] FIG. 13 is a diagram showing an example of a user interface screen for selecting a reference image. [Figure 20] 13 is a flowchart illustrating an example of a comprehensive judgment process. [Figure 21] 13 is a flowchart for measuring a plurality of types of workpieces by replacing them. [Figure 22] This is a flowchart for inspecting one type of workpiece in multiple batches. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0023] Hereinafter, the preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings. Note that the following description of the preferred embodiments is merely illustrative in nature and is not intended to limit the present invention, its applications, or its uses.

[0024] FIG. 1 is a schematic diagram showing a schematic configuration of an optical measuring device 1 according to an embodiment of the present invention. The optical measuring device 1 is a device that projects measuring light onto a measuring area S to measure a workpiece W, which is a measuring object, and includes a light projecting unit 10, a light receiving unit 30, a control device 70, a keyboard 80 and a mouse 81, a display device 82, and a storage device 83. A programmable controller 90 is connected to the control device 70. The keyboard 80 and the mouse 81 are examples of operation means, and may be, for example, a touch panel type operation means. The display device 82 is, for example, a liquid crystal display or an organic EL display. The storage device 83 is, for example, a hard disk drive or an SSD (solid state drive). The programmable controller 90 is an example of an external control device, and receives a predetermined control signal output from the control device 70 and controls various devices connected to the outside.

[0025] The light-projecting unit 10 includes a light source 11 that generates measurement light to be projected onto a measurement area S in which the workpiece W is placed, a light source holder 12 that holds the light source 11, a diffusion means 13, a light-projecting side reflector 14, a light-projecting side telecentric lens 15, and a light-projecting housing 20.

[0026] The light receiving unit 30 includes a two-dimensional image sensor 31, an image sensor holder 37 that holds the two-dimensional image sensor 31, a light receiving lens 33, an aperture 34, a light receiving side reflector 35, a light receiving side telecentric lens 36, an imaging control unit 39, and a light receiving housing 40. The imaging control unit 39 can be provided in the light receiving unit 30, but may also be provided in the light projecting unit 10.

[0027] The light-projecting housing 20 and the light-receiving housing 40 are constructed as a single member made of a highly rigid metal material, and the surfaces serving as the reference for various positioning, the surfaces serving as the reference for mounting each member, the surfaces with which each member comes into contact, etc. are machined to ensure high precision. The surfaces serving as the reference for various positioning, the surfaces serving as the reference for mounting each member, the surfaces with which each member comes into contact, etc. may be formed by molding.

[0028] The control device 70 also includes an image acquisition unit 71, a DSP 72, a CPU 73, a memory 74, and an input / output circuit 75. The control device 70 can be configured, for example, by a personal computer. The data of the measurement image acquired by the image acquisition unit 71 is subjected to signal processing by the DSP 72, and then output to the CPU 73. The CPU 73 extracts edges of the measurement image and performs dimensional measurement using the extracted edges. A conventionally known method can be used for the edge extraction process of the measurement image. For example, the dimensional measurement is the distance between two edges. The memory 74 includes a RAM and a ROM, and is a part used for storing a program that causes the CPU 73 to execute a predetermined function, and for temporarily storing the measurement image and the measurement result. The input / output circuit 75 is a circuit that outputs the measurement image, the measurement result, and a control signal to the outside, and receives input of the operation state of the keyboard 80 and the mouse 81. The measurement image and the measurement result can be output from the input / output circuit 75 to the storage device 83. Furthermore, the control signal can be output from the input / output circuit 75 to the programmable controller 90. Furthermore, the measurement image and the measurement results can be outputted to and displayed on the display device 82 together with data showing a predetermined user interface screen. The user interface screen can be generated by the CPU 73.

[0029] (Use of the optical measuring device 1) 2 and 3 show a configuration in which the light projecting unit 10 and the light receiving unit 30 are fixed to a common fixing member 60 for use. The fixing member 60 is a member that constitutes part of the optical measurement device 1, is made of a metal plate that is long in a predetermined direction, and has high rigidity. The light projecting unit 10 is attached to one side of the fixing member 60 in the longitudinal direction, and the light receiving unit 30 is attached to the other side of the fixing member 60 in the longitudinal direction for use. The shape of the fixing member 60 is not limited to the shape shown in the figures, and may be, for example, a hollow member.

[0030] 3 and 5 show a form in which the light projecting unit 10 and the light receiving unit 30 are used without being fixed to the fixing member 60. In this form, the light projecting unit 10 and the light receiving unit 30 are used by being fixed to various members (not shown) present at the site where the measurement is performed.

[0031] In either usage form, a measurement area S is formed between the light projecting unit 10 and the light receiving unit 30. In addition, the distance (working distance) between the light projecting unit 10 and the light receiving unit 30 is set within a preset distance.

[0032] In addition, in the description of this embodiment, the light projecting unit 10 and the light receiving unit 30 are separated in the horizontal direction and the optical axes of both units 10, 30 extend in the horizontal direction and coincide with each other as shown in Figures 3 and 5, but both units 10, 30 may be arranged so that the optical axes extend diagonally, or so that the optical axes extend in the vertical direction. In other words, both units 10, 30 may be arranged so that they are diagonal or vertical when facing each other.

[0033] (Configuration of light projection unit 10) As shown in FIG. 6, the light source 11 of the light projection unit 10 is composed of a light emitting diode such as an InGaN green LED, and is mounted on a substrate 11a. An imaging control unit 39 (shown in FIG. 1) composed of a microcomputer or the like is connected to the substrate 11a, and the light source 11 is controlled by the imaging control unit 39. For example, when the imaging interval is several milliseconds to several tens of milliseconds and the exposure time for each imaging is 1 millisecond or less, the imaging control unit 39 controls the light source 11 to be pulsed on according to the imaging interval and the exposure time. By setting the exposure time for each imaging to, for example, 100 microseconds, the optical measuring device 1 can measure a workpiece transported at high speed without stopping it, and the light source 11 is controlled to be pulsed on according to the imaging interval and the exposure time, so that heat generation in the light source 11 can be suppressed.

[0034] The substrate 11a is fixed to the light source holder 12. By fixing the substrate 11a to the light source holder 12, the light source 11 can be held in the light source holder 12. The substrate 11a is fixed to the lower part of the light source holder 12, and the light source 11 is disposed thereon, so that the light source 11 projects light upward. The substrate 11a is attached to the light source holder 12 so that its position can be adjusted.

[0035] The light source holder 12 is provided with a collimator lens 12a, which is aberration-corrected so as to obtain parallel light, a light diffusion unit 12b, and two light projecting lenses 12c. The number of light projecting lenses 12c may be one. The collimator lens 12a is located above the light source 11, and the light of the light source 11 is directly incident on the collimator lens 12a. The light incident on the collimator lens 12a is converted into parallel light and is emitted upward. The light diffusion unit 12b is located above the light emission surface of the collimator lens 12a. The light diffusion unit 12b is a member for diffusing the incident light, and the light incident on the light diffusion unit 12b is diffused by passing through the light diffusion unit 12b and is emitted upward. The parallel light incident from the collimator lens 12a forms a circular light image in the light diffusion unit 12b. The parallel light that has passed through the light diffusion unit 12b is emitted from the light diffusion unit 12b as diffused light with an angular characteristic in which the parallel component peaks at each point of the light image. The two light projecting lenses 12c are located above the light emission surface of the light diffusion unit 12b. The light emitted from the light diffusion unit 12b passes through the two light projecting lenses 12c and is emitted upward. The two light projecting lenses 12c adjust the spread angle of the light emitted from the light diffusion unit 12b. By adjusting the spread angle of the light emitted from the light diffusion unit 12b to a narrow angle, the light density of the light passing through the light-projecting telecentric lens 15 can be increased. In addition, the light that has passed through the light projecting lens 12c passes through the slit 12d, but the total amount of light and the angular distribution are all uniform at each position near the slit 12d. As a result, the state of the boundary of the image does not change depending on the location, and the measurement accuracy can be improved.

[0036] The light source 11, the collimator lens 12a, the light diffusion unit 12b, and the two projector lenses 12c are fixed to the light source holder 12 and cannot be displaced relative to each other. In this state, the collimator lens 12a, the light diffusion unit 12b, and the two projector lenses 12c are arranged so that their optical axes are positioned on a line that passes through the center of the light source 11 and is perpendicular to the light emission surface of the light source 11.

[0037] The light source holder 12 is attached to the light projection housing 20 while being accommodated inside the light projection housing 20. When attaching the light source holder 12 to the light projection housing 20, a fastening structure using screws 16 can be used. The light source holder 12 is formed with an insertion hole (not shown) through which the screw 16 passes, and forming this insertion hole into an elongated hole makes it possible to adjust the position of the light source holder 12.

[0038] The surface of the light-projecting housing 20 that faces the light-receiving housing 40 is its front surface, which extends in the vertical direction. The rear surface of the light-projecting housing 20 is the surface located opposite the surface that faces the light-receiving housing 40, and this rear surface is inclined so that it is positioned further forward as it approaches the upper end, and this inclination angle corresponds to the installation angle of the light-projecting side reflector 14, which will be described later. A signal cable C (shown in FIG. 2, etc.) that is connected to the light-receiving unit 30 protrudes to the outside from the lower side of the rear surface. In addition, both side surfaces of the light-projecting housing 20 extend in the vertical direction parallel to each other. The lower surface of the light-projecting housing 20 serves as an attachment surface to the fixing member 60.

[0039] The light-projecting housing 20 contains a light-projecting side reflector 14 that reflects the light emitted from the light-projecting lens 12c. The light-projecting side reflector 14 is, for example, a flat mirror. A plurality of reflector attachment parts 21 for attaching the light-projecting side reflector 14 are provided at intervals in an upper portion of the interior of the light-projecting housing 20. The reflector attachment parts 21 protrude from the inner surface of the light-projecting housing 20, and abutment surfaces 21a against which the back surface of the reflector attachment parts 21 abut are formed at the tip end in the protruding direction. With the back surface of the light-projecting side reflector 14 abutting against each abutment surface 21a, the light-projecting side reflector 14 can be positioned with high accuracy relative to the light-projecting housing 20. That is, by directly abutting the light-projecting side reflector 14 against the abutment surface 21a of the reflector attachment portion 21 integrally molded with the light-projecting housing 20, no separate member is interposed between the light-projecting housing 20 and the reflector attachment portion 21, so that the light-projecting side reflector 14 can be positioned with high accuracy equivalent to the molding accuracy of the light-projecting housing 20. The light-projecting side reflector 14 may be adhered to the reflector attachment portion 21 with an adhesive, or may be fastened with a fastening member such as a screw.

[0040] The light-projection side reflector 14 is disposed so that the light emitted from the light-projection lens 12c of the light source holder 12 is incident toward the center of the light-projection side reflector 14. The angle of the light-projection side reflector 14 is set so that the light incident from the light-projection lens 12c is emitted in the horizontal direction. The light-projection side reflector 14 reduces the size of the light-projection housing 20 by folding the optical path, and is not necessarily required if the size of the light-projection housing 20 is acceptable.

[0041] The light-emitter telecentric lens 15 is attached to the side of the light-emitter housing 20 facing the light-receiving housing 40. A light-emitter lens mounting hole 22, into which the light-emitter telecentric lens 15 is fitted, is formed so as to penetrate the wall of the light-emitter housing 20 facing the light-receiving housing 40. A light-emitter lens mounting seat 22a is integrally formed on the inner peripheral surface at the rear side of the light-emitter lens mounting hole 22, the light-emitter lens mounting seat 22a protruding radially inward and consisting of a protrusion extending in the circumferential direction. The peripheral portion of the end face at the rear side (light incident side) of the light-emitter telecentric lens 15 abuts against the light-emitter lens mounting seat 22a, whereby the light-emitter telecentric lens 15 is positioned with respect to the light-emitter housing 20. The light-projection side telecentric lens 15 is also directly abutted against the light-projection side lens mounting seat 22a, so that no separate member is interposed between the light-projection housing 20 and the light-projection side telecentric lens 15. This makes it possible to position the light-projection side telecentric lens 15 with high accuracy equivalent to the molding accuracy of the light-projection housing 20.

[0042] The light-projecting telecentric lens 15 is disposed so that its optical axis is horizontal. When the light emitted from the light-projecting reflector 14 enters the light-projecting telecentric lens 15, the light-projecting telecentric lens 15 converts the light into parallel light toward the measurement area S and emits it. The size of the optical image formed by the light-projecting telecentric lens 15 in the measurement area S is constant along the optical axis of the light-projecting telecentric lens 15. The light-projecting telecentric lens 15 focuses the optical image formed in the light-projecting housing 20 as a focused optical image in the measurement area S. It is preferable that a focused optical image is formed at any position in the measurement area S. The focused optical image is formed in a predetermined range along the optical axis of the light-projecting telecentric lens 15, which depends on the optical path length from the optical image formed in the light-projecting housing 20 to the light-projecting telecentric lens 15. The longer the optical path length, the wider the range in which the optical image is in focus. For example, in the case of an optical measuring device 1 having a large measurement area for performing high-precision measurements, the optical path length from the light image formed in the light-projecting housing 20 to the light-projecting side telecentric lens 15 is long, so the size of the light-projecting housing 20 may be reduced by folding the optical path using the light-projecting side reflector 14.

[0043] When parallel light is incident from the collimator lens 12a and forms a circular light image in the light diffusion unit 12b, the parallel light that has passed through the light diffusion unit 12b is emitted from the light diffusion unit 12b as diffused light having an angular characteristic in which the parallel component is a peak at each point of the light image. By irradiating the measurement area S with an optical image having such an angular characteristic via the light projection telecentric lens 15, it is possible to realize illumination light with substantially uniform light regardless of the location or angle. In addition, the light density of the light passing through the light projection telecentric lens 15 may be increased by adjusting the spread angle of the light emitted from the light diffusion unit 12b to a narrow angle using the two light projection lenses 12c.

[0044] The light-projecting housing 20 is provided with a light-projecting window 23 for projecting the parallel light emitted from the light-projecting telecentric lens 15 to the measurement area S. The light-projecting window 23 has a substantially circular light-projecting cover glass 23a formed so as to cover the light-emitting surface of the light-projecting telecentric lens 15, and a light-projecting frame body 23b to which the light-projecting cover glass 23a is attached. The light-projecting frame body 23b is fitted into the light-emitting surface side of the light-projecting telecentric lens 15 in the light-projecting lens mounting hole 22 and fixed to the light-projecting housing 20. A light-projecting elastic member 23c is disposed between the light-emitting surface of the light-projecting telecentric lens 15 and the light-projecting frame body 23b. The light-projecting elastic member 23c is made of, for example, rubber or a metal material having elasticity. The light-emitter side elastic member 23c constantly urges the light-emitter side telecentric lens 15 against the light-emitter side lens mounting seat 22a.

[0045] (Configuration of light receiving unit 30) The two-dimensional imaging element 31 of the light receiving unit 30 is composed of, for example, a CMOS image sensor, and pixels are arranged two-dimensionally in the X and Y directions. The two-dimensional imaging element 31 is mounted on a substrate 31a. The substrate 31a is provided with an imaging control unit 39 (shown in FIG. 1). The two-dimensional imaging element 31 is controlled by the imaging control unit 39. For example, the two-dimensional imaging element 31 is controlled by the imaging control unit 39 so that the imaging interval is several milliseconds to several tens of milliseconds and the exposure time for each imaging is 100 microseconds. By setting the exposure time to 1 millisecond or less, for example, 100 microseconds, the optical measuring device 1 can measure a workpiece transported at high speed without stopping it. The exposure time may be realized by synchronously controlling the pulse lighting control of the light source 11 and the shutter control of the two-dimensional imaging element 31. The substrate 31a is fixed to an imaging element holder 37. By fixing the substrate 31a to the imaging element holder 37, the two-dimensional imaging element 31 can be held by the imaging element holder 37.

[0046] A light-receiving lens unit 38 is fixed to the imaging element holder 37. As shown in Fig. 7, the light-receiving lens unit 38 has a cylindrical shape as a whole, and a plurality of light-receiving lenses (imaging lenses) 33 are provided therein. The optical axis of the light-receiving lenses 33 extends in an oblique direction, and the relative positional relationship between the light-receiving lens unit 38 and the two-dimensional imaging element 31 is set so that an extension line of the optical axis of the light-receiving lenses 33 perpendicularly intersects with the center of the two-dimensional imaging element 31. An aperture 34 is provided on the upper part of the light-receiving lens unit 38.

[0047] The aperture 34 passes the parallel light received through the light-receiving telecentric lens 36 and blocks disturbance light other than the parallel light. This reduces the influence of disturbance light. The light-receiving lens 33 may be an image-side telecentric lens. The image-side telecentric lens prevents the size of the image formed on the two-dimensional image sensor 31 from changing even if the distance between the light-receiving lens 33 and the two-dimensional image sensor 31 changes. For example, even if the distance between the light-receiving lens 33 and the two-dimensional image sensor 31 changes due to thermal expansion of the image sensor holder 37, the size of the image formed on the two-dimensional image sensor 31 does not change, so the influence of temperature changes can be reduced. By making the light-projecting telecentric lens 15 an object-side telecentric lens and making the light-receiving lens 33 an image-side telecentric lens, a double-telecentric optical system can be obtained.

[0048] The surface of the light-receiving housing 40 that faces the light-projecting housing 20 is the front surface, which extends in the vertical direction. The rear surface of the light-receiving housing 40 is the surface located opposite the surface that faces the light-projecting housing 20, and this rear surface is inclined so that it is positioned further forward as it approaches the upper end, and this inclination angle corresponds to the installation angle of the light-receiving side reflector 35 described later. A signal cable C connected to the light-projecting unit 10 and a connection cable D (shown in FIG. 2, etc.) connected to the control device 70 extend to the outside from the lower side of the rear surface. In addition, both side surfaces of the light-receiving housing 40 extend in the vertical direction parallel to each other. The lower surface of the light-receiving housing 40 is the mounting surface for the fixing member 60.

[0049] As shown in FIG. 6, the light-receiving telecentric lens 36 is attached to the side of the light-receiving housing 40 facing the light-emitting housing 20, and is arranged so that its optical axis is located on the same optical axis as the light-emitting telecentric lens 15. As shown in FIG. 7 and FIG. 8, a light-receiving lens mounting hole 42 into which the light-receiving telecentric lens 36 is fitted is formed so as to penetrate the wall of the light-receiving housing 40 facing the light-emitting housing 20. A light-receiving lens mounting seat 42a is integrally formed on the inner peripheral surface at the back side of the light-receiving lens mounting hole 42, which protrudes radially inward and is composed of a protrusion extending in the circumferential direction. The light-receiving telecentric lens 36 is positioned relative to the light-receiving housing 40 by abutting the peripheral portion of the end face at the back side (light emission side) of the light-receiving telecentric lens 36 against the light-receiving lens mounting seat 42a. By directly abutting the light-receiving side telecentric lens 36 against the light-receiving side lens mounting seat 42a, no separate member is interposed between the light-receiving housing 40 and the light-receiving side telecentric lens 36, so that the light-receiving side telecentric lens 36 can be positioned with high accuracy equivalent to the molding accuracy of the light-receiving housing 40.

[0050] The light-receiving housing 40 is provided with a light-receiving window 43 for allowing the parallel light emitted from the light-emitting telecentric lens 15 and passing through the measurement region S to be incident on the light-receiving telecentric lens 36. The light-receiving window 43 has a substantially circular light-receiving cover glass 43a formed to cover the light incident surface of the light-receiving telecentric lens 36, and a light-receiving frame 43b to which the light-receiving cover glass 43a is attached. The light-receiving frame 43b is fitted into the light incident surface side of the light-receiving telecentric lens 36 in the light-receiving lens attachment hole 42 and fixed to the light-receiving housing 40. A light-receiving elastic member (lens biasing member) 43c is disposed between the light incident surface of the light-receiving telecentric lens 36 and the light-receiving frame 43b. The light-receiving-side elastic member 43c is made of, for example, rubber or a metal material having elasticity, and is a member for constantly biasing the light-receiving-side telecentric lens 36 in a direction pressing the light-receiving-side lens mounting seat 42a. The light-receiving-side elastic member 43c causes the light-receiving-side telecentric lens 36 to be mounted in a state in which it is constantly pressed against the light-receiving-side lens mounting seat 42a.

[0051] A light-receiving reflector mounting hole 44 into which the light-receiving reflector 35 is fitted is opened on a surface of the light-receiving housing 40 different from the surface on which the introduction opening 41 is formed, i.e., on the surface located opposite the light-projecting unit 10. A light-receiving reflector mounting seat 44a is integrally formed on the inner peripheral surface on the back side of the light-receiving reflector mounting hole 44, which protrudes radially inward and is formed of a protrusion extending in the circumferential direction. The light-receiving reflector 35 is positioned relative to the light-receiving housing 40 by the peripheral portion of the back end surface of the light-receiving reflector 35 abutting against the light-receiving reflector mounting seat 44a. By directly abutting the light-receiving reflector 35 against the light-receiving reflector mounting seat 44a, no separate member is interposed between the light-receiving housing 40 and the light-receiving reflector 35, so that the light-receiving reflector 35 can be positioned with high accuracy equivalent to the molding accuracy of the light-receiving housing 40.

[0052] The light-receiving side reflector 35 is composed of, for example, a flat mirror. The light-receiving side reflector 35 is arranged so that the light emitted from the light emission surface of the light-receiving side telecentric lens 36 is incident on the center of the light-receiving side reflector 35. The angle of the light-receiving side reflector 35 is set so that the light that has passed through the light-receiving side telecentric lens 36 is reflected and folded back, and is emitted toward the light-receiving lens 33. Since the light is folded back by the light-receiving side reflector 35, the two-dimensional imaging element 31, which is a heat source, and the light-receiving side telecentric lens 36 can be separated.

[0053] A cover 44d is attached to the light-receiving housing 40 to cover the reflector mounting hole 44 from the outside of the light-receiving housing 40. The cover 44d is detachably attached to the light-receiving housing 40. A reflector-side elastic material (reflector biasing member) 44c is disposed between the inner surface of the cover 44d and the light-receiving side reflector 35. The reflector elastic material 44c is made of, for example, rubber or a metal material having elasticity, and is a member for constantly biasing the light-receiving side reflector 35 in a direction pressing it against the light-receiving side reflector mounting seat 44a. The reflector-side elastic material 44c causes the light-receiving side reflector 35 to be attached in a state where it is constantly pressed against the light-receiving side reflector mounting seat 44a.

[0054] As shown in Fig. 12, a plurality of side reference surfaces 40a are provided on the side surface (outer surface) of the light-receiving housing 40 to serve as a reference when the light-receiving housing 40 is installed. The side reference surfaces 40a are flat surfaces that are highly accurate and located on the same plane. The light-receiving housing 40 can be positioned with high accuracy by abutting the side reference surfaces 40a against a member on which the light-receiving housing 40 is installed. In this embodiment, a through hole 40b is formed in the center of the side reference surface 40a.

[0055] In addition, the bottom surface (outer surface) of the light-receiving housing 40 is provided with a plurality of bottom reference surfaces 40c that serve as a reference when installing the light-receiving housing 40. The bottom reference surfaces 40c are flat surfaces that are highly accurate and located on the same plane. The light-receiving housing 40 can be positioned with high accuracy by abutting the bottom reference surfaces 40c against a member on which the light-receiving housing 40 is installed. When installing the light-receiving housing 40, either the side reference surface 40a or the bottom reference surface 40c may be used as a reference.

[0056] As shown in FIG. 3, a working distance reference plane 40d is provided on the front surface of the light-receiving housing 40, which faces the light-emitting unit 10.

[0057] 7, reference numeral 55 denotes a screw used when adjusting the position of the two-dimensional imaging element 31, and reference numeral 46 denotes an opening for inserting a tool 200. Reference numeral 48 shown in FIG. 8 denotes a sealing material, and reference numeral 49 denotes a blocking member.

[0058] (Configuration of control device 70) As shown in FIG. 1, the imaging control section 39 provided in the light receiving unit 30 is controlled by the image acquisition section 71 of the control device 70 via the connection cable D, and causes the light source 11 to emit light at a predetermined timing and causes the two-dimensional image sensor 31 to capture an image. Power for driving the light receiving unit 30 is supplied from the control device 70 via the connection cable D. A bend-resistant cable can be used for the connection cable D, and the light receiving unit 30 and the light projecting unit 10 can be installed on a movable part such as a robot arm, and the control device 70 can be installed in a non-movable position, for example, and can be separately arranged. The light source 11 and the two-dimensional image sensor 31 can be synchronized by a signal cable C. For example, the imaging control section 39 supplies a timing signal that defines the imaging timing and exposure timing to the two-dimensional image sensor 31 so that the imaging interval is several milliseconds to several tens of milliseconds and the exposure time in each imaging is 100 microseconds, and the imaging control section 39 supplies a timing signal that defines the light emission timing to the light source 11 via the signal cable C. Power for driving the light source 11 is supplied from the light receiving unit 30 via the signal cable C. The measurement light generated by the light source 11 is diffused by the diffusing means 13, reflected by the light-projecting side reflector 14, and then incident on the light-projecting side telecentric lens 15. The light-projecting side telecentric lens 15 converts the incident measurement light into parallel light and emits it toward the measurement area S. In other words, the light-projecting side telecentric lens 15 emits the measurement light so that an optical image of the measurement light on the diffusing means 13 is formed in the measurement area S such that the optical image has a constant size along the optical axis of the light-projecting side telecentric lens 15. At this time, the parallel light passes through the light receiving window 23 and reaches the measurement area S. If a workpiece W is placed in the measurement area S, part of the parallel light is blocked by the workpiece W.

[0059] The parallel light that has passed through the measurement area S passes through the light receiving window 43 and enters the light receiving side telecentric lens 36, is reflected by the light receiving side reflector 35, is folded back, and passes through the aperture 34 and the light receiving lens 33. Then, an image of the workpiece W is formed on the imaging surface of the two-dimensional image sensor 31. The image acquisition unit 71 of the control device 70 controls the two-dimensional image sensor 31 to capture an image using the two-dimensional image sensor 31, and acquires a measurement image of the workpiece W. The acquired measurement image of the workpiece W is an approximately circular image. The DSP 72 performs image processing such as filtering on the measurement image acquired by the image acquisition unit 71. The CPU 73 extracts edges of the measurement image output from the DSP 72, and performs dimensional measurement using the extracted edges. The measurement image, measurement results, etc. can be temporarily stored in the memory 74. The measurement image, measurement results, etc. are output from the input / output circuit 75 to the storage device 83, the programmable controller 90, and the display device 82.

[0060] (When setting up optical measurement equipment) The optical measuring device 1 can perform various settings before the optical measuring device 1 is put into operation. An example of a processing procedure for setting the optical measuring device 1 will be described below based on the flowchart shown in FIG. 9. The flowchart shown in FIG. 9 starts when it is detected that a user has performed an operation to start the setting process. For example, when the user operates a setting start button or the like, the process proceeds to step SA1, and a reference image that is the basis of the measurement settings is set. In this step SA1, the control device 70 generates a setting user interface screen 300 as shown in FIG. 10 and displays it on the display device 82. The setting user interface screen 300 is provided with a reference image display area 302 in which a reference image 301 is displayed, and various setting operation areas 303. The reference image 301 is an image obtained by the image acquisition unit 71 after a workpiece W serving as a reference is placed in the measurement area S and imaged by the two-dimensional image sensor 31. The workpiece W is displayed as a shadow image in the reference image display area 302. The reference image 301 is also circular. The user checks whether or not the reference image 301 is the desired image, and if it is the desired image, the process proceeds to the next step SA2 in the flowchart shown in FIG.

[0061] In step SA2, the user selects a measurement method. The selection of the measurement method means the selection of a measurement tool, and can be selected from among the measurement tools displayed in the various setting operation area 303 of the setting user interface screen 300 shown in FIG. 10. The measurement tools include, for example, a "line-line" tool for measuring the distance between lines, a "line-point" tool for measuring the distance between a line and a point, a "point-point" tool for measuring the distance between points, a "circle-circle" tool for measuring the distance between circles, a "circle diameter" tool for measuring the diameter of a circle, and the like, and other measurement tools may also be used. In the example shown in FIG. 10, the "line-line" tool is selected.

[0062] After the selection of the measurement method is completed, the process proceeds to the next step SA3 in the flowchart shown in Fig. 9. In step SA3, the user sets the image measurement elements. Specifically, the user sets a measurement area in accordance with the measurement method selected in step SA2 within the reference image 301 displayed in the reference image display area 302. In the example shown in Fig. 10, two frame lines 304, 304 are displayed as a form for displaying the measurement area in accordance with the "line-line" tool, and the area surrounded by these frame lines 304, 304 is the measurement area.

[0063] After setting the image measurement elements, for example, by double-clicking the measurement area (within the frame 304), the control device 70 generates a detailed setting user interface screen 310 as shown in Fig. 11 and displays it on the display device 82. On the detailed setting user interface screen 310, it is possible to set the edge detection direction (light → dark / dark → light), whether or not to remove abnormal points, the filter width (strength) for edge processing, specify detailed coordinates of the measurement area, specify a mask, etc.

[0064] When the setting of the image measurement elements is completed, the process proceeds to the next step SA4 in the flowchart shown in Fig. 9. In step SA4, the user specifies the measurement conditions. The control device 70 generates a user interface screen 320 for specifying measurement conditions as shown in Fig. 12 and displays it on the display device 82. The user interface screen 320 for specifying measurement conditions accepts settings such as the number of averages.

[0065] Once the measurement conditions have been specified, the process proceeds to step SA5 in the flowchart shown in Fig. 9. In step SA5, the user specifies a tolerance. The control device 70 generates a tolerance specification user interface screen 330 as shown in Fig. 13 and displays it on the display device 82. Specifically, when the tolerance value is selected, a value setting window 331 is displayed, and the value can be set by clicking a button or the like in this value setting window 331.

[0066] Once the tolerance has been specified, the process proceeds to step SA6 in the flowchart shown in FIG. 9. In step SA6, it is determined whether or not there is detailed setting of the image measurement element. If there is detailed setting of the image measurement element, the process proceeds to step SA7. If there is no detailed setting of the image measurement element, step SA7 is skipped and the process proceeds to step SA8. In step SA7, detailed setting of the image measurement element can be performed. After that, when the process proceeds to step SA8, it is determined whether or not there are other measurement elements. If there are other measurement elements, the process returns to step SA2 and a measurement method is selected for the other measurement elements. If there are no other measurement elements, the process proceeds to step SA9 and feature information is registered. Registering feature information means registering position correction.

[0067] When registration of feature amount information is completed, the process proceeds to step SA10, where all measurement setting information is stored in storage device 83. The measurement setting information includes reference image 301 and measurement tool information. The measurement tool information includes area coordinates and size, offset, edge detection direction, average count, zero reference, edge calculation method (least squares approximation, maximum, minimum, etc.), tolerance, number of decimal points, mask coordinate information, scaling information, display unit, etc.

[0068] The above is the flow of the process steps when setting the optical measurement device 1.

[0069] (When operating optical measuring equipment) Next, the procedure for operating the optical measurement device 1 at an actual measurement site after the settings will be described with reference to the flowchart shown in Fig. 14. This flowchart starts when the control device 70 issues a trigger signal (step SB1). The trigger signal may be an input signal from the outside, or may be issued by the control device 70 at a predetermined timing. In step SB2, the imaging control unit 39 causes the light source 11 of the light projection unit 10 to emit light. In synchronization with the timing at which the light source 11 emits light, the imaging control unit 39 causes the two-dimensional imaging element 31 to perform imaging processing.

[0070] Then, the process proceeds to step SB3, where the measurement image captured by the two-dimensional image sensor 31 is acquired by the image acquisition unit 71. After the measurement image is acquired, the process proceeds to step SB4. In step SB4, binning is performed, that is, four pixels of the acquired measurement image are combined into one pixel to reduce the image size to 1 / 4, and an averaging process is performed on the measurement image as image filtering. For example, a method of averaging by overlapping multiple images can be used.

[0071] Next, the process proceeds to step SB5, where the measurement image is transferred to the DSP 72. After that, the process proceeds to step SB6, where the measurement area image is extracted. Based on the measurement area information (area coordinates and size) in the setting information, the range in which edge processing is to be performed is cut out from the measurement image.

[0072] Thereafter, the process proceeds to step SB7 where edge processing is performed. In step SB7, the edges of the extracted image are found. Edge processing can be performed for the direction of the measurement area (X direction, Y direction). In edge processing, for example, a Gaussian filter and differential processing are used, and the edge is extracted by calculating the peak of the differential waveform. Also, conversion from pixel units to mm units can be performed.

[0073] After the edge processing, the process proceeds to step SB8, where post-processing, that is, post-processing of numerical values ​​is performed based on the average number of times, offset, zero reference, and scaling information of the setting information.

[0074] After the post-processing, the process proceeds to step SB9. In step SB9, a judgment process is performed, that is, a judgment is made as to whether the measured numerical value indicates a good product or a defective product (good / bad judgment) based on the tolerance setting value in the setting information. FIG. 15 shows an example of a user interface screen 340 that is generated by the control device 70 during operation and displayed on the display device 82. The user interface screen 340 is provided with a measurement image display area 342 that displays a measurement image 341, a measurement result display area 343, and an overall judgment result display area 344. The measurement result display area 343 displays the measurement results of the measurement elements and the result of the good / bad judgment, and the overall judgment result display area 344 displays the overall good / bad judgment result when there are multiple measurement elements.

[0075] An example of the result display screen may be a form in which only the results of the currently selected processing pattern are displayed as shown in Fig. 16A, or a form in which all processing patterns are displayed simultaneously and the currently active processing pattern is highlighted as shown in Fig. 16B. In the form shown in Fig. 16B, 1 to 7 at the top are the currently active processing patterns, and 1 to 3 at the bottom are the results corresponding to the currently unselected processing patterns.

[0076] (Overall judgment function) When generating parallel light using a telecentric optical system as described above, the field of view into which the parallel light can be irradiated tends to be narrow, and the optical system required to widen the field of view becomes large, making it practically difficult.

[0077] However, for example, a long workpiece W may be the measurement target. A long workpiece may require dimensional inspection of multiple locations separated in the longitudinal direction. In this case, a part of the long workpiece is located outside the field of view of the optical measuring device 1, and dimensional inspection outside the field of view cannot be performed. Therefore, the workpiece is moved in the longitudinal direction and measurements are performed sequentially at multiple locations. In such an inspection, it is necessary to create a program that sends a changeover signal from the PLC and a program that performs a comprehensive judgment in the PLC, which places a large workload on the user and is difficult to use. In addition, for users who are not familiar with programming, even programming may be difficult.

[0078] In this embodiment, the optical measuring device 1 is equipped with a comprehensive judgment function, which makes it possible to carry out dimensional inspection of each part without changing the setup even for a workpiece W that is longer than the field of view range, and also makes it possible to carry out comprehensive judgment within the optical measuring device 1. The comprehensive judgment function will be specifically described below.

[0079] The optical measuring device 1 includes a storage device 83 as a storage unit that stores a plurality of reference images corresponding to different parts of the workpiece W, each associated with a dimension measurement area, a dimension measurement item, and a judgment threshold. The reference image can be set in step SA1 of the flowchart shown in FIG. 9. The dimension measurement area is a measurement area set in step SA3 of the flowchart shown in FIG. 9. The dimension measurement item is a measurement tool set in step SA2 of the flowchart shown in FIG. 9. The judgment threshold is a tolerance set in step SA5 of the flowchart shown in FIG. 9. The dimension measurement item may include measurement conditions, etc., set in step SA4 of the flowchart shown in FIG. 9.

[0080] As shown in the setting flowchart in Fig. 9, at least one dimension measurement area, dimension measurement item, and judgment threshold are set in one reference image, and the reference image, the dimension measurement area, the dimension measurement item, and the judgment threshold are associated with each other. "Associated" means that when a certain reference image is identified, it is possible to identify the dimension measurement area, the dimension measurement item, and the judgment threshold set in the reference image, and for example, by providing common identification information, the reference image, the dimension measurement area, the dimension measurement item, and the judgment threshold can be associated with each other.

[0081] By repeatedly performing the setting flowchart of FIG. 9, it is possible to set a plurality of reference images and dimension measurement areas, dimension measurement items, and judgment thresholds associated with each reference image. For example, assume a long workpiece W as shown in FIG. 17. A circle (symbol 500) indicated by a dashed line in FIG. 17 indicates the field of view of the optical measuring device 1, and the length of the workpiece W is longer than the width of one field of view 500. In this case, for example, first, the workpiece W is arranged so that the left region of the workpiece W falls within the field of view 500, and the first reference image is set, and the dimension measurement area, dimension measurement items, and judgment thresholds are set in association with the first reference image. Thereafter, the workpiece W is arranged so that the central region of the workpiece W falls within the field of view 500, and the second reference image is set, and the dimension measurement area, dimension measurement items, and judgment thresholds are set in association with the second reference image. Finally, the workpiece W is arranged so that the right region of the workpiece W falls within the field of view 500, and the third reference image is set, and the dimension measurement area, dimension measurement items, and judgment thresholds are set in association with the third reference image.

[0082] In this case, the reference image can be registered by the registration unit 73a provided in the optical measuring device 1 shown in FIG. 1. As described above, the registration unit 73a causes the two-dimensional image sensor 31 to capture different parts of the workpiece W, respectively, to acquire multiple images, and assigns identification information for identifying the multiple acquired images to each of the images. For example, the first acquired image can be assigned identification information of "1", the second acquired image can be assigned identification information of "2", and the third acquired image can be assigned identification information of "3". After assigning identification information to each image, the registration unit 73a registers each image as a reference image. The storage device 83 can store multiple reference images to which identification information has been assigned. The identification information and the reference image can be associated with each other and displayed on the display device 82.

[0083] Furthermore, any method may be used for setting the reference image, the dimension measurement area, the dimension measurement items, and the judgment threshold, and as one example, the optical measuring device 1 is provided with a setting unit 73b. The setting unit 73b is a part that sets the dimension measurement area, the dimension measurement items, and the judgment threshold for each reference image registered in the registration unit 73a, and specifically, is a part that makes it possible to repeatedly execute steps SA2 to SA8 in the flowchart shown in Fig. 9 each time a reference image is set.

[0084] The setting unit 73b may also be provided with a selection unit 73c that selects an arbitrary reference image from a plurality of reference images. When a plurality of reference images are set, the plurality of reference images are displayed, for example, on the display device 82, and when the selection unit 73c receives a user's selection of a desired reference image from the reference images, the desired reference image is displayed on the display device 82. The setting unit 73b is configured to be capable of setting a dimension measurement area, a dimension measurement item, and a judgment threshold value to be applied to the reference image displayed on the display device 82.

[0085] A specific description will be given based on FIG. 18. FIG. 18 is a diagram showing an example of a user interface screen 550 for setting a reference image. The user interface screen 550 for setting a reference image is provided with a reference image display area 551 for displaying an image acquired by the image acquisition unit 71, a reference image selection button 552, a reference image registration button 553, and a measurement setting button 554. When the reference image selection button 552 is pressed, a user interface screen 600 for selecting a reference image shown in FIG. 19 is displayed. A plurality of reference images are displayed on the user interface screen 600 for selecting a reference image, and in this example, reference images 1 to 8 can be displayed from top to bottom. Here, for example, when "3" is selected, "3" is displayed on the reference image selection button 552 of the user interface screen 550 for setting a reference image shown in FIG. 18, and the third reference image can be set. When the reference image registration button 553 is pressed in this state, a reference image registration screen is displayed on the display device 82. For example, by performing a predetermined operation such as operating a registration button displayed on the reference image registration screen, the image displayed in reference image display area 551 is set and registered as the third reference image. In addition, by pressing measurement setting button 554, it becomes possible to set the above-mentioned dimension measurement area, dimension measurement items, and judgment threshold for the third reference image. In this manner, it is possible to set a plurality of reference images and their associated dimension measurement areas, dimension measurement items, and judgment thresholds.

[0086] 1, the optical measurement device 1 includes an image determination unit 73d. The image determination unit 73d is a part that performs a coincidence determination between a measurement image acquired by the image acquisition unit 71 and a plurality of reference images based on the plurality of reference images stored in the storage device 82. At this time, the image determination unit 73d can perform the coincidence determination between the measurement image and the reference image by utilizing a pattern matching technique.

[0087] The optical measuring device 1 includes an execution unit 73e. When the image determination unit 73d determines that the measurement image matches any one of the multiple reference images during operation, the execution unit 73e executes dimensional measurement by applying the dimension measurement area, dimension measurement items, and judgment threshold associated with the reference image to the measurement image. For example, when the image determination unit 73d determines that the first reference image and the measurement image match, the execution unit 73e reads out the dimension measurement area, dimension measurement items, and judgment threshold associated with the first reference image based on the judgment result, and applies the read dimension measurement area, dimension measurement items, and judgment threshold to the measurement image. As a result, the dimension measurement is executed on the measurement image, and the measurement value based on the first reference image is obtained. Also, when the image determination unit 73d determines that the second reference image and the measurement image match, the measurement value based on the second reference image is similarly obtained. The same applies to the third reference image. In this way, the execution unit 73e can execute dimensional measurement on different parts of the workpiece W. The measurement may be performed once or multiple times.

[0088] The optical measuring device 1 includes a comprehensive judgment unit 73f. The comprehensive judgment unit 73f is a part that performs a comprehensive judgment regarding the dimensions of the workpiece W based on the results of multiple dimensional measurements repeatedly performed by the execution unit 73e on different parts of the workpiece W during operation. The comprehensive judgment unit 73f can be configured to make a comprehensive judgment of "good" only when all of the results of the multiple dimensional measurements are within a judgment threshold value.

[0089] In addition, the overall judgment unit 73f may be configured to accept a selection of whether to subject all results of a plurality of dimension measurements to the overall judgment or to subject only some results to the overall judgment. In the user interface screen 600 for selecting a reference image shown in FIG. 19, a check box 601 for "judgment of multiple processes collectively" can be checked. By checking this check box 601, tools belonging to all processing patterns are subject to the overall judgment, while by unchecking it, only tools belonging to a valid processing pattern are subject to the overall judgment. Note that this switching method is an example, and for example, by checking the check box 601, the overall judgment unit 73f may subject all results to the overall judgment.

[0090] Furthermore, on the reference image selection user interface screen 600, a check box 602 for "automatically switch patterns" can be checked. A pattern refers to a reference image. By checking this check box 602, the image determination unit 73d automatically switches between multiple reference images to perform pattern matching.

[0091] The registration unit 73a, the setting unit 73b, the selection unit 73c, the image judgment unit 73d, the execution unit 73e and the overall judgment unit 73f can be constructed by the CPU 73 executing signal processing based on a predetermined program, or can be constructed by a physical processing device, or can be constructed by a combination of these.

[0092] A specific example of the comprehensive judgment process will be described below with reference to the flowchart shown in Fig. 20. In this example, there are three reference images, that is, a pattern 1 reference image, a pattern 2 reference image, and a pattern 3 reference image are registered. Also, this is an example in which the check box 601 for "judge multiple processes collectively" is checked, and the check box 602 for "switch patterns automatically" is checked.

[0093] This flowchart starts when a trigger signal is input during operation of the optical measuring device 1. In step SD1, a measurement image of the workpiece W is acquired from the image acquisition unit 71. In step SD2, the image determination unit 73d executes a matching process between the measurement image and the reference image of pattern 1. In addition, in step SD3, the image determination unit 73d executes a matching process between the measurement image and the reference image of pattern 2. In addition, in step SD4, the image determination unit 73d executes a matching process between the measurement image and the reference image of pattern 3. The degree of match is obtained in each of steps SD2 to 4. The order of steps SD2 to 4 does not matter, and they may be performed in parallel.

[0094] In step SD5, the pattern number is switched and pattern judgment is performed. The degrees of match obtained in steps SD2 to SD4 are compared, and the pattern number is changed so that the closest pattern is the target of the dimension measurement process. That is, if the degree of match with the pattern 1 reference image is the highest, the execution unit 73e performs dimension measurement on the measurement image by applying the dimension measurement area, dimension measurement item, and judgment threshold value associated with the pattern 1 reference image. In steps SD6 to SD8, the measurement values ​​are calculated, and the pass / fail of the measurement values ​​is judged to obtain a judgment result. If the measurement image does not match any of the pattern reference images, the pattern number is set to 0 and the process proceeds to step SD9, where it is judged to be defective.

[0095] Next, the process proceeds to step SD10. In step SD10, an overall judgment result is obtained based on the judgment results obtained in steps SD6 to SD9. Since the checkbox 601 for "judge multiple processes collectively" is checked, if all judgment results, including the previous judgment result, are good, the overall judgment result is good, and if even one of the judgment results is bad, the overall judgment result is bad.

[0096] Thereafter, the process proceeds to step SD11, where the overall judgment result obtained in step SD10 is output together with the measurement value.

[0097] In addition, since the previous result is also considered when making a comprehensive judgment, a means for initializing the previous result is required in order to make a new judgment from a state where there is no judgment result. As a means for initializing all judgment results, it is preferable to have a means for allowing a user to control a command, all reset, etc.

[0098] If the check box 601 for "judge multiple processes collectively" is not checked, dimension measurement and pass / fail judgment need only be performed on the measurement image acquired this time. The user can replace the workpiece W to obtain the measurement and pass / fail judgment results sequentially.

[0099] As another example, as shown in the flowchart of FIG. 21, not only one workpiece W but also multiple types of workpieces W can be inspected. If, for example, a reference image of a first workpiece W and a reference image of a second workpiece W are stored in association with a dimension measurement area, a dimension measurement item, and a judgment threshold value during setup, when a measurement image of a first workpiece W is input, a dimension measurement and a pass / fail judgment result can be obtained based on matching with the reference image of the first workpiece W during operation, and when a measurement image of a second workpiece W is input, a dimension measurement and a pass / fail judgment result can be obtained based on matching with the reference image of the second workpiece W. In other words, the user only needs to repeat the processes of steps SE1 and SE2 by switching the workpiece W, and there is no need for a changeover, which reduces the burden on the user and reduces measurement errors.

[0100] An example of processing when one type of workpiece is inspected in multiple times is shown in the flowchart of FIG. 22. In this case, as described above, processing to initialize the previous result is required first, and therefore, in step SF1, the user executes a reset to initialize the previous result. After that, in step SF2, the user places the measurement point X of the workpiece W within the measurement field of view. If there are three measurement points, X will be 1 to 3, and the initial value is 1. Then, after steps SF3 to 5, the next measurement point is placed within the measurement field of view in step SF2, and steps SF3 to 5 are performed. When the measurement of all measurement points is completed in this manner, the process proceeds to step SF6, and processing according to the judgment result is executed. After that, the workpiece W is replaced and the measurement is repeated.

[0101] It is also possible to automate the initialization of step SF1. For example, when all registered images have been measured, it is assumed that the inspection of one workpiece is completed, and the above initialization is performed at that timing, thereby reducing the number of objects to be controlled by the user.

[0102] In addition, by setting the number of locations to be measured within the workpiece W, the results can be output only when the specified number of measurements have been completed, or the above initialization can be automatically performed once the specified number of measurements have been completed.

[0103] (Effects of the embodiment) As described above, according to this embodiment, after the light-projecting housing 20 and the light-receiving housing 40 are installed, the part of the work W that has entered the measurement area is imaged by the two-dimensional image sensor 31 to obtain a measurement image of the part, and the image determination unit 73d performs a match determination between the acquired measurement image and a plurality of reference images. If the measurement image matches any of the plurality of reference images, a dimensional measurement is performed on the measurement image by applying the dimension measurement area, dimension measurement items, and judgment threshold value associated with the reference image. After that, another part of the work W is similarly imaged and judged to match, and if they match, a dimensional measurement is performed by applying the dimension measurement area, dimension measurement items, and judgment threshold value associated with the reference image. Therefore, it is possible to perform dimensional inspection of multiple parts of the work W without changing the setup, so there is no need to create a program for sending a setup change signal from an external control device.

[0104] Furthermore, since the overall judgment unit 73f performs an overall judgment based on the results of a plurality of dimensional measurements obtained by repeatedly executing the dimensional measurements a plurality of times, it is not necessary to create a program for causing an external control device to perform the overall judgment.

[0105] The above-described embodiment is merely illustrative in all respects and should not be construed as limiting. Furthermore, all modifications and variations within the scope of the claims are within the scope of the present invention.

[0106] For example, the light receiving unit 30 and the light projecting unit 10 may be installed on a movable part such as a robot arm, and the control device 70 may be installed in a non-movable manner, and may be disposed separately. In this case, power for driving the light receiving unit 30 is supplied from the control device 70 via the connection cable D.

[0107] An example of the processing operation of the optical measuring device when the light receiving unit 30 and the light emitting unit 10 are installed on a movable part such as a robot arm will be described. Consider a case where dimensional measurements are made on two different parts A and B of a workpiece W. First, dimensional measurements are made on part A, and if the measurement result is not NG (defective), an OK judgment is output as the overall judgment. Next, dimensional measurements are made on part B, and if the measurement result is not NG, an OK judgment is output without changing the overall judgment. If the measurement result of part B is NG, the overall judgment is changed from OK to NG and output.

[0108] On the other hand, if a dimensional measurement is performed on part A and the measurement result is NG, a NG judgment is output as the overall judgment. Next, a dimensional measurement is performed on part B, but even if the measurement result is not NG, a NG judgment is output as the overall judgment (because the measurement result of part A is NG). If the dimensional measurement of part B is OK, for example, the robot arm is moved and the dimensional measurement of part A is performed again. At this time, if the measurement result of part A is OK, the overall judgment is changed from NG to OK and output.

[0109] Such a processing operation continues until a reset signal is sent from the outside to the optical measuring device. In other words, the optical measuring device may perform a processing operation in which, until a reset signal is received from the outside, if either of the dimensional measurement results of part A and part B is NG, an NG judgment is output as an overall judgment, and if the other results are NG, an OK judgment is output as an overall judgment. [Industrial Applicability]

[0110] As described above, the optical measuring device according to the present invention can be used to measure the dimensions, etc., of a workpiece placed between a light-projecting casing and a light-receiving casing. [Explanation of symbols]

[0111] 1 Optical measurement device 10 Light projection unit 11 Light source 12 Light source holder 15 Telecentric lens on the light emission side 20 Light projection housing 23 Floodlight 30 Light receiving unit 31 Two-dimensional image sensor 35 Receiving reflector 36 Telecentric lens on the receiving side 38 Light receiving lens unit 40 Light receiving housing 43 Light receiving window 73a Registration Department 73b Setting section 73c Selection section 73d Image Judgment Section 73e Executive Department 73f General Judging Department 82 Display device (display section) S measurement area W work

Claims

1. a light-projecting housing having a light-projecting window and attached with a light-projecting telecentric lens that generates parallel light projected onto a measurement area through which a workpiece passes; a light-receiving housing having a light-receiving window and attached with a light-receiving telecentric lens into which the parallel light that has passed through the measurement area is incident and a two-dimensional image sensor that receives the light that has passed through the light-receiving telecentric lens; and a cable connecting the light-projecting housing and the light-receiving housing; In an optical measuring device for performing dimensional measurement of a workpiece passing through a measurement area in a state in which the light-projecting casing and the light-receiving casing are installed so that the light-projecting window and the light-receiving window face each other, a storage unit that stores a plurality of reference images to be set for dimension measurement, and a dimension measurement area, a dimension measurement item, and a judgment threshold value set for each of the reference images in association with each other; an image acquisition unit that acquires a measurement image by imaging a workpiece passing through a measurement area using the two-dimensional imaging element; an image determination unit that performs a coincidence determination between the measurement image acquired by the image acquisition unit and the plurality of reference images based on the plurality of reference images stored in the storage unit; an execution unit that, when it is determined by the image determination unit that the measurement image matches any one of the plurality of reference images, executes a dimension measurement on the measurement image by applying a dimension measurement area, a dimension measurement item, and a determination threshold value that are set for the reference image that matches the measurement image; An optical measuring device equipped with a comprehensive judgment unit that makes a comprehensive judgment on the dimensions of a workpiece based on the results of repeating the following steps multiple times for a workpiece passing through a measurement area: acquisition of a measurement image by the image acquisition unit, a match judgment by the image judgment unit, and dimensional measurement performed by the execution unit if a match is found.

2. 2. The optical measurement device according to claim 1, A registration unit is provided that, when setting the optical measuring device, assigns identification information for identifying a plurality of images acquired by causing the two-dimensional image pickup element to pick up images of different portions of a workpiece, to each of the images, and registers each of the images as a reference image; The storage unit stores a reference image to which the identification information is assigned, The optical measuring device further includes a display unit that displays the identification information and a reference image in association with each other.

3. 3. The optical measuring device according to claim 2, a setting unit capable of setting a dimension measurement area, a dimension measurement item, and a judgment threshold for each reference image registered in the registration unit; The storage unit stores the dimension measurement area, the dimension measurement item, and the judgment threshold set by the setting unit, the identification information, and a reference image in association with each other.

4. 4. The optical measuring device according to claim 3, the setting unit is provided with a selection unit that selects an arbitrary reference image from a plurality of reference images; the display unit displays the reference image selected by the selection unit; The setting unit is an optical measuring device configured to be able to set a dimension measurement area, a dimension measurement item, and a judgment threshold value to be applied to the reference image displayed on the display unit.

5. 5. The optical measuring device according to claim 2, The image determination unit determines whether a reference image registered by the registration unit matches a measurement image acquired by the image acquisition unit.

6. 6. The optical measuring device according to claim 1, The optical measuring device wherein the overall judgment unit judges the overall result as good only when all of the results of the multiple dimension measurements are within a judgment threshold value.

7. 7. The optical measuring device according to claim 1, The optical measuring device wherein the comprehensive judgment unit accepts a selection as to whether to subject all results of a plurality of dimension measurements to a comprehensive judgment or to subject only some of the results to a comprehensive judgment.

8. 8. The optical measuring device according to claim 1, The image judgment unit judges whether one of the multiple reference images stored in the memory unit matches the measurement image acquired by the image acquisition unit, and if it determines that there is no match, accepts the option of whether or not to judge whether another reference image matches the measurement image.

9. 9. The optical measuring device according to claim 1 , The overall judgment unit judges the result of the judgment by the image judgment unit to be defective if there is no reference image that matches the measurement image acquired by the image acquisition unit.

Citation Information

Patent Citations

  • Pattern matching method

    JP2009192297A

  • Positional shift detector for laminated substrate and semiconductor manufacturing device using the same, and positional shift detection method for laminated substrate

    JP2012007898A

  • Dimension measuring device, dimension measuring method, and program for dimension measuring device

    JP2012032224A

  • Flash inspection device and flash inspection method

    JP2014137327A

  • Image inspection device, image inspection method and image inspection program

    JP2017032360A