dodecapen: accurate 6dof tracking of a passive stylus

28
DodecaPen: Accurate 6DoF Tracking of a Passive Stylus Po-Chen Wu *โ€  , Robert Wang โ€  , Kenrick Kin โ€  , Christopher Twigg โ€  , Shangchen Han โ€  Ming-Hsuan Yang โ€ก , Shao-Yi Chien * * National Taiwan University, โ€  Oculus Research, โ€ก UC Merced

Upload: others

Post on 14-May-2022

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: DodecaPen: Accurate 6DoF Tracking of a Passive Stylus

DodecaPen: Accurate 6DoF Tracking of a Passive Stylus

Po-Chen Wu*โ€ , Robert Wangโ€ , Kenrick Kinโ€ , Christopher Twiggโ€ , Shangchen Hanโ€ 

Ming-Hsuan Yangโ€ก, Shao-Yi Chien*

*National Taiwan University, โ€ Oculus Research, โ€กUC Merced

Page 2: DodecaPen: Accurate 6DoF Tracking of a Passive Stylus

Outline

Introduction

Proposed System

Experimental Results

Conclusion

@Students in AI WorkshopDodecaPen 2

Page 3: DodecaPen: Accurate 6DoF Tracking of a Passive Stylus

Outline

Introduction

Proposed System

Experimental Results

Conclusion

@Students in AI WorkshopDodecaPen 3

Page 4: DodecaPen: Accurate 6DoF Tracking of a Passive Stylus

Introduction

Our system can track the 6DoF pose of a calibrated pen from a single camera with submillimeter accuracy.

@Students in AI WorkshopDodecaPen 4

Page 5: DodecaPen: Accurate 6DoF Tracking of a Passive Stylus

@Students in AI WorkshopDodecaPen 5

Page 6: DodecaPen: Accurate 6DoF Tracking of a Passive Stylus

@Students in AI WorkshopDodecaPen 6

Page 7: DodecaPen: Accurate 6DoF Tracking of a Passive Stylus

Why Dodecahedron?

To prevent pose jumping (due to coplanar points)

@Students in AI WorkshopDodecaPen 7

Page 8: DodecaPen: Accurate 6DoF Tracking of a Passive Stylus

Explanation of Pose Jumping (1/2)

@Students in AI WorkshopDodecaPen 8

Page 9: DodecaPen: Accurate 6DoF Tracking of a Passive Stylus

Explanation of Pose Jumping (2/2)

Multiple local minima of a cost function (due to coplanar points)

@Students in AI WorkshopDodecaPen 9

Co

st

Pose

OriginalImage

NoisyImage

Page 10: DodecaPen: Accurate 6DoF Tracking of a Passive Stylus

Outline

Introduction

Proposed System

Experimental Results

Conclusion

@Students in AI WorkshopDodecaPen 10

Page 11: DodecaPen: Accurate 6DoF Tracking of a Passive Stylus

Approximate Pose Estimation (APE)

โ€ข Marker Detection

โ€ข Minimize reprojection error ๐ธ๐‘Ÿ(๐ฉ) with P๐‘›P algorithm to get the initial pose ๐ฉโ€ฒ

๐ธ๐‘Ÿ ๐ฉ =1

๐‘›

๐‘–=1

๐‘›

เท๐ฎ๐‘– โˆ’ ๐ฎ๐‘– ๐ฑ๐‘–; ๐ฉ2

11

เท๐ฎ: detected point in the camera image๐ฑ: point on the dodecahedron๐ฎ: transformed ๐ฑ point in the camera image๐ฉ: pose (including rotation matrix ๐‘น and translation vector ๐ญ)

Page 12: DodecaPen: Accurate 6DoF Tracking of a Passive Stylus

Inter-frame Corner Tracking (ICT)

โ€ข Pyramidal Lucas-Kanade marker corner tracking

โ€ข P๐‘›P algorithm to get the initial pose ๐ฉโ€ฒ

12

If APE does not succeedโ€ฆ

Page 13: DodecaPen: Accurate 6DoF Tracking of a Passive Stylus

Marker Intensity Normalization

โ€ข We normalize the intensity to ensure intensity invariance before minimizing the residual between the model and image.

13

Page 14: DodecaPen: Accurate 6DoF Tracking of a Passive Stylus

Dense Pose Refinement (DPR)

โ€ข Minimize appearance distance ๐ธ๐‘Ž(๐ฉ) with Gauss Newton and backtracking line search (BLS) to get the final pose ๐ฉโˆ—

๐ธ๐‘Ž ๐ฉ =1

๐‘›

๐‘–=1

๐‘›

๐ผ๐‘ ๐ฎ๐‘– ๐ฑ๐‘–; ๐ฉ โˆ’ ๐‘‚๐‘ก ๐ฑ๐‘–2

14

๐ผ๐‘: camera image๐‘‚๐‘ก: target object๐ฑ: point on the dodecahedron๐ฎ: transformed ๐ฑ point in the camera frame๐ฉ: pose (including rotation matrix ๐‘น and translation vector ๐ญ)

Marker MipmapsMipmap Masks

Masked Mipmaps

Page 15: DodecaPen: Accurate 6DoF Tracking of a Passive Stylus

Vectorization

Gauss-Newton Iteration

ฮ”๐ฉโˆ— = argminฮ”๐ฉ

1

๐‘›

๐‘–=1

๐‘›

๐ผ๐‘ ๐ฎ๐‘– ๐ฉโ€ฒ + ฮ”๐ฉ โˆ’ ๐‘‚๐‘ก ๐ฑ๐‘–2

