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

WO2024190579A1PCT designated stage expired Publication Date: 2024-09-19OTSUKA MECHATRONICS CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/JP2024/008655
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-13
Filing Date
2024-03-07
Publication Date
2024-09-19

Smart Images

  • Figure JP2024008655_19092024_PF_FP_ABST
    Figure JP2024008655_19092024_PF_FP_ABST
Patent Text Reader

Abstract

The present invention provides a technique for measuring the position of a specific point set to an object to be measured. The optical measurement device comprises: an acquisition unit for acquiring a model that includes a definition of a coordinate system of a real space, model point cloud data indicating the surface shape of an object serving as a reference for an object to be measured, and the coordinates of a specific point in the real space; a search unit for searching the posture of the model point cloud data most similar to three-dimensional point cloud data acquired from the object to be measured; and a calculation unit for calculating, on the basis of the retrieved posture, coordinates corresponding to the specific point of the object to be measured.
Need to check novelty before this filing date? Find Prior Art

Description

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

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

[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 the recognition of the position and orientation of a target object. Furthermore, Japanese Patent Application Laid-Open No. 2018-189510 (Patent Document 2) discloses a configuration that can recognize objects in a three-dimensional scene at higher speed.

[0003] Japanese Patent Publication No. 2022-042103 Japanese Patent Publication No. 2018-189510

[0004] The above-mentioned prior art recognizes the position and orientation of the entire object with reference to 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.

[0006] (Configuration 1) An optical measurement device according to one aspect of the present invention includes a storage unit that stores a model including a definition of a coordinate system in real space, model point cloud data that indicates the surface shape of an object that serves as 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 the 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 translate and rotate the model point cloud data to search for a posture that is most similar to the three-dimensional point cloud data.

[0008] (Configuration 3) In configuration 1 or 2, the search unit may search for a posture that is most similar to the three-dimensional point cloud data 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 the most similar pose candidate among the predetermined number of pose candidates with respect to the other pose candidates.

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

[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 the uncertainty present in the three-dimensional point cloud data, calculate coordinates corresponding to a specific point from each of the multiple generated three-dimensional point cloud data, and calculate the uncertainty present in the calculated coordinates based on the variance of the calculated coordinates.

[0013] (Configuration 8) An optical measurement method according to another aspect of the present invention includes 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 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 acquired from the measurement object; and calculating coordinates corresponding to the specific point of the measurement object based on the orientation found.

[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 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 acquired from the measurement object; and calculating coordinates corresponding to the specific point of the measurement object based on the orientation found.

[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.

[0016] FIG. 1 is a schematic diagram showing an example of a hardware configuration of an optical measurement apparatus according to the present embodiment. FIG. 2 is a diagram for explaining an example of a processing procedure of an optical measurement method according to the present embodiment. FIG. 3 is a diagram for explaining an example of a processing procedure of the optical measurement method according to the present embodiment. FIG. 4 is a diagram for explaining an example of a processing procedure of the optical measurement method according to the present embodiment. FIG. 5 is a diagram for explaining an example of a processing procedure of the optical measurement method according to the present embodiment. FIG. 6 is a diagram for explaining an example of a processing procedure of the optical measurement method according to the present embodiment. FIG. 7 is a diagram for explaining an example of a processing procedure of the optical measurement method according to the present embodiment. FIG. 8 is a flowchart showing an example of a processing procedure related to model generation in the optical measurement method according to the present embodiment. FIG. 9 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. FIG. 10 is a diagram showing an example of a processing example of outline matching in the optical measurement method according to the present embodiment. FIG. 11 is a diagram showing an example of a processing example of outline attitude correction in the optical measurement method according to the present embodiment. FIG. 12 is a diagram showing an example of a processing example of fine attitude correction in the optical measurement method according to the present embodiment. FIG. 13 is a diagram showing an example of a processing result of fine attitude correction in the optical measurement method according to the present embodiment. FIG. 14 is a schematic diagram showing an example of a software configuration of an optical measurement apparatus according to the present embodiment. FIG. 15 is a diagram for explaining a point cloud interval of sampling points in the optical measurement method according to the present embodiment. FIG. 16 is a diagram showing an example of a search result by the optical measurement method according to the present embodiment. FIG. 17 is a schematic diagram showing an example of a headlight inspection apparatus. 1 is a schematic diagram showing an example of an inspection device for an Advanced Driver Assistance System (ADAS), and is a diagram for explaining a method for evaluating uncertainty present in the coordinates of a specific point in the optical measurement method according to the present embodiment.

[0017] DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described in detail with reference to the accompanying drawings, in which the same or corresponding parts are designated by the same reference numerals and will not be described repeatedly.

[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 based on the measurement object.

[0019] In this specification, "real space" means a space that actually exists and has a predefined coordinate system.

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

[0021] 1 is a schematic diagram showing an example of the hardware configuration of an optical measurement device according to the present embodiment. Referring to FIG. 1, the optical measurement device 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 loads one or more programs stored in the storage 106 into the memory 104 and executes them. The processor 102 is composed of, for example, a central processing unit (CPU) or a graphics processing unit (GPU). The processor 102 may also include a hardwired logic circuit such as a field-programmable gate array (FPGA) or an application-specific integrated circuit (ASIC).

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

[0024] The storage 106 stores programs (sets of computer-readable instructions) executed by the processor 102 and data required for processing. The storage 106 is formed of a non-transitory computer-readable medium such as a hard disk or 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 user operations. The input unit 108 may include input devices such as a keyboard or a mouse, or may include a communication interface for receiving signals or data indicating user operations from the input devices.

[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, it is sufficient to acquire three-dimensional point cloud data of the measurement object, and therefore the camera interface 112 acquires information for acquiring 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 out the program and / or data required for processing by the optical measurement device 100 from a non-transitory computer-readable medium (for example, an optical disk 116), and stores it in the storage 106. The program and / or data required for processing by the optical measurement device 100 may be downloaded from a server device on the network. The model 36 may also be downloaded as needed from a server device on the network.

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

[0031] <B. Acquisition of Three-Dimensional Point Cloud Data> In the optical measurement method according to this 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 that exists 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 3D point cloud data may be acquired by any method. For example, a passive scanning method using a stereo camera may be employed. Alternatively, an active scanning method such as TOF (Time Of Flight) or triangulation may be employed. As triangulation, an active stereo camera and a spatial code are known. As spatial code, for example, feature-based matching such as random dots and stripe projection is known. Furthermore, a time code or optical section (for example, a beam scan or a conveyor) may be employed.

[0033] In this way, any camera 10 and imaging method may be used as long as three-dimensional point cloud data can be acquired, thereby reducing restrictions on the hardware 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 the present embodiment will be described.

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

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

[0037] Next, a camera 10 is placed at an arbitrary position in real space 2 (see FIG. 3). The camera 10 captures an image of the measurement target or an object having substantially the same shape as the measurement target, and generates three-dimensional point cloud data (hereinafter 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] 5A, areas (hereinafter also referred to as "specific areas") used to search for the orientation (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. In other words, 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 the search for the measurement object is excluded from the model point cloud data 32.

[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 designated.

[0042] 5B , 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 portion of the surface shape of an object (reference 20) that serves as a reference for the measurement 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 actual measurement, the camera 10 captures an image of the measurement object 40, thereby generating point cloud data of the measurement object 40 (hereinafter also referred to as "scene point cloud data 50") (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 the orientation of the model point cloud data 32 that is most similar to the scene point cloud data 50 acquired from the measurement 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 way, 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 on 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 specific points 34 of model 36 are converted based on the positional relationship between the real space 2 (real space coordinate system) in which model 36 was acquired and the space that is most similar to the point cloud data contained in scene point cloud data 50 (a coordinate system based on coordinate origin 6 (hereinafter also referred to as the "scene coordinate system")), thereby calculating the coordinates in real space 2 of specific points 44 of 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 the 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] Note that 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]

[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 a homogeneous transformation matrix. In the scene coordinate system, the model point cloud data 32 and the point cloud data included in the scene point cloud data 50 are most similar, so the coordinates after 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 onto the scene coordinate system using a 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 following conversion formula.

[0055]

[0056] In addition, if there is a difference (parallel shift) 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 cloud data 50 was acquired, the coordinates may be corrected to reflect this difference.

[0057] For example, if 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]

[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 a processing procedure for model generation of the optical measurement method according to the present embodiment. Each step shown in Fig. 9 may be realized by one or more processors 102 of the optical measurement device 100 executing the model generation program 122 (Fig. 1).

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

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

[0063] When a plurality of models 36 are to be registered, the process shown in FIG. 9 is repeated a number of times equal to the number of models 36.

[0064] (d2: Position measurement of specific point) 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 the orientation 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 the portion of the scene point cloud data 50 that is most similar to the model point cloud data 32 (surface matching).

[0066] Here, the optical measurement device 100 may use thinned data from the scene point cloud data 50 and thinned data from 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 apparatus 100 executes rough matching. Fig. 11 is a diagram showing an example of the rough 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 percentage of 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 execution of steps S204 to S208 and step S210 does not matter, and the two processes 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 a 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 rough pose 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) using the selected pose as a reference 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 this 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 all of the determined matching candidates have been selected (step S220), and if there are any determined matching candidates that have not been selected (NO in step S220), the processing from step S216 onwards is repeated.

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

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

[0081] Specifically, one of the modified matching candidates is selected (step S222), and the posture of the matching candidate is further modified using the selected posture as a reference so as to minimize the error between the scene point cloud data 50 and the model point cloud data 32 (step S224).

[0082] 13 is a diagram showing an example of processing for 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 all of the revised matching candidates have been selected (step S226), and if there are any revised matching candidates that have not been selected (NO in step S226), the processing from step S222 onwards is repeated.

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

[0085] 14 is a diagram showing an example of the processing result of precise attitude correction in the optical measurement method according to the present embodiment. As shown in FIG. 14, model point cloud data 32 is searched from scene point cloud data 50.

[0086] After performing the precise pose correction, the optical measurement device 100 outputs the pose and the 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 can be calculated as follows: score = (number of scene point cloud data 50 that correspond (match) with model point cloud data 32) / (total number of model point cloud data 32 included in model 36). In other words, the ratio of the number of model point cloud data 32 that correspond with scene point cloud data 50 to 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] Next, the optical measurement device 100 executes a uniqueness determination process. Specifically, the optical measurement device 100 determines whether or not there is uniqueness based on the similarity of each matching candidate (step S230).

[0089] If it is determined that there is uniqueness (YES in step S230), the optical measuring device 100 calculates the coordinates of the specific point 44 of the measurement object 40 based on the orientation 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 measuring device 100 calculates the coordinates corresponding to the specific point 44 of the measurement object 40 based on the retrieved orientation. Then, the processing ends.

[0090] On the other hand, if it is determined that there is no uniqueness (NO in step S230), the optical measurement device 100 outputs information to the effect that there is no uniqueness (step S236), and the process then ends.

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

[0092] 15, the optical measurement device 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 a generation unit, and acquires the reference point cloud data 30 of the reference 20, and generates a model 36 in accordance with user operations or the like.

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

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

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

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

[0098] As described above, rough matching uses model sample points and scene sample points 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 now be described.

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

[0100] 16 is a diagram for explaining the point cloud spacing of 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 spacing is changed. The point cloud spacing indicates an arbitrarily normalized distance. The coordinate shift amount indicates the difference (each of the X, Y, and Z axis components) between the position of a 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 not shown.

[0102] 16, the point cloud interval can be optimized based on, for example, the time required for the search (matching execution time) and the difference in the position of the specific point 44 (i.e., the amount of correction due to the coarse attitude correction and the 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 the 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 cloud spacing may be specified in advance or may be set on an ad hoc basis. The optimized point cloud spacing value may also be included in the corresponding model 36.

[0106] <G. Uniqueness Determination Processing> Next, a processing example of the uniqueness determination processing (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 cloud data that is most similar to the model point cloud data 32 has been uniquely determined within the scene point cloud data 50. To determine this uniqueness, it is determined whether the similarity of the part found to be most similar is outstanding compared to the similarities of other parts. In other words, the optical measurement device 100 evaluates the uniqueness of the matching candidate with the highest similarity among a predetermined number of matching candidates (pose candidates) relative to the other matching candidates.

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

[0109] In the uniqueness determination process, the similarity (score) of each match candidate found is statistically evaluated, using, for example, the interquartile range.

[0110] More specifically, the third quartile is calculated from the similarities of all the searched matching candidates. Then, a judgment threshold calculated from the calculated third quartile is compared with the similarity of the top matching candidate. If the similarity of the top matching candidate is greater than the judgment threshold, it can be determined that the search results are unique.

[0111] Below is an example of the results of sorting nine matching candidates in ascending order of similarity.

[0112]

[0113] According to the above table, the values ​​can be calculated as follows: 1st quartile Q1 (25%) = 0.127 2nd median Q2 = 0.148 3rd quartile Q3 (75%) = 0.300 If the threshold for determining outliers is set to "Q3 + (Q3 - Q1) x 1.5", the 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, and therefore can be determined to be unique (i.e., to be an outlier).

[0115] Note that other known methods may be used to determine whether or not the set of matching candidates from which the matching candidate with the highest similarity has been found is unique.

[0116] <H. Application Examples> Next, application examples 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, a headlight inspection device 200 inspects the illumination direction and brightness of a vehicle's headlights. At this time, it is necessary to adjust the optical axis of the vehicle's headlights. In adjusting the optical axis of the headlights, it is necessary to obtain a reference position that is specified in advance for the headlight lens.

[0118] One method for acquiring the reference position is to consider the center of gravity of the luminance distribution of the light emitted by the headlight as the reference position. With this method, if the headlight has multiple light sources, the reference position determined from the center of gravity of the luminance distribution may not match the original reference position that is preset in the headlight.

[0119] Furthermore, the stability of the reference position determined from the center of gravity of the luminance distribution may decrease due to changes over time in the luminance distribution of light and individual differences in the manufacturing of parts that make up the headlight.

[0120] In contrast to this, by using the optical measurement method according to the present embodiment, it is possible to obtain the reference position based on the surface shape of the headlight, rather than the luminance distribution of light.

[0121] 19 is a schematic diagram showing an example of an inspection device for an advanced driver assistance system. Referring to FIG. 19 , during inspection, a confronting device 212 is used to adjust the positional relationship between a fixed inspection device 210 and a vehicle (reference position 220). The confronting device 212 adjusts the vehicle in a direction perpendicular to the vehicle's traveling direction (left-right direction). However, since the confronting device 212 aligns the vehicle using the tire surface as an adjustment surface, there are cases where the tire cannot be considered a rigid body, and therefore the positional relationship between the inspection device 210 and the vehicle may not be adjusted appropriately.

[0122] In contrast, by using the optical measurement method according to this embodiment, a reference position can be obtained based on the surface shape of the vehicle, so that the positional relationship between the inspection device 210 and the vehicle can be appropriately adjusted, thereby allowing the inspection itself to be performed appropriately.

[0123] As described above, the optical measurement method according to this embodiment can accurately and universally measure the real-space position of the inspection equipment and the real-space position of the vehicle being inspected, and is therefore applicable to a variety of vehicle inspection processes.

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

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

[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 more points included in the scene point cloud data 50 are selected, and the coordinates of each selected point are randomly corrected in accordance with a normal distribution of the uncertainty value, thereby generating a plurality of scene point cloud data 50A.

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

[0129] The standard deviation for the 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 measuring 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: Generation and provision of model) An example of a process for generating the model 36 using three-dimensional point cloud data of the reference 20 (reference point cloud data 30) has been described, but 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 an image of the object may be used.

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

[0134] In this way, the model 36 can be prepared without actually using the reference 20, and therefore can be adapted to 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 needed 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 explanation, an example of a process for searching for the orientation most similar to the scene point cloud data 50 by translating and rotating the model point cloud data 32 has been shown, but the orientation most similar to the scene point cloud data 50 may also be searched for by only translating the model point cloud data 32. When translating and rotating, a homogeneous transformation matrix including a translation matrix and a rotation matrix is ​​calculated. On the other hand, when translating, a translation matrix is ​​calculated. In this way, in the process for searching for the orientation of the model point cloud data 32 most similar to the scene point cloud data 50, the model point cloud data 32 may only be translated.

[0137] For example, if it is guaranteed that the measurement object 40 will not rotate, the search time can be reduced.

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

[0139] (i4: Output of homogeneous transformation matrix) An example of processing 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 information on this deviation is also useful in an inspection device, etc. Therefore, the calculated homogeneous transformation matrix (or translation matrix and / or 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, the process of outputting the calculated homogeneous transformation matrix (or translation matrix and / or rotation matrix).

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

[0143] One method for measuring a position in real space is to physically contact a measurement object with a probe or the like, but this method cannot be applied to measurement objects that cannot be contacted due to quality considerations, etc. In contrast, the optical measurement method according to this embodiment allows for non-contact measurement, so there are no such restrictions.

[0144] Furthermore, one method for measuring positions in real space is to use pattern matching of two-dimensional images, but this method has the problem of being susceptible to noise and making stable measurements difficult. Furthermore, since the size and angle between the measurement object and the template do not necessarily match, it is necessary to prepare multiple templates to improve robustness. In contrast, the optical measurement method according to this embodiment searches for the position and / or angle of the model that is most similar to the scene by translating and / or rotating the model, thereby enabling stable measurements and eliminating the need to prepare multiple models.

[0145] There is also a method in which markers or the like are placed on the measurement object and the positional relationship is calculated from image data captured by multiple cameras. This method requires the placement of markers or the like. In contrast, the optical measurement method according to this embodiment only requires the preparation of a model, and there is no need to place markers or the like on the measurement object.

[0146] There is also a method of measuring a specific point using a laser or ultrasonic waves. This method requires the placement of multiple sensors to accurately measure the position, and also requires complex data processing of the outputs of the multiple sensors. In contrast, the optical measurement method according to this embodiment enables highly accurate measurements in a short time.

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

[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 unit, 110 Output unit, 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 unit, 152 Model storage unit, 154 Search unit, 156 Coordinate calculation unit, 200 Headlight inspection device, 210 Inspection device, 212 Confrontation device, 220 Reference position.

Claims

1. An optical measurement device comprising: a storage unit that stores a model including a definition of a coordinate system in real space, model point cloud data indicating the surface shape of an object that serves as a reference for a measurement object, and coordinates of a specific point in the real space; a search unit that searches for a posture 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 posture.

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. An optical measuring device according to claim 1 or 2, wherein the search unit searches for a posture most similar to the three-dimensional point cloud data using data obtained by thinning out the model point cloud data and data obtained by thinning out the model point cloud data.

4. An optical measurement device according to any one of claims 1 to 3, 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 section evaluates the uniqueness of the most similar pose candidate among the predetermined number of pose candidates with respect to other pose candidates.

6. An optical measurement device according to any one of claims 1 to 5, further comprising a model generation unit which 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 target.

7. An optical measuring device according to any one of claims 1 to 6, wherein the search unit generates a plurality of three-dimensional point cloud data from the three-dimensional point cloud data, reflecting uncertainty existing in the three-dimensional point cloud data, calculates coordinates corresponding to the specific point from each of the generated plurality of three-dimensional point cloud data, and calculates uncertainty existing in the calculated coordinates based on a variance in the calculated coordinates.

8. An optical measurement method comprising 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 serves as a reference for the measurement object, and coordinates of a specific point 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 posture searched.

9. An optical measurement program that 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 the 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 orientation found.

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