Coder Social home page Coder Social logo

yan0409 / gcam2ply Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 0xtob/gcam2ply

0.0 1.0 0.0 284 KB

Create 3D point clouds from depth images captured with the lens blur feature of the Google Camera app for Android.

License: GNU General Public License v2.0

Python 79.40% Shell 20.60%

gcam2ply's Introduction

gcam2ply

gcam2ply diagram

Creates a 3D point cloud (PLY) from a depth image captured with the lens blur feature of the Google Camera app for Android.

Usage

Make sure you have exiftool and scipy installed and call:

./gcam2ply.sh image.jpg model.ply $w $h $f

w, h, and f are the sensor with, sensor height and focal length of your phone's camera in mm, respectively. For the Nexus 5, the values are w: 4.54, h: 3.42, f: 4.0 .

Information on the Google Camera depth data is available here.

Limitations

  • Simple camera model: No skew, principal point at (0,0).
  • Assuming 8-bit PNG depth maps.

Tips

  • You can get much higher resolution models by changing the lens blur quality to high in the Google Camera app.
  • For best quality, turn down the blur to minimum before saving the image. Otherwise, the color information in the point cloud will be blurred as well.
  • Meshlab is a nice tool for viewing PLY point clouds.

Fork me on Github

gcam2ply's People

Contributors

0xtob avatar

Watchers

James Cloos 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.