Optical measurement device, optical measurement method, and optical measurement program

The optical measurement device and method accurately determine the position of a specific point on an object by defining a real-space coordinate system and matching model point cloud data, addressing noise interference and contactless measurement challenges.

JP2024129620AActive Publication Date: 2024-09-27OTSUKA MECHATRONICS CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
JP2023038945
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-13
Publication Date
2024-09-27
Estimated Expiration
2043-03-13

AI Technical Summary

Technical Problem

Existing optical measurement techniques fail to accurately specify the absolute position of a specific point on an object without physical contact and are prone to noise interference.

Method used

An optical measurement device and method that defines a real-space coordinate system, uses model point cloud data to search for the orientation of a measurement target, and calculates the coordinates of a specific point by translating and rotating model point cloud data to match three-dimensional point cloud data, incorporating uncertainty evaluation and sparse pose refinement.

Benefits of technology

Enables non-contact measurement of a specific point's position on an object with high accuracy, overcoming noise interference and hardware restrictions, suitable for various inspection applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024129620000001
    Figure 2024129620000001
Patent Text Reader

Abstract

To provide a technology for measuring the position of a specific point set on a measurement object.SOLUTION: An optical measurement device includes an acquisition unit, a retrieval unit, and a calculation unit. The acquiring unit acquires a model including a real space coordinate system definition, model point cloud data indicating the surface geometry of an object that serves as a reference for an object to be measured, and coordinates of a specific point in the real space. The retrieval unit is for retrieving the posture of the model point cloud data that is most similar to the three-dimensional point cloud data acquired from the object to be measured. The calculation unit is for calculating the coordinates corresponding to the specific point of the object to be measured on the basis of the retrieved posture.SELECTED DRAWING: Figure 10
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to an optical measurement device, an optical measurement method, and an optical measurement program. [Background technology]

[0002] Conventionally, techniques for optically recognizing the position and orientation of an object have been known. For example, Japanese Patent Application Laid-Open No. 2022-042103 (Patent Document 1) discloses a configuration that can suppress the influence of noise on recognition of the position and orientation of a target object. Also, Japanese Patent Application Laid-Open No. 2018-189510 (Patent Document 2) discloses a configuration that recognizes a target object in a three-dimensional scene at a higher speed. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] Patent Publication No. 2022-042103 [Patent Document 2] JP 2018-189510 A Summary of the Invention [Problem to be solved by the invention]

[0004] The above-mentioned prior art recognizes the position and orientation of the entire object based on the camera, and is not intended for use in identifying the absolute position of an object, for example.

[0005] An object of the present invention is to provide a technique for measuring the position of a specific point set on a measurement object. [Means for solving the problem]

[0006] (Configuration 1) An optical measurement device according to one aspect of the present invention includes a holding unit that holds a model including a definition of a coordinate system in real space, model point cloud data indicating a surface shape of an object that is a reference for the measurement object, and coordinates of a specific point in real space, a search unit that searches for an orientation of the model point cloud data that is most similar to three-dimensional point cloud data acquired from the measurement object, and a calculation unit that calculates coordinates corresponding to the specific point of the measurement object based on the searched orientation.

[0007] (Configuration 2) In configuration 1, the search unit may search for a posture that is most similar to the three-dimensional point cloud data by translating and rotating the model point cloud data.

[0008] (Configuration 3) In configuration 1 or 2, the search unit may search for a posture most similar to the three-dimensional point cloud data by using data obtained by thinning out the model point cloud data and data obtained by thinning out the model point cloud data.

[0009] (Configuration 4) In any of configurations 1 to 3, the search unit may extract a predetermined number of pose candidates in descending order of similarity between the three-dimensional point cloud data and the model point cloud data.

[0010] (Configuration 5) In configuration 4, the search unit may evaluate the uniqueness of a posture candidate with the highest similarity from among the predetermined number of posture candidates with respect to other posture candidates.

[0011] (Configuration 6) In any of configurations 1 to 5, the optical measurement device may further include a model generation unit that determines partial data corresponding to one or more specified regions as model point cloud data for the three-dimensional point cloud data acquired from an object that is a reference for the measurement target.

[0012] (Configuration 7) In any of configurations 1 to 6, the search unit may generate multiple three-dimensional point cloud data from the three-dimensional point cloud data, reflecting uncertainty present in the three-dimensional point cloud data, calculate coordinates corresponding to a specific point from each of the generated multiple three-dimensional point cloud data, and calculate uncertainty present in the calculated coordinates based on a variance in the calculated coordinates.

[0013] (Configuration 8) An optical measurement method according to another aspect of the present invention includes the steps of obtaining a model including a definition of a coordinate system in real space, model point cloud data indicating a surface shape of an object that serves as a reference for the measurement object, and coordinates of a specific point in real space, searching for an orientation of the model point cloud data that is most similar to the three-dimensional point cloud data obtained from the measurement object, and calculating coordinates corresponding to the specific point of the measurement object based on the searched orientation.

[0014] (Configuration 9) An optical measurement program according to another aspect of the present invention causes a computer to execute the steps of: acquiring a model including a definition of a coordinate system in real space, model point cloud data indicating the surface shape of an object that is a reference for the measurement object, and coordinates of a specific point in real space; searching for an orientation of the model point cloud data that is most similar to the three-dimensional point cloud data acquired from the measurement object; and calculating coordinates corresponding to the specific point of the measurement object based on the searched orientation. Effect of the Invention

[0015] According to an embodiment of the present invention, the position of a specific point set on a measurement object can be measured in a non-contact manner. [Brief description of the drawings]

