Optical displacement measurement system, processing device, optical displacement measurement method, and optical displacement measurement program

The optical displacement measurement system addresses alignment challenges by using a light cutting method with correction values to automatically generate accurate three-dimensional data, improving measurement efficiency and accuracy.

JP7560387B2Active Publication Date: 2024-10-02KEYENCE CORP
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
JP2021037798
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2021-03-09
Publication Date
2024-10-02
Estimated Expiration
2041-03-09

AI Technical Summary

Technical Problem

Existing optical displacement measurement systems face challenges in accurately measuring the shape of objects without distortion due to difficulties in properly aligning the imaging head, which requires skilled operation and time-consuming adjustments.

Method used

The system defines intersecting directions and uses a light cutting method with a light projector and receiver to generate and process profile data, incorporating correction values to adjust for deviations, allowing automatic generation of accurate three-dimensional data without manual alignment.

Benefits of technology

This approach enables easy and accurate measurement of object shapes by automatically correcting for distortions, reducing the need for precise manual alignment and enhancing measurement efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007560387000001
    Figure 0007560387000001
  • Figure 0007560387000002
    Figure 0007560387000002
  • Figure 0007560387000003
    Figure 0007560387000003
Patent Text Reader

Abstract

To provide an optical displacement measuring system, a processor, an optical displacement measuring method, and an optical displacement measuring program that can easily measure the correct shape of a measuring object.SOLUTION: A plurality of pieces of profile data generated in correspondence with positions in a Y1 direction of an imaging head 100 by a workpiece for adjustment W having a spherical surface in a movement direction A corresponding to the Y1 direction being relatively moved are combined with each other, and thus three-dimensional data of the workpiece for adjustment W is generated by a shape generation unit 202. A parameter for the spherical surface defined by a plurality of points included in the three-dimensional data is calculated by a sphere information calculation unit 203. The amount of distortion of the spherical surface is calculated by a distortion amount calculation unit 204 based on the parameter. At least one of a first rotation angle correction value around an X2 axis and a second rotation angle correction value around a Z2 axis in the plurality of pieces of profile data constituting the three-dimensional data is calculated by a correction value calculation unit 205 so as to reduce a distortion amount.SELECTED DRAWING: Figure 14
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to an optical displacement measurement system, a processing device, an optical displacement measurement method, and an optical displacement measurement program that detect the displacement of a measurement object by a triangulation method. [Background technology]

[0002] An optical displacement meter using a light-cutting method is known as a device for measuring the profile of a measurement object. For example, the optical displacement meter described in Patent Documents 1 and 2 has an imaging head including a light projecting unit and a two-dimensional light receiving element. A strip of light having a linear cross section is irradiated from the light projecting unit onto the measurement object, and the reflected light is received by the light receiving element. The profile of the measurement object is measured based on the position of the peak of the distribution of the amount of received light obtained by the light receiving element. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] JP 2020-27053 A [Patent Document 2] JP 2020-27054 A Summary of the Invention [Problem to be solved by the invention]

[0004] It is possible to measure the shape of the measurement object by stacking a plurality of profiles measured at a plurality of positions on the measurement object. Here, in order to accurately measure the shape of the measurement object without distortion, it is necessary to attach the imaging head so that the reference direction of the imaging head does not shift with respect to the direction in which the profiles should be stacked. However, if the operator is not skilled, it is difficult to attach the imaging head without shifting. Even if the operator is skilled, it takes a long time to attach the imaging head without shifting. Therefore, it is not easy to measure the accurate shape of the measurement object.

[0005] An object of the present invention is to provide an optical displacement measurement system, a processing device, an optical displacement measurement method, and an optical displacement measurement program that are capable of easily measuring the accurate shape of a measurement object. [Means for solving the problem]

[0006] (1) An optical displacement measurement system according to a first aspect of the present invention is an optical displacement measurement system using a light-cutting method, comprising: a light-projecting unit that emits, in a second direction, a slit light having a spread in the first direction or a spot light scanned in the first direction, in a first direction, a light-receiving unit that includes a plurality of pixels arranged two-dimensionally, receives light reflected at each position in the first direction of a workpiece having a spherical surface, and outputs a light-receiving signal indicating an amount of received light; a profile generating unit that generates profile data indicating a profile of the workpiece having a spherical surface within a plane defined by the first direction and the second direction based on the light-receiving signal; and a plurality of profiles generated corresponding to each position in the third direction by moving the workpiece having a spherical surface relatively to the light-projecting unit and the light-receiving unit in a direction corresponding to the third direction. data the three-dimensional data representing the three-dimensional shape of a workpiece having a spherical surface by synthesizing the above; a spherical information calculation unit calculating parameters of the spherical surface defined by a plurality of points included in the three-dimensional data; a distortion amount calculation unit calculating an amount of distortion of the spherical surface based on the parameters; and a correction value calculation unit calculating at least one of a first rotation angle correction value about a first axis parallel to a first direction and a second rotation angle correction value about a second axis parallel to a second direction in a plurality of profile data constituting the three-dimensional data so that the amount of distortion is reduced.

[0007] In this optical displacement measurement system, as the workpiece is moved relatively in a direction corresponding to the third direction of the light projector, the profile generator generates profile data of the workpiece corresponding to each position in the third direction. Based on the multiple profile data, the shape generator generates three-dimensional data of the workpiece. Here, even if the third direction is misaligned with the relative movement direction of the workpiece, the sphere information calculator calculates parameters of a sphere defined by multiple points included in the three-dimensional data generated by the shape generator.

[0008] The distortion amount of the sphere is calculated by the distortion amount calculation unit based on the parameters calculated by the sphere information calculation unit. The correction value calculation unit calculates at least one of a first rotation angle correction value about a first axis parallel to the first direction and a second rotation angle correction value about a second axis parallel to the second direction in a plurality of profile data constituting the three-dimensional data so as to reduce the distortion amount calculated by the distortion amount calculation unit.

[0009] According to this configuration, by using at least one of the second rotation angle correction values ​​about the first and second axes calculated by the correction value calculation unit, it becomes easy to generate three-dimensional data that indicates the three-dimensional shape of the workpiece when the amount of distortion of the spherical surface becomes small, which makes it easy to measure the accurate shape of the workpiece.

[0010] (2) The sphere information calculation unit may calculate parameters of a first spherical surface defined by a first point, a second point, a third point, and a fourth point included in the three-dimensional data, and may calculate parameters of a second spherical surface defined by a fifth point, a sixth point, a seventh point, and an eighth point included in the three-dimensional data, and the distortion amount calculation unit may calculate the distortion amount based on the deviation between the parameters of the first spherical surface and the parameters of the second spherical surface. With this configuration, even if the actual dimensions of the spherical surface of the workpiece are unknown, the distortion amount of the spherical surface can be easily calculated.

[0011] (3) The shape generating unit may correct the three-dimensional data by rotating a plurality of profile data constituting the three-dimensional data around a first axis and a second axis based on the first rotation angle correction value and the second rotation angle correction value. In this case, it becomes possible to automatically generate three-dimensional data that indicates the three-dimensional shape of the workpiece when the amount of spherical distortion is reduced without adjusting the installation of the light projecting unit and the light receiving unit. This makes it easier to measure the accurate shape of the workpiece.

[0012] (4) The correction value calculation unit may change the first rotation angle correction value and the second rotation angle correction value by a predetermined amount, and the sphere information calculation unit and the distortion amount calculation unit may repeat the calculation of the parameters and the calculation of the distortion amount until the distortion amount becomes equal to or less than a predetermined threshold value. In this case, it becomes easy to automatically generate three-dimensional data that shows the three-dimensional shape of the workpiece when the distortion amount of the sphere becomes small.

[0013] (5) A plurality of pairs of light-projecting units and light-receiving units are provided to correspond to each other, and the profile generation unit, the shape generation unit, the sphere information calculation unit, the distortion amount calculation unit and the correction value calculation unit operate to rotate a plurality of profile data constituting three-dimensional data corresponding to the pair of the light-projecting unit and the light-receiving unit around a first axis and a second axis based on a first rotation angle correction value and a second rotation angle correction value calculated for each pair of the light-projecting unit and the light-receiving unit, and the sphere information calculation unit calculates a reference point related to the sphere based on the three-dimensional data for each pair of the light-projecting unit and the light-receiving unit after the plurality of profile data have been rotated, and the correction value calculation unit may calculate a first translation amount correction value parallel to the first direction, a second translation amount correction value parallel to the second direction, and a third translation amount correction value parallel to the third direction in the plurality of profile data constituting at least one three-dimensional data so as to reduce deviation of the plurality of reference points.

[0014] According to this configuration, even if multiple three-dimensional data corresponding to multiple pairs of light projectors and light receivers are shifted in the first to third directions, the first to third translation amount correction values ​​are calculated so that the deviation of the reference point related to the spherical surface is reduced. Therefore, by using the first to third translation amount correction values, it becomes easy to generate multiple three-dimensional data that indicate the three-dimensional shape of the work when the deviation of the reference point is reduced.

