Giter Club home page Giter Club logo

reconstruction-from-depth's Introduction

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')

reconstruction-from-depth's People

Contributors

serkandemirci avatar

Stargazers

SyusukeYasui avatar Yiran Zhang avatar  avatar Kuangen Zhang avatar Jean-Philippe Deblonde avatar SNQL avatar Hasan Balcı avatar Ben avatar Furkan Tüzemen avatar  avatar Xiaoyu Zhu avatar  avatar Ziya ERKOC avatar Rahul Vast avatar  avatar Sergiu Cuciurean avatar Lucas avatar Neo avatar Kaustav Ghosh avatar Zain  avatar Yalım Doğan avatar Doron Adler avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.