[0016] [Figure 1] FIG. 2 is a schematic diagram showing an example of a hardware configuration of the optical measurement device according to the present embodiment. [Diagram 2] 10 is a diagram for explaining an example of a processing procedure of the optical measurement method according to the present embodiment. FIG. [Diagram 3] 10 is a diagram for explaining an example of a processing procedure of the optical measurement method according to the present embodiment. FIG. [Figure 4] 10 is a diagram for explaining an example of a processing procedure of the optical measurement method according to the present embodiment. FIG. [Diagram 5] 10 is a diagram for explaining an example of a processing procedure of the optical measurement method according to the present embodiment. FIG. [Figure 6]10 is a diagram for explaining an example of a processing procedure of the optical measurement method according to the present embodiment. FIG. [Figure 7] 10 is a diagram for explaining an example of a processing procedure of the optical measurement method according to the present embodiment. FIG. [Figure 8] 10 is a diagram for explaining an example of a processing procedure of the optical measurement method according to the present embodiment. FIG. [Figure 9] 10 is a flowchart showing an example of a processing procedure related to model generation of the optical measurement method according to the present embodiment. [Figure 10] 10 is a flowchart showing an example of a processing procedure relating to position measurement of a specific point in the optical measurement method according to the present embodiment. [Figure 11] 11A to 11C are diagrams illustrating an example of a schematic matching process of the optical measurement method according to the present embodiment. [Figure 12] 11A and 11B are diagrams illustrating an example of a process for roughly correcting the attitude of the optical measurement method according to the present embodiment. [Figure 13] 11A and 11B are diagrams illustrating a process example of precise attitude correction in the optical measurement method according to the present embodiment. [Figure 14] 11A and 11B are diagrams showing an example of a processing result of precise attitude correction in the optical measurement method according to the present embodiment. [Figure 15] FIG. 2 is a schematic diagram showing an example of a software configuration of the optical measurement device according to the present embodiment. [Figure 16] 11 is a diagram for explaining a point cloud interval of sampling points in the optical measurement method according to the present embodiment. FIG. [Figure 17] 11A and 11B are diagrams showing an example of a search result by the optical measurement method according to the present embodiment. [Figure 18] FIG. 1 is a schematic diagram showing an example of a headlight inspection device. [Figure 19] FIG. 1 is a schematic diagram showing an example of an inspection device for an advanced driver assistance system (ADAS). [Figure 20] 11A and 11B are diagrams for explaining a method of evaluating the uncertainty present in the coordinates of a specific point in the optical measurement method according to the present embodiment.

Embodiments for Carrying Out the Invention

[0017] Embodiments of the present invention will be described in detail with reference to the drawings. For the same or corresponding parts in the drawings, the same reference numerals are given and their descriptions are not repeated.

[0018] The optical measurement method according to this embodiment measures the position in real space of an arbitrary point (hereinafter also referred to as a "specific point") set on an arbitrary measurement object. The specific point is set with reference to the measurement object.

[0019] In this specification, "real space" means an actually existing space in which a coordinate system is predefined.

[0020] <A. Example of Device Configuration> First, an example of the device configuration for realizing the optical measurement method according to this embodiment will be described.

[0021] FIG. 1 is a schematic diagram showing an example of the hardware configuration of an optical measurement apparatus according to this embodiment. Referring to FIG. 1, the optical measurement apparatus 100 includes one or more processors 102, a memory 104, a storage 106, an input unit 108, an output unit 110, a camera interface 112, and a media drive 114.

[0022] The processor 102 reads and executes one or more programs stored in the storage 106 into the memory 104. The processor 102 is composed of, for example, a CPU (Central Processing Unit) or a GPU (Graphics Processing Unit). The processor 102 may include a hard-wired logic circuit such as an FPGA (Field-Programmable Gate Array) or an ASIC (Application Specific Integrated Circuit).

[0023] The memory 104 functions as a working memory for executing programs by the processor 102. The memory 104 is, for example, a dynamic random access memory (DRAM) or a static random access memory (SRAM).

[0024] The storage 106 stores programs (a set of computer-readable instructions) executed by the processor 102 and data necessary for processing. The storage 106 is formed of a non-transitory computer-readable medium such as a hard disk or a flash memory. The storage 106 stores, for example, an operating system (OS) 120, a model generation program 122, a measurement program 124, a model set 126, and a GUI (Graphical User Interface) program 128.

[0025] The operating system 120 includes computer readable instructions for implementing an environment in which the processor 102 executes programs. The model generation program 122 includes computer readable instructions for generating a model 36. The measurement program 124 includes computer readable instructions for measuring the position of a specific point on a measurement object. The model set 126 includes one or more models 36. The GUI program 128 includes computer readable instructions for providing user interaction necessary for processing.

[0026] The input unit 108 accepts a user operation. The input unit 108 may include an input device such as a keyboard or a mouse, or may include a communication interface for receiving a signal or data indicating a user operation from the input device.

[0027] The output unit 110 outputs the results of program execution by the processor 102. The output unit 110 may include an output device such as a display, or may include a communication interface for transmitting information to be output to the output device.

[0028] The camera interface 112 acquires image data from one or more cameras 10. In the optical measurement method according to the present embodiment, since it is only necessary to acquire the three-dimensional point cloud data of the measurement object, the camera interface 112 acquires information for acquiring the three-dimensional point cloud data and / or the three-dimensional point cloud data itself from any device, not limited to the camera 10.

[0029] The media drive 114 reads programs and / or data necessary for processing in the optical measurement device 100 from a non-transitory computer-readable medium (for example, an optical disk 116, etc.) and stores them in the storage 106. Note that the programs and / or data necessary for processing in the optical measurement device 100 may be downloaded from a server device on the network. Also, the model 36 may be appropriately downloaded from a server device on the network.

[0030] In this specification, the "optical measurement device" may be a single device or a collection of multiple devices. Also, some processing may be realized using computing resources such as the cloud.

[0031] <B. Acquisition of three-dimensional point cloud data> In the optical measurement method according to the present embodiment, the three-dimensional point cloud data is information that defines the surface shape of the measurement object or an object having substantially the same shape as the measurement object. The three-dimensional point cloud data includes the coordinates (x, y, z) of each point existing on the surface. The coordinates of each point included in the three-dimensional point cloud data are defined, for example, in a coordinate system based on the camera 10.

[0032] The three-dimensional point cloud data can be obtained by any method. For example, a passive scanning method using a stereo camera may be adopted. Also, an active scanning method such as TOF (Time Of Flight) or triangulation may be adopted. As triangulation methods, active stereo cameras and spatial codes are known. As spatial codes, for example, feature-based matching such as random dots and stripe projection is known. Furthermore, time codes or light cutting (e.g., beam scanning or conveyor) may be adopted.

[0033] Thus, as long as the three-dimensional point cloud data can be obtained, the camera 10 and the imaging method can be of any type. This can reduce the hardware constraints that can be used in the optical measurement method according to this embodiment.

[0034] <C. Overall processing procedure> Next, an example of the optical measurement method according to this embodiment will be described.

[0035] Figures 2 to 8 are diagrams for explaining an example of the processing procedure of the optical measurement method according to this embodiment.

[0036] First, an arbitrary real space 2 is defined, and the coordinate origin 4 of the real space 2 is defined (see Figure 2). The real space 2 is, for example, a space associated with an arbitrary inspection device.

[0037] Next, the camera 10 is placed at an arbitrary position in the real space 2 (see Figure 3). The camera 10 images the measurement object or an object having substantially the same shape as the measurement object to generate three-dimensional point cloud data (hereinafter, also simply referred to as "point cloud data"). At this time, the positional relationship between the placed camera 10 and the coordinate origin 4 is defined.

[0038] Next, an object (hereinafter also referred to as "reference 20") having substantially the same shape as the measurement target is imaged by the camera 10, and three-dimensional point cloud data (hereinafter also referred to as "reference point cloud data 30") of the reference 20 is acquired. The reference point cloud data 30 defines the surface shape of the reference 20 (see FIG. 4).

[0039] 5(A), areas (hereinafter also referred to as "specific areas") used to search for the posture (position and angle, or position) of the measurement object are determined, and three-dimensional point cloud data (hereinafter also referred to as "model point cloud data 32") corresponding to one or more specific areas is extracted from the reference point cloud data 30. That is, from the model point cloud data 32, point cloud data that does not need to be used to search for the measurement object or point cloud data that may become noise in searching for the measurement object is excluded.

[0040] In this way, the optical measurement device 100 determines partial data corresponding to one or more specified specific regions of the reference point cloud data 30 as the model point cloud data 32.

[0041] Furthermore, points to be measured in the reference point cloud data 30 (hereinafter also referred to as "specific points 34") are specified.

[0042] Finally, as shown in FIG. 5(B), the coordinate origin 4, the model point cloud data 32, and information on the specific point 34 are registered as a model 36. The coordinate origin 4 defines the coordinate system of the real space 2. The model point cloud data 32 indicates at least a part of the surface shape of an object (reference 20) that serves as a reference for the measurement target object 40. The information on the specific point 34 includes the coordinates of the specific point 34 in the real space 2. More specifically, the model 36 includes the coordinates p0 (Xp0, Yp0, Zp0) of the specific point 34 in a coordinate system based on the coordinate origin 4 (hereinafter also referred to as the "real space coordinate system").

[0043] Next, in the actual measurement, the camera 10 captures an image of the measurement object 40, and point cloud data of the measurement object 40 (hereinafter also referred to as "scene point cloud data 50") is generated (see FIG. 6). Note that the position of the camera 10 in the real space 2 (i.e., the positional relationship between the placed camera 10 and the coordinate origin 4) is assumed to be the same as when the model 36 was registered.

[0044] The optical measurement device 100 searches for a posture of the model point cloud data 32 that is most similar to the scene point cloud data 50 acquired from the measurement target object 40 (see FIG. 7). In other words, the model point cloud data 32 (or the real space coordinate system defined in the model 36) is translated and / or rotated so as to match with the scene point cloud data 50.

[0045] For ease of explanation, Fig. 7 shows an example in which the model point cloud data 32 is translated, but the position and angle of the model point cloud data 32 may be changed in any way. In this manner, point cloud data that is most similar to the model point cloud data 32 of the model 36 is searched for from the scene point cloud data 50. In the example shown in Fig. 7, by moving the coordinate origin 4 of the model 36 to the coordinate origin 6, the model point cloud data 32 and the point cloud data included in the scene point cloud data 50 become most similar.

[0046] 8, the coordinates of the specific point 44 (point corresponding to the specific point 34) of the measurement object 40 are calculated based on information of the state in which the model point cloud data 32 of the model 36 and the point cloud data included in the scene point cloud data 50 are most similar. That is, the optical measurement device 100 calculates the coordinates corresponding to the specific point 44 of the measurement object 40 based on the retrieved orientation.

