Alignment method and external appearance inspecting method

A method using two cameras to calculate tilt angles simplifies the alignment process and reduces costs by eliminating the need for separate measurement devices in appearance inspection devices.

JP2024126881AInactive Publication Date: 2024-09-20SCREEN HOLDINGS CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2023035608
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-08
Publication Date
2024-09-20
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Conventional appearance inspection devices require additional devices for measuring position, rotation angle, and tilt angle, leading to increased complexity and cost.

Method used

A method using two cameras to acquire images from different directions, calculating the inclination angle based on image correspondence, and combining these images to determine the tilt angle without the need for separate measurement devices.

Benefits of technology

This approach simplifies the device configuration, reduces alignment workload, and lowers costs by eliminating the need for additional measurement equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024126881000001
    Figure 2024126881000001
Patent Text Reader

Abstract

To provide an alignment method and an external appearance inspecting method that acquire the inclination angle of a workpiece even with a relatively simple structure.SOLUTION: In an external appearance inspecting device 1, an alignment method includes the steps of: obtaining, by a first camera 21 having an imaging axis 211 extending in a Z-axis direction, a first image of a test lens 9; obtaining, by a second camera 22 having an imaging axis 221 extending in an X-axis direction, a second image of the test lens 9; obtaining correspondence relation data representing the correspondence relation between the first image obtained by the first camera 21 and the second image obtained by the second camera 22; and calculating an inclination angle Rx of the test lens 9 around the X-axis based on the first image, the second image and the correspondence relation data.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The subject matter disclosed herein relates to an alignment method and a visual inspection method. [Background technology]

[0002] Conventionally, there is known an appearance inspection device that uses a camera to capture an image of a workpiece such as a lens and performs an appearance inspection of the workpiece based on the captured image (for example, Patent Document 1). In this type of appearance inspection device, the workpiece may be aligned before inspection so that the workpiece is in a position suitable for inspection.

[0003] For example, in Patent Document 1, in order to adjust the position, rotation angle, and tilt angle of the test lens, the horizontal position of the lens fixing fixture is detected using a displacement sensor (laser displacement meter), and the tilt of the lens fixing fixture is detected using an autocollimator. [Prior art documents] [Patent documents]

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

[0005] However, in the case of the conventional technology, since it is necessary to provide a device for measuring the position, rotation angle, and tilt angle of the object in addition to the inspection camera, the device becomes complicated, which may increase the cost of the device.

[0006] An object of the present invention is to provide a technique that can determine the inclination angle of a workpiece even with a relatively simple configuration. [Means for solving the problem]

[0007] In order to solve the above problem, a first aspect is a method for aligning a workpiece, comprising: a) acquiring a first image of the workpiece by a first camera having an imaging axis extending in a first direction; b) acquiring a second image of the workpiece by a second camera having an imaging axis extending in a second direction intersecting the first direction; c) acquiring a correspondence between an image acquired by the first camera and an image acquired by the second camera; and d) calculating an inclination angle of the workpiece around an axis along the second direction based on the first image, the second image, and the correspondence.

[0008] A second aspect is an alignment method according to the first aspect, wherein the step c) includes: c1) capturing an image of a measuring jig having a straight line pattern parallel to the first direction and a straight line pattern parallel to the second direction with the first camera and the second camera; and c2) acquiring the correspondence using an image of the measuring jig obtained by the first camera and an image of the measuring jig obtained by the second camera.

[0009] A third aspect is an alignment method according to the first or second aspect, wherein the step d) includes: d11) extracting an edge portion of the workpiece in the second image that overlaps with a first region extending equally a first distance on both sides of the center of the workpiece in the horizontal direction; and d12) obtaining an inclination angle of the edge portion with respect to the horizontal direction.

[0010] A fourth aspect is an alignment method according to the third aspect, wherein the step d) further includes the steps of: d13) extracting a second edge portion of the edge of the workpiece in the second image, the second edge portion overlapping with a second region extending from the center of the workpiece by a second distance different from the first distance on both sides of the horizontal direction; d14) acquiring a second inclination angle of the second edge portion with respect to the horizontal direction; and d15) acquiring a inclination angle of the workpiece around an axis along the second direction using the first inclination angle and the second inclination angle.