[0015] (6) The shape generating unit may correct the three-dimensional data by translating a plurality of profile data constituting at least one three-dimensional data in a first direction, a second direction, and a third direction based on the first translational movement amount correction value, the second translational movement amount correction value, and the third translational movement amount correction value. In this case, a plurality of three-dimensional data indicating the three-dimensional shape of the workpiece when the deviation of the reference point of the sphere becomes small can be automatically generated without adjusting the installation of the light projecting unit and the light receiving unit.

[0016] (7) The spherical surface may have a characteristic portion, and the correction value calculation unit may calculate a third rotation angle correction value about a third axis parallel to a third direction in the plurality of profile data constituting the at least one three-dimensional data so that the characteristic portions in the plurality of three-dimensional data coincide with each other after the plurality of profile data constituting the at least one three-dimensional data are translated in a first direction, a second direction, and a third direction.

[0017] According to this configuration, even if multiple three-dimensional data corresponding to multiple pairs of light-projecting units and light-receiving units are misaligned around the third axis, the third rotation angle correction value is calculated so that the characteristic portions in the multiple three-dimensional data match. Therefore, by using the third rotation angle correction value, it becomes easy to generate multiple three-dimensional data that show the three-dimensional shape of the workpiece when the characteristic portions match.

[0018] (8) The shape generating unit may correct the three-dimensional data by rotating the plurality of profile data constituting at least one of the three-dimensional data about a third axis based on the third rotation angle correction value. In this case, the plurality of three-dimensional data showing the three-dimensional shape of the workpiece when the characteristic portions match can be automatically generated without adjusting the installation of the light projecting unit and the light receiving unit.

[0019] (9) The optical displacement measurement system may further include a synthesis unit that generates synthetic data indicating the three-dimensional shape of the workpiece having a spherical surface by synthesizing the multiple three-dimensional data after the multiple profile data constituting the at least one three-dimensional data are rotated around a third axis.

[0020] In this case, since the rotational deviations around the first to third axes and the translational deviations in the first to third directions are reduced in the multiple pieces of three-dimensional data, it becomes possible to synthesize the multiple pieces of three-dimensional data. Therefore, by synthesizing the multiple pieces of three-dimensional data, it is possible to easily generate synthetic data that shows a more accurate three-dimensional shape of the workpiece.

[0021] (10) The optical displacement measurement system may further include a notification unit that notifies at least one of the first rotation angle correction value and the second rotation angle correction value. In this case, the user can easily perform accurate adjustment of the attachment of the light-projecting unit and the light-receiving unit so as to reduce the amount of distortion of the spherical surface, using at least one of the first and second rotation angle correction values ​​notified by the notification unit. This makes it possible to easily measure the accurate shape of the workpiece.

[0022] (11) A processing device according to a second aspect of the present invention is a processing device used for a light-cutting type optical displacement meter having a light-projecting unit in which a first direction, a second direction, and a third direction intersecting each other are predefined, and which emits a slit light having a spread in the first direction or a spot light scanned in the first direction in a second direction, and a light-receiving unit including a plurality of pixels arranged two-dimensionally, which receives reflected light from each position in the first direction of a workpiece having a spherical surface, and outputs a light-receiving signal indicating an amount of received light, the processing device including: a profile generating unit that generates profile data indicating a profile of the workpiece having a spherical surface within a plane defined by the first direction and the second direction based on the light-receiving signal; and a plurality of profile generating units that generate profile data corresponding to each position in the third direction by moving the workpiece having a spherical surface relatively to the light-projecting unit and the light-receiving unit in a direction corresponding to the third direction. data the three-dimensional data representing the three-dimensional shape of a workpiece having a spherical surface by synthesizing the above; a spherical information calculation unit calculating parameters of the spherical surface defined by a plurality of points included in the three-dimensional data; a distortion amount calculation unit calculating an amount of distortion of the spherical surface based on the parameters; and a correction value calculation unit calculating at least one of a first rotation angle correction value about a first axis parallel to a first direction and a second rotation angle correction value about a second axis parallel to a second direction in a plurality of profile data constituting the three-dimensional data so that the amount of distortion is reduced.

[0023] In this processing device, by using at least one of the second rotation angle correction values ​​about the first and second axes calculated by the correction value calculation unit, it becomes easy to generate three-dimensional data that indicates the three-dimensional shape of the workpiece when the amount of distortion of the spherical surface becomes small, and thus it is possible to easily measure the accurate shape of the workpiece.

[0024] (12) An optical displacement measuring method according to a third aspect of the present invention is an optical displacement measuring method used for an optical displacement meter of a light-cutting type having a light-projecting unit in which a first direction, a second direction, and a third direction intersecting each other are predefined, and which emits, in a second direction, a slit light having a spread in the first direction or a spot light scanned in the first direction, and a light-receiving unit including a plurality of pixels arranged two-dimensionally, which receives reflected light from each position in the first direction of a workpiece having a spherical surface, and outputs a light-receiving signal indicating an amount of received light, the optical displacement measuring method including the steps of: generating profile data indicating a profile of the workpiece having a spherical surface within a plane defined by the first direction and the second direction based on the light-receiving signal; and generating a plurality of profiles corresponding to each position in the third direction by moving the workpiece having a spherical surface relatively to the light-projecting unit and the light-receiving unit in a direction corresponding to the third direction. data the three-dimensional data representing the three-dimensional shape of the workpiece having a spherical surface by synthesizing the three-dimensional data representing the three-dimensional shape of the workpiece having a spherical surface; calculating parameters of the spherical surface defined by a plurality of points included in the three-dimensional data; calculating an amount of distortion of the spherical surface based on the parameters; and calculating at least one of a first rotation angle correction value about a first axis parallel to a first direction and a second rotation angle correction value about a second axis parallel to a second direction in a plurality of profile data constituting the three-dimensional data so that the amount of distortion is reduced.

[0025] According to this optical displacement measurement method, by using at least one of the calculated second rotation angle correction values ​​about the first and second axes, it becomes easy to generate three-dimensional data that indicates the three-dimensional shape of the workpiece when the amount of distortion of the spherical surface becomes small, and thus it is possible to easily measure the accurate shape of the workpiece.

[0026] (13) An optical displacement measurement program according to a fourth aspect of the present invention is an optical displacement measurement program used for an optical displacement meter of a light-cutting type having a light-projecting unit in which a first direction, a second direction, and a third direction intersecting each other are predefined, and which emits, in a second direction, a slit light having a spread in the first direction or a spot light scanned in the first direction, and a light-receiving unit including a plurality of pixels arranged two-dimensionally, which receives reflected light from each position in the first direction of a workpiece having a spherical surface, and outputs a light-receiving signal indicating an amount of received light, the optical displacement measurement program including: a process of generating profile data indicating a profile of the workpiece having a spherical surface within a plane defined by the first direction and the second direction based on the light-receiving signal; and a process of generating a plurality of profile data corresponding to each position in the third direction by moving the workpiece having a spherical surface relatively to the light-projecting unit and the light-receiving unit in a direction corresponding to the third direction. data the processing device executes the following processes: generating three-dimensional data indicating the three-dimensional shape of a workpiece having a spherical surface by synthesizing the above; calculating parameters of the spherical surface defined by a plurality of points included in the three-dimensional data; calculating an amount of distortion of the spherical surface based on the parameters; and calculating at least one of a first rotation angle correction value about a first axis parallel to a first direction and a second rotation angle correction value about a second axis parallel to a second direction in a plurality of profile data constituting the three-dimensional data so that the amount of distortion is reduced.

[0027] According to this optical displacement measurement program, by using at least one of the calculated second rotation angle correction values ​​about the first and second axes, it becomes easy to generate three-dimensional data that indicates the three-dimensional shape of the workpiece when the amount of distortion of the spherical surface becomes small, which makes it easy to measure the accurate shape of the workpiece. Effect of the Invention

[0028] According to the present invention, the accurate shape of a measurement object can be easily measured. [Brief description of the drawings]