[0047] More specifically, the coordinates of a specific point 34 of the model 36 are converted based on the positional relationship between the real space 2 (real space coordinate system) in which the model 36 was acquired and the space that is most similar to the point cloud data contained in the scene point cloud data 50 (a coordinate system based on the coordinate origin 6 (hereinafter also referred to as the "scene coordinate system")), thereby calculating the coordinates in the real space 2 of a specific point 44 of the measurement object 40.

[0048] A specific example of a procedure for calculating the coordinates in the real space 2 of the specific point 44 of the measurement object 40 will be described.

[0049] In the above-described search, a homogeneous transformation matrix Hpose is calculated for transforming a real space coordinate system based on the coordinate origin 4 into a scene coordinate system based on the coordinate origin 6. Here, the homogeneous transformation matrix Hpose is as follows.

[0050] Hpose=[TransX,TransY,TransZ,RotX,RotY,RotZ] The rotation follows the YPR (Yaw Pitch Roll) Convention.

[0051] The homogeneous transformation matrix Hpose can also be separated into a translation matrix H(T) and a rotation matrix H(R) as shown below.

[0052]

number

[0053] The coordinates of the specific point 44 of the measurement object 40 in the real space coordinate system are calculated by translating and rotating the specific point 34 of the model 36 using the homogeneous transformation matrix. Since the model point cloud data 32 and the point cloud data included in the scene point cloud data 50 are most similar in the scene coordinate system, the coordinates after the coordinate transformation will match the coordinates of the specific point 44 of the measurement object 40. In other words, the coordinates of the specific point 34 of the model 36 are mapped to the scene coordinate system using the homogeneous transformation matrix, thereby calculating the coordinates of the specific point 44 of the measurement object 40.

[0054] More specifically, the coordinates p (Xp, Yp, Zp) of the specific point 44 of the measurement object 40 are calculated from the coordinates (Xp0, Yp0, Zp0) of the specific point 34 of the model 36 according to the conversion formula shown below.

[0055]

number

[0056] In addition, when there is a difference (translation) between the coordinate origin 4 of the real space 2 when generating the model 36 and the coordinate origin of the real space from which the scene point group data 50 is acquired, the coordinates may be corrected reflecting the said difference.

[0057] For example, assuming the difference in the coordinate origin is Offset[OffsetX, OffsetY, OffsetZ], the coordinates p(Xp, Yp, Zp) of the specific point 44 of the measurement object 40 are calculated from the coordinates (Xp0, Yp0, Zp0) of the specific point 34 of the model 36 according to the conversion formula shown below.

[0058]

Equation

[0059] <D. Processing Procedure> Next, an example of the processing procedure of the optical measurement method according to the present embodiment will be described.

[0060] (d1: Model Generation) FIG. 9 is a flowchart showing an example of the processing procedure related to model generation of the optical measurement method according to the present embodiment. Each step shown in FIG. 9 may be realized by one or a plurality of processors 102 of the optical measurement device 100 executing a model generation program 122 (FIG. 1).

[0061] Referring to FIG. 9, the optical measurement device 100 receives the definition of the real space 2 and the definition of the coordinate origin 4 of the real space 2 (step S100). Subsequently, the optical measurement device 100 acquires the reference point group data 30 of the reference 20 (step S102).

[0062] The optical measurement device 100 accepts the designation of one or more specific regions for the acquired reference point cloud data 30 (step S104), and also accepts the designation of a specific point (step S106). The optical measurement device 100 extracts model point cloud data 32 from the reference point cloud data 30 in response to the designation of one or more specific regions (step S108). Then, the optical measurement device 100 registers a data set including the model point cloud data 32, the coordinates of the specific point 34, and the coordinate origin 4 as a model 36 (step S110). With the above, the process of registering one model 36 is completed.

[0063] When multiple models 36 are registered, the process shown in FIG.

[0064] (d2: Position measurement of specific points) Fig. 10 is a flowchart showing an example of a processing procedure related to position measurement of a specific point in the optical measurement method according to the present embodiment. Each step shown in Fig. 10 may be realized by one or more processors 102 of the optical measurement device 100 executing the measurement program 124 (Fig. 1).

[0065] 10, the optical measurement device 100 acquires a model 36 corresponding to the measurement object 40 (step S200). The optical measurement device 100 acquires scene point cloud data 50 of the measurement object 40 (step S202). Next, the optical measurement device 100 searches for a posture of the model point cloud data 32 that is most similar to the scene point cloud data 50 acquired from the measurement object 40. That is, the optical measurement device 100 searches for a portion that is most similar to the model point cloud data 32 from the scene point cloud data 50 (surface matching).

[0066] Here, the optical measurement device 100 may use thinned data of the scene point cloud data 50 and thinned data of the model point cloud data 32 to search for the pose of the model point cloud data 32 that is most similar to the scene point cloud data 50 (approximate matching and sparse pose refinement described below).

[0067] First, the optical measurement device 100 performs rough matching. FIG. 11 is a diagram showing an example of the outline matching process of the optical measurement method according to the present embodiment.

[0068] Specifically, the optical measurement device 100 extracts scene sample points to be used for rough matching from the scene point cloud data 50 according to the specified point cloud interval (step S204), and excludes points determined to be noise components (step S206). Furthermore, the optical measurement device 100 sets a specified ratio of points among the scene sample points from which the noise components have been excluded as key points (step S208).

[0069] The left diagram in FIG. 11A shows an example of scene point cloud data 50, and the right diagram in FIG. 11A shows an example of scene sample points and key points extracted from the scene point cloud data 50.

[0070] Furthermore, the optical measurement device 100 extracts model sample points to be used for rough matching from the model point cloud data 32 in accordance with the specified point cloud interval (step S210).