[0011] A fifth aspect is an alignment method according to the first or second aspect, wherein the step d) further includes the steps of: d21) setting a center point of the workpiece in the horizontal direction in the second image; d22) generating a plurality of rotated images by rotating the previous two images by a plurality of different rotation angles around the center point, and an inverted image by flipping each of the rotated images left and right about a vertical axis passing through the center point; and d23) determining the rotation angle at which the pixel values ​​of the rotated image and the inverted image have the greatest degree of similarity.

[0012] A sixth aspect is an appearance inspection method including: A) a step of imaging the work aligned based on the inclination angle around the axis of the second direction identified by the alignment method described in the first or second aspect using the first camera and the second camera; and B) a step of inspecting the appearance of the work based on the image obtained by the step A). Effect of the Invention

[0013] According to the alignment methods of the first to fifth aspects, the inclination angle around an axis along the second direction is calculated using the correspondence between the first image and the second image, so that the inclination angle of the workpiece can be adjusted with a simple configuration.

[0014] According to the alignment method of the second aspect, the correspondence between the first image and the second image can be appropriately acquired.

[0015] According to the alignment method of the third aspect, the edge portion of the workpiece can be extracted symmetrically with respect to the center of the workpiece, which allows the inclination angle to be calculated more accurately than when the edge is extracted asymmetrically.

[0016] According to the alignment method of the fourth aspect, the influence of local deformation of the edge of the workpiece can be reduced, so that the inclination angle can be determined with high accuracy.

[0017] According to the alignment method of the fifth aspect, since the inclination angle can be obtained without edge extraction, parameter setting for edge extraction can be omitted. This makes it possible to omit complicated procedures and reduce the workload of alignment. [Brief description of the drawings]

[0018] [Figure 1] 1 is a diagram showing a configuration of a visual inspection apparatus according to an embodiment; [Diagram 2] FIG. 2 is a diagram illustrating a configuration of a control unit illustrated in FIG. [Diagram 3] 4 is a diagram showing a first jig image captured by a first camera and a second jig image captured by a second camera. FIG. [Figure 4] 10 is a flowchart showing a procedure for acquiring correspondence data. [Diagram 5] 1 is a flow chart showing an alignment procedure. [Figure 6] FIG. 2 is a diagram showing a first object image captured by a first camera and a second object image captured by a second camera. [Figure 7] 4A to 4C are diagrams for explaining a first method for calculating the inclination angle Rx of the lens to be measured. [Figure 8] 13 is a diagram for explaining a second method for determining the inclination angle Rx of the lens to be measured. FIG. [Figure 9] 13 is a diagram for explaining a third method for determining the inclination angle Rx of the lens to be measured. FIG. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0019] Hereinafter, an embodiment of the present invention will be described with reference to the accompanying drawings. Note that the components described in the embodiment are merely examples, and are not intended to limit the scope of the present invention. In the drawings, the dimensions and numbers of each part may be exaggerated or simplified as necessary for ease of understanding.

[0020] <Embodiment> FIG. 1 is a diagram showing the configuration of an appearance inspection apparatus 1 according to an embodiment. The appearance inspection apparatus 1 is an apparatus that inspects the appearance of a test lens 9, which is an object to be inspected, based on an image obtained by a camera. The test lens 9 is a lens that is attached to the human body, such as an intraocular lens or a contact lens. The test lens 9 may also be a lens used in an optical instrument or the like. The test lens 9 is an example of a workpiece.

[0021] As shown in Fig. 1, the appearance inspection device 1 includes a support unit 10, a first camera 21, a second camera 22, a moving mechanism unit 30, and a control unit 50. As shown in Fig. 1, for convenience of explanation, an X-axis, a Y-axis, and a Z-axis that are perpendicular to each other are defined. The Z-axis is parallel to the vertical direction. The X-axis and the Y-axis are parallel to the horizontal direction.