[0029] [Figure 1]1 is a block diagram showing a configuration of an optical displacement measurement system according to a first embodiment of the present invention. [Diagram 2] FIG. 2 is a perspective view of the appearance of an imaging head and a measurement object. [Diagram 3] 4 is a diagram showing the relationship between the irradiation position of light on the surface of a measurement object and the incident position of light on a light receiving unit. FIG. [Figure 4] 4 is a diagram showing the relationship between the irradiation position of light on the surface of a measurement object and the incident position of light on a light receiving unit. FIG. [Diagram 5] 4 is a diagram showing a distribution of the amount of received light on a light receiving surface of a light receiving unit. FIG. [Figure 6] 13 is a diagram showing the distribution of the amount of received light in a pixel row at one position in the X2 direction. FIG. [Figure 7] 13 is a diagram showing the distribution of the amount of received light in a pixel row at another position in the X2 direction. FIG. [Figure 8] 13 is a diagram showing the distribution of the amount of received light in a pixel row at still another position in the X2 direction. FIG. [Figure 9] FIG. 6 is a diagram showing all peak positions in the distribution of the amount of received light in FIG. 5. [Figure 10] FIG. 10 is a diagram showing profile data obtained based on the peak positions of FIG. 9. [Figure 11] FIG. 11 is a diagram visually illustrating detected peak positions and peak luminance values. [Figure 12] FIG. [Figure 13] FIG. 13 is a diagram showing luminance image data. [Figure 14] FIG. 2 is a block diagram showing a configuration of the processing device shown in FIG. [Figure 15] 13 is a diagram showing three-dimensional data when the imaging head is attached in a misaligned state. FIG. [Figure 16] 13 is a diagram showing three-dimensional data when the imaging head is attached in a misaligned state. FIG. [Figure 17] FIG. 13 is a diagram showing changes in corrected three-dimensional data. [Figure 18] 15 is a flowchart showing a calibration process performed by the processing device of FIG. 14. [Figure 19] FIG. 11 is a schematic diagram showing a configuration of an optical displacement measurement system according to a second embodiment. [Figure 20] 20 is a flowchart showing a calibration process performed by the processing device of FIG. 19. [Figure 21] FIG. 13 is a schematic diagram showing a configuration of an optical displacement measurement system according to a third embodiment. [Figure 22] FIG. 22 is a block diagram showing the configuration of the processing device in FIG. 21. [Diagram 23] 23 is a flowchart showing a calibration process performed by the processing device of FIG. 22. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0030] [1] First embodiment (1) Optical displacement measurement system configuration Hereinafter, an optical displacement measurement system, a processing device, an optical displacement measurement method, and an optical displacement measurement program according to embodiments of the present invention will be described with reference to the drawings. Fig. 1 is a block diagram showing the configuration of an optical displacement measurement system according to a first embodiment of the present invention. The optical displacement measurement system 500 is used to measure the three-dimensional shape of a measurement object S moved at a constant speed by, for example, a belt conveyor. In Fig. 1, the moving direction A of the measurement object S is indicated by a white arrow.

[0031] 1, the optical displacement measurement system 500 includes an imaging head 100, a processing device 200, an input unit 300, and a display unit 400. The optical displacement measurement system 500 may include a plurality of imaging heads 100. The imaging head 100 is configured to be detachable from the processing device 200. The imaging head 100 and the processing device 200 may be configured integrally. Alternatively, the processing device 200 may be accommodated within the imaging head 100.

[0032] The imaging head 100 has predefined X1, Y1, and Z1 directions that are orthogonal to each other. Also, axes parallel to the X1 and Z1 directions are called the X1 and Z1 axes, respectively. In FIG. 1, the X1, Y1, and Z1 directions are indicated by arrows X1, Y1, and Z1, respectively. The imaging head 100 is attached so that the Y1 direction is approximately parallel to the moving direction A of the measurement target S. The imaging head 100 includes a light projecting unit 110 and an imaging unit 120. The light projecting unit 110 and the imaging unit 120 constitute a light-section type optical displacement meter.

[0033] The light projecting unit 110 includes a light source and is configured to be capable of emitting band-shaped light spreading in the X1 direction in the Z1 direction. The light source is, for example, an LD (laser diode), but the embodiment is not limited to this. The light source may be an LED (light emitting diode) or an SLD (super luminescent diode). Furthermore, the light projecting unit 110 may be configured to be capable of emitting light scanned in the X1 direction in the Z1 direction, instead of band-shaped light spreading in the X1 direction.

[0034] The imaging unit 120 includes a light receiving unit 121 and a light receiving lens 122. Light reflected at each position in the X1 direction of the measurement target S is incident on the light receiving unit 121 through the light receiving lens 122. The light receiving unit 121 includes, for example, a CMOS (complementary metal oxide semiconductor) sensor, and has a light receiving surface on which a plurality of pixels are arranged two-dimensionally. Two directions perpendicular to each other on the light receiving surface of the light receiving unit 121 are called the X2 direction and the Z2 direction. In addition, a direction perpendicular to the X2 direction and the Z2 direction is called the Y2 direction. The X2 direction, the Y2 direction, and the Z2 direction correspond to the X1 direction, the Y1 direction, and the Z1 direction, respectively. Axes parallel to the X2 direction, the Y2 direction, and the Z2 direction are called the X2 axis, the Y2 axis, and the Z2 axis, respectively. A light receiving signal indicating the amount of light received by the light receiving unit 121 is output to the processing device 200.

[0035] The processing device 200 includes a storage unit 210 and a control unit 220. The storage unit 210 includes a RAM (random access memory), a ROM (read only memory), a hard disk, a semiconductor memory, or the like, and stores an optical displacement measurement program. The optical displacement measurement program may be provided in a form stored in a computer-readable storage medium and installed in the storage unit 210. Alternatively, when the processing device 200 is connected to a network such as the Internet, the optical displacement measurement program may be installed in the storage unit 210 from a server (including a cloud server) on the network.

[0036] The control unit 220 includes, for example, a CPU (Central Processing Unit), and controls the operation of the imaging head 100 based on an optical displacement measurement program. The control unit 220 is also configured to be able to generate profile data, three-dimensional data, brightness image data, or the like of the measurement object S. The profile data indicates the profile of the measurement object S in a plane defined by the X2 direction and the Z2 direction. The three-dimensional data indicates the three-dimensional shape of the measurement object S. The brightness image data indicates a surface image (texture image) of the measurement object S.

[0037] It is preferable that the imaging head 100 is attached so that the Y1 direction does not deviate from the relative movement direction A of the measurement object S. However, it is not easy to attach the imaging head 100 so that the Y1 direction does not deviate from the movement direction A of the measurement object S. If the imaging head 100 is attached in a state where the Y1 direction is deviated from the movement direction A of the measurement object S, the three-dimensional data indicating the three-dimensional shape of the measurement object S will be distorted. Therefore, the processing device 200 performs a calibration process to generate three-dimensional data indicating the accurate three-dimensional shape of the measurement object S. Details of the processing device 200 will be described later.

[0038] The input unit 300 includes a keyboard or a pointing device, and is configured to be operable by a user. The pointing device includes a mouse, a joystick, or the like. The input unit 300 may include a console dedicated to the processing device 200. The user can give a predetermined instruction to the processing device 200 by operating the input unit 300.

[0039] The display unit 400 includes, for example, a liquid crystal display panel or an organic EL (electroluminescence) panel. The display unit 400 can display profile data, three-dimensional data, or luminance image data of the measurement target S based on the profile data, three-dimensional data, or luminance image data generated by the processing device 200. The display unit 400 can also display a GUI (Graphical User Interface) for receiving designations from a user.

[0040] (2) Profile data, 3D data and brightness image data Fig. 2 is an external perspective view of the imaging head 100 and the measurement object S. Figs. 3 and 4 are diagrams showing the relationship between the irradiation position of light on the surface of the measurement object S and the incidence position of light on the light receiving unit 121. The measurement object S in the example of Fig. 2 has a groove with a trapezoidal cross section extending in the Y1 direction on its surface. The imaging head 100 irradiates the surface of the measurement object S moving in the movement direction A with band-shaped light along the X1 direction. Hereinafter, a linear area on the surface of the measurement object S at one position in the Y1 direction where the band-shaped light is irradiated is referred to as an irradiation area T.

[0041] As shown in Fig. 3, light reflected in the irradiation area T is incident on the light receiving unit 121 through the light receiving lens 122. In this case, if the reflection position of the light in the irradiation area T differs in the Z1 direction, the incidence position of the reflected light on the light receiving unit 121 differs in the Z2 direction. Also, as shown in Fig. 4, if the reflection position of the light in the irradiation area T differs in the X1 direction, the incidence position of the reflected light on the light receiving unit 121 differs in the X2 direction. Thereby, the incidence position of the light on the light receiving unit 121 in the Z2 direction represents the position of the irradiation area T in the Z1 direction, and the incidence position of the light on the light receiving unit 121 in the X2 direction represents the position of the irradiation area T in the X1 direction.

[0042] 5 is a diagram showing the distribution of the amount of received light on the light receiving surface of the light receiving section 121. The distribution of the amount of received light is generated based on the amount of received light of each pixel p of the light receiving section 121 in FIG. 5. As described above, the multiple pixels p of the light receiving section 121 are two-dimensionally arranged along the X2 direction and the Z2 direction. Each row of multiple pixels p along the Z2 direction is called a pixel row SS. Therefore, on the light receiving surface of the light receiving section 121, multiple pixel rows SS are arranged in the X2 direction, and each pixel row SS includes multiple pixels p along the Z2 direction.

[0043] Each pixel p is not limited to being composed of one pixel (the smallest unit of a pixel) of an imaging device such as a CMOS sensor, but may be composed of multiple pixels. For example, each pixel p may be composed of four pixels arranged in a 2×2 matrix, or may be composed of nine pixels arranged in a 3×3 matrix. Therefore, when binning processing is performed with multiple pixels as one unit, each pixel p may be composed of multiple pixels included in that one unit.

[0044] Light reflected by the irradiation area T in FIG. 2 is incident on the light receiving area R shown in FIG. 5. As a result, the amount of light received by the light receiving area R increases in the light receiving signal. FIG. 6 is a diagram showing the distribution of the amount of received light in a pixel row SS at one position x1 in the X2 direction. FIG. 7 is a diagram showing the distribution of the amount of received light in a pixel row SS at another position x2 in the X2 direction. FIG. 8 is a diagram showing the distribution of the amount of received light in a pixel row SS at yet another position x3 in the X2 direction. In FIGS. 6 to 8, the horizontal axis indicates position in the Z2 direction, and the vertical axis indicates the amount of received light.

