Method and system for tracking marker in augmented reality

The dense image alignment method addresses the accuracy and environmental limitations of existing marker tracking technologies by providing high accuracy and flexible tracking capabilities, suitable for medical applications in augmented reality.

WO2024204878A1PCT designated stage expired Publication Date: 2024-10-03DECASIGHT CORP
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
PCT/KR2023/004075
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-24
Filing Date
2023-03-28
Publication Date
2024-10-03

AI Technical Summary

Technical Problem

Current marker tracking methods in augmented reality, such as electromagnetic and stereo optical tracking, are not suitable for medical applications due to accuracy issues and limitations in small device environments, particularly with HMDs, and square-shaped reference marker tracking methods are not accurate enough for medical use.

Method used

A marker tracking method using dense image alignment, which generates and estimates marker information through surface calibration and non-linear optimization, allowing for precise posture tracking with a single camera and flexible tracking area configurations, even with multiple cameras.

Benefits of technology

This approach ensures high tracking accuracy and precise posture estimation, minimizing errors and shaking in AR content, enhancing user immersion and applicability in medical contexts.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure KR2023004075_03102024_PF_FP_ABST
    Figure KR2023004075_03102024_PF_FP_ABST
Patent Text Reader

Abstract

The present invention relates to a marker tracking method in a marker tracking system for tracking a marker in augmented reality, wherein the method comprises: a marker information generation step of generating marker information required for estimating the posture of a marker; and a marker posture estimation step of estimating the posture of the marker by using the marker information. The present invention provides a method for tracking a marker by using dense image alignment in augmented reality, thereby ensuring high tracking accuracy with only a single camera and having no limitations to a tracking area when using multiple cameras.
Need to check novelty before this filing date? Find Prior Art

Description

Method and system for tracking markers in augmented reality

[0001] The present invention relates to a marker tracking technology, and more particularly, to a marker tracking technology in augmented reality, which is frequently used for medical purposes.

[0002] Augmented Reality (AR) is a technology that combines the digital world with the real world, enabling tasks previously impossible in the real world. Recently, AR technology has been used in various devices, including surgical navigation, in the medical field.

[0003] Currently, virtual reality (VR) and augmented reality (AR) technologies are being applied in surgery, including virtual endoscopy, image-guided surgery, and preoperative planning. Virtual endoscopy involves exploring the internal organs of the body in a virtual space, capturing volumetric images obtained through imaging techniques such as Magnetic Resonance Imaging (MRI) or Computed Tomography (CT). The most common areas where endoscopy is used are the stomach and colon. Virtual endoscopy offers comparable image quality to real-world endoscopy, and, most importantly, it's performed in a virtual space with zero patient discomfort. Furthermore, it can be applied to areas such as blood vessels and the brain cavities, areas that are difficult to explore in real life, making it a promising area for future diagnostics. Image-guided surgery, which utilizes AR techniques rather than VR, allows surgeons to precisely perform the procedure by displaying the internal environment surrounding the surgical site aligned with the actual area. Preoperative planning is a technology that helps plan in advance which method of surgery will be most effective by visualizing and manipulating the patient's organs and tissues in a virtual space before performing the procedure.

[0004] The most commonly used tracking methods for medical purposes are electromagnetic tracking and stereo optical tracking, but both methods are not suitable for AR environments utilizing small devices such as head-mounted displays (HMDs) due to their structural characteristics.

[0005] Although square-shaped marker tracking is widely used in AR environments utilizing small devices, it is not suitable for medical use due to its low accuracy.

[0006] One existing method for tracking medical markers is electromagnetic tracking. This method generates an electromagnetic field from a field generator (FG) and determines location based on the current induced in the sensor. Because electromagnetic fields can penetrate the body, tracking is possible even if the sensor attached to the tip of the tool enters the body. However, accuracy decreases in the presence of surrounding factors that affect the electromagnetic field. Because the electromagnetic field weakens with distance from the FG, accuracy decreases with increasing distance from the sensor. Utilizing electromagnetic tracking in an AR environment requires alignment between the AR camera and the EM coordinate system. This process uses a separate optical marker, which adds to the overall tracking error.

[0007] Among existing medical marker tracking methods, stereo optical tracking technology utilizes infrared cameras to track spherical IR markers. This system enables simultaneous tracking using two or more cameras. This technology requires at least three IR markers within the shared field of view of the cameras, requiring at least two cameras, and is limited by the distance between the cameras.

[0008] Figure 1 illustrates the tracking area in the camera in a conventional stereo optical tracking method.

[0009] Referring to Fig. 1, when the distance between cameras is relatively far, the tracking area becomes narrower and the depth estimation accuracy increases, but conversely, when the tracking area is relatively close, the tracking area becomes wider and the depth estimation accuracy decreases.

[0010] Fig. 2 illustrates the appearance of a marker displayed on an AR screen in a reference marker tracking method, and Fig. 2 illustrates the appearance of an AR screen displayed as a result of inaccurate object alignment in a plane reference marker tracking method.