[0071] The left diagram in FIG. 11B shows an example of the model point cloud data 32, and the right diagram in FIG. 11B shows an example of model sample points extracted from the model point cloud data 32.

[0072] The order of steps S204 to S208 and step S210 does not matter, and the two steps may be executed in parallel.

[0073] Then, the optical measurement device 100 executes a matching process between the key points set in the scene point cloud data 50 and the model sample points extracted from the model point cloud data 32 (step S212).

[0074] The left diagram in FIG. 11C shows an example of key points extracted from the scene point cloud data 50, and the right diagram in FIG. 11C shows an example of model sample points extracted from the model point cloud data 32.

[0075] In the matching process, the optical measurement device 100 sequentially updates the orientations (positions and angles, or positions) of the model point cloud data 32 (model sample points) and calculates the similarity for each orientation to search for an orientation with high similarity. The optical measurement device 100 determines a predetermined number (e.g., nine) of orientations in descending order of similarity as matching candidate orientations (step S214). In this way, the optical measurement device 100 may extract a predetermined number of matching candidates (orientation candidates) in descending order of similarity between the scene point cloud data 50 and the model point cloud data 32.

[0076] Next, the optical measurement device 100 performs a coarse attitude correction. Specifically, the optical measurement device 100 selects one of the determined matching candidates (step S216), and corrects the pose of the matching candidate (step S218) based on the selected pose so as to minimize the error between the key points set in the scene point cloud data 50 (step S208) and the model sample points extracted from the model point cloud data 32 (step S210).

[0077] Fig. 12 is a diagram showing an example of the process of general pose correction in the optical measurement method according to the present embodiment. The left diagram of Fig. 12 shows an example of key points extracted from the scene point cloud data 50, and the right diagram of Fig. 12 shows an example of model sample points (after pose correction) extracted from the model point cloud data 32.

[0078] It is determined whether or not all of the determined matching candidates have been selected (step S220), and if any of the determined matching candidates remain unselected (NO in step S220), the processes from step S216 onwards are repeated.

[0079] If all of the determined matching candidates have been selected (YES in step S220), the general pose correction ends. Each of the poses of the matching candidates is corrected by the general pose correction.

[0080] Finally, the optical metrology tool 100 performs dense pose refinement.

[0081] Specifically, one of the revised matching candidates is selected (step S222), and the pose of the matching candidate is further revised based on the selected pose so as to minimize the error between the scene point cloud data 50 and the model point cloud data 32 (step S224).

[0082] Fig. 13 is a diagram showing an example of a process of precise attitude correction in the optical measurement method according to the present embodiment. The left diagram of Fig. 13 shows an example of scene point cloud data 50, and the right diagram of Fig. 13 shows an example of model point cloud data 32.

[0083] It is determined whether or not all of the revised matching candidates have been selected (step S226), and if any of the revised matching candidates remain unselected (NO in step S226), the processes from step S222 onwards are repeated.

[0084] If all of the post-refinement matching candidates have been selected (YES in step S226), the precise attitude refinement ends.

[0085] 14 is a diagram showing an example of a processing result of precise attitude correction in the optical measurement method according to the present embodiment. As shown in FIG.

[0086] After executing the precise pose correction, the optical measurement device 100 outputs the pose and similarity for each matching candidate (step S228). The pose may be output in the form of a homogeneous transformation matrix Hpose, and the similarity may be output in the form of a score.

[0087] For example, the score = (the number of corresponding (matching) model point cloud data 32 among the scene point cloud data 50) / (the total number of model point cloud data 32 included in the model 36) can be calculated. That is, the ratio of the number corresponding to the scene point cloud data 50 among the total number of model point cloud data 32 may be calculated as the score. In this case, the score takes a value in the range of 0 to 1.

[0088] Subsequently, the optical measurement device 100 executes a uniqueness determination process. Specifically, the optical measurement device 100 determines whether there is uniqueness based on the similarity for each matching candidate (step S230).

[0089] When it is determined that there is uniqueness (YES in step S230), the optical measurement device 100 calculates the coordinates of the specific point 44 of the measurement object 40 based on the pose of the matching candidate with the highest similarity and the coordinates of the specific point 34 of the model 36 (step S232), and outputs the calculated coordinates of the specific point 44 of the measurement object 40 (step S234). That is, the optical measurement device 100 calculates the coordinates corresponding to the specific point 44 of the measurement object 40 based on the retrieved pose. Then, the process ends.

[0090] On the contrary, when it is determined that there is no uniqueness (NO in step S230), the optical measurement device 100 outputs information indicating that there is no uniqueness (step S236). Then, the process ends.

[0091] <E. Software Configuration> FIG. 15 is a schematic diagram showing an example of the software configuration of the optical measurement apparatus according to the present embodiment. The software configuration example shown in FIG. 15 may be realized, for example, by one or a plurality of processors 102 of the optical measurement apparatus 100 executing a model generation program 122 and a measurement program 124 (both shown in FIG. 1).

[0092] Referring to FIG. 15, the optical measurement apparatus 100 includes, for example, a model generation unit 150, a model holding unit 152, a search unit 154, and a coordinate calculation unit 156.

[0093] The model generation unit 150 corresponds to the generation unit, acquires the reference point cloud data 30 of the reference 20, and generates a model 36 according to a user operation or the like.

[0094] The model holding unit 152 corresponds to the holding unit or the acquisition unit, and holds the model 36 generated by the model generation unit 150 and / or the model 36 acquired from a server device or the like.