[0045] As shown in Figs. 6 to 8, a peak P (maximum value) appears in the distribution of the amount of received light in each pixel row SS, corresponding to the light receiving region R in Fig. 5. The position of the peak P in the Z2 direction is called the peak position, and the luminance value (amount of received light) at the peak position is called the peak luminance value. In the pixel row SS at position x1, the peak position is z1, and the peak luminance value is I1. In the pixel row SS at position x2, the peak position is z2, and the peak luminance value is I2. In the pixel row SS at position x3, the peak position is z3, and the peak luminance value is I3. The peak position indicates the surface (reflecting surface) of the measurement target S in the irradiation region T.

[0046] A peak position and a peak luminance value are detected in each of a plurality of distributions of received light amounts corresponding to a plurality of pixel rows SS. Note that multiple peaks may appear in the distribution of received light amounts in the pixel rows SS due to multiple reflections or diffuse reflection. In this case, a peak position and a peak luminance value corresponding to the peak position are detected in a state in which a process is performed to remove false peaks that do not indicate the surface of the measurement target S in the irradiation area T. The detected peak luminance value indicates the surface state of the measurement target S in the irradiation area T, and is used to generate luminance image data.

[0047] Based on the peak positions detected for each pixel row SS, profile data indicating the profile of the measurement object S (the shape of the irradiation region T) is generated. Fig. 9 is a diagram showing all peak positions in the received light amount distribution of Fig. 5. Fig. 10 is a diagram showing profile data acquired based on the peak positions of Fig. 9. As shown in Figs. 9 and 10, all detected peak positions including peak positions z1 to z3 are displayed as continuous lines, thereby generating profile data indicating the profile of the measurement object S.

[0048] As the measurement object S moves in the movement direction A, light reflected from a plurality of irradiation areas T at a plurality of positions in the Y1 direction of the measurement object S is sequentially incident on the light receiving unit 121. As a result, peak positions and peak luminance values ​​in the pixel row SS at a plurality of positions in the X2 direction are detected for each position in the Y2 direction corresponding to the Y1 direction.

[0049] 11 is a diagram visually illustrating the detected peak position and peak luminance value. As shown in FIG. 11, at a position x i and the position y in the Y2 direction j For the points (i and j are integers of 1 or more) defined by ij and peak luminance value I ij This allows the position x i and position y j and the peak position z ij and the peak luminance value I ij are stored in the storage unit 210 in FIG. 1 in a correlated state.

[0050] FIG. 12 is a diagram showing three-dimensional data. As shown in FIG. 12, i ,y j The peak positions z associated with each of the points defined by ij Three-dimensional data is generated by arranging multiple positions y j The profile data generated corresponding to the above is arranged in the Y2 direction to generate three-dimensional data.

[0051] FIG. 13 is a diagram showing luminance image data. As shown in FIG. i ,y j The peak luminance value I associated with each of the points defined by ij The luminance image data is generated by arranging the y j The peak luminance values ​​(hereinafter referred to as a peak luminance sequence) detected corresponding to the profile data are arranged in the Y2 direction, thereby generating luminance image data.

[0052] In this manner, the measurement object S is moved relative to the imaging head 100, whereby three-dimensional data and luminance image data are generated. In the present embodiment, the measurement object S is moved, but the embodiment is not limited thereto. The measurement object S only needs to be moved relative to the imaging head 100. Therefore, the imaging head 100 may be moved without moving the measurement object S. Even in this case, the three-dimensional data and luminance image data of the measurement object S can be generated.

[0053] (3) Processing equipment The processing device 200 performs a calibration process to generate three-dimensional data showing an accurate three-dimensional shape by using a measurement target S having a spherical surface as a work for adjustment. The work for adjustment may be a sphere such as a ping-pong ball used in a table tennis match, but the embodiment is not limited thereto. The work for adjustment does not have to be a sphere as long as it has at least a spherical surface in part.

[0054] Fig. 14 is a block diagram showing the configuration of the processing device 200 in Fig. 1. As shown in Fig. 14, the processing device 200 includes, as functional units, a profile generating unit 201, a shape generating unit 202, a sphere information calculating unit 203, a distortion amount calculating unit 204, a correction value calculating unit 205, and a notifying unit 206. The functional units of the processing device 200 are realized by the control unit 220 in Fig. 1 executing an optical displacement measurement program. Some or all of the functional units of the processing device 200 may be realized by hardware such as electronic circuits.

[0055] The profile generating unit 201 controls the light projecting unit 110 to periodically emit light in the Z1 direction, and controls the light receiving unit 121 to receive light. In this case, light is periodically irradiated onto the adjustment workpiece W moving in the moving direction A. In addition, the light reflected from the adjustment workpiece W is repeatedly received by the light receiving unit 121, and a light receiving signal indicating the amount of received light is output.

[0056] The profile generating unit 201 generates profile data corresponding to each position in the Y2 direction of the moving adjustment work W based on the received light signal output by the light receiving unit 121. The profile generating unit 201 also detects a peak luminance sequence corresponding to each profile data from the received light signal. The profile generating unit 201 can display the profile of the adjustment work W on the display unit 400 based on the generated profile data.

[0057] The shape generating unit 202 generates three-dimensional data by arranging in the Y2 direction a plurality of profile data generated by the profile generating unit 201. The shape generating unit 202 also generates luminance image data by arranging in the Y2 direction the peak luminance strings detected by the profile generating unit 201. The shape generating unit 202 can display the three-dimensional shape or luminance image of the adjustment workpiece W on the display unit 400 based on the generated three-dimensional data or luminance image data.

[0058] The sphere information calculation unit 203 calculates parameters of a sphere defined by a plurality of points included in the three-dimensional data generated by the shape generation unit 202. The parameters include, for example, the center position of the sphere and the radius of the sphere. Specifically, the user operates the input unit 300 while visually checking the three-dimensional shape of the work W for adjustment displayed on the display unit 400, thereby specifying the first to fourth points and the fifth to eighth points of the portion corresponding to the spherical surface of the work W for adjustment on the GUI. The first to fourth points and the fifth to eighth points may partially overlap each other.

[0059] The sphere information calculation unit 203 calculates the center position (X c1 ,Y c1 ,Z c1 ) and radius R1 as parameters of the first spherical surface. In addition, the sphere information calculation unit 203 calculates the center position (X c2 ,Y c2 ,Z c2 ) and radius R2 as the parameters of the second sphere. c1 and X c2 indicates the position in the X2 direction. c1 and Y c2 indicates the position in the Y2 direction. Z c1 and Z c2 indicates the position in the Z2 direction.

[0060] The distortion amount calculation unit 204 calculates the distortion amount D of the spherical surface based on the parameters calculated by the sphere information calculation unit 203. The distortion amount D may be defined as a deviation between the parameters of the first spherical surface and the parameters of the second spherical surface. In this example, the distortion amount D is defined by the following formula (1).

[0061] D=(X c1 -X c2 ) 2 +(Y c1 -Y c2 ) 2 +(Z c1 -Z c2 ) 2 +(R1-R2) 2 (1) The correction value calculation unit 205 calculates first and second rotation angle correction values ​​so as to reduce the distortion amount D calculated by the distortion amount calculation unit 204. The first and second rotation angle correction values ​​are rotation angles around the X2 axis and the Z2 axis in a plurality of profile data constituting the three-dimensional data, respectively. The notification unit 206 causes the display unit 400 to display the first and second rotation angle correction values ​​calculated by the correction value calculation unit 205. In this way, the first and second rotation angle correction values ​​are notified to the user.

[0062] (4) Correction of 3D data and brightness image data As described above, when the imaging head 100 is attached in a misaligned state, the three-dimensional data showing the three-dimensional shape of the adjustment work W becomes distorted. Figures 15 and 16 are diagrams showing the three-dimensional data when the imaging head 100 is attached in a misaligned state. In Figures 15 and 16, each profile data constituting the three-dimensional data is shown by a dotted line. In addition, for ease of understanding, the area of ​​the three-dimensional data that is a blind spot from the imaging head 100 is also shown for convenience.

[0063] In the example of FIG. 15, as shown in the upper part, the Y1 direction of the imaging head 100 is shifted around the X1 axis with respect to the moving direction A of the adjustment work W. In this case, as shown in the lower part, the outer edge of the adjustment work W shown by the three-dimensional data is elliptical rather than circular when viewed in the X2 direction. Similarly, in the example of FIG. 16, as shown in the upper part, the Y1 direction of the imaging head 100 is shifted around the Z1 axis with respect to the moving direction A of the adjustment work W. In this case, as shown in the lower part, the outer edge of the adjustment work W shown by the three-dimensional data is elliptical rather than circular when viewed in the Z2 direction.

