Giter VIP home page Giter VIP logo

open3d_truedepth_registration's Introduction

This is repo demonstrates how to use the iPhone TrueDepth camera as a 3D scanner. It performs automatic 3D point cloud registration and can optionally generate a 3D colored mesh. It has been tested in the simple scenario where the user pans 360 dgrees around an object and captures every 10 degrees or so.

You can check my blog post on this code at http://nghiaho.com/?p=2629

Dataset

Download the test dataset and extract it somewhere

curl -O https://nghiaho.com/uploads/box_can.zip

The script expects the following directory structure

folder/calibration.json
folder/depthXX.bin
folder/videoXX.bin

To modify for your dataset edit the function process3d in process3d.py.

This dataset was provided by my friend at https://punkoffice.com.

Git submodule

Call the following to pull in the pybind11 submodule.

git submodule update --init --recursive

Python libraries

You'll need the following Python libraries installed

  • Open3D
  • Numpy
  • Scipy
  • OpenCV
  • torch
  • sklearn
  • pandas

All the above can be installed using pip

pip install open3d
pip install numpy
pip install scipy
pip install opencv-python
pip install torch
pip install sklearn
pip install pandas

Compiling pose_graph.cpp

You'll need the following C++ libraries installed

On Ubuntu you can try

sudo apt-get install libeigen3-dev
sudo apt-get install libceres-dev

Compile the C++ pose graph file.

cd cpp
mkdir build
cd build
cmake ..
make
make install (do not run as sudo!)

Running

Go back to the root folder and run

python3 run.py [path to test dataset]

For all available options

$ python3 run.py -h

Useful options

Tuning for your scenario

You'll want to adjust the following so your object is segmented out from the background

  • --min_depth
  • --max_depth

Meshing

You can enable mesh reconstruction with --mesh 1. If you only expect a single mesh you can also use --keep_largest_mesh 1. This is useful for removing noise.

open3d_truedepth_registration's People

Contributors

nghiaho12 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.