[0095] The search unit 154 searches for the posture of the model point cloud data 32 included in the model 36 so as to be most similar to the scene point cloud data 50 of the measurement object 40. The posture searched by the search unit 154 may be output as it is.

[0096] The coordinate calculation unit 156 corresponds to the calculation unit, and calculates the coordinates of the specific point 44 of the measurement object 40 based on the posture searched by the search unit 154.

[0097] <F. Optimization of Point Cloud Interval of Sample Points> Next, optimization of the point cloud interval of the sample points extracted from the model point cloud data 32 and the scene point cloud data 50 will be described.

[0098] As described above, in the rough matching, model sample points and scene sample points are used that are extracted by thinning out the model point cloud data 32 and the scene point cloud data 50 at a specified point cloud interval. The point cloud interval for extracting these sample points will be described below.

[0099] The reason for using model sample points and scene sample points for matching is to shorten the time required for search (matching execution time). By thinning out the point cloud data at point cloud intervals, the number of points to be searched is reduced, and the time required for search can be shortened.

[0100] Fig. 16 is a diagram for explaining the point cloud interval of the sampling points in the optical measurement method according to the present embodiment. Fig. 16 shows an example of the coordinate shift amount (logarithmic scale) and matching execution time when the point cloud interval is changed. The point cloud interval indicates an arbitrarily normalized distance. The coordinate shift amount indicates the difference (XYZ axis components) between the position of the specific point 44 provisionally measured by rough matching and the position of the specific point 44 finally determined.

[0101] 16, as an example, the initial value of the point cloud interval is 0.01. Note that the coordinate shift amount at the initial value of the point cloud interval is zero, and is therefore omitted from the illustration.

[0102] 16, the point cloud interval can be optimized based on, for example, the time required for search (matching execution time) and the difference in position of specific point 44 (i.e., the amount of correction due to coarse attitude correction and precise attitude correction). In the example shown in FIG 16, the point cloud interval may be set in the range of 0.05 to 0.15.

[0103] The point cloud interval may be determined by focusing only on the time required for search, or by focusing only on the difference in the positions of the specific points 44 .

[0104] It should be noted that the point cloud intervals for extracting the model sample points and the scene sample points do not have to be the same.

[0105] In the position measurement of specific points (Fig. 10), the point group interval may be specified in advance or set each time. Also, the value of the optimized point group interval may be included in the corresponding model 36.

[0106] <G. Uniqueness determination process> Next, a processing example of the uniqueness determination process (step S230) in the optical measurement method according to the present embodiment will be described.

[0107] In the uniqueness determination process, it is determined whether the position of the point group data most similar to the model point group data 32 in the scene point group data 50 is uniquely determined. To determine this uniqueness, it is determined whether the similarity of the searched part as the most similar is prominent compared to the similarities of other parts. That is, the optical measurement device 100 evaluates the uniqueness of the most similar matching candidate among a predetermined number of matching candidates (pose candidates) with respect to other matching candidates.

[0108] Fig. 17 is a diagram showing an example of a search result by the optical measurement method according to the present embodiment. In Fig. 17, as an example, eight matching candidates are shown.

[0109] In the uniqueness determination process, the similarity (score) for each searched matching candidate is statistically evaluated. For the statistical evaluation, for example, the interquartile range can be used.

[0110] More specifically, the third quartile is calculated from the similarities of all the searched matching candidates. Then, the determination threshold value calculated from the calculated third quartile is compared with the similarity of the first-ranked matching candidate. If the similarity of the first-ranked matching candidate is greater than the determination threshold value, it can be determined that there is uniqueness in the search result.

[0111] The following shows an example of the result of arranging the similarities of nine matching candidates in ascending order.

[0112]

Table 1

[0113] According to the above table, each value can be calculated as follows. · First quartile Q1 (25%) = 0.127 · Median Q2 = 0.148 · Third quartile Q3 (75%) = 0.300 Here, if the outlier determination threshold is set to "Q3 + (Q3 - Q1) × 1.5", the determination threshold can be calculated as 0.560.

[0114] The similarity of the matching candidate No. 9 is 0.618, which is greater than the outlier determination threshold of 0.560. Therefore, it can be determined that there is uniqueness (i.e., it corresponds to an outlier).

[0115] Note that for the set of matching candidates in which the matching candidate with the highest similarity is searched, other known methods may be used to determine whether there is uniqueness.

[0116] <H. Application Example> Next, an application example of the optical measurement method according to the present embodiment will be described. Note that the optical measurement method according to the present embodiment is not limited to the applications described below and can be used for any application.

[0117] FIG. 18 is a schematic diagram showing an example of a headlight inspection device. Referring to FIG. 18, the headlight inspection device 200 inspects the irradiation direction and brightness of the vehicle's headlight. At this time, it is necessary to adjust the optical axis of the vehicle's headlight. In adjusting the optical axis of the headlight, it is necessary to obtain a reference position specified in advance on the lens of the headlight.

[0118] As a method for obtaining a reference position, there is a method of regarding the center of gravity of the luminance distribution of the light emitted by the headlight as the reference position. In this method, when the headlight has a large number of light sources, the reference position determined from the center of gravity of the luminance distribution may not match the original reference position preset in the headlight.

[0119] In addition, due to the temporal change in the luminance distribution of light and the individual differences in manufacturing of the components constituting the headlight, etc., the stability of the reference position determined from the center of gravity of the luminance distribution may be reduced.

[0120] On the other hand, by using the optical measurement method according to the present embodiment, the reference position can be obtained based on the surface shape of the headlight instead of the luminance distribution of light.

[0121] FIG. 19 is a schematic diagram showing an example of an inspection apparatus for an advanced driver assistance system. Referring to FIG. 19, at the time of inspection, the position relationship between the fixed inspection apparatus 210 and the vehicle (reference position 220) is adjusted using the alignment apparatus 212. The alignment apparatus 212 adjusts the vehicle in a direction orthogonal to the traveling direction of the vehicle (left - right direction). However, since the alignment apparatus 212 aligns the vehicle with the tire surface as the adjustment surface, there may be a case where the tire cannot be regarded as a rigid body, so there is also a possibility that the position relationship between the inspection apparatus 210 and the vehicle is not properly adjusted.

[0122] On the other hand, by using the optical measurement method according to the present embodiment, since the reference position can be obtained based on the surface shape of the vehicle, the position relationship between the inspection apparatus 210 and the vehicle can be properly adjusted, and thereby, the inspection itself can also be properly performed.

[0123] As described above, the optical measurement method according to the present embodiment can accurately and generally measure the position in the real space of the inspection facility and the position in the real space of the vehicle to be inspected, so it is applicable to various inspection processes of the vehicle.

[0124] <I. Modification Example> The above-described embodiment can be modified in various ways.

[0125] (i1: Uncertainty in the coordinates of a particular point) The three-dimensional point cloud data of the measurement target 40 includes uncertainty due to measurement fluctuations, etc. As a result, there is uncertainty in the positions (coordinates) of the measured specific points. Therefore, a process for evaluating the uncertainty present in the coordinates of the measured specific points may be executed.

[0126] FIG. 20 is a diagram for explaining a method of evaluating the uncertainty present in the coordinates of a specific point in the optical measurement method according to the present embodiment.

[0127] 20, after acquiring scene point cloud data 50 of the measurement object 40, a plurality of scene point cloud data 50A are randomly generated based on the uncertainty value present at each point included in the scene point cloud data 50. More specifically, one or a plurality of points included in the scene point cloud data 50 are selected, and the coordinates of each selected point are randomly corrected according to a normal distribution of the uncertainty value, thereby generating a plurality of scene point cloud data 50A.

[0128] By executing the above-mentioned specific point position measurement process for the multiple scene point cloud data 50A, the coordinates of the specific point 44 are determined for each scene point cloud data 50A.

[0129] The standard deviation for a plurality of coordinates of the determined specific point 44 may be calculated, and the calculated standard deviation may be output as the uncertainty existing in the position of the specific point 44 .

[0130] In this way, the optical measurement device 100 generates multiple scene point cloud data 50A from the scene point cloud data 50, reflecting the uncertainty present in the scene point cloud data 50, calculates coordinates corresponding to the specific point 44 from each of the multiple generated scene point cloud data 50A, and calculates the uncertainty present in the calculated coordinates based on the variance of the calculated coordinates.

[0131] By calculating such uncertainty, the accuracy of the position of the specific point 44 can be evaluated.

[0132] (i2: Model generation and serving) Although an example of a process for generating the model 36 using three-dimensional point cloud data (reference point cloud data 30) of the reference 20 has been described, the model 36 may be generated by simulation using CAD (Computer Aided Design) data or the like without preparing an actual reference 20. In this case, three-dimensional point cloud data generated by placing an object corresponding to the reference 20 in a virtual space and virtually capturing the image can be used.

[0133] In this case, the coordinate origin 4 of the real space 2 required for the model 36 can be obtained by defining the positional relationship between the real space and the virtual space in advance.

[0134] In this way, since the model 36 can be prepared without actually using the reference 20, it is possible to deal with various measurement objects 40.

[0135] Furthermore, a plurality of models 36 prepared in advance may be stored in a server device or the like, and may be downloaded as necessary by each of the plurality of optical measurement devices 100. By the server device appropriately providing the plurality of models 36 to each of the optical measurement devices 100, even a user who does not have prior knowledge for generating the models 36 can easily use the optical measurement device 100.

[0136] (i3: Search process) In the above description, a processing example has been shown in which the model point cloud data 32 is translated and rotated to search for a posture most similar to the scene point cloud data 50, but the model point cloud data 32 may be translated only to search for a posture most similar to the scene point cloud data 50. When translation and rotation are performed, a homogeneous transformation matrix including a translation matrix and a rotation matrix is ​​calculated. On the other hand, when translation is performed, a translation matrix is ​​calculated. In this way, in the processing of searching for the posture of the model point cloud data 32 most similar to the scene point cloud data 50, the model point cloud data 32 may be translated only.

[0137] For example, in cases where it is guaranteed that the measurement object 40 will not rotate, the search time can be shortened.

[0138] Furthermore, even if the measurement object 40 can rotate, the position of a specific point on the measurement object 40 can be measured more accurately by acquiring three-dimensional point cloud data using multiple cameras 10, performing a search using each model 36, and integrating the results of each search.

[0139] (i4: Output of homogeneous transformation matrix) An example of a process for outputting the coordinates of a specific point 44 on the measurement object 40 has been described, but in addition to or instead of the coordinates of the specific point 44, a homogeneous transformation matrix (or a translation matrix and / or a rotation matrix) may be output.

[0140] The homogeneous transformation matrix indicates the deviation of the measurement object 40 from the reference position, and the information on the deviation is also useful in an inspection device, etc. Therefore, the calculated homogeneous transformation matrix (or the translation matrix and / or the rotation matrix) may be added to the inspection result of the inspection device.

[0141] Thus, the optical measurement method according to this embodiment includes, in addition to the process of outputting the coordinates of a specific point 44 on the measurement object 40, a process of outputting the calculated homogeneous transformation matrix (or a translation matrix and / or a rotation matrix).