[0064] The change in the profile data when the imaging head 100 is rotated around each axis is known, and the peak position of each pixel row SS of the profile data after rotation can be calculated using a rotation matrix. Therefore, the shape generating unit 202 corrects the three-dimensional data based on the first and second rotation angle correction values ​​calculated by the correction value calculating unit 205 so as to indicate the three-dimensional shape of the adjustment workpiece W when the imaging head 100 is virtually rotated around the X2 axis and the Z2 axis.

[0065] Specifically, the correction value calculation unit 205 changes the first and second rotation angle correction values ​​by a predetermined amount. The shape generation unit 202 rotates the peak position of each pixel sequence SS in each profile data constituting the three-dimensional data around the X2 axis by the first rotation angle correction value, and updates the profile data based on the multiple peak positions after rotation. Similarly, the shape generation unit 202 rotates the peak position of each pixel sequence SS in each profile data constituting the three-dimensional data around the Z2 axis by the second rotation angle correction value, and updates the profile data based on the multiple peak positions after rotation.

[0066] The shape generating unit 202 arranges the updated multiple profile data in the Y2 direction. This generates three-dimensional data corrected to rotate around the X2 axis and the Z2 axis. Fig. 17 is a diagram showing changes in the corrected three-dimensional data. In the example of Fig. 17, at least one of the first and second rotation angle correction values ​​is changed by a predetermined amount, so that the outer edge of the adjustment workpiece W shown by the three-dimensional data changes.

[0067] The sphere information calculation unit 203 corrects the first to fourth points each time the three-dimensional data is corrected, and recalculates the parameters of the first spherical surface defined by the corrected first to fourth points. Similarly, the sphere information calculation unit 203 corrects the fifth to eighth points each time the three-dimensional data is corrected, and recalculates the parameters of the second spherical surface defined by the corrected fifth to eighth points. The distortion amount calculation unit 204 recalculates the distortion amount D of the spherical surface based on the recalculated parameters of the first and second spherical surfaces.

[0068] The ball information calculation unit 203 and the distortion amount calculation unit 204 repeat the calculation of the parameters and the calculation of the distortion amount D until the distortion amount D becomes equal to or less than a predetermined threshold value. The ball information calculation unit 203 and the distortion amount calculation unit 204 may repeat the calculation of the parameters and the calculation of the distortion amount D until the distortion amount D becomes minimum. On the other hand, the correction value calculation unit 205 may specify an equation that indicates the elliptical shape of the outer edge of the adjustment work W, and analytically calculate the first and second rotation angle correction values ​​when the distortion amount D becomes equal to or less than the threshold value or becomes minimum based on the specified equation. In this case, the ball information calculation unit 203 and the distortion amount calculation unit 204 do not need to repeat the calculation of the parameters and the calculation of the distortion amount D.

[0069] Furthermore, when multiple profile data constituting the three-dimensional data are updated, the shape generator 202 updates multiple peak luminance sequences so as to correspond to the multiple profile data, respectively. The shape generator 202 also arranges the updated multiple peak luminance sequences in the Y2 direction. This generates luminance image data that is corrected so as to rotate around the X2 axis and the Z2 axis.

[0070] (5) Calibration process Fig. 18 is a flowchart showing the calibration process by the processing device 200 of Fig. 14. The calibration process of Fig. 18 is performed by the control unit 220 of Fig. 1 executing the optical displacement measurement program stored in the storage unit 210. First, the profile generating unit 201 repeatedly captures an image of the adjustment workpiece W by controlling 100 so that the light projecting unit 110 periodically projects light and the light receiving unit 121 periodically receives light (step S1).

[0071] Next, the profile generating unit 201 generates a plurality of profile data based on the light receiving signal repeatedly output by the imaging in step S1 (step S2). At this time, the profile generating unit 201 may detect a peak luminance sequence corresponding to each profile data from the light receiving signal. Next, the shape generating unit 202 generates three-dimensional data based on the plurality of profile data generated in step S2 (step S3). At this time, the shape generating unit 202 may generate luminance image data based on the peak luminance sequence detected by the profile generating unit 201.

[0072] After that, the ball information calculation unit 203 determines the first to fourth points of the portion corresponding to the spherical surface in the three-dimensional data generated in step S3 (step S4). In this example, the ball information calculation unit 203 determines the first to fourth points based on the designation received from the user, but the embodiment is not limited to this. The ball information calculation unit 203 may determine the first to fourth points randomly without receiving the designation from the user.

[0073] In addition, the ball information calculation unit 203 determines the fifth to eighth points of the portion corresponding to the spherical surface in the three-dimensional data generated in step S3 (step S5). In this example, the ball information calculation unit 203 determines the fifth to eighth points based on the designation received from the user, but the embodiment is not limited to this. The ball information calculation unit 203 may randomly determine the fifth to eighth points without receiving the designation from the user.

[0074] Next, the sphere information calculation unit 203 calculates parameters of a first spherical surface defined by the first to fourth points determined in step S4 (step S6). The sphere information calculation unit 203 also calculates parameters of a second spherical surface defined by the fifth to eighth points determined in step S5 (step S7). Next, the distortion amount calculation unit 204 calculates the distortion amount D based on the parameters of the first and second spherical surfaces calculated in steps S5 and S6, respectively (step S8).

[0075] Next, the correction value calculation unit 205 calculates whether the distortion amount D calculated in step S8 is equal to or less than a threshold value (step S9). If the distortion amount D exceeds the threshold value, the correction value calculation unit 205 calculates first and second rotation angle correction values ​​so as to reduce the distortion amount D (step S10). The notification unit 206 notifies the first and second rotation angle correction values ​​calculated in step S10 (step S11). Note that the processing device 200 does not need to include the notification unit 206. In this case, step S11 is omitted.

[0076] Thereafter, the shape generating unit 202 rotates each profile data around the X2 axis and the Z2 axis based on the first and second rotation angle correction values ​​calculated in step S10 (step S12). This corrects the three-dimensional data. Here, if the luminance image data is generated in step S3, the luminance image data is updated to correspond to the three-dimensional data. Furthermore, the sphere information calculating unit 203 corrects the positions of the first to fourth points determined in step S4 and the fifth to eighth points determined in step S5 in the three-dimensional data corrected in step S12 (step S13), and returns to step S6.

[0077] In steps S6 and S7, the parameters of the first and second spherical surfaces defined by the points whose positions have been corrected in step S13 are calculated again. Steps S6 to S13 are repeated until the distortion amount D becomes equal to or less than the threshold value. In this case, the first and second rotation angle correction values ​​when the distortion amount D of the spherical surface becomes equal to or less than the threshold value can be easily identified. When the distortion amount D becomes equal to or less than the threshold value in step S9, the calibration process ends.

[0078] In this embodiment, the first and second rotation angle correction values ​​may be analytically calculated in step S10 so that the distortion amount D is equal to or less than the threshold value. In this case, it is not necessary to repeat steps S10 to S13. Therefore, after step S12 is executed, the calibration process ends.

[0079] In this embodiment, the distortion amount D is calculated based on the deviation between the parameters of the first spherical surface defined by the first to fourth points and the parameters of the second spherical surface defined by the fifth to eighth points. Therefore, even if the actual size of the spherical surface of the adjustment work W is unknown, the distortion amount D of the spherical surface can be easily calculated. However, the embodiment is not limited to this. When the actual size of the spherical surface of the adjustment work W is known, the distortion amount D may be calculated based on the deviation between the parameters of the first spherical surface defined by the first to fourth points and the parameters corresponding to the spherical surface of the adjustment work W. In this case, steps S5 and S7 in the calibration process are omitted.

[0080] (6) Effects In the optical displacement measurement system 500 according to this embodiment, profile data of the adjustment work W is generated by the profile generating unit 201 corresponding to each position in the Y1 direction in response to the relative movement of the adjustment work W in the movement direction A. Based on the multiple profile data, three-dimensional data of the adjustment work W is generated by the shape generating unit 202. Here, even if the Y1 direction of the imaging head 100 is deviated from the movement direction A, the sphere information calculating unit 203 calculates parameters of a sphere defined by multiple points included in the three-dimensional data generated by the shape generating unit 202.

[0081] A distortion amount D of the spherical surface is calculated by distortion amount calculation unit 204 based on the parameters calculated by sphere information calculation unit 203. A correction value calculation unit 205 calculates first and second rotation angle correction values ​​for the multiple profile data constituting the three-dimensional data so as to reduce the distortion amount D calculated by distortion amount calculation unit 204. Based on the first and second rotation angle correction values ​​calculated by correction value calculation unit 205, the shape generation unit 202 rotates the multiple profile data constituting the three-dimensional data around the X2 axis and the Z2 axis.

[0082] In this case, it becomes possible to automatically generate three-dimensional data indicating the three-dimensional shape of the workpiece W for adjustment when the amount of spherical distortion D becomes small, without performing any adjustment of the installation of the imaging head 100. This makes it possible to easily measure the accurate shape of the workpiece W for adjustment. In addition, by correcting the three-dimensional data for an arbitrary measurement object S based on the first and second rotation angle correction values ​​calculated using the workpiece W for adjustment, it is possible to automatically generate three-dimensional data indicating the accurate three-dimensional shape of the measurement object S.

