Skip to content

SerkanDemirci/reconstruction-from-depth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reconstruction from depth

Converts an image into 3d mesh using depth map of the image.

Requirements

  • Opencv - Required for reading image
  • Numpy - Required for storing image & for matrix operations

Usage:

$ python depthTo3d.py <input-image> <input-depth> <output-ply-file> <fx> <fy> <cx> <cy>

Example:

$ python depthTo3d.py sofa.jpg sofa_depth.png s.ply 1148.93617021 1150.38461538 750 500

Future Works

  • Use texture mapping
  • Smooth generated meshes
  • Estimate position of the lights in the scene
  • Estimate material properties
  • Extract depth using single image

Reconstruction API

  from reconstruct import reconstruct3d
  from ply import *

  mesh = reconstruct3d(image,depth_map,camera_parameters, step = 1, mesh = True, transformation = None)

  mesh.save('out.ply', color = 'texture')

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages