运行示例需自行安装 OpenCV,README 未给出依赖版本;Python 与 C++ 示例的运行方式分别见 HOWTO_RUN_PYTHON.md 和 HOWTO_RUN_CPP.md;SuperPoint、SuperGlue 等示例需跳转到外部仓库单独获取
3dv_tutorial
mint-lab更新放缓面向所有人的 3D 视觉入门教程,用 OpenCV 和 CMake 带你动手实现相机标定、图像校正、视觉里程计、视觉 SLAM 与三维重建等几何视觉核心算法。
An Invitation to 3D Vision: A Tutorial for Everyone
git clone https://github.com/mint-lab/3dv_tutorial.gitREADME 未说明
用 OpenCV 实现 3D 视觉基础算法,配套讲义和百行内示例代码,适合入门学习
面向所有人的 3D 视觉入门教程,用 OpenCV 和 CMake 带你动手实现相机标定、图像校正、视觉里程计、视觉 SLAM 与三维重建等几何视觉核心算法。
核心能力
- 配套 8 个章节的 PDF 讲义,覆盖单视图到多视图几何
- 示例代码大多不超过 100 行,Python 与 C++ 双版本
- 覆盖相机标定、PnP 位姿估计、单应、极线几何与三角化
- 包含 SfM、Bundle Adjustment、视觉里程计等完整示例
- 提供从零实现版代码,如 Harris 角点、RANSAC 直线拟合
容易踩的坑
- miscOld Tutorial Slides最新正式版2017-02-10 · 2017-02-10 01:58 UTC
这个版本没有写更新说明。
用户点评
登录用户的真实使用记录,可按版本和硬件筛选还没有人点评。第一个说出真实体验的人最有价值。
An Invitation to 3D Vision: A Tutorial for Everyone
An Invitation to 3D Vision is an introductory tutorial on 3D computer vision (a.k.a. geometric vision or visual geometry or multiple-view geometry). It aims to help beginners understand the basic theories of 3D vision and implement practical applications using OpenCV. In addition to tutorial slides, example codes are provided for educational purposes. They include simple but interesting and practical applications. The example codes are kept as short as possible (mostly less than 100 lines) to be clear and easy to understand.
- To clone this repository (codes and slides):
git clone https://github.com/mint-lab/3dv_tutorial.git - To fork this repository to your GitHub account: Click here
- To download codes and slides as a ZIP file: Click here
- :memo: How to run example codes in Python
- :memo: How to run example codes in C++
Where does the name come from?
- The main title, An Invitation to 3D Vision, came from a legendary book by Yi Ma, Stefano Soatto, Jana Kosecka, and Shankar S. Sastry. We wish that our tutorial will be the first gentle invitation card for beginners to 3D vision and its applications.
- The subtitle, for everyone, was inspired by Prof. Kim's online lecture (in Korean). Our tutorial is also intended not only for students and researchers in academia, but also for hobbyists and developers in industry. We tried to describe important and typical problems and their solutions in OpenCV. We hope readers can understand it easily without a strong mathematical background.
Lecture Slides
- Section 1. Introduction
- Section 2. Single-view Geometry
- Section 3. Two-view Geometry
- Section 4. Solving Problems
- Section 5. Finding Correspondence
- Section 6. Multiple-view Geometry
- Special Topic) Bayesian Filtering
- Section 7. Visual SLAM and Odometry
- Section 8. 3D Representations
Example Codes
- Section 1. Introduction [slides]
- Section 2. Single-view Geometry [slides]
- Getting Started with 2D
- 3D rotation conversion [python]
- Pinhole Camera Model
- Geometric Distortion Models
- Geometric distortion visualization [python]
- Geometric distortion correction [python] [cpp] [result video]
- Geometric distortion correction with virtual PTZ [python]
- Camera Calibration
- Absolute Camera Pose Estimation (a.k.a. perspective-n-point; PnP)
- Pose estimation (chessboard) [python] [cpp] [result video]
- Pose estimation (book) [python] [cpp]
- Pose estimation (book) with camera calibration [python] [cpp]
- Pose estimation (book) with camera calibration without initial $K$ [python] [cpp] [result video]
- Getting Started with 2D
- Section 3. Two-view Geometry [slides]
- Planar Homography
- Epipolar Geometry
- Epipolar line visualization [python]
- Relative Camera Pose Estimation
- Fundamental matrix estimation [python]
- Monocular visual odometry (epipolar version) [python] [cpp] [result video]
- Triangulation
- Section 4. Solving Problems [slides]
- Solving Linear Equations in 3D Vision
- Solving Nonlinear Equations in 3D Vision
- Section 5. Finding Correspondence [slides]
- Feature Points and Descriptors
- Feature Matching and Tracking
- Outlier Rejection
- Section 6. Multiple-view Geometry [slides]
- Section 7. Visual SLAM and Odometry [slides]
- Section 8. 3D Representations [slides]
License
Authors
Acknowledgement
The authors thank the following contributors and projects.
- Jae-Yeong Lee: He motivated many examples.
- Giseop Kim: He contributed the initial version of SfM codes based on Toy-SfM and cvsba.
- Nell's Security: Their fisheye example image was used to demonstrate geometric distortion correction with virtual PTZ.
- Richard Blais: His book cover and video in the OpenCV tutorial were used to demonstrate camera pose estimation and augmented reality.
- Russell Hewett: His two hill images were used to demonstrate image stitching.
- Kang Li: His shaking CCTV video was used to demonstrate video stabilization.
- The KITTI Vision Benchmark Suite: The KITTI odometry dataset #07 was used to demonstrate visual odometry and SLAM.