[0011] As shown in Figure 2, among existing general-purpose marker tracking methods, reference marker tracking technology is a system that estimates the pose of a reference marker captured by a camera. This technology can be tracked using a single camera, making it easy to use on small devices. However, its low tracking accuracy makes it difficult to use for medical applications. Furthermore, it can cause shaking in AR content, reducing the user's immersion in the AR.

[0012] The present invention has been devised to solve the above problems, and its purpose is to provide a method and system for tracking markers in augmented reality using dense image alignment.

[0013] The purpose of the present invention is not limited to the purposes mentioned above, and other purposes not mentioned will be clearly understood by those skilled in the art from the description below.

[0014] To achieve the above purpose, the present invention relates to a marker tracking method in a marker tracking system for tracking a marker in augmented reality, and includes a marker information generation step for generating marker information necessary for estimating the posture of the marker, and a marker posture estimation step for estimating the posture of the marker using the marker information.

[0015] When a set including one or more individual reference markers is called a marker set, the marker information generation step may include a step of generating a reference marker by setting a reference marker to be used, a step of generating three-dimensional information of the reference marker, and a step of performing surface calibration of the reference marker.

[0016] The step of performing surface calibration of the above reference marker may include a step of obtaining the pose of the marker set from each image captured at various angles by one or more cameras, and a step of optimizing the pose of the marker set and the pose of individual reference markers for each image using a nonlinear optimization algorithm.

[0017] The above marker pose estimation step may include a marker vertex information collection step of collecting vertex information of the marker, a marker initial pose estimation step of estimating the initial pose of the marker using the collected vertex information, a marker initial pose readjustment step of readjusting the initial pose of the marker so as to minimize the error (Reprojection Error) between the two-dimensional vertex coordinates of the markers obtained through the marker vertex information collection step and the two-dimensional coordinates obtained by reprojecting the three-dimensional vertex coordinates on the world coordinate system, and a marker detailed pose readjustment step of readjusting the detailed pose of the marker using a dense image alignment technique so as to minimize the difference in appearance between the detected reference marker image and the pre-generated template reference marker image.

[0018] The above dense image alignment technique may be the Lucas - Kanade Image Alignment technique.

[0019] In the marker tracking system for tracking a marker in augmented reality of the present invention, the system includes one or more cameras installed to capture a marker set, which is a collection including one or more individual reference markers, and a computer device for acquiring an image captured by the camera, generating marker information necessary for estimating the posture of the marker using the acquired image, and estimating the posture of the marker using the marker information.

[0020] The computer device can generate the reference marker by setting a reference marker to be used in generating the marker information, generate three-dimensional information of the reference marker, and perform surface calibration of the reference marker.

[0021] The computer device can, in performing surface calibration of the reference marker, obtain the pose of the marker set from each image taken of the marker set at various angles through one or more cameras, and optimize the pose of the marker set and the pose of individual reference markers for each image using a nonlinear optimization algorithm.

[0022] The computer device may, in estimating the marker pose, collect vertex information of the marker, estimate the initial pose of the marker using the collected vertex information, readjust the initial pose of the marker so as to minimize the error (Reprojection Error) between the two-dimensional vertex coordinates of the markers obtained through the marker vertex information collection step and the two-dimensional coordinates obtained by reprojecting the three-dimensional vertex coordinates on the world coordinate system, and readjust the detailed pose of the marker using a dense image alignment technique so as to minimize the difference in appearance between the detected reference marker image and the pre-generated template reference marker image.

[0023] The above dense image alignment technique may be the Lucas - Kanade Image Alignment technique.

[0024] According to the present invention, a marker tracking method in augmented reality using dense image alignment is provided, thereby ensuring high tracking accuracy with only a single camera, and there is no limitation on the tracking area when using multiple cameras.

[0025] In addition, according to the present invention, there is an advantage in that more precise posture tracking is possible because the number of reference markers that can be obtained within a shared field of view from multiple cameras increases.

[0026] Figure 1 illustrates the tracking area in the camera in a conventional stereo optical tracking method.

[0027] Figure 2 illustrates the appearance of a marker displayed on an AR screen in a reference marker tracking method.

[0028] FIG. 3 schematically illustrates the configuration of a marker tracking system according to one embodiment of the present invention.

[0029] FIG. 4 illustrates a tracking area in a camera in a marker tracking method according to one embodiment of the present invention.

[0030] FIG. 5 is a flowchart showing a marker tracking method in augmented reality according to one embodiment of the present invention.

[0031] FIG. 6 is a flowchart showing a detailed process of a marker tracking method in augmented reality according to one embodiment of the present invention.

[0032] Figure 7 is a diagram illustrating a reference marker, a marker set, and an index.

[0033] Figure 8 illustrates marker types.

[0034] Figure 9 illustrates the form of a marker set.

[0035] Figure 10 illustrates the appearance of the marker set before and after performing surface calibration.

[0036] Figure 11 illustrates individual reference markers and marker sets.

[0037] Figure 12 is a set of marker photos taken from various angles.

[0038] Figure 13 is a flowchart showing a surface calibration method according to one embodiment of the present invention.

[0039] Figure 14 illustrates a marker vertex detection process according to one embodiment of the present invention.

