This project aims to perform 2D to 3D reconstruction using computer vision techniques. It involves various steps such as camera calibration, feature extraction, sparse reconstruction, and bundle adjustment.
_2D_3D.py: This file contains the code for camera calibration using chessboard images.Feature_Extraction.py: This file is responsible for extracting features from object images.Sparse_Reconstruction.py: This file performs sparse reconstruction to generate 3D points.BundleAdjustment.py: This file optimizes the camera poses and 3D points using bundle adjustment.
- OpenCV
- NumPy
- OpenSfM
- Place your chessboard images in the
Calibration Imagesfolder. - Place your object images in the
Object Imagesfolder. - Run
_2D_3D.pyfor camera calibration. - Run
Feature_Extraction.pyto extract features from object images. - Run
Sparse_Reconstruction.pyfor sparse reconstruction. - Run
BundleAdjustment.pyfor bundle adjustment.
This project is open-source and available under the MIT License.
Feel free to contribute to this project by opening issues or submitting pull requests.