[0083] [2] Second embodiment Regarding the optical displacement measurement system 500 according to the second embodiment, differences from the optical displacement measurement system 500 according to the first embodiment will be described. FIG. 19 is a schematic diagram showing the configuration of the optical displacement measurement system 500 according to the second embodiment. As shown in FIG. 19, the optical displacement measurement system 500 includes a plurality of imaging heads 100 arranged to surround the measurement target S (adjustment work W). In this embodiment, the optical displacement measurement system 500 includes four imaging heads 100, but may include two or three imaging heads 100, or may include five or more imaging heads 100.

[0084] Unique X1, Y1 and Z1 directions are defined in advance for each imaging head 100. In Fig. 19, the X1, Y1 and Z1 directions defined for each imaging head 100 are shown in speech bubbles corresponding to that imaging head 100. Each imaging head 100 is attached so that the Y1 direction is approximately parallel to the movement direction A of the measurement target S.

[0085] The processing device 200 includes the profile generating unit 201, the shape generating unit 202, the sphere information calculating unit 203, the distortion amount calculating unit 204, the correction value calculating unit 205, and the notifying unit 206 of Fig. 14. The processing device 200 does not need to include the notifying unit 206. The processing device 200 executes the calibration process in the first embodiment for each imaging head 100. Hereinafter, the operation of the processing device 200 after the calibration process in the first embodiment is described.

[0086] The sphere information calculation unit 203 calculates a reference point related to the spherical surface of the adjustment work W based on the corresponding three-dimensional data for each imaging head 100. The reference point may be any point on the spherical surface, or may be the center of the spherical surface. If the adjustment work W has a feature point such as unevenness on the spherical surface, the reference point may be the feature point. The correction value calculation unit 205 calculates first, second, and third translation amount correction values ​​in the multiple profile data constituting each three-dimensional data so that the deviation of the multiple reference points calculated by the sphere information calculation unit 203 corresponding to the multiple imaging heads 100 is reduced. The first to third translation amount correction values ​​are translation amounts parallel to the X2 direction, Z2 direction, and Y2 direction in the three-dimensional data, respectively.

[0087] For example, it is assumed that the reference point calculated by the first imaging head 100 is at coordinates (0.1,0,0) that are predetermined by the optical displacement measurement system 500. It is also assumed that the reference point calculated by the second imaging head 100 is at coordinates (0,0.1,0), the reference point calculated by the third imaging head 100 is at coordinates (0,0,0.1), and the reference point calculated by the fourth imaging head 100 is at coordinates (0.1,0,0.1). The first to third translation amount correction values ​​corresponding to each imaging head 100 may be calculated so that the coordinates of these reference points are located at specific coordinates (for example, the coordinates of the origin (0,0,0)).

[0088] The shape generation unit 202 corrects the three-dimensional data to indicate the adjustment workpiece W when each imaging head 100 is virtually translated in the X1 direction, the Z1 direction, and the Y1 direction, based on the first to third translation amount correction values ​​calculated by the correction value calculation unit 205.

[0089] Specifically, the peak position of each pixel row SS in each profile data constituting the three-dimensional data is translated in the X2 direction, the Z2 direction, and the Y2 direction by the first to third translation amount correction values, respectively. Each profile data is updated based on the multiple peak positions after the translational movement. The multiple updated profile data are arranged in the Y2 direction to generate three-dimensional data corrected so as to translate in the X2 direction, the Z2 direction, and the Y2 direction. Furthermore, when the three-dimensional data is corrected, the luminance image data is updated to correspond to the three-dimensional data.

[0090] In the above description, the correction value calculation unit 205 calculates the first to third translational movement amount correction values ​​corresponding to all of the imaging heads 100, but the embodiment is not limited to this. The correction value calculation unit 205 may calculate the first to third translational movement amount correction values ​​corresponding to the imaging heads 100 other than any one of the imaging heads 100 (hereinafter referred to as the reference imaging head). In this case, the shape generation unit 202 corrects the three-dimensional data corresponding to the imaging heads 100 other than the reference imaging head based on the first to third translational movement amount correction values ​​calculated by the correction value calculation unit 205.

[0091] Fig. 20 is a flowchart showing the calibration process by the processing device 200 of Fig. 19. First, the processing device 200 executes steps S1 to S13 similar to steps S1 to S13 of the calibration process in the first embodiment of Fig. 18 for each imaging head 100. Specifically, after the process of steps S1 to S13 for one imaging head 100 is completed, that is, after it is determined in step S9 that the distortion amount D is equal to or less than the threshold value, the ball information calculation unit 203 determines whether the process of steps S1 to S13 has been completed for all imaging heads 100 (step S14).

[0092] If the processing has not been performed for all of the imaging heads 100, the ball information calculation unit 203 returns to step S1. This causes the processing of steps S1 to S13 to be performed for the other imaging heads 100. Steps S1 to S14 are repeated until the processing of steps S1 to S13 has been performed for all of the imaging heads 100. When the processing of steps S1 to S13 has been performed for all of the imaging heads 100, the ball information calculation unit 203 calculates multiple reference points of the adjustment workpiece W that respectively correspond to the multiple imaging heads 100 (step S15).

[0093] Next, the correction value calculation unit 205 calculates first to third translational movement amount correction values ​​in the multiple profile data constituting each three-dimensional data so as to reduce deviations between the multiple reference points calculated in step S15 (step S16). The notification unit 206 may notify the user of the first to third translational movement amount correction values ​​by displaying the first to third translational movement amount correction values ​​calculated in step S16 on the display unit 400.

[0094] Thereafter, the shape generating unit 202 translates each profile data constituting the three-dimensional data corresponding to each imaging head 100 in the X2 direction, the Z2 direction, and the Y2 direction based on the first to third translation amount correction values ​​calculated in step S16 (step S17). This corrects each three-dimensional data. Here, if the luminance image data was generated in step S3, the luminance image data is updated to correspond to the three-dimensional data. After the three-dimensional data is corrected, the calibration process in this embodiment ends.

[0095] In the optical displacement measurement system 500 according to this embodiment, even if a plurality of three-dimensional data corresponding to a plurality of imaging heads 100 are shifted in the X2, Z2, or Y2 directions, the correction value calculation unit 205 calculates first to third translation amount correction values ​​so as to reduce deviation of the reference point related to the spherical surface. Furthermore, based on the first to third translation amount correction values, the shape generation unit 202 translates a plurality of profile data constituting the three-dimensional data in the X2, Z2, and Y2 directions.

[0096] In this case, multiple pieces of three-dimensional data indicating the three-dimensional shape of the adjustment work W when the deviation of the spherical reference points becomes small can be automatically generated without performing installation adjustment of each imaging head 100. Also, multiple pieces of three-dimensional data indicating the three-dimensional shape of the measurement object S can be automatically generated by correcting the three-dimensional data for an arbitrary measurement object S based on the first to third translation amount correction values ​​calculated using the adjustment work W.

[0097] [3] Third embodiment The optical displacement measurement system 500 according to the third embodiment will be described with respect to differences from the optical displacement measurement system 500 according to the second embodiment. FIG. 21 is a schematic diagram showing the configuration of the optical displacement measurement system 500 according to the third embodiment. As shown in FIG. 21, in this embodiment, the spherical surface of the adjustment work W has a characteristic portion F. In this example, the characteristic portion F is a print applied to the spherical surface, but it may also be a pattern applied to the spherical surface, or may be an unevenness or groove formed on the spherical surface.

[0098] Fig. 22 is a block diagram showing the configuration of the processing device 200 of Fig. 21. As shown in Fig. 22, the processing device 200 further includes a synthesis unit 207 as a functional unit in addition to the profile generation unit 201, shape generation unit 202, sphere information calculation unit 203, distortion amount calculation unit 204, correction value calculation unit 205, and notification unit 206 of Fig. 14. The processing device 200 does not need to include the notification unit 206. The processing device 200 executes the calibration process in the second embodiment. Hereinafter, the operation of the processing device 200 after the calibration process in the second embodiment is described.

[0099] The shape generating unit 202 identifies a characteristic portion F in the three-dimensional data corresponding to each imaging head 100. Here, when the characteristic portion F is a print or pattern applied to the spherical surface, the characteristic portion F is identified based on the three-dimensional data and the luminance image data corresponding to each other. On the other hand, when the characteristic portion F is an unevenness or a groove formed on the spherical surface, the characteristic portion F can be identified based only on the three-dimensional data.

[0100] The correction value calculation unit 205 calculates a third rotation angle correction value so that the characteristic parts F of the multiple three-dimensional data identified by the shape generation unit 202 match. The third rotation angle correction value is a rotation angle around the Y2 axis in the multiple profile data constituting the three-dimensional data. When the characteristic part F is a print or a pattern, the degree of match of the characteristic parts F of the multiple three-dimensional data can be determined, for example, by pattern matching of the three-dimensional data and the luminance image data. On the other hand, when the characteristic part F is an unevenness or a groove, the degree of match of the characteristic parts F of the multiple three-dimensional data can be determined, for example, by pattern matching of the three-dimensional data. The shape generation unit 202 corrects the three-dimensional data to indicate the adjustment workpiece W when the imaging head 100 is virtually rotated around the Y2 axis based on the third rotation angle correction value calculated by the correction value calculation unit 205.