[0040] FIGS. 15 to 18 are drawings for explaining a marker vertex tracking process according to one embodiment of the present invention.

[0041] Fig. 19 is a flowchart showing an initial pose estimation process according to one embodiment of the present invention.

[0042] FIG. 20 and FIG. 21 are exemplary diagrams for explaining an initial pose estimation process according to one embodiment of the present invention.

[0043] Figure 22 is a flowchart showing an initial posture readjustment process according to one embodiment of the present invention.

[0044] Figure 23 is an exemplary diagram illustrating a detailed posture readjustment process according to one embodiment of the present invention.

[0045] Figure 24 is a flowchart showing a detailed posture readjustment process according to one embodiment of the present invention.

[0046] Figures 25 and 26 are diagrams for explaining nonlinear optimization.

[0047] Figure 27 illustrates the overall schematic of the Lucas Kanade image alignment algorithm.

[0048] FIG. 3 schematically illustrates the configuration of a marker tracking system according to one embodiment of the present invention.

[0049] Referring to FIG. 3, a marker tracking system according to one embodiment of the present invention includes a computer device (100) and a camera (200).

[0050] The computer device (100) tracks a marker in an augmented reality image captured by a camera (200).

[0051] The camera (200) serves to capture a marker set (10), which is a collection of one or more individual reference markers. In the present invention, one or more cameras (200) may be installed.

[0052] In the present invention, the computer device (100) can track a reference marker using dense image alignment.

[0053] The computer device (100) acquires images captured by the camera (200) in real time for each frame.

[0054] And, as a preliminary task before performing marker tracking, the computer device (100) generates marker information necessary for estimating the marker's posture.

[0055] And, the computer device (100) can estimate the posture of the marker using the marker information. The computer device (100) repeats the process of estimating the marker posture from an image captured by the camera (200) using the marker information until a command to terminate the execution is received from the user.

[0056] The computer device (100) can generate a reference marker by setting a reference marker to be used in generating marker information, generate three-dimensional information of the reference marker, and perform surface calibration of the reference marker.

[0057] The computer device (100) can, in performing surface calibration of a reference marker, acquire the pose of the marker set from each image taken of the marker set at various angles through one or more cameras, and optimize the pose of the marker set for each image and the pose of individual reference markers using a nonlinear optimization algorithm. That is, in the present invention, multiple marker set poses can be acquired by taking multiple pictures with one camera, or multiple marker set poses can be acquired from multiple cameras.

[0058] In estimating the marker posture, the computer device (100) collects vertex information of the marker, estimates the initial posture of the marker using the collected vertex information, readjusts the initial posture of the marker so as to minimize the error (Reprojection Error) between the two-dimensional vertex coordinates of the markers obtained through the marker vertex information collection step and the two-dimensional coordinates obtained by reprojecting the three-dimensional vertex coordinates on the world coordinate system, and readjusts the detailed posture of the marker using a dense image alignment technique so as to minimize the difference in appearance between the detected reference marker image and the pre-generated template reference marker image.

[0059] The present invention is susceptible to various modifications and embodiments. Specific embodiments are illustrated and described in detail in the drawings. However, this is not intended to limit the present invention to specific embodiments, but rather to encompass all modifications, equivalents, and alternatives falling within the spirit and technical scope of the present invention.

[0060] The terminology used in this application is only used to describe specific embodiments and is not intended to limit the present invention. The singular expression includes the plural expression unless the context clearly indicates otherwise. In this application, it should be understood that the terms "comprise" or "have" indicate the presence of a feature, number, step, operation, component, part, or combination thereof described in the specification, but do not preclude the possibility of the presence or addition of one or more other features, numbers, steps, operations, components, parts, or combinations thereof.

[0061] Unless otherwise defined, all terms used herein, including technical or scientific terms, have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains. Terms defined in commonly used dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the relevant technology, and will not be interpreted in an idealized or overly formal sense unless explicitly defined herein.

[0062] In addition, when describing with reference to the attached drawings, identical components will be assigned the same reference numerals regardless of the drawing numbers, and redundant descriptions thereof will be omitted. When describing the present invention, if a detailed description of a related known technology is judged to unnecessarily obscure the gist of the present invention, the detailed description will be omitted.

[0063] The present invention relates to a marker tracking method in augmented reality.

[0064] In the present invention, the subject performing the marker tracking method in augmented reality may be a marker tracking system or any computer device performing the marker tracking method in augmented reality, or may be a control unit or processor that generally controls the system or device performing the marker tracking method in augmented reality. That is, the marker tracking method in augmented reality of the present invention may be composed of an algorithm, which is a type of software, and the software may be executed in the control unit or processor of the marker tracking system or any computer device performing the marker tracking method in augmented reality.

[0065] The present invention relates to a marker tracking method in a marker tracking system for tracking a marker in augmented reality, and includes a marker information generation step for generating marker information necessary for estimating the posture of a marker, and a marker posture estimation step for estimating the posture of a marker using the marker information.

[0066] When a set including one or more individual reference markers is called a marker set, the marker information generation step may include a step of generating a reference marker by setting a reference marker to be used, a step of generating three-dimensional information of the reference marker, and a step of performing surface calibration of the reference marker.

