Optical measuring device
The optical measurement device addresses alignment challenges by using telecentric lenses and a determination processing unit to analyze light intensity, facilitating easy and accurate optical axis alignment for high measurement precision.
Patent Information
- Application Number
- JP2020193510
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-11-20
- Publication Date
- 2024-11-14
- Estimated Expiration
- 2040-11-20
AI Technical Summary
Existing optical measurement devices face challenges in accurately aligning optical axes without a positioning member, leading to difficulties in achieving high measurement accuracy, especially when using telecentric lenses, due to slight deviations in optical alignment.
An optical measurement device that includes a light source, projection and reception housings with telecentric lenses, a two-dimensional image sensor, and a determination processing unit to analyze light intensity distribution for optical axis alignment, displaying the deviation on a display unit to facilitate easy and accurate alignment.
Enables high measurement accuracy by allowing intuitive alignment of optical axes, ensuring precise alignment even without a positioning member, particularly in telecentric systems.
Smart Images

Figure 0007583586000001 
Figure 0007583586000002 
Figure 0007583586000003
Abstract
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] Incidentally, an optical measuring device that projects measurement light from a light source onto a measurement area and forms an image of the workpiece on an imaging surface through the workpiece requires that a light-projecting housing that houses a light source and a light-receiving housing that houses an imaging element are arranged opposite each other and that the optical axis of the light-projecting housing and the optical axis of the light-receiving housing are aligned. In this case, for example, if the light-projecting housing and the light-receiving housing are attached to a common positioning member, it becomes possible to align the optical axes with a relatively high degree of accuracy, but there are cases where such a positioning member cannot be used at the actual measurement site, in which case it is assumed that the user will intuitively align the optical axes.
[0005] However, the optical axis is not accurately aligned when the user intuitively aligns the optical axis, and as a result, it is difficult to achieve high-precision measurement. In particular, when an optical system using a telecentric lens is used, the parallel light generated by the telecentric lens is used as the measurement light, so even a slight deviation in the optical axis adversely affects the measurement accuracy. In addition, even if a positioning member is used, it may be difficult to accurately align the optical axis. Therefore, it has been desired to enable the user to easily align the optical axis with high precision, regardless of the presence or absence of a positioning member.
[0006] The present invention has been made in view of the above-mentioned points, and an object of the present invention is to enable the optical axis to be aligned simply and accurately, thereby enabling high measurement accuracy to be obtained. [Means for solving the problem]
[0007] In order to achieve the above object, the first disclosure is premised on an optical measuring device that projects measuring light onto a measurement area to measure a workpiece. The optical measuring device includes a light source that generates measuring light to be projected onto a measurement area where a workpiece is placed, a light-projecting telecentric lens that receives the measuring light generated by the light source and converts the measuring light into parallel light directed towards the measurement area, a light-projecting housing to which the light-projecting telecentric lens is attached and that has a light-projecting window for projecting the parallel light emitted from the light-projecting telecentric lens onto the measurement area, 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. the light-receiving housing to which the light-receiving telecentric lens and the two-dimensional image sensor are attached and which has a light-receiving window for allowing parallel light that has passed through a measurement area to be incident on the light-receiving telecentric lens; a determination processing unit that determines a deviation of the imaging optical axis of the two-dimensional image sensor based on the light intensity distribution of the parallel light received by the two-dimensional image sensor, with the light-projecting housing and the light-receiving housing installed so that the light-projecting window and the light-receiving window are arranged opposite each other; and a display unit that displays the determination result by the determination processing unit using a two-dimensional image.
[0008] According to this configuration, when the optical measuring device is used, the light-projecting housing and the light-receiving housing are installed so that the light-projecting window and the light-receiving window are arranged opposite to each other. The measurement light generated by the light source is first incident on the light-projecting telecentric lens and converted into parallel light, and then projected from the light-projecting window to the measurement area. The parallel light that has passed through the measurement area is incident on the light-receiving telecentric lens from the light-receiving window and received by the two-dimensional image sensor. The determination processing unit can determine the deviation of the imaging optical axis of the two-dimensional image sensor based on the light intensity distribution of the parallel light received by the two-dimensional image sensor. For example, when the light is generally weak in the light intensity distribution, it is estimated that the two-dimensional image sensor does not receive light normally due to the deviation of the optical axis, and in that case, it can be determined that the imaging optical axis of the two-dimensional image sensor is deviated. On the other hand, when the light is generally strong in the light intensity distribution, it is estimated that the two-dimensional image sensor receives light normally, and in that case, it can be determined that the imaging optical axis of the two-dimensional image sensor is not deviated. The result of this determination is displayed on the display unit using a two-dimensional image, so that the user can adjust the misalignment of the imaging optical axis of the two-dimensional imaging element while viewing the two-dimensional image.
[0009] In the second disclosure, the optical measurement device includes an image generating unit that generates the two-dimensional image based on the light intensity distribution in the two-dimensional image sensor. The two-dimensional image generated by the image generating unit is displayed on the display unit. In this case, the two-dimensional image generated by the image generating unit may be an image acquired by the two-dimensional image sensor, i.e., a raw image.
[0010] In the third disclosure, the image generation unit generates a two-dimensional image that displays the light intensity distribution in the two-dimensional imaging element in a gradational manner, so that the display unit displays color changes indicating the intensity of light, allowing the user to obtain information such as the magnitude of deviation of the optical axis and the direction in which the optical axis needs to be changed to align it.
[0011] In the fourth disclosure, the image generation unit generates the two-dimensional image on which a first indicator showing a misalignment of the optical axis of the two-dimensional imaging element is displayed, so that a user can understand whether the optical axis of the two-dimensional imaging element is aligned or not, and if not, to what extent it is misaligned, by looking at the first indicator displayed on the display unit.
[0012] In a fifth disclosure, the determination processing unit calculates a center of gravity of the image acquired by the two-dimensional imaging element. Also, the image generating unit can display the first indicator at the center of gravity of the image calculated by the determination processing unit.
[0013] In the sixth disclosure, the image generation unit generates the two-dimensional image on which a second indicator is displayed, indicating a normal range of the optical axis of the two-dimensional imaging element. Therefore, if the optical axis of the two-dimensional imaging element deviates from the normal range, it is possible to guide the correction of the deviation so that it is within the normal range.
[0014] In the seventh disclosure, the determination processing unit determines that the imaging optical axis of the two-dimensional imaging element is misaligned when the center of gravity of the image acquired by the two-dimensional imaging element is located outside the normal range indicated by the second indicator, whereas it determines that the imaging optical axis of the two-dimensional imaging element is not misaligned when the center of gravity of the image acquired by the two-dimensional imaging element is located within the normal range indicated by the second indicator. This makes it possible to clarify the determination criterion.
[0015] In the eighth disclosure, the image generating unit generates an X-axis profile by projecting the light intensity distribution in the two-dimensional image sensor in the X-axis direction, and a Y-axis profile by projecting the light intensity distribution in the two-dimensional image sensor in the Y-axis direction. Changes in the generated X-axis profile and Y-axis profile can be linked to the movement of the first indicator.
[0016] In a ninth disclosure, the image generating section can generate the two-dimensional image on which a second indicator indicating a normal range of the optical axis of the two-dimensional imaging element is superimposed.
[0017] In the tenth disclosure, the image generating unit generates the two-dimensional image in which an X-axis display line and a Y-axis display line indicating the X-axis and the Y-axis, respectively, are superimposed, so that, for example, when the optical axis is misaligned, the user can intuitively determine in which direction the optical axis is misaligned. This makes it easy to correct the misalignment.
[0018] In the eleventh disclosure, the determination processing unit performs binarization processing on the image data acquired by the two-dimensional image sensor, and then counts the number of pixels whose light intensity is considered to be 0. When the obtained number of pixels is equal to or less than a predetermined number, the determination processing unit determines that the imaging optical axis of the two-dimensional image sensor is not misaligned, whereas when the obtained number of pixels exceeds the predetermined number, the determination processing unit determines that the imaging optical axis of the two-dimensional image sensor is misaligned. The determination threshold for the number of pixels can be set in consideration of the accuracy of the dimension measurement. For example, since a misalignment of the optical axis that has little effect on the accuracy of the dimension measurement is acceptable, it is sufficient to obtain a determination threshold for the number of pixels to that extent in advance. Effect of the Invention
[0019] As described above, with the light-projecting housing and the light-receiving housing installed so that the light-projecting window and the light-receiving window are positioned opposite each other, the deviation of the imaging optical axis is determined based on the light intensity distribution of the parallel light received by the two-dimensional imaging element, and the determination result can be displayed as a two-dimensional image, so that the optical axis can be aligned easily and accurately, resulting in high measurement accuracy. [Brief description of the drawings]
[0020] [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 6A] 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 6B] 4A and 4B are diagrams for explaining the position and size of a light image. [Figure 7] FIG. 2 is a vertical cross-sectional view of the light receiving unit. [Figure 8A] 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 8B] 4 is a diagram illustrating an outline of a mounting structure of each component to a light-receiving housing. FIG. [Figure 9] 2 is a perspective view of an imaging element holder to which a two-dimensional imaging element is fixed. FIG. [Figure 10] FIG. 2 is an exploded perspective view of an imaging element holder. [Figure 11A] 11 is a perspective view of the light projecting unit and the light receiving unit fixed to a fixing member, viewed obliquely from below, with the cover of the light receiving unit open; FIG. [Figure 11B] 11B is a view corresponding to FIG. 11A, showing a state in which the fixing member has been removed and the side surface of the light projection unit has been opened. [Figure 11C] 4 is a perspective view showing a reflector mounting portion of the light projection unit and its vicinity. FIG. [Figure 11D] 4 is a perspective view showing a light-receiving side reflector mounting seat of the light-receiving unit and its vicinity. FIG. [Figure 12] FIG. 2 is a perspective view of the light receiving unit as viewed obliquely from below. [Figure 13] 1 is a cross-sectional view taken along line XIII-XIII in FIG. [Figure 14] 13 is a bottom view showing a case in which the light projecting unit and the light receiving unit are fixed to a fixing member and used. FIG. [Figure 15] 10 is a flowchart showing an example of a processing procedure when setting the optical measurement device. [Figure 16] FIG. 13 is a diagram illustrating an example of a setting user interface screen. [Figure 17] FIG. 13 is a diagram showing an example of a user interface screen for detailed settings. [Figure 18] FIG. 13 is a diagram showing an example of a user interface screen for specifying measurement conditions. [Figure 19] FIG. 13 is a diagram showing an example of a user interface screen for specifying a tolerance. [Figure 20] 10 is a flowchart showing an example of a processing procedure during operation of the optical measuring device. [Figure 21] FIG. 13 is a diagram illustrating an example of a user interface screen during operation. [Figure 22A] 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 22B] 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. [Diagram 23] 11 is a diagram showing a distribution of the amount of received light when the measurement light projected from the light projecting unit onto a measurement area is received by a two-dimensional image sensor of the light receiving unit. FIG. [Figure 24] 13 is a flowchart illustrating an example of an optical axis determination process procedure. [Diagram 25] FIG. 13 is a diagram showing an example of a user interface screen for adjusting the optical axis when the optical axes are aligned. [Figure 26] FIG. 13 is a diagram showing an example of a user interface screen for adjusting the optical axis when the optical axes are slightly deviated within a range in which they can be determined to be aligned. [Figure 27] FIG. 13 is a diagram showing an example of a user interface screen for adjusting the optical axis when the optical axes are not aligned. [Figure 28] FIG. 13 is a diagram showing an example of a user interface screen for adjusting the optical axis when the optical axes are aligned but a foreign object is captured. [Figure 29] FIG. 13 is a diagram showing an example of a user interface screen for adjusting the optical axis when the optical axes are aligned but the field of view is misaligned. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0021] 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.
[0022] 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.
[0023] 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.
[0024] 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.
[0025] 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.
[0026] 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.
[0027] (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.
[0028] 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.
[0029] 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.
[0030] 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.
[0031] (Configuration of light projection unit 10) As shown in FIG. 6A, 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.
[0032] 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.
[0033] 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.
[0034] 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.
[0035] 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 a screw 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. An access opening 20d is formed in the bottom of the light projection housing 20, making it easy to access when adjusting the positions of the light source 11 and the light source holder 12. A lid 20e closes the access opening 20d.
[0036] 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.
[0037] The light-projecting housing 20 contains a light-projecting reflector 14 that reflects the light emitted from the light-projecting lens 12c. The light-projecting reflector 14 is, for example, a flat mirror. A plurality of reflector attachment parts 21 for attaching the light-projecting 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 a contact surface 21a against which the back surface of the reflector attachment part 21 abuts is formed at the tip end in the protruding direction (see FIG. 11C). The reflector attachment parts 21 may protrude from one side surface of the light-projecting housing 20 to the other side surface thereof to reinforce the inner surface of the light-projecting housing 20. With the back surface of the light-projecting reflector 14 abutting against each contact surface 21a, the light-projecting reflector 14 can be positioned with high accuracy with respect 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.
[0038] 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.
[0039] 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 (third seat) 22a, which protrudes radially inward and is composed of a protrusion extending circumferentially, is integrally formed on the inner peripheral surface at the rear side of the light-emitter lens mounting hole 22. The peripheral portion of the end face at the rear side (light incident side) of the light-emitter telecentric lens 15 abuts against this 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.
[0040] 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.
[0041] 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.
[0042] 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 biases the light-emitter-side telecentric lens 15 so that it is constantly pressed against the light-emitter-side lens mounting seat 22a. The light-emitter-side frame 23b may be fixed to the light-emitter housing 20 by screws on the light-emitter-side lens mounting hole 22 on the light-emitting surface side of the light-emitter-side telecentric lens 15, and the light-emitter-side elastic member 23c may press and fix the light-emitter-side telecentric lens 15 against the light-emitter-side lens mounting seat 22a.
[0043] As shown in FIG. 3, a side surface (outer surface) of the light-projecting housing 20 is provided with a plurality of side reference surfaces 20a (three in FIG. 3) that serve as a reference when the light-projecting housing 20 is installed. The side reference surfaces 20a are formed by the circular edges of the through holes 20b, and are highly accurate surfaces located on the same plane. The light-projecting housing 20 can be positioned with high accuracy by abutting the side reference surfaces 20a against a member on which the light-projecting housing 20 is installed. In this embodiment, a through hole 20b is formed in the center of the side reference surface 20a. A similar side reference surface may be provided on the other side surface (outer surface) of the light-projecting housing 20.
[0044] In addition, the bottom surface (outer surface) of the light-projecting housing 20 is provided with a plurality of bottom reference surfaces 20c that serve as a reference when the light-projecting housing 20 is installed (see FIG. 11B). The bottom reference surfaces 20c are formed with flat surfaces (convex surfaces) that are slightly raised compared to other parts, and are highly accurate surfaces that are located on the same plane as each other. In this embodiment, a screw hole 101 for fixing the fixing member 20 is formed in the bottom reference surface 20c. The light-projecting housing 20 can be positioned with high accuracy by abutting the bottom reference surface 20c against a member on which the light-projecting housing 20 is installed. When the light-projecting housing 20 is installed, either the side reference surface 20a or the bottom reference surface 20c may be used as a reference. The side reference surface 20a and the bottom reference surface 20c protrude from other surfaces, and can be abutted against a flat mounting surface. When the side reference surface 20a is used as a reference, the side reference surface 20a is brought into contact with the mounting surface, and mounting bolts are inserted through the through holes 20b of each side reference surface 20a to fix the light projector housing 20 to the mounting surface. When the bottom reference surface 20c is used as a reference, the bottom reference surface 20c is brought into contact with the mounting surface, and mounting screws are screwed into the screw holes 101 of each bottom reference surface 20c to fix the light projector housing 20 to the mounting surface. For example, each bottom reference surface 20c is fixed to the fixing member 60 by screwing mounting screws into the screw holes 101 while in contact with the upper surface of the fixing member 60.
[0045] As shown in FIG. 2, a working distance reference plane 20f is provided on the front surface of the light projection housing 20, which faces the light receiving unit 30.
[0046] The light projection housing 20 has a box shape with one side open, and a reference surface for abutting against a mounting surface is formed on the side and / or bottom of the box shape. A seat for positioning optical elements such as a reflector and a lens that determine the optical path of the measurement light is formed on the front and / or back of the box shape. The seat is formed by extending from one side to the other side, and the rigidity of the front and / or back of the box shape is further strengthened. For example, a seat for directly positioning and fixedly mounting the light projection side telecentric lens 15 is formed on the front of the box shape, a seat for directly positioning and fixedly mounting the light projection side reflector 14 is formed on the back (inside) of the box shape, and the light source holder 12 is attached to the closed side of the box shape so that the position can be adjusted. This allows the measurement light to be illuminated with high accuracy relative to the reference surface. An access opening 20d for accessing the light source 11 and the light source holder 12 may be formed on the bottom of the box shape.
[0047] (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.
[0048] 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.
[0049] 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.
[0050] The image sensor holder 37 is attached to the light-receiving housing 40 with the two-dimensional image sensor 31 fixed, i.e., with the positional relationship between the two-dimensional image sensor 31, the light-receiving lens 33, and the aperture 34 kept constant. As shown in Fig. 11A, an introduction opening 41 is formed in one side wall of the light-receiving housing 40 for inserting the image sensor holder 37 holding the two-dimensional image sensor 31 into the light-receiving housing 40. The introduction opening 41 is open over substantially the entire upper area of one side wall of the light-receiving housing 40. By opening the introduction opening 41 widely in this manner, it becomes possible to easily insert the image sensor holder 37 integrated with the two-dimensional image sensor 31 into the light-receiving housing 40.
[0051] 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.
[0052] 2 and other drawings, the light-receiving housing 40 is provided with a lid 41a for closing the introduction opening 41. The lid 41a is detachably attached to the light-receiving housing 40. A sealant is provided between the peripheral portion of the lid 41a and the peripheral portion of the introduction opening 41 in the light-receiving housing 40.
[0053] 6A, the light-receiving telecentric lens 36 is attached to the side of the light-receiving housing 40 facing the light-projecting housing 20, and is disposed so that its optical axis is aligned with the optical axis of the light-projecting telecentric lens 15. Here, the position and size of the optical image will be described in more detail with reference to FIG. 6B.
[0054] In FIG. 6B, the light-receiving telecentric lens 36 guides the parallel light directed toward the measurement area S by the light-projecting telecentric lens 15 to the two-dimensional image sensor 31 via the light-receiving lens unit 38. 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. Similarly, the light-receiving telecentric lens 36 has a constant field size along the optical axis of the light-receiving telecentric lens 36. In other words, even if the measurement object is placed at different positions along the optical axis of the light-receiving telecentric lens 36, the size of the optical image corresponding to the light-shielded image of the measurement object is constant on the two-dimensional image sensor 31. The light-receiving telecentric lens 36 forms the light-shielded image of the measurement object in the measurement area S as a focused optical image on the two-dimensional image sensor 31. It is preferable that a focused optical image is formed on the two-dimensional image sensor 31 regardless of the position of the measurement object in the measurement area S. The range along the optical axis of the light-receiving telecentric lens 36 where a focused optical image is formed on the two-dimensional image sensor 31 is sometimes called the depth of field (D1). The size of the depth of field depends on the optical path length from the light-receiving telecentric lens 36 to the optical image formed in the light-receiving housing 40, and 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 measurement device 1 having a large measurement area for high-precision measurement, the optical path length from the light-receiving telecentric lens 36 to the optical image formed in the light-receiving housing 40 is long, so the size of the light-receiving housing 40 may be reduced by folding the optical path with the light-receiving reflector 35. For example, the depth of field may be set to about 20 mm for an optical measurement device 1 with a field of view size of 40 mm in diameter, and about 30 mm for an optical measurement device 1 with a field of view size of 64 mm in diameter. In this case, the size of the light-receiving housing 40 may be reduced by folding the optical path with the light-receiving side reflector 35 (indicated by dotted lines in FIG. 6B. The same applies to the light-projecting side). Also, the depth of field may be set to about 4 mm for an optical measurement device 1 with a field of view size of 6 mm in diameter, for example.In this case, the light-receiving housing 40 may be elongated along the optical axis of the light-receiving telecentric lens 36 without providing the light-receiving reflector 35 .
[0055] 7 and 8A, 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 on the side facing the light-emitting housing 20. A light-receiving lens mounting seat (first seat) 42a is integrally formed on the inner peripheral surface at the rear side of the light-receiving lens mounting hole 42, the light-receiving lens mounting seat 42a protruding radially inward and consisting of a protrusion extending in the circumferential direction. The light-receiving telecentric lens 36 is positioned relative to the light-receiving housing 40 by the peripheral portion of the end face at the rear side (light emission side) of the light-receiving telecentric lens 36 abutting 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.
[0056] 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 it against 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. The light-receiving side frame 43b may be fixed to the light-receiving housing 40 by screws on the light incident surface side of the light-receiving side telecentric lens 36 in the light-receiving side lens mounting hole 42, and the light-receiving side telecentric lens 36 may be pressed and fixed to the light-receiving side lens mounting seat 42a by the light-receiving side elastic member 43c.
[0057] 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 (second seat) 44a, which protrudes radially inward and is composed of a protrusion extending in the circumferential direction, is integrally molded on the inner peripheral surface on the back side of the light-receiving reflector mounting hole 44 (see FIG. 11D). The light-receiving reflector 35 is positioned relative to the light-receiving housing 40 by the peripheral portion of the end surface on the back side 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.
[0058] 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.
[0059] 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 member (reflector biasing member) 44c is disposed between the inner surface of the cover 44d and the light-receiving side reflector 35. The reflector elastic member 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 to press the light-receiving side reflector mounting seat 44a. The light-receiving side reflector 35 is attached in a state in which it is constantly pressed against the light-receiving side reflector mounting seat 44a by the reflector-side elastic member 44c. The cover 44d is fixed to the light-receiving housing 40 by a screw, and the light-receiving side reflector 35 may be pressed and fixed to the light-receiving side reflector mounting seat 44a by the reflector-side elastic member 44c.
[0060] As shown in FIG. 12, a side surface (outer surface) of the light-receiving housing 40 is provided with a plurality of side reference surfaces 40a (three in FIG. 12) that serve as a reference when the light-receiving housing 40 is installed. The side reference surfaces 40a are formed by the circular edges of the through holes 40b, and are highly accurate surfaces 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. A similar side reference surface may be provided on the other side surface (outer surface) of the light-receiving housing 40.
[0061] 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 the light receiving housing 40 is installed. The bottom reference surfaces 40c are formed of flat surfaces and are highly accurate surfaces that are located on the same plane as each other. In this embodiment, a screw hole 101 is formed in the bottom reference surface 40c. The light receiving housing 40 can be positioned with high accuracy by abutting the bottom reference surface 40c against a member on which the light receiving housing 40 is installed. When the light receiving housing 40 is installed, either the side reference surface 40a or the bottom reference surface 40c may be used as a reference. The side reference surface 40a and the bottom reference surface 40c can be abutted against a flat mounting surface by protruding from other surfaces. When the light receiving housing 40 is installed based on the side reference surface 40a, the side reference surface 40a is abutted against the mounting surface, and a mounting bolt is inserted through the through hole 40b of each side reference surface 40a to fix the light receiving housing 40 to the mounting surface. When the bottom reference surface 40c is used as a reference, the bottom reference surface 40c is brought into contact with the mounting surface, and mounting screws are screwed into the screw holes 101 of each bottom reference surface 40c to fix the light-receiving housing 40 to the mounting surface. For example, each bottom reference surface 60c is fixed to the fixing member 60 by screwing mounting screws into the screw holes 101 while in contact with the upper surface of the fixing member 60.
[0062] 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.
[0063] The light receiving housing 40 has a box shape with one side open, and a reference surface for abutting against a mounting surface is formed on the side and / or bottom of the box shape. A seat for positioning optical elements such as a reflector and a lens that determine the optical path of the measurement light is formed on the front and / or back of the box shape. The seat is formed by extending from one side to the other side, and the rigidity of the front and / or back of the box shape is further strengthened. For example, a seat for directly positioning and fixedly mounting the light receiving telecentric lens 36 is formed on the front of the box shape, a seat for directly positioning and fixedly mounting the light receiving reflector 35 is formed on the back (inside) of the box shape, and an image sensor holder 37 is attached to the closed side of the box shape so that the position can be adjusted. This allows the measurement light to be illuminated with high accuracy relative to the reference surface. An access opening 46 for adjusting the position of the two-dimensional image sensor 31 and the image sensor holder 37 may be formed on the bottom of the box shape.
[0064] 8B, in the light-receiving housing 40 according to this embodiment, the light-receiving telecentric lens 36 and the light-receiving reflector 35 are fixed to the wall surface of the light-receiving housing 40, which has high rigidity, and the image sensor holder 37 is attached so that its position can be adjusted. This makes it possible to realize highly accurate measurements.
[0065] (Configuration of the 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.
[0066] 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.
[0067] (Adjustment mechanism for the position and orientation of two-dimensional image sensor) As described above, the optical measuring device 1, which projects the measuring light from the light source 11 onto the measuring area S and forms an image of the workpiece W through the workpiece W on the imaging surface of the two-dimensional imaging element 31, may be used not only to measure the geometric shape of the workpiece W but also to position and measure the alignment of the workpiece W. In this case, if the optical axis is not horizontal or vertical with respect to a reference surface, the position of the workpiece W may be shifted when the workpiece W moves in the optical axis direction and the image may be formed on the imaging surface, resulting in a decrease in measurement accuracy. In particular, if the optical axis of the two-dimensional imaging element 31 is tilted due to manufacturing errors or assembly errors of the parts constituting the optical measuring device 1, errors in the jig for adjustment, etc., the above-mentioned decrease in measurement accuracy becomes significant.
[0068] Therefore, in this embodiment, the two-dimensional imaging element 31 is held by the imaging element holder 37 and is attached to the light receiving side housing 40 via an adjustment mechanism 50 that allows the position and attitude of the two-dimensional imaging element 31 to be adjusted. The adjustment mechanism 50 is configured to translate the two-dimensional imaging element 31 in the X direction and the Y direction and to rotate it in the θ direction as shown in FIG. 9. The two-dimensional imaging element 31 can also be translated in the Z direction by the adjustment mechanism 50 as shown in FIG. 7. The X direction corresponds to the X direction of the two-dimensional imaging element 31. The Y direction corresponds to the Y direction of the two-dimensional imaging element 31 and is the width direction of the light receiving unit 30. The Z direction is a direction perpendicular to the imaging surface of the two-dimensional imaging element 31. The θ direction is around the Z axis.
[0069] 10, the adjustment mechanism 50 includes a housing-side adjustment member 51, a shim 52, a housing-side screw 53, a holder-side screw 54, and an imaging element-side screw 55. The axial direction of the housing-side screw 53 and the axial direction of the holder-side screw 54 coincide with each other and are in the Y direction. The axial direction of the imaging element-side screw 55 is perpendicular to the axial direction of the housing-side screw 53 and are in the Z direction. The number of each of the screws 53, 54, 55 can be set arbitrarily.
[0070] The housing-side adjustment member 51 is a plate-like member extending along the inner surface of the side wall of the light-receiving housing 40. Three long holes 51a long in the Z direction are formed at intervals in the X and Y directions on the periphery of the housing-side adjustment member 51. Screw holes (not shown) are formed on the inner surface of the side wall of the light-receiving housing 40 at locations corresponding to the long holes 51a. When a housing-side screw 53 is inserted into the long hole 51a of the housing-side adjustment member 51 and screwed into the screw hole of the light-receiving housing 40, the housing-side adjustment member 51 can be fastened and fixed to the light-receiving housing 40. When the housing-side screw 53 is tightened, the housing-side adjustment member 51 can be brought into a fixed state in which it is fixed to the light-receiving housing 40, while when the housing-side screw 53 is loosened, the housing-side adjustment member 51 can be brought into an unfixed state in which it can be displaced in the Z direction relative to the light-receiving housing 40.
[0071] The shims 52 are members disposed between the housing side adjustment members 51 and the imaging element holder 37, and can be provided as necessary. By changing the thickness and number of the shims 52, the position of the two-dimensional imaging element 31 in the Y direction can be adjusted.
[0072] The imaging element holder 37 has two elongated holes 37a that are long in the X direction and spaced apart from each other in the X direction (only one is shown in FIGS. 9 and 10). The shim 52 has an insertion hole 52b at a location corresponding to the elongated hole 37a. The housing side adjustment member 51 has a screw hole 51b at a location corresponding to the elongated hole 37a. When a holder side screw 54 is inserted through the elongated hole 37a of the imaging element holder 37 and the insertion hole 52b of the shim 52 and screwed into the screw hole 51b of the housing side adjustment member 51, the imaging element holder 37 can be fastened and fixed to the housing side adjustment member 51. When the holder side screw 54 is tightened, the imaging element holder 37 can be brought into a fixed state in which it is fixed to the housing side adjustment member 51, whereas when the holder side screw 54 is loosened, the imaging element holder 37 can be brought into an unfixed state in which it can be displaced in the X direction relative to the housing side adjustment member 51.
[0073] The adjustment mechanism 50 further includes an imaging element fixing member 56 to which the two-dimensional imaging element 31 is fixed. The imaging element fixing member 56 is separate from the imaging element holder 37 and is disposed between the imaging element holder 37 and the two-dimensional imaging element 31. As shown in FIG. 10, the imaging element fixing member 56 is formed with a through hole 56a so as not to impede the light from reaching the two-dimensional imaging element 31. An adjustment hole 56a is formed on both sides of the imaging element fixing member 56 in the Y direction. The adjustment hole 56a is elongated in the X direction and is also formed large in the Y direction. A screw hole (not shown) is formed at a position corresponding to the adjustment hole 56a in the imaging element holder 37. When the imaging element side screw 55 is inserted through the adjustment hole 56a of the imaging element fixing member 56 and screwed into the screw hole of the imaging element holder 37, the imaging element fixing member 56 can be fastened and fixed to the imaging element holder 37. When the image sensor side screw 55 is tightened, the two-dimensional image sensor 31 can be fixed to the light-receiving housing 40 via the image sensor fixing member 56, the image sensor holder 37, and the housing side adjustment member 51. On the other hand, when the image sensor side screw 55 is loosened, the two-dimensional image sensor 31 can be displaced in the X direction and the Y direction relative to the light-receiving housing 40, and can also be rotated in the θ direction. In other words, the image sensor side screw 55 is a fixing device that switches between a fixed state in which the two-dimensional image sensor 31 is fixed to the light-receiving housing 40 and an unfixed state in which the two-dimensional image sensor 31 is displaceable relative to the light-receiving housing 40.
[0074] As shown in Fig. 7, the head of the imaging element side screw 55 is disposed so as to protrude obliquely downward. The head of this imaging element side screw 55 is provided with a tool engagement portion 55a (shown in Fig. 9) that engages with a tool 200 (shown in Fig. 7) such as a hexagonal wrench, a driver, or a socket. The tool engagement portion 55a can be formed of a hole, a recess, or the like into which the tip of the tool 200 is inserted. The imaging element side screw 55 may also be formed of a hexagonal bolt, or the like.
[0075] The bottom surface (a surface different from the surface on which the introduction opening 41 is formed) of the light-receiving housing 40 has access openings 46, 46 for accessing the image sensor side screws 55, 55 of the adjustment mechanism 50 from outside the light-receiving housing 40. The distance between the access openings 46, 46 in the Y direction is set equal to the distance between the image sensor side screws 55, 55. When the axis of the image sensor side screw 55 is extended downward, the access opening 46 is located at the portion where the axis intersects with the bottom surface of the light-receiving housing 40. The access opening 46 is also a communication port that penetrates the light-receiving housing 40 to communicate between the inside and the outside of the light-receiving housing 40. Therefore, the access opening 46 allows access to the image sensor side screws 55 from a direction substantially perpendicular to the imaging surface of the two-dimensional image sensor 31.
[0076] The diameter of the access opening 46 is set so that the tip of the tool 200 can be inserted into the light-receiving housing 40. In addition, since the access opening 46 is located on an extension of the axis of the image sensor side screw 55, the tip of the tool 200 can be engaged with the tool engagement portion 55a of the image sensor side screw 55 simply by inserting the tip of the tool 200 from the access opening 46 into the light-receiving housing 40. Therefore, the access opening 46 can also be called a guide opening that guides the tip of the tool 200 to the tool engagement portion 55a of the image sensor side screw 55. The formation of the access opening 46 makes it possible for an operator to loosen or tighten the image sensor side screw 55 with the tool 200 without visually checking the image sensor side screw 55.
[0077] As shown in FIG. 8A, the light receiving housing 40 is provided with a screw 47 and a sealant 48 as a sealing member for sealing the access opening 46 or a blocking member for blocking the access opening 46. The sealant 48 is made of a material having elasticity and water-stopping properties, such as rubber, and is adapted to be in close contact with the inner peripheral surface of the access opening 46 over the entire circumference. The screw 47 is adapted to be screwed into a thread groove (not shown) formed on the inner peripheral surface of the access opening 46. The screw 47 and the sealant 48 may be integrated together. By taking the screw 47 and the sealant 48 out of the access opening 46, the access opening 46 is opened, and the image sensor side screw 55 can be operated by the tool 200. On the other hand, by sealing the access opening 46 with the screw 47 and the sealant 48, waterproofness and dustproofness can be ensured. The access opening 46 may be sealed only with the screw 47, or may be sealed with a member such as a cap.
[0078] 2 and 3, that is, in the case of using the fixed member 60, as shown in Fig. 14, a through hole 61 communicating with the access opening 46 can be formed in the fixed member 60 at a position corresponding to the access opening 46 formed in the light-receiving housing 40 fixed to the fixed member 60. The through hole 61 may be an elongated hole that is long in the longitudinal direction of the fixed member 60. The diameter of the through hole 61 is set to a size that allows the tool 200 to be inserted therein.
[0079] Although the structure and shape of the fixing member 60 are not particularly limited, in this embodiment, two grooves 60a, 60a extending in the longitudinal direction of the fixing member 60 are formed at an interval from each other in the width direction on the bottom surface of the fixing member 60. In this case, the through hole 61 can be opened into the groove 60a.
[0080] (Adjustment by adjustment mechanism) Next, adjustment using the adjustment mechanism 50 configured as described above will be described. By loosening only the holder-side screw 54 and displacing the image sensor holder 37 in the X direction relative to the housing-side adjustment member 51, it becomes possible to adjust the parallelism of the optical axis relative to the bottom reference surface 40c of the light-receiving housing 40. In addition, by displacing the two-dimensional image sensor 31 in the Y direction by changing the thickness or number of shims 52, it becomes possible to adjust the parallelism of the optical axis relative to the side reference surface 40a of the light-receiving housing 40.
[0081] When only the housing-side screws 53 are loosened and the housing-side adjustment member 51 is displaced in the Z direction relative to the light-receiving housing 40, it becomes possible to adjust the working distance (adjust the focus) relative to the working distance reference surface 40d (shown in FIG. 3). In other words, when the light-receiving-side lens unit 38 is displaced in the Z direction relative to the substrate 31a, the working distance can be adjusted. In addition, when the imaging element holder 37 to which the two-dimensional imaging element 31 is fixed is moved in a direction toward or away from the light-projecting-side unit 10, the telecentricity of the optical system can be adjusted.
[0082] Furthermore, when the imaging element-side screw 55 is accessed from the outside with the tool 200 and loosened, the two-dimensional imaging element 31 can be displaced in the X and Y directions and rotated in the θ direction, as shown in Fig. 7. When the two-dimensional imaging element 31 is displaced in the X direction, the field of view moves in the X' direction, when the two-dimensional imaging element 31 is displaced in the Y direction, the field of view moves in the Y' direction, and when the two-dimensional imaging element 31 is rotated in the θ direction, the field of view moves in the θ' direction.
[0083] (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. 15. The flowchart shown in FIG. 15 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. 16 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.
[0084] 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. 16. 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. 16, the "line-line" tool is selected.
[0085] After the selection of the measurement method is completed, the process proceeds to the next step SA3 in the flowchart shown in Fig. 15. 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. 16, 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.
[0086] 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. 17 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.
[0087] When the setting of the image measurement elements is completed, the process proceeds to the next step SA4 in the flowchart shown in Fig. 15. 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. 18 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.
[0088] Once the measurement conditions have been specified, the process proceeds to step SA5 in the flowchart shown in Fig. 15. In step SA5, the user specifies a tolerance. The control device 70 generates a tolerance specification user interface screen 330 as shown in Fig. 19 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.
[0089] Once the tolerance has been specified, the process proceeds to step SA6 in the flowchart shown in FIG. 15. 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.
[0090] 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.
[0091] The above is the flow of the process steps when setting the optical measurement device 1.
[0092] (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. 20. 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 execute imaging processing.
[0093] 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.
[0094] 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.
[0095] 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.
[0096] 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.
[0097] 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. 21 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.
[0098] An example of the result display screen may be one that displays only the results of the currently selected processing pattern as shown in Fig. 22A, or one that displays all processing patterns simultaneously and highlights the currently active processing pattern as shown in Fig. 22B. In the form shown in Fig. 22B, 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.
[0099] Note that the "processing pattern" here means an inspection condition (in other words, a recipe or bank) that is a set of various tools and measurement areas. Multiple processing patterns (e.g., eight) may be set, and each processing pattern may be associated with one reference image.
[0100] (Optical axis alignment function) Fig. 23 is a diagram showing the distribution of the amount of received light when the measurement light projected from the light projecting unit 10 onto the measurement area S is received by the two-dimensional image sensor 31 of the light receiving unit 30. The upper side of Fig. 23 is a case where the amount of received light is more in the center as shown by the line indicating the distribution of the amount of received light, while the lower side of Fig. 23 is a case where the distribution of the amount of received light is uniform. By using a telecentric optical system as in this embodiment, it is possible to approach the distribution of the amount of received light shown in the lower side of Fig. 23, and as a result, it is possible to extremely reduce the measurement error, and also extremely reduce the erroneous detection / erroneous measurement due to reflection derived from the shape of the workpiece W, and further, it is possible to extremely reduce the erroneous detection / erroneous measurement of, for example, the edge of a transparent body.
[0101] However, it is necessary to rigorously align the optical axes of the light projecting unit 10 and the light receiving unit 30. For example, as shown in FIG. 4 and FIG. 5, if the light projecting unit 10 and the light receiving unit 30 are installed without using a common fixing member 60, it is assumed that the user will intuitively align the optical axes when using them. If the user intuitively aligns the optical axes, the optical axes will not be aligned accurately, and as a result, it will be difficult to achieve high-precision measurement. In particular, in a telecentric optical system, since parallel light is used as the measurement light, even a slight deviation in the optical axis will adversely affect the measurement accuracy. In addition, even if the fixing member 60 is used, it may be difficult to accurately align the optical axes.
[0102] The optical axis alignment function of the optical measuring device 1 of this embodiment is a function that visualizes and presents to the user the degree of alignment between the optical axes of the light-projecting unit 10 and the light-receiving unit 30, allowing the user to align the optical axes easily and with high accuracy.
[0103] 1, the optical measurement device 1 includes a determination processing unit 73a that determines a deviation of the imaging optical axis of the two-dimensional imaging element 31 based on the light intensity distribution of the parallel light received by the two-dimensional imaging element 31 in a state where the light projecting housing 20 and the light receiving housing 40 are installed so that the light projecting window 23 and the light receiving window 43 are arranged opposite to each other, and a display device (display unit) 82 that displays the determination result by the determination processing unit 73a using a two-dimensional image. The light intensity distribution of the parallel light can be obtained based on the pixel value (luminance value) of each pixel of the two-dimensional imaging element 31.
[0104] FIG. 24 shows the procedure of the judgment process executed by the judgment processing unit 73a. This flowchart starts from step SC1 when the judgment processing unit 73a detects that the user has performed an optical axis alignment operation. The optical axis alignment operation by the user is, for example, the operation of the optical axis alignment start button. In step SC1, the judgment processing unit 73a causes the two-dimensional image sensor 31 to capture an image with the light source 11 emitting light. At this time, no object that blocks light, such as a workpiece W, is placed in the measurement area S. After step SC1, the process proceeds to step SC2, where the judgment processing unit 73a acquires image data. When the image data is acquired, the process proceeds to step SC3, where a binarization process is performed. In the binarization process, a predetermined brightness threshold is set, and pixels whose brightness value is equal to or less than the predetermined brightness threshold are set as black, and pixels whose brightness value exceeds the predetermined brightness threshold are set as white. Then, the process proceeds to step SC4, where the number of black pixels (pixels whose light intensity is 0) present in the field of view is counted. After counting the black pixels, the process proceeds to step SC5, where a coincidence determination of the optical axis is performed. In step SC5, a pixel number threshold is preset to indicate how many black pixels are permitted to exist, and if the number of black pixels is equal to or less than this pixel number threshold (a predetermined number or less), it is determined that the optical axes are aligned, whereas if the number of black pixels exceeds this pixel number threshold, it is determined that the optical axes are not aligned. The result of the determination is designated as A.
[0105] That is, when the optical axes are aligned, when the two-dimensional image sensor 31 captures an image without the workpiece W being present, all pixels in the field of view have high luminance values that exceed the luminance threshold. Therefore, the image obtained by binarization processing has zero or very few black pixels, and when the number of black pixels is counted, the number of black pixels is equal to or less than the pixel number threshold. Therefore, it is determined that the optical axes are aligned. The luminance threshold can be set taking into consideration the accuracy of the dimension measurement.
[0106] On the other hand, if the optical axis is significantly misaligned, when the two-dimensional image sensor 31 captures an image, the luminance values of all pixels in the field of view will be 0 or extremely small, below the luminance threshold. Therefore, the image obtained by binarization processing will be an image entirely occupied by black pixels, and when the number of black pixels is counted, the number of black pixels will exceed the pixel number threshold. Therefore, it is determined that the optical axis is misaligned.
[0107] Also, the optical axis may not be greatly misaligned, but may be slightly misaligned. In this case, when the two-dimensional imaging element 31 captures an image, the luminance value of some pixels in the field of view becomes 0 or extremely small, and the luminance value of these pixels becomes equal to or less than the luminance threshold value. Therefore, the image obtained by the binarization process has some black pixels, and when the number of black pixels is counted, the number of black pixels may exceed the pixel number threshold value. If it exceeds the number, it is determined that the optical axes do not match. Note that, if the amount of misalignment of the optical axis is to an extent that does not adversely affect the measurement accuracy, it may be determined that the optical axes match, so that the pixel number threshold value may be determined in advance by experiment or the like to have an amount of black pixels that does not adversely affect the measurement accuracy, and this value may be applied.
[0108] In the flow chart shown in FIG. 24, after acquiring image data in step SC2, the process proceeds to step SC6. In step SC6, the determination processing unit 73a calculates the center of gravity of the image acquired by the two-dimensional image sensor 31. A conventional method can be applied as the calculation method of the center of gravity of the image. After calculating the center of gravity, the process proceeds to step SC7 to perform an in-area determination. In the in-area determination, a predetermined threshold is first set for the coordinates of the center of gravity. For example, a circle with the coordinates of the center of gravity as its center and the radius set to the predetermined threshold can be set as the area. Then, the process proceeds to step SC8, where if the center of gravity is within the area, it can be determined that the optical axes are aligned, whereas if the center of gravity is outside the area, it can be determined that the optical axes are not aligned. The determination result is B.
[0109] Then, in step SC9, a judgment is made based on the AND condition of the judgment result A based on the number of pixels and the judgment result B based on the center of gravity position. In step SC10, a comprehensive judgment is made based on the result of step SC9. That is, only when the judgment result A based on the number of pixels judges that the optical axes are aligned and the judgment result B based on the center of gravity position judges that the optical axes are aligned, the comprehensive judgment result is that the optical axes are aligned, and otherwise, the optical axes are judged not to be aligned. The imaging step in step SC1 of the flowchart in FIG. 24 is executed by an internal trigger that is periodically issued, so that the image used for the judgment is continuously updated. Note that only the judgment result A based on the number of pixels or only the judgment result B based on the center of gravity position may be used in the comprehensive judgment.
[0110] Next, a user interface screen 400 for optical axis adjustment displayed during optical axis adjustment will be described with reference to Fig. 25. The user interface screen 400 for optical axis adjustment is provided with an adjustment image display area 402 in which an adjustment image 401 is displayed, a judgment result display area 403 in which a comprehensive judgment result is displayed, an explanation display area 404 in which an explanation of the optical axis adjustment method is displayed, and a "Close" button 405.
[0111] The two-dimensional image generated by the image generating unit 73b is displayed in the adjustment image display area 402. The image generating unit 73b is a part that generates a two-dimensional image based on the light intensity distribution in the two-dimensional imaging element 31. Specifically, the image generating unit 73b generates a two-dimensional image in which the light intensity distribution in the two-dimensional imaging element 31 is displayed as a gradation, and thus a change in color indicating the intensity of light is displayed, and the user can obtain information such as the magnitude of deviation of the optical axis and the direction in which the optical axis should be changed to align the optical axis.
[0112] Furthermore, as described above, if the optical axes are aligned, the light intensity distribution in the two-dimensional image sensor 31 will be uniform with a high luminance value overall. This state is shown in Fig. 25, where the circular field of view of the adjustment image 401 displayed in the adjustment image display area 402 is a substantially uniform white color. The image generation unit 73b can be configured by the CPU 73 executing signal processing based on a predetermined program, or can be configured as a physical processing device, or can be configured as a combination of these. The same applies to the judgment processing unit 73a.
[0113] The image generating unit 73b can generate a two-dimensional image on which a first indicator 406 indicating a deviation of the optical axis of the two-dimensional imaging element 31 is superimposed. The image generating unit 73b displays the first indicator 406 at the center of gravity of the image calculated by the determination processing unit 73a. For example, when the first indicator 406 is a "+" mark, the first indicator 406 is displayed so that the center of the "+" overlaps with the center of gravity of the image calculated by the determination processing unit 73a. The first indicator 406 may be, for example, various figures, points, symbols, characters, etc. other than "+". The first indicator 406 does not have to be superimposed and may be displayed in a separate frame or window.
[0114] The image generating unit 73b can generate a two-dimensional image on which a second indicator 407 indicating a normal range of the optical axis of the two-dimensional image sensor 31 is superimposed. The second indicator 407 indicates a predetermined threshold value set on the coordinates of the center of gravity, and can be a circular indicator centered on the center of the field of view and having a radius of the predetermined threshold value. The determination processing unit 73a can determine that the imaging optical axis of the two-dimensional image sensor 31 is misaligned when the center of gravity of the image acquired by the two-dimensional image sensor 31 is located outside the normal range indicated by the second indicator 407, while determining that the imaging optical axis of the two-dimensional image sensor 31 is not misaligned when the center of gravity of the image acquired by the two-dimensional image sensor 31 is located within the normal range indicated by the second indicator 407. The second indicator 407 does not need to be superimposed and may be displayed in a separate frame or window.
[0115] The image generating unit 73b generates an X-axis profile obtained by projecting the light intensity distribution in the two-dimensional image sensor 31 in the X-axis direction, and a Y-axis profile obtained by projecting the light intensity distribution in the two-dimensional image sensor 31 in the Y-axis direction. The X-axis profile is displayed on an X-axis profile display unit 408, and the Y-axis profile is displayed on a Y-axis profile display unit 409. The X-axis profile display unit 408 is a portion that displays an X-axis profile corresponding to the X direction of the field of view (the left-right direction in FIG. 25), and displays a luminance value of 0 and a luminance value of 255, with the luminance value increasing upward. The Y-axis profile display unit 409 is a portion that displays a Y-axis profile corresponding to the Y direction of the field of view (the up-down direction in FIG. 25), and displays a luminance value of 0 and a luminance value of 255, with the luminance value increasing leftward. In the example shown in FIG. 25, the optical axes are aligned, so the X-axis profile and the Y-axis profile are nearly flat, and there is almost no inclination with respect to each axis. The image generating unit 73b can link the changes in the X-axis profile and the Y-axis profile with the movement of the first indicator 406. This will be described later.
[0116] Furthermore, the image generating unit 73b generates a two-dimensional image in which an X-axis display line 410 and a Y-axis display line 411 indicating the X-axis and the Y-axis, respectively, are superimposed. The X-axis display line 410 and the Y-axis display line 411 are displayed in the adjustment image display area 402, so that the user can easily understand which direction is the X direction and which is the Y direction. The X-axis display line 410 and the Y-axis display line 411 do not have to be superimposed and may be displayed in a separate frame or window.
[0117] 25, since the optical axes are aligned, "OK" is displayed in the determination result display area 403 to indicate that the optical axes are aligned. When it is detected that the "Close" button 405 has been pressed, the optical axis adjustment user interface screen 400 is closed and the determination process by the determination processing unit 73a is terminated.
[0118] FIG. 26 is a diagram showing an example of the optical axis adjustment user interface screen 400 in the case where the optical axis is slightly misaligned within a range where it can be determined that the optical axis is aligned. The right side of the field of view of the adjustment image 401 is slightly darker than the left side in accordance with the amount of misalignment of the optical axis and its direction, but the first indicator 406 is located within the second indicator 407. In FIG. 26, when the X-axis profile display section 408 is viewed, the luminance value decreases toward the right compared to the case shown in FIG. 25. In other words, the change in the X-axis profile can be linked to the movement of the first indicator 406, and the more the first indicator 406 moves to the left, for example, the greater the downward inclination of the X-axis profile toward the right. Similarly, the change in the Y-axis profile can be linked to the movement of the first indicator 406.
[0119] FIG. 27 is a diagram showing an example of the optical axis adjustment user interface screen 400 when the optical axes are not aligned. The right side of the field of view of the adjustment image 401 is darker than the left side, and the dark range is wide. In other words, after binarization processing, the number of black pixels exceeds the pixel number threshold, so it can be determined that the optical axes are not aligned. In addition, the first indicator 406 is located outside the second indicator 407. By looking at the adjustment image 401, the user can understand that the right side is dark, and therefore intuitively understand that the adjustment direction is to adjust the right side in a direction that makes it brighter. In addition, the X-axis profile is greatly inclined downward toward the right, and by looking at this, the direction of adjustment can also be intuitively understood. In addition, during adjustment, the method can be understood by reading the explanation of the optical axis adjustment method displayed in the explanation display area 404.
[0120] 28 is a diagram showing an example of the optical axis adjustment user interface screen 400 in the case where the optical axes are aligned but a foreign object is captured in the adjustment image 401. In this case, a two-dimensional image including the foreign object generated by the image generating unit 73b is displayed as the adjustment image 401 in the adjustment image display area 402, and the foreign object is displayed as a shadow image. This allows the user to know whether or not a foreign object is present in the measurement area S during adjustment. Since the center of gravity of the image changes significantly compared to the case of FIG. 25 due to the influence of the foreign object, the first indicator 406 is positioned outside the second indicator 407.
[0121] Fig. 29 is a diagram showing an example of the optical axis adjustment user interface screen 400 when the optical axes are aligned but the field of view is misaligned. Specifically, since the field of view is misaligned to the left in Fig. 29, the right area of the adjustment image 401 is dark. Due to the misalignment of the field of view, the center of gravity of the image changes significantly compared to the case of Fig. 25, and the first indicator 406 is positioned outside the second indicator 407. By looking at the optical axis adjustment user interface screen 400, the user can adjust not only the optical axis but also the field of view.
[0122] (Example of a decision algorithm) Examples of algorithms for determining whether the optical axes are aligned can be given below. For example, a threshold value for the inclination of the X-axis profile can be set, and if this inclination exceeds the threshold value, it can be determined that the optical axes are not aligned. Similarly, a threshold value for the inclination of the Y-axis profile can be set, and if this inclination exceeds the threshold value, it can be determined that the optical axes are not aligned. In this case, the determination may be made in one dimension only, or in two dimensions combining the X-axis and Y-axis.
[0123] Also, for example, the difference in the amount of light between one end and the other end of the field of view is calculated, and if the difference in the amount of light exceeds a threshold, it can be determined that the optical axes do not coincide. In this case, too, the determination may be made in only one dimension or in two dimensions.
[0124] Also, for example, the PV values (maximum and minimum) of the amount of light in the entire visual field are obtained, and if the difference between the maximum and minimum values exceeds a threshold value, it can be determined that the optical axes do not match. In this case, too, the determination may be made in one dimension only or in two dimensions. Also, the average value, maximum value, and minimum value of the amount of light in the entire visual field are obtained, and if the value obtained by subtracting the average value from the maximum value exceeds a threshold value, it can be determined that the optical axes do not match, and if the value obtained by subtracting the minimum value from the average value exceeds a threshold value, it can be determined that the optical axes do not match. In this case, too, the determination may be made in one dimension only or in two dimensions.
[0125] Also, for example, the variance value of the light amount in the entire field of view is calculated, and if the variance value exceeds a threshold value, it can be determined that the optical axes are not aligned. In this case, too, the determination may be made in only one dimension or in two dimensions.
[0126] Also, for example, the average value of the light amount in the entire field of view is calculated, and if the average value exceeds a threshold value, it can be determined that the optical axes are not aligned. In this case, too, the determination may be made in one dimension only or in two dimensions.
[0127] The above-mentioned determination algorithms may be used alone or in any combination of a plurality of them.
[0128] (Effects of the embodiment) As described above, according to this embodiment, when the optical measurement device 1 is used, the light projecting housing 20 and the light receiving housing 40 are installed so that the light projecting window 23 and the light receiving window 43 are arranged opposite to each other, and then the determination processing unit 73a can determine the deviation of the imaging optical axis of the two-dimensional imaging element 31 based on the light intensity distribution of the parallel light received by the two-dimensional imaging element 31. For example, when the light intensity distribution is generally weak, it is estimated that the two-dimensional imaging element 31 does not receive light normally due to the deviation of the optical axis, and in that case, it can be determined that the imaging optical axis of the two-dimensional imaging element 31 is deviated. On the other hand, when the light intensity distribution is generally strong, it is estimated that the two-dimensional imaging element 31 receives light normally, and in that case, it can be determined that the imaging optical axis of the two-dimensional imaging element 31 is not deviated. This determination result is displayed on the display device 82 using a two-dimensional image, so that the user can adjust the deviation of the imaging optical axis of the two-dimensional imaging element 31 while viewing the two-dimensional image.
[0129] 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. [Industrial Applicability]
[0130] 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]
[0131] 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 Judgment processing unit 73b Image generation section 82 Display device (display section) 406 First Indicator 407 Second Indicator 408 X-axis profile display 409 Y-axis profile display 410 X-axis display line 411 Y-axis display line S measurement area W work
Claims
1. A light source that generates measurement light to be projected onto a measurement area in which a workpiece is placed; a light-projecting telecentric lens into which the measurement light generated by the light source is incident and which converts the measurement light into parallel light directed to a measurement area; a light projection housing to which the light projection side telecentric lens is attached and which has a light projection window for projecting the parallel light emitted from the light projection side telecentric lens onto a measurement area; a light-receiving telecentric lens onto which the parallel light having passed through the measurement area is incident; a two-dimensional image sensor that receives light that has passed through the light-receiving telecentric lens; a light-receiving housing to which the light-receiving telecentric lens and the two-dimensional image sensor are attached and which has a light-receiving window for allowing the parallel light having passed through the measurement area to be incident on the light-receiving telecentric lens; the light projecting housing and the light receiving housing are disposed so that the light projecting window and the light receiving window face each other, and in a state in which parallel light generated by the light source and passing through a measurement region is received by pixels of the two-dimensional image sensor, a determination processing unit determines a deviation of an image pickup optical axis of the two-dimensional image sensor based on a change in a shape of a light intensity distribution obtained from pixel values of the pixels receiving the parallel light; an optical measuring device comprising a display unit that displays a result of the determination by the determination processing unit using a two-dimensional image.
2. 2. The optical measurement device according to claim 1, an image generating unit that generates the two-dimensional image based on a change in a shape of a light intensity distribution obtained from pixel values of pixels receiving the parallel light of the two-dimensional image sensor; The two-dimensional image generated by the image generation unit is displayed on the display unit.
3. 3. The optical measuring device according to claim 2, The image generating unit is an optical measurement device that generates a two-dimensional image in which the light intensity distribution on the two-dimensional imaging element is displayed with a gradation.
4. 4. The optical measuring device according to claim 2, The image generating unit generates the two-dimensional image on which a first indicator showing a deviation of the optical axis of the two-dimensional imaging element is displayed.
5. 5. The optical measuring device according to claim 4, The determination processing unit calculates a center of gravity of the image acquired by the two-dimensional image sensor, The image generating unit displays the first indicator at the center of gravity of the image calculated by the determination processing unit.
6. 6. The optical measuring device according to claim 4, The image generating unit generates the two-dimensional image on which a second indicator indicating a normal range of the optical axis of the two-dimensional imaging element is displayed.
7. 7. The optical measuring device according to claim 6, The judgment processing unit judges that the imaging optical axis of the two-dimensional imaging element is misaligned when the center of gravity of the image acquired by the two-dimensional imaging element is located outside the normal range indicated by the second indicator, and judges that the imaging optical axis of the two-dimensional imaging element is not misaligned when the center of gravity of the image acquired by the two-dimensional imaging element is located within the normal range indicated by the second indicator.
8. 8. The optical measuring device according to claim 4, The image generation unit generates an X-axis profile by projecting the light intensity distribution on the two-dimensional imaging element in the X-axis direction and a Y-axis profile by projecting the light intensity distribution on the two-dimensional imaging element in the Y-axis direction, and links changes in the X-axis profile and the Y-axis profile to movement of the first indicator.
9. 7. The optical measuring device according to claim 4, The image generating unit generates the two-dimensional image on which a second indicator indicating a normal range of the optical axis of the two-dimensional imaging element is superimposed.
10. 10. The optical measuring device according to claim 1 , The determination processing unit is an optical measurement device that determines a deviation of an imaging optical axis based on a change in shape of a profile obtained by projecting a light intensity distribution on the two-dimensional imaging element in an X-axis direction or a Y-axis direction.
11. 11. The optical measuring device according to claim 1 , The judgment processing unit performs binarization processing on the image data acquired by the two-dimensional imaging element, and then counts the number of pixels whose light intensity is considered to be 0. If the obtained number of pixels is equal to or less than a predetermined number, it judges that the imaging optical axis of the two-dimensional imaging element is not misaligned, whereas if the obtained number of pixels exceeds the predetermined number, it judges that the imaging optical axis of the two-dimensional imaging element is misaligned. This optical measurement device.
Citation Information
Patent Citations
Shape measuring instrument
JP2000155013A
Light receiving unit of measuring device, light receiving unit of attitude detection sensor, and method for manufacturing the same
JP2009244175A
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
Optical measuring device
JP2014149175A