[0101] Specifically, the peak position of each pixel row SS in each profile data constituting the three-dimensional data is rotated around the Y2 axis by the third rotation angle correction value. Each profile data is updated based on the multiple peak positions after rotation. The updated multiple profile data are arranged in the Y2 direction to generate three-dimensional data corrected to rotate around the Y2 axis. After the multiple three-dimensional data corresponding to the multiple imaging heads 100 are corrected, the synthesis unit 207 synthesizes the multiple three-dimensional data to generate synthetic data indicating the three-dimensional shape of the adjustment work W.

[0102] In the above description, the correction value calculation unit 205 calculates the third rotation angle correction value corresponding to all of the imaging heads 100 so that the characteristic portions F of the spheres corresponding to the imaging heads 100 coincide with each other, but the embodiment is not limited to this. The correction value calculation unit 205 may calculate the third rotation angle correction value corresponding to the imaging heads 100 other than the reference imaging head. In this case, the shape generation unit 202 corrects the three-dimensional data corresponding to the imaging heads 100 other than the reference imaging head based on the third rotation angle correction value calculated by the correction value calculation unit 205.

[0103] Fig. 23 is a flowchart showing the calibration process by the processing device 200 of Fig. 22. First, the processing device 200 executes steps S1 to S17 similar to steps S1 to S17 of the calibration process in the second embodiment of Fig. 20. After steps S1 to S17 are completed, the shape generating unit 202 identifies feature portions F of a plurality of three-dimensional data corresponding to a plurality of imaging heads 100 (step S18).

[0104] Next, the correction value calculation unit 205 calculates a third rotation angle correction value so that the characteristic parts F of the multiple pieces of three-dimensional data identified in step S18 match (step S19). In this example, since the characteristic parts F are characters, the degree of match of the characteristic parts F of the three-dimensional data is determined by pattern matching of the three-dimensional data and the luminance image data. The notification unit 206 may notify the user of the third rotation angle correction value calculated in step S19 by displaying the third rotation angle correction value on the display unit 400.

[0105] Thereafter, the shape generating unit 202 rotates each profile data constituting the three-dimensional data corresponding to each imaging head 100 around the Y2 axis based on the third rotation angle correction value calculated in step S19 (step S20). This corrects each three-dimensional data. Here, the luminance image data is updated so as to correspond to the three-dimensional data. Finally, the synthesizing unit 207 generates synthesized data by synthesizing the multiple three-dimensional data corrected in step S20 (step S21). This ends the calibration process in this embodiment.

[0106] In the optical displacement measurement system 500 according to this embodiment, even if a plurality of three-dimensional data corresponding to a plurality of imaging heads 100 are misaligned around the Y2 axis, the correction value calculation unit 205 calculates a third rotation angle correction value so that the characteristic portions F in the plurality of three-dimensional data coincide with each other. Furthermore, based on the third rotation angle correction value, the shape generation unit 202 rotates a plurality of profile data constituting the three-dimensional data around the Y2 axis.

[0107] In this case, multiple three-dimensional data showing the three-dimensional shape of the adjustment work W when the characteristic parts F match can be automatically generated without adjusting the installation of each imaging head 100. Furthermore, in the multiple three-dimensional data, rotational deviations around the X2 axis, Z2 axis, and Y2 axis are reduced, and translational deviations in the X2 direction, Z2 direction, and Y2 direction are reduced, so that multiple three-dimensional data can be synthesized. Therefore, by synthesizing multiple three-dimensional data, synthesized data showing a more accurate three-dimensional shape of the adjustment work W can be easily generated.

[0108] In this embodiment, the processing device 200 includes a synthesis unit 207, but the embodiment is not limited to this. If there is no need to synthesize multiple pieces of three-dimensional data, the processing device 200 does not need to include the synthesis unit 207. In this case, step S21 in the calibration process is omitted.

[0109] [4] Other embodiments (1) In the above embodiment, the processing device 200 is provided as a part of the optical displacement measurement system 500, but the embodiment is not limited to this. As long as the processing device 200 is used for a light-cutting type optical displacement meter composed of a light projector and a light receiver, the processing device 200 does not have to be provided as a part of the optical displacement measurement system 500.

[0110] (2) In the first embodiment, the three-dimensional data is corrected so as to rotate around the X2 axis and the Z2 axis based on the first and second rotation angle correction values, but the embodiment is not limited to this. When the processing device 200 includes the notification unit 206, the user can easily perform accurate mounting adjustment of the imaging head 100 so as to reduce the amount of spherical distortion D using the first and second rotation angle correction values ​​notified by the notification unit 206. This makes it easy to measure the accurate shape of the adjustment workpiece W. Therefore, the three-dimensional data does not need to be corrected so as to rotate around the X2 axis and the Z2 axis based on the first and second rotation angle correction values.

[0111] (3) In the first embodiment, the correction value calculation unit 205 calculates both the first rotation angle correction value and the second rotation angle correction value, but the embodiment is not limited to this. For example, when the imaging head 100 is attached so that no deviation in the rotation angle occurs around the X1 axis, the correction value calculation unit 205 may calculate only the second rotation angle correction value. In this case, the shape generation unit 202 may correct the three-dimensional data by rotating a plurality of profile data constituting the three-dimensional data around the Z2 axis based on the calculated second rotation angle correction value. In addition, the notification unit 206 may notify only the calculated second rotation angle correction value.

[0112] Similarly, when the imaging head 100 is attached so that no deviation in the rotation angle occurs around the Z1 axis, the correction value calculation unit 205 may calculate only the first rotation angle correction value. In this case, the shape generation unit 202 may correct the three-dimensional data by rotating a plurality of profile data constituting the three-dimensional data around the X2 axis based on the calculated first rotation angle correction value. Furthermore, the notification unit 206 may notify only the calculated first rotation angle correction value.

[0113] (4) In the second embodiment, the three-dimensional data is corrected so as to translate in the X2, Z2, and Y2 directions based on the first to third translation amount correction values, but the embodiment is not limited to this. When the processing device 200 includes the notification unit 206, the user can easily perform accurate mounting adjustment of each imaging head 100 so as to reduce the deviation of the reference point of the sphere, using the first to third translation amount correction values ​​notified by the notification unit 206. Therefore, the three-dimensional data does not need to be corrected so as to translate in the X2, Z2, and Y2 directions based on the first to third translation amount correction values.

[0114] (5) In the second embodiment, the correction value calculation unit 205 calculates the first translational movement amount correction value, the second translational movement amount correction value, and the third translational movement amount correction value, but the embodiment is not limited to this. When the imaging head 100 is attached so that no deviation occurs in any of the X1 direction, the Y1 direction, and the Z1 direction, the correction value calculation unit 205 may calculate a translational movement amount correction value corresponding to at least one direction in which deviation may occur, among the first translational movement amount correction value, the second translational movement amount correction value, and the third translational movement amount correction value.

[0115] In this case, the shape generator 202 may correct the three-dimensional data by translating a plurality of profile data constituting the three-dimensional data in a direction corresponding to the calculated translational motion correction value, based on the calculated translational motion correction value. Also, the notifier 206 may notify only the calculated translational motion correction value.

[0116] (6) In the third embodiment, the three-dimensional data is corrected so as to rotate around the Y2 axis based on the third rotation angle correction value, but the embodiment is not limited to this. If the processing device 200 includes the notification unit 206, the user can easily perform accurate mounting adjustment of each imaging head 100 so that the characteristic portion F coincides, using the third rotation angle correction value notified by the notification unit 206. Therefore, the three-dimensional data does not need to be corrected so as to rotate around the Y2 axis based on the third rotation angle correction value.

[0117] [5] Correspondence between each element of the claims and each element of the embodiment Below, examples of the correspondence between each component of the claims and each element of the embodiment will be described, but the present invention is not limited to the following examples. Various other elements having the configuration or function described in the claims can also be used as each component of the claims.

[0118] The optical displacement measurement system 500 is an example of an optical displacement measurement system, the X1 direction or the X2 direction is an example of a first direction, the Z1 direction or the Z2 direction is an example of a second direction, and the Y1 direction or the Y2 direction is an example of a third direction. The light-projecting unit 110 is an example of a light-projecting unit, the adjustment work W is an example of a work, and the light-receiving unit 121 is an example of a light-receiving unit.

[0119] Profile generation unit 201 is an example of a profile generation unit, shape generation unit 202 is an example of a shape generation unit, sphere information calculation unit 203 is an example of a sphere information calculation unit, and distortion amount calculation unit 204 is an example of a distortion amount calculation unit. Correction value calculation unit 205 is an example of a correction value calculation unit, feature part F is an example of a feature part, synthesis unit 207 is an example of a synthesis unit, notification unit 206 is an example of a notification unit, and processing device 200 is an example of a processing device. [Explanation of symbols]

[0120] 100...imaging head, 110...light projecting section, 120...imaging section, 121...light receiving section, 122...light receiving lens, 200...processing device, 201...profile generating section, 202...shape generating section, 203...sphere information calculating section, 204...distortion amount calculating section, 205...correction value calculating section, 206...notifying section, 207...synthesizing section, 210...storage section, 220...control section, 300...input section, 400...display section, 500...optical displacement measuring system, F...characteristic portion, p...pixel, P...peak, R...light receiving area, S...measurement object, SS...pixel row, T...irradiation area, W...adjustment work