[0067] The step of performing surface calibration of the above reference marker may include a step of obtaining the pose of the marker set from each image captured at various angles by one or more cameras, and a step of optimizing the pose of the marker set and the pose of individual reference markers for each image using a nonlinear optimization algorithm.

[0068] The above marker pose estimation step may include a marker vertex information collection step of collecting vertex information of the marker, a marker initial pose estimation step of estimating the initial pose of the marker using the collected vertex information, a marker initial pose readjustment step of readjusting the initial pose of the marker so as to minimize the error (Reprojection Error) between the two-dimensional vertex coordinates of the markers obtained through the marker vertex information collection step and the two-dimensional coordinates obtained by reprojecting the three-dimensional vertex coordinates on the world coordinate system, and a marker detailed pose readjustment step of readjusting the detailed pose of the marker using a dense image alignment technique so as to minimize the difference in appearance between the detected reference marker image and the pre-generated template reference marker image.

[0069] The above dense image alignment technique may be the Lucas - Kanade Image Alignment technique.

[0070] FIG. 3 schematically illustrates the configuration of a marker tracking system according to one embodiment of the present invention.

[0071] Referring to FIG. 3, a marker tracking system according to one embodiment of the present invention includes a computer device (100) and a camera (200).

[0072] The computer device (100) tracks a marker in an augmented reality image captured by a camera (200).

[0073] The camera (200) serves to capture a marker set (10), which is a collection of one or more individual reference markers. In the present invention, one or more cameras (200) may be installed.

[0074] In the present invention, the computer device (100) can track a reference marker using dense image alignment.

[0075] The computer device (100) acquires images captured by the camera (200) in real time for each frame.

[0076] And, as a preliminary task before performing marker tracking, the computer device (100) generates marker information necessary for estimating the marker's posture.

[0077] And, the computer device (100) can estimate the posture of the marker using the marker information. The computer device (100) repeats the process of estimating the marker posture from an image captured by the camera (200) using the marker information until a command to terminate the execution is received from the user.

[0078] The computer device (100) can generate a reference marker by setting a reference marker to be used in generating marker information, generate three-dimensional information of the reference marker, and perform surface calibration of the reference marker.

[0079] The computer device (100) can, in performing surface calibration of a reference marker, acquire the pose of the marker set from each image taken of the marker set at various angles through one or more cameras, and optimize the pose of the marker set for each image and the pose of individual reference markers using a nonlinear optimization algorithm. That is, in the present invention, multiple marker set poses can be acquired by taking multiple pictures with one camera, or multiple marker set poses can be acquired from multiple cameras.

[0080] In estimating the marker posture, the computer device (100) collects vertex information of the marker, estimates the initial posture of the marker using the collected vertex information, readjusts the initial posture of the marker so as to minimize the error (Reprojection Error) between the two-dimensional vertex coordinates of the markers obtained through the marker vertex information collection step and the two-dimensional coordinates obtained by reprojecting the three-dimensional vertex coordinates on the world coordinate system, and readjusts the detailed posture of the marker using a dense image alignment technique so as to minimize the difference in appearance between the detected reference marker image and the pre-generated template reference marker image.

[0081] FIG. 4 illustrates a tracking area in a camera in a marker tracking method according to one embodiment of the present invention. In FIG. 4, (a) illustrates a tracking area in a single camera, and (b) illustrates a tracking area in two cameras.

[0082] As shown in Figure 4, the present invention ensures high tracking accuracy with just a single camera, and even when multiple cameras are used, there are no limitations to the tracking area. Furthermore, because the shared field of view increases the number of vertex coordinates of reference markers, more precise posture tracking is possible.

[0083]

[0084] FIG. 5 is a flowchart showing a marker tracking method in augmented reality according to one embodiment of the present invention.

[0085] Referring to FIG. 5, a marker tracking method in augmented reality according to one embodiment of the present invention includes a marker information generation step (S100) for generating marker information necessary for estimating the posture of a marker, and a marker posture estimation step (S200) for estimating the posture of a marker using the marker information.

[0086] FIG. 6 is a flowchart showing a detailed process of a marker tracking method in augmented reality according to one embodiment of the present invention.

[0087] Referring to FIG. 6, the marker information generation step (S100) includes a step of setting a reference marker to be used (S110), a step of generating a reference marker (S120), a step of generating three-dimensional information of the reference marker (S130), and a step of performing surface calibration of the reference marker (S140).