โ‰ˆ argminฮ”๐ฉ

1

๐‘›

๐‘–=1

๐‘›

๐ผ๐‘ ๐ฎ๐‘– ๐ฉโ€ฒ + แ‰ค๐œ•๐ผ๐‘๐œ•๐ฉ

๐ฉ=๐ฉโ€ฒ

ฮ”๐ฉ โˆ’ ๐‘‚๐‘ก ๐ฑ๐‘–

2

15

๐ธ๐‘Ž ๐ฉ =1

๐‘›

๐‘–=1

๐‘›

๐ผ๐‘ ๐ฎ๐‘– ๐ฉ โˆ’ ๐‘‚๐‘ก ๐ฑ๐‘–2

๐‰๐‘ฮ”๐ฉ = ๐Ž๐‘ก โˆ’ ๐ˆ๐‘แ‰ค๐œ•๐ˆ๐‘๐œ•๐ฉ

๐ฉ=๐ฉโ€ฒ

โ‰ก ๐‰๐‘ ๐ธ๐‘Žโ€ฒ ๐ฉ = 0

ฮ”๐ฉ = ๐‰๐‘T๐‰๐‘

โˆ’1๐‰๐‘T(๐Ž๐‘ก โˆ’ ๐ˆ๐‘)

Page 16: DodecaPen: Accurate 6DoF Tracking of a Passive Stylus

Backtracking Line Search (BLS)

Gauss-Newton iteration does not always converge with a fixed step size since our least squares problem is nonlinear.

We shrink ฮ”๐ฉ by ฮ”๐ฉ โ† ฮฑฮ”๐ฉ until it meets the Armijo-Goldstein condition below:

๐ธ๐‘Ž ๐ฉโ€ฒ + ฮ”๐ฉ โ‰ค ๐ธ๐‘Ž ๐ฉโ€ฒ + ๐‘๐›ป๐ธ๐‘Ž ๐ฉโ€ฒ Tฮ”๐ฉ

๐›ป๐ธ๐‘Ž ๐ฉโ€ฒ is the local function gradient

ฮฑ = 0.5 , ๐‘ = 10โˆ’4

@Students in AI WorkshopDodecaPen 16

Page 17: DodecaPen: Accurate 6DoF Tracking of a Passive Stylus

Dodecahedron Calibration (DC)

Determine the precise pose of each marker with respect to the dodecahedron

One-time offline bundle adjustment

๐ธ๐‘Ž ๐ฉ๐‘— , ๐ฉ๐‘˜ =

๐‘–

๐‘—

๐‘˜

๐ผ๐‘ ๐ฎ๐‘– ๐ฑ๐‘–; ๐ฉ๐‘—; ๐ฉ๐‘˜ โˆ’ ๐‘‚๐‘ก ๐ฑ๐‘–

2

17

๐ผ๐‘: camera image๐‘‚๐‘ก: target object๐ฑ: point on the dodecahedron๐ฎ: transformed ๐ฑ point in the camera frame๐ฉ: dodecahedron pose๐ฉ: marker pose

Page 18: DodecaPen: Accurate 6DoF Tracking of a Passive Stylus

Outline

Introduction

Proposed System

Experimental Results

Conclusion

@Students in AI WorkshopDodecaPen 18

Page 19: DodecaPen: Accurate 6DoF Tracking of a Passive Stylus

Evaluation with Synthetic Data

We generate synthetic image sequences with 24 motion patterns of the virtual DodecaPen Each sequence consists of 301 frames with the same

resolution (1280*1024) and intrinsics as our real camera.

We further evaluate the proposed approaches under varying shot noise, spatial blur, camera resolutions, and mask kernel widths.

@Students in AI WorkshopDodecaPen 19

Page 20: DodecaPen: Accurate 6DoF Tracking of a Passive Stylus

@Students in AI WorkshopDodecaPen 20

Page 21: DodecaPen: Accurate 6DoF Tracking of a Passive Stylus

Pen-tip Trajectories

@Students in AI WorkshopDodecaPen 21

Page 22: DodecaPen: Accurate 6DoF Tracking of a Passive Stylus

@Students in AI WorkshopDodecaPen 22

Page 23: DodecaPen: Accurate 6DoF Tracking of a Passive Stylus

Evaluation with Real Data

Four real drawings

Compare with a motion capture system Constructed with 16 OptiTrack Prime 17W (1.7 megapixels, 70 degrees field-

of-view) cameras

@Students in AI WorkshopDodecaPen 23

Page 24: DodecaPen: Accurate 6DoF Tracking of a Passive Stylus

24

Page 25: DodecaPen: Accurate 6DoF Tracking of a Passive Stylus

DodecaPen VS. Mocap

@Students in AI WorkshopDodecaPen 25

The accuracy of the proposed method is comparable to a motion capture system with 10 active cameras.

TW$ 10,000 VS. TW$ 1,000,000

Page 26: DodecaPen: Accurate 6DoF Tracking of a Passive Stylus

Outline

Introduction

Proposed System

Experimental Results

Conclusion

@Students in AI WorkshopDodecaPen 26

Page 27: DodecaPen: Accurate 6DoF Tracking of a Passive Stylus

Conclusion

6DoF tracking using a set of readily available and easy-to-assemble components

Sub-millimeter accurate

Single camera pose estimation can be fast enough and robust enough for drawing in 2D, 3D and in VR

@Students in AI WorkshopDodecaPen 27

Page 28: DodecaPen: Accurate 6DoF Tracking of a Passive Stylus

Potential AI Research Topics

General Object Pose Tracking

@Students in AI WorkshopDodecaPen 28