Claims

1. An optical displacement measurement system using a light-cutting method, a light projection unit which emits, in the second direction, a slit light having a spread in the first direction or a spot light scanned in the first direction, and a first direction, a second direction, and a third direction intersecting with each other are defined in advance; A light receiving unit that includes a plurality of pixels arranged two-dimensionally, receives light reflected at each position in the first direction of a workpiece having a spherical surface, and outputs a light receiving signal indicating an amount of received light; a profile generating unit that generates profile data indicating a profile of the workpiece having the spherical surface within a plane defined by the first direction and the second direction based on the light receiving signal; a shape generating unit that generates three-dimensional data indicating a three-dimensional shape of the workpiece having the spherical surface by synthesizing a plurality of profile data generated corresponding to each position in the third direction by moving the workpiece having the spherical surface relatively to the light projecting unit and the light receiving unit in a direction corresponding to the third direction; a sphere information calculation unit that calculates parameters of a sphere defined by a plurality of points included in the three-dimensional data; a distortion amount calculation unit that calculates a distortion amount of the spherical surface based on the parameters; a correction value calculation unit that calculates at least one of a first rotation angle correction value about a first axis parallel to the first direction and a second rotation angle correction value about a second axis parallel to the second direction in the plurality of profile data that constitute the three-dimensional data, so that the amount of distortion is reduced.

2. the sphere information calculation unit calculates parameters of a first spherical surface defined by a first point, a second point, a third point, and a fourth point included in the three-dimensional data, and calculates parameters of a second spherical surface defined by a fifth point, a sixth point, a seventh point, and an eighth point included in the three-dimensional data; The optical displacement measurement system according to claim 1 , wherein the distortion amount calculation section calculates the distortion amount based on a deviation between a parameter of the first spherical surface and a parameter of the second spherical surface.

3. 3. The optical displacement measurement system according to claim 1, wherein the shape generation unit corrects the three-dimensional data by rotating the plurality of profile data constituting the three-dimensional data around the first axis and the second axis based on the first rotation angle correction value and the second rotation angle correction value.

4. the correction value calculation unit changes the first rotation angle correction value and the second rotation angle correction value by a predetermined amount, The optical displacement measurement system according to claim 3 , wherein the ball information calculation section and the distortion amount calculation section repeat the calculation of the parameters and the calculation of the distortion amount until the distortion amount becomes equal to or less than a predetermined threshold value.

5. A plurality of pairs of the light projecting unit and the light receiving unit are provided so as to correspond to each other, the profile generation unit, the shape generation unit, the sphere information calculation unit, the distortion amount calculation unit, and the correction value calculation unit operate to rotate the plurality of profile data constituting the three-dimensional data corresponding to the pair of the light projector and the light receiving unit around the first axis and the second axis based on the first rotation angle correction value and the second rotation angle correction value calculated for each pair of the light projector and the light receiving unit; After the plurality of profile data are rotated, the sphere information calculation unit calculates a reference point associated with the spherical surface for each pair of the light projecting unit and the light receiving unit based on the three-dimensional data, 5. The optical displacement measurement system according to claim 3, wherein the correction value calculation unit calculates a first translation amount correction value parallel to the first direction, a second translation amount correction value parallel to the second direction, and a third translation amount correction value parallel to the third direction in the plurality of profile data constituting at least one of the three-dimensional data, such that deviations between the plurality of reference points are reduced.

6. 6. The optical displacement measurement system according to claim 5, wherein the shape generator corrects the three-dimensional data by translationally moving the plurality of profile data constituting at least one of the three-dimensional data in the first direction, the second direction and the third direction based on the first translation amount correction value, the second translation amount correction value and the third translation amount correction value.

7. the spherical surface has a feature; 7. The optical displacement measurement system according to claim 6, wherein the correction value calculation unit calculates a third rotation angle correction value about a third axis parallel to the third direction in the plurality of profile data constituting at least one of the three-dimensional data so that the characteristic portions in the plurality of three-dimensional data coincide with each other after the plurality of profile data constituting at least one of the three-dimensional data are translated in the first direction, the second direction, and the third direction.

8. 8. The optical displacement measurement system according to claim 7, wherein the shape generation unit corrects the three-dimensional data by rotating the plurality of profile data constituting at least one of the three-dimensional data around the third axis based on the third rotation angle correction value.

9. The optical displacement measurement system according to claim 8, further comprising a synthesis unit that generates synthetic data indicating the three-dimensional shape of the workpiece having the spherical surface by synthesizing the plurality of three-dimensional data after the plurality of profile data constituting at least one of the three-dimensional data are rotated around the third axis.

10. 10. The optical displacement measurement system according to claim 1, further comprising a notification unit that notifies at least one of the first rotation angle correction value and the second rotation angle correction value.

11. A processing device used for a light-cutting type optical displacement meter, the processing device including: a light-projecting unit that emits, in the second direction, a slit light having a spread in the first direction or a spot light scanned in the first direction, in which a first direction, a second direction, and a third direction intersecting each other are predefined; and a light-receiving unit that includes a plurality of pixels arranged two-dimensionally, receives reflected light from each position in the first direction of a workpiece having a spherical surface, and outputs a light-receiving signal indicating an amount of received light, a profile generating unit that generates profile data indicating a profile of the workpiece having the spherical surface within a plane defined by the first direction and the second direction based on the light receiving signal; a shape generating unit that generates three-dimensional data indicating a three-dimensional shape of the workpiece having the spherical surface by synthesizing a plurality of profile data generated corresponding to each position in the third direction by moving the workpiece having the spherical surface relatively to the light projecting unit and the light receiving unit in a direction corresponding to the third direction; a sphere information calculation unit that calculates parameters of a sphere defined by a plurality of points included in the three-dimensional data; a distortion amount calculation unit that calculates a distortion amount of the spherical surface based on the parameters; a correction value calculation unit that calculates at least one of a first rotation angle correction value about a first axis parallel to the first direction and a second rotation angle correction value about a second axis parallel to the second direction in the plurality of profile data that constitute the three-dimensional data, so that the amount of distortion is reduced.

12. A method for measuring optical displacement using a light-cutting type optical displacement meter, the method comprising: a light-projecting unit that emits, in a second direction, a slit light having a spread in the first direction or a spot light scanned in the first direction, and a light-receiving unit that includes a plurality of pixels arranged two-dimensionally, receives reflected light from each position in the first direction of a workpiece having a spherical surface, and outputs a light-receiving signal indicating an amount of received light, the method comprising: generating profile data indicating a profile of the workpiece having the spherical surface within a plane defined by the first direction and the second direction based on the light receiving signal; generating three-dimensional data indicating a three-dimensional shape of the workpiece having the spherical surface by synthesizing a plurality of profile data generated corresponding to each position in the third direction by moving the workpiece having the spherical surface relative to the light-projecting unit and the light-receiving unit in a direction corresponding to the third direction; calculating parameters of a sphere defined by a plurality of points included in the three-dimensional data; Calculating a distortion amount of the spherical surface based on the parameters; calculating at least one of a first rotation angle correction value about a first axis parallel to the first direction and a second rotation angle correction value about a second axis parallel to the second direction in the plurality of profile data constituting the three-dimensional data, so that the amount of distortion is reduced.

13. A program for optical displacement measurement used for an optical displacement meter of a light-cutting type, the program comprising: a light-projecting unit that emits, in the second direction, a slit light having a spread in the first direction or a spot light scanned in the first direction, in which a first direction, a second direction, and a third direction intersecting with each other are predefined; and a light-receiving unit that includes a plurality of pixels arranged two-dimensionally, receives reflected light from each position in the first direction of a workpiece having a spherical surface, and outputs a light-receiving signal indicating an amount of received light, A process of generating profile data indicating a profile of the workpiece having the spherical surface within a plane defined by the first direction and the second direction based on the light receiving signal; a process of generating three-dimensional data indicating a three-dimensional shape of the workpiece having the spherical surface by synthesizing a plurality of profile data generated corresponding to each position in the third direction by moving the workpiece having the spherical surface relatively to the light projecting unit and the light receiving unit in a direction corresponding to the third direction; A process of calculating parameters of a spherical surface defined by a plurality of points included in the three-dimensional data; A process of calculating a distortion amount of the spherical surface based on the parameters; calculating at least one of a first rotation angle correction value about a first axis parallel to the first direction and a second rotation angle correction value about a second axis parallel to the second direction in the plurality of profile data constituting the three-dimensional data so that the amount of distortion is reduced; An optical displacement measurement program executed by the processing device.

Citation Information

Patent Citations

  • Method for measuring three-dimensional shape

    JP1995091928A

  • Transporting capacity measuring device

    JP1996075435A

  • Method for detecting arrangement parameter in optical shaping measuring apparatus provided with plural light- section sensors

    JP2002005622A

  • Precision measurement method and calibration method of noncontact image measuring machine

    JP2006177815A

  • Shape measuring device

    JP2011095245A