[0088] The marker pose estimation step (S200) includes a marker vertex information collection step (S210), a marker initial pose estimation (IPE) step (S220), a marker initial pose refinement (Coarse Pose Refinement (CPR) step (S230), and a marker fine pose refinement (FPR) step (S240).

[0089] In the marker information generation step (S100), the computer device (100) generates marker information necessary for marker posture estimation as a preliminary task before performing marker tracking.

[0090] And, in the marker posture estimation step (S200), the computer device (100) can estimate the posture of the marker using the marker information. At this time, the computer device (100) repeats the process of estimating the marker posture from an image captured by the camera (200) using the marker information until a command to terminate the execution is received from the user.

[0091] In the marker information generation step (S100) of the present invention, various preliminary information necessary for marker pose estimation is generated. The types of information generated in this step include the type of reference marker to be used, the marker set structure formed by the reference markers, an index indicating marker pattern correspondence information, and the 3D coordinates of marker vertices expressed in real-world units.

[0092] Figure 7 is a diagram illustrating a reference marker, a marker set, and an index.

[0093] In Fig. 7, (a) illustrates a reference marker, (b) illustrates a marker set which is a collection of reference markers, and (c) illustrates an index indicating marker pattern correspondence information.

[0094] In the present invention, any pattern can be used as long as it is a square reference marker, and the more complex the pattern of the reference marker, the more precise the posture estimation is.

[0095] Figure 8 illustrates marker types.

[0096] FIG. 8 illustrates types of reference markers that can be used in the present invention, including (a) Artoolkit, (b) TopoTag, (c) ArUco, and (d) AprilTag.

[0097] The marker set formats available in the present invention can be combined in any configuration, as long as each individual reference marker remains flat. Furthermore, as long as at least two reference markers are tracked in a marker set, performance is not significantly impacted even if part of the marker set is obscured. Thus, the present invention allows for a variety of marker set formats, and as long as the number and size of attachment surfaces are carefully considered, it can be utilized in a variety of fields.

[0098] Figure 9 is an example of a marker set format, and illustrates various types of marker sets that can be used in the present invention.

[0099] When creating markers and marker sets in reality, various errors occur, such as errors that occur during printing and errors that occur when attaching markers to marker sets, unlike digitally created models.

[0100] In the present invention, surface calibration is a process of applying such real-world manufacturing errors to a model generated during the marker information generation step (S100), and is a process of adjusting the posture of each individual reference marker constituting the marker set by applying a bundle adjustment technique to nonlinearly optimize the process.

[0101] Figure 10 illustrates the appearance of a marker set before and after performing surface calibration. (a) illustrates a marker set before performing the surface calibration process, and (b) illustrates a marker set after performing the surface calibration process.

[0102] As shown in Fig. 10, by performing surface calibration, errors existing in individual reference markers can be corrected.

[0103] Figure 11 illustrates individual reference markers and marker sets, and Figure 12 shows photographs of the marker set taken from various angles.

[0104] As shown in Figures 11 and 12, a marker set is a concept that includes a set of multiple individual reference markers.

[0105] Figure 13 is a flowchart showing a surface calibration method according to one embodiment of the present invention.

[0106] Referring to FIG. 13, a surface calibration method according to one embodiment of the present invention captures a marker set from various angles using one or more cameras (S310), and acquires the pose of the marker set from each captured image (S320). Marker set images captured from various angles are illustrated in FIG. 12.

[0107] Next, the marker set poses for each image and the poses of individual reference markers are optimized using a nonlinear optimization algorithm (S330). In step S330, the marker set poses for each image and the poses of individual reference markers can be simultaneously optimized using nonlinear optimization algorithms such as Gauss-Newton and Levenberg-Marquardt.

[0108] By performing surface calibration in this way in the present invention, the marker set can be tracked more precisely.

[0109] In the present invention, surface calibration can be performed in a manner that minimizes appearance errors by utilizing dense image alignment used for pose estimation.

[0110] Here, the objective function E(p) to be minimized j ;p k ) is as follows.

[0111]

[0112]

[0113] The actual implementation was implemented using the Gauss-Newton algorithm and Backtracking Line Search, and the threshold value according to the change in appearance error was limited to 0.01, and the maximum number of iterations was limited to 100.

[0114] An optimization problem is a problem of adjusting parameters so that the objective function has an optimal value. If the objective function is composed of a polynomial of degree 1 or lower, it is a linear optimization problem, and if it is composed of a polynomial of degree 2 or higher, it is a nonlinear optimization problem.

[0115] Figures 25 and 26 are diagrams for explaining non-linear optimization.

[0116] As shown in Figure 25, in a linear optimization problem, it is easy to change parameters to optimize the objective function because the objective function has a simple shape, but in a nonlinear optimization problem, it is not easy to change parameters to optimize the objective function because the objective function has a complex shape.

[0117] The most fundamental principle of solving optimization problems is to repeatedly change parameters in a direction that decreases or increases the function value from the current position. The most crucial steps in this process are setting initial values ​​and determining the direction and distance of movement for increasing or decreasing the value. The direction of movement is determined using the first derivative, and the distance is determined using the second derivative. Figure 27 is a graph illustrating the nonlinear optimization process.

[0118] There are various optimization techniques such as Gauss-Newton and Levenberg-Marquardt, but most of them are based on the Newton optimization technique, so they have the same concept except for the constraints on determining the direction and distance of movement and the specific calculation method.

[0119] In the actual implementation of the present invention, the Gauss-Newton method was used.

[0120] Newton optimization method uses the Hessian matrix, which is the second derivative matrix of a multivariate vector, to determine whether the current function has reached a maximum or minimum value.