[0142] <Advantages> According to the optical measurement method according to this embodiment, the position of a specific point in the real space can be measured optically and non-contact. The shape of the measurement object may be any shape. Further, even when the measurement object can rotate, the position of the specific point in the real space can be measured.

[0143] As a method for measuring the position in the real space, for example, there is a method of physically contacting a probe or the like with the measurement object, but it cannot be applied to a measurement object that cannot be contacted from the viewpoint of quality or the like. In contrast, according to the optical measurement method according to this embodiment, since the measurement can be performed non-contact, there is no such restriction.

[0144] Further, as a method for measuring the position in the real space, there is a method using pattern matching of a two-dimensional image, but there is a problem that it is vulnerable to noise and it is difficult to perform stable measurement. Further, since the size and angle do not necessarily match between the measurement object and the template, it is necessary to prepare a plurality of templates in order to improve the robustness. In contrast, according to the optical measurement method according to this embodiment, by translating and / or rotating the model, the position and / or angle of the model most similar to the scene is searched, so that stable measurement can be performed and it is not necessary to prepare a plurality of models.

[0145] Further, there is also a method of arranging a marker or the like on the measurement object and calculating the positional relationship from the image data captured by a plurality of cameras. In this method, it is necessary to arrange a marker or the like. In contrast, according to the optical measurement method according to this embodiment, it is only necessary to prepare a model, and it is not necessary to arrange a marker or the like on the measurement object.

[0146] Further, there is also a method of measuring a specific point using a laser, ultrasonic wave, or the like. In this method, in order to accurately measure the position, it is necessary to arrange a plurality of sensors or the like, and complicated data processing is required for the outputs of the plurality of sensors. In contrast, according to the optical measurement method according to this embodiment, highly accurate measurement is possible in a short time.

[0147] The embodiments disclosed herein should be considered to be illustrative and not restrictive in all respects. The scope of the present invention is defined by the claims, not the above description, and is intended to include all modifications within the scope and meaning equivalent to the claims. [Explanation of symbols]

[0148] 2 real space, 4,6 coordinate origin, 10 camera, 20 reference, 30 reference point cloud data, 32 model point cloud data, 34,44 specific point, 36 model, 40 measurement object, 50,50A scene point cloud data, 100 optical measurement device, 102 processor, 104 memory, 106 storage, 108 input section, 110 output section, 112 camera interface, 114 media drive, 116 optical disk, 120 operating system, 122 model generation program, 124 measurement program, 126 model set, 128 program, 150 model generation section, 152 model holding section, 154 search section, 156 coordinate calculation section, 200 headlight inspection device, 210 inspection device, 212 facing device, 220 reference position.

Claims

1. a storage unit that stores a model including a definition of a coordinate system of a real space, model point cloud data indicating a surface shape of an object that is a reference for a measurement target, and coordinates of specific points in the real space; a search unit that searches for a posture of the model point cloud data that is most similar to the three-dimensional point cloud data acquired from the measurement object; a calculation unit that calculates coordinates corresponding to the specific point of the measurement object based on the retrieved orientation.

2. The optical measurement device according to claim 1 , wherein the search unit searches for a posture that is most similar to the three-dimensional point cloud data by translating and rotating the model point cloud data.

3. The optical measurement device according to claim 1 , wherein the search unit searches for a posture most similar to the three-dimensional point cloud data by using data obtained by thinning out the model point cloud data and data obtained by thinning out the model point cloud data.

4. The optical measurement device according to claim 1 , wherein the search unit extracts a predetermined number of pose candidates in descending order of similarity between the three-dimensional point cloud data and the model point cloud data.

5. The optical measurement device according to claim 4 , wherein the search unit evaluates uniqueness of a pose candidate with the highest similarity from among the predetermined number of pose candidates with respect to other pose candidates.

6. 2. The optical measurement device according to claim 1, further comprising a model generation unit that determines, as the model point cloud data, partial data corresponding to one or more specified regions in three-dimensional point cloud data acquired from an object that is a reference for the measurement object.

7. The search unit is generating a plurality of three-dimensional point cloud data from the three-dimensional point cloud data, while reflecting uncertainties present in the three-dimensional point cloud data; Calculating coordinates corresponding to the specific point from each of the generated plurality of three-dimensional point cloud data; The optical measurement device according to claim 1 , further comprising: a calculation unit that calculates an uncertainty present in the calculated coordinates based on a variation in the calculated coordinates.

8. A step of acquiring a model including a definition of a coordinate system of a real space, model point cloud data indicating a surface shape of an object serving as a reference for a measurement target, and coordinates of specific points in the real space; searching for a posture of the model point cloud data that is most similar to the three-dimensional point cloud data acquired from the measurement object; and calculating coordinates corresponding to the specific point of the measurement object based on the retrieved orientation.

9. On the computer, A step of acquiring a model including a definition of a coordinate system of a real space, model point cloud data indicating a surface shape of an object serving as a reference for a measurement target, and coordinates of specific points in the real space; searching for a posture of the model point cloud data that is most similar to the three-dimensional point cloud data acquired from the measurement object; and calculating coordinates corresponding to the specific point of the measurement object based on the retrieved orientation.

Citation Information

Patent Citations

  • Road sign display device

    JP2015191281A

  • Measuring device

    JP2021076532A

  • Alignment device, alignment system, alignment method and program

    JP2022024965A

  • Device for adjusting parameter, robot system, method, and computer program

    WO2022107684A1

  • Method and device for estimating position and posture of three-dimensional object

    JP2018189510A