[0022] The support unit 10 supports the test lens 9. The support unit 10 has three supports 11. The three supports 11 hold the test lens 9 at positions equally spaced apart around an axis extending in the Z direction. The three supports 11 support the test lens 9 from below. The support unit 10 supports the test lens 9 so that the principal surface (the largest surface) of the test lens 9 faces the +Z direction.

[0023] The first camera 21 and the second camera 22 capture an image of the test lens 9 supported by the support portion 10. The first camera 21 and the second camera 22 each have an image sensor such as a CCD or a CMOS.

[0024] The first camera 21 is positioned away in the +Z direction from the test lens 9 supported by the support unit 10. An imaging axis 211 (a virtual line that bisects the camera's angle of view) of the first camera 21 extends in the Z-axis direction (first direction). The first camera 21 captures an image of the principal surface of the test lens 9 supported by the support unit 10.

[0025] The second camera 22 is positioned away in the X direction from the test lens 9 supported by the support portion 10. An imaging axis 221 of the second camera 22 extends in the X-axis direction (second direction). The second camera 22 captures an image of the side surface of the test lens 9 in a state supported by the support portion 10.

[0026] The movement mechanism unit 30 has an X stage 311 and a Y stage 313. The X stage 311 moves the support unit 10 in the X direction. The Y stage 313 moves the support unit 10 in the Y direction. The X stage 311 and the Y stage 313 are formed by a linear motion drive mechanism such as a ball screw mechanism or a linear motor mechanism, for example.

[0027] The movement mechanism 30 further includes an Rx stage 321, an Ry stage 323, and an Rz stage 325. The Rx stage 321 rotates the support 10 around an axis along the X direction. The Ry stage 323 rotates the support 10 around an axis along the Y direction. The Rz stage 325 rotates the support 10 around an axis along the Z direction. The Rx stage 321, the Ry stage 323, and the Rz stage 325 are configured by a rotation drive mechanism such as a motor.

[0028] Fig. 2 is a diagram showing the configuration of the control unit 50 shown in Fig. 1. The control unit 50 includes a processing unit 51 and a storage unit 53. The processing unit 51 is configured by a processor including a CPU (Central Processing Unit) or a GPU (Graphical Processing Unit). The storage unit 53 is configured by an auxiliary mechanism device such as a ROM (Read Only Memory), a RAM (Random Access Memory), or a hard disk drive.

[0029] The storage unit 53 stores a program P. The processing unit 51 executes the program P to function as a tilt angle acquisition unit 511, an alignment unit 512, and an inspection unit 513. The tilt angle acquisition unit 511 acquires a tilt angle Rx about the X axis and a tilt angle Ry about the Y axis based on image data acquired by the first camera 21 and the second camera 22.

[0030] The alignment unit 512 aligns the test lens 9 supported by the support unit 10. The alignment unit 512 adjusts the position of the test lens 9 in the X-axis, Y-axis, and Z-axis directions, as well as the tilt angle Rx about the X-axis, tilt angle Ry about the Y-axis, and rotation angle Rz about the Z-axis of the test lens 9.

[0031] The alignment unit 512 adjusts the inclination angle Rx and the inclination angle Ry of the lens 9 to be measured, using the inclination angle Rx and the inclination angle Ry acquired by the inclination angle acquisition unit 511 .

[0032] It is possible to identify the positions of the lens 9 in the X-axis direction and the Y-axis direction, as well as the rotation angle Rz of the lens 9, by using the image acquired by the first camera 21. It is also possible to identify the position of the lens 9 in the Z-axis direction by using the image acquired by the second camera 22. It is also possible to identify the position of the lens 9 in the X-axis direction by using the image acquired by the second camera 22 in a state in which the lens 9 is rotated 90° around the Z axis.

[0033] The inspection unit 513 captures images of the test lens 9 that has been aligned by the alignment unit 512 using the first camera 21 and the second camera 22, and performs an appearance inspection of the test lens 9 using the obtained image data.

[0034] The storage unit 53 stores a program P and correspondence data RD1. The inclination angle acquisition unit 511, the alignment unit 512, and the inspection unit 513 are functions realized by the processing unit 51 executing the program P. The correspondence data RD1 is information indicating a positional correspondence between a first image acquired by the first camera 21 and a second image acquired by the second camera 22. As described later, the correspondence data RD1 includes coordinates of an axial point P1 set in the second image, coordinates of an axial corresponding point P11 set in the first image, and affine transformation parameters. The correspondence data RD1 is data acquired in advance in the appearance inspection device 1 to perform alignment for adjusting the inclination angles Rx and Ry of the test lens 9.

[0035] <Procedure for obtaining correspondence data> The procedure for acquiring the correspondence data RD1 will be described with reference to Fig. 3 and Fig. 4. The correspondence data RD1 is acquired using a first jig image M11 and a second jig image M12 acquired of the measuring jig 91 by the first camera 21 and the second camera 22. Fig. 3 is a diagram showing the first jig image M11 acquired by the first camera 21 and the second jig image M12 acquired by the second camera 22. The first jig image M11 is an image acquired by the first camera 21. The second jig image M12 is an image acquired by the second camera 22.

[0036] 3, the measurement jig 91 has a rectangular parallelepiped shape. As shown in the first jig image M11, the measurement jig 91 has a quadrangular (square in this example) upper surface 911. The measurement jig 91 has quadrangular (rectangular in this example) side surfaces 913.

[0037] When the measuring jig 91 is held by the support portion 10, the top surface 911 of the measuring jig 91 faces the first camera 21. That is, the imaging axis 211 of the first camera 21 is approximately perpendicular to the top surface 911 of the measuring jig 91. In addition, the side surface 913 of the measuring jig 91 faces the second camera 22. That is, the imaging axis 221 of the second camera 22 is approximately perpendicular to the side surface 913 of the measuring jig 91. In addition, in the second jig image M12, the upper edge 913a (or the lower edge 913b) of the side surface 913 of the measuring jig 91 is approximately parallel to the horizontal direction of the image.

[0038] The measuring jig 91 has a pattern that allows corresponding points to be identified between the first jig image M11 and the second jig image M12. For example, the measuring jig 91 has two straight line patterns LP1 and LP2 that are perpendicular to each other on the top surface 911. The straight line patterns LP1 and LP2 pass through the center of the top surface 911 and also pass through the centers of two opposing sides of the top surface 911. The measuring jig 91 also has a straight line pattern LP3 on the side surface 913. The straight line pattern LP3 passes through the center of the side surface 913 and also passes through the centers of the upper and lower sides of the measuring jig 91. In the second jig image M12, the straight line pattern LP3 extends approximately parallel to the vertical direction.

[0039] 4 is a flowchart showing a procedure for acquiring the correspondence data RD1. The correspondence data RD1 may be acquired by a person operating a computer such as the control unit 50, or may be acquired automatically by the processing unit 51 of the control unit 50 appropriately performing image processing such as image recognition.

[0040] 3, the measurement jig 91 is imaged by the first camera 21 and the second camera 22 (imaging step S10). In the imaging step S10, a first jig image M11 and a second jig image M12 shown in FIG.

[0041] Next, in the second jig image M12, a horizontal axis HA1 extending in the horizontal direction is set (axis setting step S11). In the example shown in the second jig image M12 in Fig. 3, the horizontal axis HA1 is a straight line extending in the horizontal direction (lateral direction). The horizontal axis HA1 is approximately parallel to the upper edge 913a of the side surface 913 of the measurement jig 91.

[0042] Next, in the first jig image M11, a corresponding axis HA2 corresponding to the horizontal axis HA1 is set (corresponding axis setting step S12). In detail, the extending direction of the corresponding axis HA2 is made to coincide with the extending direction of the horizontal axis HA1. In the example shown in FIG. 3, the corresponding axis HA2 is set to extend parallel to the upper side 913a of the measurement jig 91. Since the straight line pattern LP2 is parallel to the upper side 913a, the corresponding axis HA2 may be set to extend parallel to the straight line pattern LP2. The positive direction of the corresponding axis HA2 is set to coincide with the positive direction of the horizontal axis HA1. In the example shown in FIG. 3, the horizontal axis HA1 extends in the right direction, and the corresponding axis HA2 extends in the lower right direction.

[0043] Next, the angular relationship between the horizontal axis HA1 and the corresponding axis HA2 is acquired (angle acquisition step S13). That is, as shown in Fig. 3, the angle α between the corresponding axis HA2 and the horizontal axis HA1 is acquired.

[0044] Next, in the second jig image M12, Reference Line The reference line L1 is set (line setting step S14). The reference line L1 is preferably a straight line perpendicular to the horizontal axis HA1. In the example shown in Fig. 3, in the second jig image M12, the reference line L1 is set on the straight line pattern LP3 extending in the vertical direction that the measurement jig 91 has. Also, in the second jig image M12, the coordinates of an axial point P1 that is a point on the horizontal axis HA1 and intersects with the reference line L1 are acquired (axial point acquisition step S15).

[0045] Next, in the first jig image M11, a line corresponding point PL1 corresponding to the reference line L1 is identified (line corresponding point identifying step S16). In the example shown in Fig. 3, the position where the straight line pattern LP3 is provided in the measurement jig 91 in the first jig image M11 is identified as the line corresponding point PL1 corresponding to the reference line L1.

[0046] Next, an on-axis corresponding point P11 on the corresponding axis HA2 corresponding to the on-axis point P1 on the horizontal axis HA1 is identified (on-axis corresponding point identifying step S17). On the horizontal axis HA1, the on-axis point P1 is at the same position as the reference line L1. Therefore, the on-axis corresponding point P11 is at the same position as the line corresponding point PL1 on the corresponding axis HA2. Therefore, the intersection of the perpendicular line drawn from the line corresponding point PL1 to the corresponding axis HA2 and the corresponding axis HA2 is identified as the on-axis corresponding point P11.

[0047] After the on-axis corresponding point P11 is specified, affine transformation parameters are acquired for rotating the on-axis corresponding point P11 as the center of rotation through the angle α formed by the horizontal axis HA1 and the corresponding axis HA2 (affine transformation parameter acquisition step S18).

[0048] The coordinates of the on-axis corresponding point P11 in the first jig image M11, the coordinates of the on-axis point P1 in the second jig image M12, and the affine transformation parameters obtained by the above steps are stored in the storage unit 53 as correspondence data RD1 (storing step S19).

[0049] In addition, if the scales are different between the first jig image M11 and the second jig image M12, the scales may be adjusted by setting another axial point P1 in the line setting step S14 and identifying the axial corresponding point P11 that corresponds to the axial point P1.

[0050] <Alignment procedure> Next, the alignment procedure of the test lens 9 will be described. FIG. 5 is a flow chart showing the alignment procedure. The alignment procedure shown in FIG. 5 is a procedure for adjusting the tilt angle Rx of the test lens 9 around the X-axis. Of the alignment procedure shown in FIG. 5, the imaging step S20 to the tilt angle calculation step S25 are performed under the control of the tilt angle acquisition unit 511 of the processing unit 51, unless otherwise specified. Furthermore, the alignment step S26 is performed under the control of the alignment unit 512 of the processing unit 51. A part or the whole of the alignment procedure may be performed by a person operating the control unit 50.

[0051] First, the test lens 9 is imaged by the first camera 21 and the second camera 22 while being supported by the support portion 10 (imaging step S20). Fig. 6 is a diagram showing a first object image M21 acquired by the first camera 21 and a second object image M22 acquired by the second camera 22.

[0052] Next, in the first object image M21, a center point CP1 of the test lens 9 is set (center point setting step S21). As shown in Fig. 6, the first object image M21 is an overhead image of the main surface of the test lens 9, so that the center point CP1 of the test lens 9 can be appropriately identified by the first object image M21.

[0053] Next, affine transformation is performed on the coordinates of the center point CP1 set in the center point setting step S21 (affine transformation step S22). Then, the distance and direction from the on-axis corresponding point P11 in the first object image M21 to the point after the affine transformation are obtained (distance / direction acquisition step S23). The affine transformation parameters and the coordinates of the on-axis corresponding point P11 are obtained from the correspondence data RD1.

[0054] Next, in the second object image M22, a center corresponding line CL1 passing through a position corresponding to the center point CP1 of the first object image M21 is calculated using the coordinates of the axial point P1 and the distance and orientation acquired in the distance / orientation acquisition step S23 (center corresponding line calculation step S24). The coordinates of the axial point P1 are acquired from the correspondence data RD1.

[0055] The correspondence data RD1 is information indicating the positional correspondence between the image captured by the first camera 21 and the image captured by the second camera 22. Therefore, by using the correspondence data RD1, it is possible to obtain a center correspondence line CL1 corresponding to the position of the center point CP1 set in the first object image M21. Therefore, it is possible to appropriately obtain the center position of the test lens 9 in the second object image M22.

[0056] Next, the tilt angle Rx of the test lens 9 about the X-axis is calculated using the center corresponding line CL1 (tilt angle calculation step S25). The control unit 50 controls the Rx stage 321 based on the tilt angle Rx calculated in the tilt angle calculation step S25, thereby adjusting the tilt angle Rx of the test lens 9 to an angle suitable for the appearance inspection (alignment step S26).

[0057] Fig. 7 is a diagram for explaining a first method for calculating the tilt angle Rx of the test lens 9. First, in the second object image M22 (second image), the edge E1 of the test lens 9 is extracted by an edge extraction unit. In the example shown in Fig. 7, the edge E1 along the lower edge of the test lens 9 is extracted.

[0058] Next, in the second object image M22, an area AR1 is set that spreads an equal distance d on both sides in the horizontal direction from the center of the lens 9 to be measured. Then, an edge portion E11 (first edge portion) that overlaps with the area AR1 (first area) is extracted from the edge E1. The tilt angle Rx is calculated based on the tilt of the extracted edge portion E11 with respect to the horizontal direction.

[0059] As shown in Fig. 7, when the test lens 9 is imaged by the second camera 22, a part of the test lens 9 may be hidden by the support portion 10 (support 11). When a part of the test lens 9 is hidden in this way, it becomes difficult to extract the edge E1 of the test lens 9 symmetrically. Furthermore, when the test lens 9 has a different structure between the left end and the right end, an asymmetric edge E1 is extracted. The edge E1 extracted asymmetrically includes an error of rising to the right shoulder (or left shoulder), so it is difficult to accurately determine the inclination angle Rx from the edge E1.

[0060] In this embodiment, an edge portion E11 that overlaps with an area AR1 that spreads equidistantly from the center corresponding line CL1 is extracted from the edge E1. In this case, the edges of the test lens 9 are extracted symmetrically, so that the tilt angle Rx can be found with high accuracy.

[0061] Fig. 8 is a diagram for explaining a second method for determining the tilt angle Rx of the test lens 9. In the first method described in Fig. 7, one area AR1 is set, and the tilt angle Rx is determined based only on the edge portion E11 of the edge E1 that overlaps with the area AR1. In contrast, in the second method shown in Fig. 8, multiple areas AR1 to AR6 are set, each having a different distance d of left and right spread from the center corresponding line CL1. In the example shown in Fig. 8, multiple areas AR1 to AR6 are set by gradually decreasing the distance d.

[0062] Then, in the test lens 9, edge portions E21 to E26 that overlap with the multiple regions AR1 to AR6 are extracted. In the example shown in FIG. 8, the upper edge portion of the test lens 9 is extracted, but the lower edge portion of the test lens 9 may be extracted as in the example shown in FIG. 7. Next, the inclination angle Rx of the test lens 9 is obtained from each of the extracted multiple edge portions E21 to E26 (see the lower part of FIG. 8). Furthermore, a representative value of the obtained multiple inclination angles Rx is calculated as the final inclination angle Rx of the test lens 9. The representative value is, for example, an average value, a median value, or a middle value.

[0063] When an edge of the test lens 9 is extracted from the second object image M22, a part of the edge may locally change in a direction that does not appropriately represent the inclination angle Rx. For example, a part of the extracted edge may locally change in a direction different from normal due to deformation of the surface of the test lens 9, the way light strikes or is reflected by the test lens 9, the influence of light scattered in multiple directions inside the test lens 9, etc. If an edge including such deformations such as local unevenness is used to calculate the inclination angle Rx, the accuracy of the inclination angle Rx may be significantly reduced.

[0064] In the second method, a representative value of the inclination angles Rx obtained using a plurality of edge portions E21 to E26 having different distances d from the center corresponding line CL1 is calculated as the final inclination angle Rx. This reduces the influence of deformation such as local unevenness of the extracted edge, so that the inclination angle Rx can be obtained with high accuracy.

[0065] 9 is a diagram for explaining a third method for determining the tilt angle Rx of the test lens 9. The third method is a method for determining the tilt angle Rx without extracting the edge of the test lens 9 as in the first and second methods.

[0066] Specifically, in the second object image M22, a center point 9C of the test lens 9 is set. The center point 9C is a point that passes through the center corresponding line CL1, and is the center point of a portion of the image of the test lens 9 that overlaps with the center corresponding line CL1.

[0067] Then, a rotated image M22a is generated by rotating the second object image M22 by a predetermined rotation angle around the center point 9C, and an inverted image M22b is generated by inverting the rotated image M22a at the center corresponding line CL1. Then, a minimum value image M22c is generated by selecting the minimum value among the same pixels of the rotated image M22a and the inverted image M22b. After that, a pixel average value of the entire or a part (a part including the image of the test lens 9) of the minimum value image M22c is calculated. Such pixel average values ​​are obtained for a plurality of different rotation angles. In FIG. 9, the rotated image M22a, the inverted image M22b, and the minimum value image M22c generated at rotation angles of 10°, 2°, and -3° are shown.

[0068] When a plurality of pixel average values ​​are obtained, the rotation angle value at which the pixel average value peaks on a graph of the rotation angle and pixel average value as shown in Fig. 9 is obtained as the tilt angle Rx. When the pixel average value of the minimum value image M22c is maximized, the degree of agreement of the pixel values ​​between the rotated image M22a and the inverted image M22b is maximized.

[0069] Note that a difference image may be generated by taking the difference in pixel values ​​between the same pixels for the rotated image M22a and the inverted image M22b. Then, a rotation angle at which the pixel average value of the difference image is minimized (i.e., the degree of agreement of the pixel values ​​is maximized) may be obtained.

[0070] Simply placing the test lens 9 on the support 10 may result in the test lens 9 being placed at a position where the second camera 22 is in focus, or may be placed out of focus. If the test lens 9 is placed at a large inclination with respect to the second camera 22, the brightness of the edge portion of the test lens 9 appearing in the image may change. For this reason, it is necessary to appropriately set parameters for extracting the edge portion. However, setting parameters that can be applied to various environments is not easy and is often complicated.

[0071] In contrast, in the third method, the inclination angle Rx is calculated without edge extraction. This makes it possible to omit parameter settings required for edge extraction. This makes it possible to omit complicated procedures and reduce the workload of alignment.

[0072] When the tilt angle Ry is obtained, the Rz stage 325 rotates the support portion 10 by 90°. Then, the alignment procedure shown in FIG. 5 is performed to adjust the tilt angle Ry.

[0073] The visual inspection device 1 may also include a third camera that captures an image of the test lens 9 supported by the support portion 10 in the Y-axis direction (third direction). In this case, correspondence data RD1 between the image captured by the first camera 21 and the image captured by the third camera is acquired according to the procedure shown in Fig. 4. Then, the inclination angle Ry can be obtained by executing the procedure shown in Fig. 5 using the correspondence data RD1.

[0074] As described above, in the visual inspection device 1, the tilt angle Rx about the X-axis is calculated using the correspondence data RD1 between the first jig image M11 acquired by the first camera 21 and the second jig image M12 acquired by the second camera 22. This makes it possible to adjust the tilt angle Rx with a simple configuration.

[0075] In addition, since the inclination angle Rx can be calculated using the first camera 21 and the second camera 22 used for the appearance inspection, a device for measuring the position of the test lens 9 for alignment is not required. This makes it possible to reduce the cost of the device.

[0076] Although the present invention has been described in detail, the above description is merely illustrative in all respects, and the present invention is not limited thereto. It is understood that countless variations not illustrated can be envisioned without departing from the scope of the present invention. The configurations described in the above embodiments and variations can be appropriately combined or omitted as long as they are not mutually contradictory. [Explanation of symbols]

[0077] 1. Visual inspection equipment 9. Test lens 10 Support part 21 Camera No. 1 22 Second Camera 91 Measuring fixture 211,221 Imaging axis AR1~AR6 area (1st area, 2nd area) E11 Edge part (first edge part) E21~E26 Edge parts (first edge part, second edge part) LP1~LP3 Linear pattern RD1 Correspondence Data

Claims

1. A method for aligning a workpiece, comprising the steps of: a) acquiring a first image of a workpiece by a first camera having an imaging axis extending in a first direction; b) acquiring a second image of the workpiece by a second camera having an imaging axis extending in a second direction intersecting the first direction; c) obtaining a correspondence between an image acquired by the first camera and an image acquired by the second camera; d) calculating a tilt angle of the workpiece around an axis along the second direction based on the first image, the second image, and the correspondence relationship; The alignment method includes:

2. 2. The alignment method according to claim 1, The step c) comprises: c1) capturing images of a measuring jig having a linear pattern parallel to the first direction and a linear pattern parallel to the second direction with the first camera and the second camera; c2) acquiring the correspondence relationship using an image of the measuring jig acquired by the first camera and an image of the measuring jig acquired by the second camera; The alignment method includes:

3. 3. The alignment method according to claim 1, further comprising: The step d) comprises: d11) extracting a first edge portion of the edge of the workpiece in the second image, the first edge portion overlapping a first region extending equally a first distance on both sides of the center of the workpiece in the horizontal direction; d12) obtaining a first inclination angle of the first edge portion with respect to the horizontal direction; The alignment method includes:

4. 4. The alignment method according to claim 3, The step d) comprises: d13) extracting a second edge portion of the edge of the workpiece in the second image, the second edge portion overlapping a second region extending from the center of the workpiece on both sides in the horizontal direction by a second distance different from the first distance; d14) obtaining a second inclination angle of the second edge portion with respect to the horizontal direction; d15) obtaining a tilt angle of the workpiece about an axis along the second direction using the first tilt angle and the second tilt angle; The alignment method further comprises:

5. 3. The alignment method according to claim 1, further comprising: The step d) comprises: d21) setting a center point of the workpiece in the horizontal direction in the second image; d22) generating a plurality of rotated images by rotating the first two images by a plurality of different rotation angles around the center point, and generating inverted images by horizontally inverting each of the rotated images with respect to a vertical axis passing through the center point; d23) determining a rotation angle at which a pixel value match between the rotated image and the inverted image is maximized; The alignment method further comprises:

6. A visual inspection method, comprising: A) capturing images of the workpiece aligned based on the tilt angle about the axis in the second direction identified by the alignment method according to claim 1 or 2 using the first camera and the second camera; B) inspecting the appearance of the workpiece based on the image obtained by the step A); A visual inspection method comprising:

Citation Information

Patent Citations

  • Interface eccentricity measuring apparatus and interface eccentricity measuring method of optical element

    JP2012026968A