[0121] The Gauss-Newton method optimizes the objective function using only the Jacobian, which is the first-order differential matrix of a multivariate vector, instead of the Hessian. It creates a pseudo-Hessian by multiplying the Jacobian by the transpose Jacobian. The pseudo-Hessian can be used to roughly determine whether a point is a local minimum or maximum. By repeating this process in the Gauss-Newton method, the objective function can be optimized to become either a minimum or a maximum.

[0122]

[0123] In the present invention, the marker vertex information collection step (S210) is a process of collecting 2D vertex information among 2D-3D vertex information correspondence pairs required to estimate the posture of a reference marker.

[0124] The marker vertex information collection step (S210) includes a marker corner detection process for detecting the marker vertex, and a marker corner tracking process for tracking the marker vertex if the marker vertex detection fails.

[0125] Figure 14 illustrates a marker vertex detection process according to one embodiment of the present invention.

[0126] As shown in Fig. 14, it can be confirmed that the vertex of the marker is detected through the marker vertex detection process of the present invention.

[0127] In the marker vertex information collection step (S210), the two-dimensional vertex coordinates of the reference marker are found through the processes of thresholding, polygonal approximation, contour detection, and corner refinement in the image captured by the camera (200). At this time, any of the marker algorithms already published, such as ARToolkit, TopoTag, ArUco, and AprilTag, can be used. In the actual implementation of the present invention, the ArUco detection algorithm was used, and the degree of error is determined depending on the quality of the image.

[0128] The marker vertex tracking process is a process to compensate for marker vertex detection failure, and is a process that can only be used if the marker vertex detection process succeeded in the previous frame.

[0129] In the present invention, in the marker vertex tracking process, optical flow is applied to the image in the current frame based on the detection information in the previous frame.

[0130] You can track the change in position of the marker vertex.

[0131] FIGS. 15 to 18 are drawings for explaining a marker vertex tracking process according to one embodiment of the present invention.

[0132] Referring to FIGS. 15 to 18, the marker vertex tracking of the present invention is a method of estimating a movement vector between a previous frame and a current frame for a marker vertex, and estimates the vertex of the marker through three processes.

[0133] First, a direction vector is generated from all marker vertices detected in the previous and current frames. Figure 16 illustrates an image of the direction vector generation.

[0134] Next, the average velocity (a) is calculated from the generated direction vectors.

[0135] Then, the velocity of each direction vector is compared with the average (a), and if it exceeds three times the average (a), the corresponding direction vectors are removed. Figure 17 illustrates an image of the first filtering of direction vectors.

[0136] Then, the average velocity (b) is calculated again from the remaining direction vectors.

[0137] And, by comparing the velocity of each direction vector with the average (b), direction vectors exceeding three times the average (b) are removed, thereby obtaining a stable marker vertex. Figure 18 illustrates an image obtained through secondary filtering of direction vectors.

[0138]

[0139] In a single camera, the initial pose of the marker can be obtained by applying the Perspective N Point solution to the pairs of 2D coordinates and 3D coordinates obtained through the marker information generation step (S100) and the marker vertex information collection step (S210).

[0140] It is difficult to apply the same method when using multiple cameras.

[0141] The present invention proposes a method that extends the single-camera-based Perspective N Point solution to multi-camera applications. Utilizing the proposed method, the initial pose can be more accurately estimated using 2D-3D corresponding pair coordinates obtained from multiple cameras.

[0142] Fig. 19 is a flowchart showing an initial pose estimation process according to one embodiment of the present invention.

[0143] Referring to FIG. 19, in the initial pose estimation step (S220) of the present invention, if the number of cameras that have successfully detected marker vertex information is one and the 3D coordinates of the detected vertices are all in one plane (S410), a homography matrix is ​​estimated for the detected vertices (S420). Then, the pose matrix is ​​restored from the homography by utilizing the fact that the rotation matrix is ​​an orthogonal matrix (S430).

[0144] If the number of cameras that successfully detected marker vertex information is two or more, or if the 3D coordinates of the detected points do not lie on the same plane (S410), a linear simultaneous equation is constructed using the marker vertex coordinates detected for each camera and the 3D model coordinates (S440). At this time, step S440 is performed repeatedly for the number of cameras.

[0145] And, solve the linear simultaneous equations in the form AX=B (S450).

[0146] FIG. 20 and FIG. 21 are exemplary diagrams for explaining an initial pose estimation process according to one embodiment of the present invention.

[0147] Figure 20 illustrates a case where the number of cameras that successfully detected marker vertex information is one, and the 3D coordinates of the detected vertices are all in one plane.

[0148] Referring to Fig. 20, a homography matrix (H) is estimated for the detected vertices, and a pose matrix is ​​restored from the homography by utilizing the fact that the rotation matrix is ​​an orthogonal matrix.

[0149] The homography matrix (H) is as follows.

[0150]

[0151] And, by using the orthogonal matrix property of the rotation matrix, the pose matrix (T) is derived from the homography. pose ) is restored.

[0152]

[0153] Figure 21 illustrates a case where the number of cameras that successfully detected marker vertex information is two or more, or the 3D coordinates of the detected points are not on one plane.

