Skip to content

Comparitive Analysis of depth maps using monocular depth estimation and 3d point cloud creation

Notifications You must be signed in to change notification settings

devanjanmishra/DepthMaps_3DPointCloud_Creation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

3D Point Cloud Creation for an Image using Monocular Depth Estimation

Calculate 3D point cloud from an image by estimating the depth of objects in the image and the projecting the depth in 3D using camera intrinsic parameters.

Benchmark Monocular Depth Estimation Model:

Based on my research and recent developments in available monocular depth estimation, two models were selected:

  1. Depth Anything Model-V2
  2. Metric3D

Both the models offer great depth accuracy, but Metric 3D model stood out for me with the provided configurations for different conditions.

Metric3D models also provides with normal estimations from the model itself, rather relying on external libraries like opencv,open3d which is an additional benefit. Sample Inclusion from output:

image

Projecting Depth Map in 3D

The depth map, RGB image and Normal image are scaled down to reduce the overall number of points in 3D point cloud.

There are two examples included currently:

1) Study Table with all Point of Interests in same Relative Depth

Description of image Description of gif

2) Study Table with Point of Interests at contrasting depth

Description of image Description of gif

To-Do List

  • Select Appropriate Depth Estimation Model.
  • Create Depth Map and Normal Map using selected Monocular Depth Estimation.
  • Create Point Cloud using Depth Map, Normal Map and Camera Intrinsics( Given or Previously calculated).
  • Validate Point Cloud Accuracy by comparing the dimensions in actual world and Point Cloud.

Citations and Acknowledgments

This project uses the following resources:

  • Metric3D - For Monocular Depth Estimation Model.
    @article{hu2024metric3dv2, title={Metric3D v2: A Versatile Monocular Geometric Foundation Model for Zero-shot Metric Depth and Surface Normal Estimation}, author={Hu, Mu and Yin, Wei and Zhang, Chi and Cai, Zhipeng and Long, Xiaoxiao and Chen, Hao and Wang, Kaixuan and Yu, Gang and Shen, Chunhua and Shen, Shaojie}, journal={arXiv preprint arXiv:2404.15506}, year={2024} }

License

The Metric 3D code is under a 2-clause BSD License for non-commercial usage. For further questions, contact Dr. Wei Yin [[email protected]] and Mr. Mu Hu [[email protected]].

About

Comparitive Analysis of depth maps using monocular depth estimation and 3d point cloud creation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published