[0154] Referring to Figure 21, a linear simultaneous equation is constructed using the coordinates of the marker vertices detected by each camera and the coordinates of the 3D model, and the linear simultaneous equation in the form of AX=B is solved. If there are 6 or more points, a linear equation in the form of AX=B is established as a 2D-3D corresponding pair, and by solving this linear equation, the initial pose of the marker can be estimated.

[0155] In the present invention, when the number of cameras that successfully detect marker vertex information is two or more, or when the three-dimensional coordinates of the detected points are not in one plane, the initial pose estimation process can be expressed by the following formula.

[0156] Model-to-world coordinate transformation matrix T through solving a system of linear equations by extending the Direct Linear Transform technique. world Save.

[0157]

[0158]

[0159]

[0160]

[0161]

[0162]

[0163]

[0164]

[0165]

[0166]

[0167]

[0168]

[0169]

[0170]

[0171]

[0172]

[0173]

[0174]

[0175] Solutions to these linear simultaneous equations can be derived using methods such as SVD and Pseudo Inverse.

[0176]

[0177] The initial posture readjustment step (S230) of the present invention is a process of readjusting the initial posture so as to minimize the error (reprojection error) between the two-dimensional vertex coordinates of the markers obtained through the marker vertex information collection step (S210) and the two-dimensional coordinates obtained by reprojecting the three-dimensional vertex coordinates on the world coordinate system. In the S230 step of the present invention, a nonlinear optimization technique such as Gauss-Newton or Levenberg-Marquardt can be used. At this time, if there is a lot of noise in the marker vertex information, the results may be poor.

[0178] Figure 22 is a flowchart showing an initial posture readjustment process according to one embodiment of the present invention.

[0179] Referring to FIG. 22, the initial posture readjustment step (S230) according to one embodiment of the present invention projects a reference marker (S510) by reflecting the result performed in the initial posture estimation step (S220).

[0180] Then, the difference between the projection coordinates and the marker vertex coordinates is calculated (S520), and a Jacobian matrix is ​​generated using this (S530).

[0181] Then, the marker pose is optimized in a direction that minimizes the error using the Jacobian matrix (S540).

[0182] In the initial posture readjustment step (S230) of the present invention, steps S510 to S540 are repeated up to the reprojection error threshold value, and are repeated as many times as the number of cameras.

[0183] In the initial posture readjustment step (S230) of the present invention, nonlinear optimization is performed in the direction of minimizing the reprojection error.

[0184] The objective function E(p) to be minimized is as follows.

[0185]

[0186]

[0187] In the present invention, the actual implementation was implemented using Levenberg-Marquart.

[0188] The threshold for reprojection error is the machine error (Machine Epsilon, 1.192092896e-07F), and the maximum number of iterations is limited to 20.

[0189]

[0190] In the present invention, the detailed posture readjustment step (S240) is a process of additionally adjusting the marker posture result value obtained in the initial posture readjustment step (S230).

[0191] In the detailed posture readjustment step (S240), the posture of the reference marker is readjusted using a dense image alignment technique so that the difference in appearance between the detected reference marker image and the pre-generated template reference marker image is minimized.

[0192] In one embodiment of the present invention, the Lucas-Kanade Image Alignment technique can be used as a dense image alignment technique.

[0193] In the detailed posture readjustment step (S240), since the posture adjustment target is a template reference marker image rather than the information obtained in the marker vertex information collection step (S210), even if there is noise in the information obtained in the marker vertex information collection step (S210), the effect thereof is small.

[0194] Figure 23 is an exemplary diagram illustrating a detailed posture readjustment process according to one embodiment of the present invention.

[0195] In the example of Fig. 23, (a) is a detected reference marker image, (b) is a template reference marker image, and (c) is an image showing the difference in appearance of the reference markers between (a) and (b).

[0196] Figure 24 is a flowchart showing a detailed posture readjustment process according to one embodiment of the present invention.

[0197] Referring to FIG. 24, the detailed posture readjustment step (S240) according to one embodiment of the present invention compares the detected reference marker with the template reference marker (S610).

[0198] And, using the difference between the detected reference marker and the template reference marker,

[0199] Generate a Jacobian matrix (S620).

[0200] Then, the marker pose is optimized in a direction that minimizes the error using the Jacobian matrix (S630).

[0201] In the detailed detail readjustment step (S240) of the present invention, steps S610 to S630 are repeated up to the appearance image error threshold value, and are repeated as many times as the number of cameras.

[0202] In the detailed detail readjustment step (S240) of the present invention, nonlinear optimization is performed in the direction of minimizing the appearance image error.

[0203] The objective function E(p) to be minimized is as follows.

[0204]

[0205]

[0206] In the present invention, the actual implementation was implemented using the Gauss-Newton algorithm and Backtracking Line Search, and the threshold value according to the change in appearance error was limited to 0.01, and the maximum number of repetitions was limited to 10.

[0207]

[0208] Figure 27 illustrates the overall schematic of the Lucas Kanade image alignment algorithm.

[0209] Referring to Figure 27, Lucas Kanade Image Alignment is a method of nonlinear optimization that estimates a matrix that batch-transforms points so that the image composed of four specific points among newly captured images becomes most similar to a reference image (Template).

[0210] Lucas Kanade Image Alignment is performed through the following process:

[0211] 1) Warp the image to be aligned. In the detailed pose readjustment (FPR) step, the goal is to precisely track the reference markers by aligning them, so the markers recognized in the captured image are warped.

[0212] 2) Obtain the appearance error image between the warping image and the template image.

[0213] 3) To optimize the captured image, a first-order differentiated image is created for the X and Y directions of the image.

[0214] 4) After warping the marker image from the differentiated image in each direction, a Jacobian matrix for the pose is generated. The original LK Image Alignment uses a 4-degree-of-freedom pose as a parameter because it estimates a matrix that transforms 2D points, but FPR estimates a matrix that transforms 3D points, so it uses a 6-degree-of-freedom pose that considers the z-axis as a parameter.

[0215] 5) Multiply the warping images differentiated in each direction by the Jacobian matrix and merge them into one image to create a Steepest Descent Image.

[0216] 6) Multiply the Jacobian matrix obtained in step 4 and the transposed Jacobian matrix to create a pseudo-Hessian matrix and calculate the change in pose.

[0217] 7) The direction of change of the current value is obtained by multiplying the generated Steepest Descent Image and the error image obtained initially.

[0218] 8) Calculate the change in posture using the Hessian similar to the calculation result of step 7.

[0219] 9) The posture change value obtained in step 8) is reflected in the posture.

[0220] 10) Repeat steps 2) to 8) until the threshold is reached or the maximum number of repetitions is reached.

[0221]

[0222] While the present invention has been described using several preferred embodiments, these embodiments are illustrative and not limiting. Those skilled in the art will appreciate that various changes and modifications can be made without departing from the spirit and scope of the invention as set forth in the appended claims.

Claims

1. In a marker tracking method in a marker tracking system for tracking markers in augmented reality, A marker information generation step for generating marker information necessary for marker posture estimation; and A marker pose estimation step for estimating the pose of a marker using the above marker information. A marker tracking method including:

2. In claim 1, When a collection of one or more individual reference markers is called a marker set, The above marker information generation step is: A step for creating a reference marker by setting the reference marker to be used; A step of generating three-dimensional information of the above reference marker; and A marker tracking method characterized by comprising a step of performing surface calibration of the above reference marker.

3. In claim 2, The step of performing surface calibration of the above reference marker is: A step of obtaining the pose of the marker set from each image taken at various angles by one or more cameras; and A step of optimizing the pose of the marker set and the pose of individual reference markers for each image using a nonlinear optimization algorithm. A marker tracking method characterized by comprising:

4. In claim 1, The above marker pose estimation step is, A marker vertex information collection step that collects marker vertex information; A marker initial pose estimation step that estimates the initial pose of the marker using the collected vertex information; A marker initial posture readjustment step for readjusting the initial posture of the marker so that the error (Reprojection Error) between the two-dimensional vertex coordinates of the markers obtained through the marker vertex information collection step and the two-dimensional coordinates reprojected from the three-dimensional vertex coordinates on the world coordinate system is minimized; and A marker detailed pose readjustment step that readjusts the detailed pose of the marker using a dense image alignment technique to minimize the difference in appearance between the detected reference marker image and the pre-generated template reference marker image. A marker tracking method characterized by comprising:

5. In claim 4, A marker tracking method characterized in that the above dense image alignment technique is a Lucas-Kanade Image Alignment technique.

6. In a marker tracking system for tracking markers in augmented reality, One or more cameras installed to photograph a marker set, which is a collection of one or more individual reference markers; and A computer device that acquires an image captured by the above camera, generates marker information necessary for estimating the posture of a marker using the acquired image, and estimates the posture of the marker using the marker information. A marker tracking system including:

7. In claim 6, A marker tracking system characterized in that the computer device sets a reference marker to be used in generating the marker information, generates a reference marker, generates three-dimensional information of the reference marker, and performs surface calibration of the reference marker.

8. In claim 7, A marker tracking system characterized in that the computer device, in performing surface calibration of the reference marker, acquires the pose of the marker set from each image taken of the marker set at various angles through one or more cameras, and optimizes the pose of the marker set and the pose of individual reference markers for each image using a nonlinear optimization algorithm.

9. In claim 6, A marker tracking system characterized in that, in estimating the marker posture, the computer device collects vertex information of the marker, estimates the initial posture of the marker using the collected vertex information, readjusts the initial posture of the marker so as to minimize the error (Reprojection Error) between the two-dimensional vertex coordinates of the markers obtained through the marker vertex information collection step and the two-dimensional coordinates obtained by reprojecting the three-dimensional vertex coordinates on the world coordinate system, and readjusts the detailed posture of the marker using a dense image alignment technique so as to minimize the difference in appearance between the detected reference marker image and the pre-generated template reference marker image.

10. In claim 9, A marker tracking system characterized in that the above dense image alignment technique is a Lucas-Kanade Image Alignment technique.

Citation Information

Patent Citations

  • Augmented reality system using tangible object and method for providing augmented reality

    KR1020090000777A

  • Torque-limiting device for fishing reel and fishing reel

    KR1020220053463A

  • KR20190085519A