Git Product home page Git Product logo

stereo-pose-machines's Introduction

Stereo Pose Machines

demo

What it does:

  1. Compute 2D joints detected by CPM from stereo cameras
  2. Match the joints by guided patch-matching
  3. Triangulate the joints
  4. Build a 3D skeleton

Check out our Video Demo ! The project is a course demo and is not maintained.

Dependencies:

  • A pair of Pylon Cameras
  • Eigen3
  • OpenCV
  • tensorpack
  • PyYaml
  • PyOpenGL

Compile:

make -C src/cpp

Test Cameras:

cd src/cpp && ./main.bin

Two cameras could be detected in any order. To make the order consistent across runs, src/cpp/pylon_camera.cc assumes that the camera whose name contains "711" is the first camera. You'll need to change it for your case.

Calibrate Cameras:

Use main.bin to take images and use Kalibr to produce a yaml similar to the files in calibr-1211. Change the path in main.py to your own calibration results. Also change the undistortion coefficients in cpp/camera.hh.

Test CPM is working:

Download model to data/cpm.npy. See tensorpack CPM examples for instructions.

cd src/cpp && python2 main.py -t 'cpm-viewer'

It will use 2 GPU to run 2 CPMs in parallel.

Test 3D Visualization is working:

cd visualization && python2 main.py ../data/final-demo.npy

Its OpenGL bindings don't work on certain systems (e.g. Ubuntu). Don't know why.

Run Stereo CPM:

cd src/cpp && python2 main.py -t 'cpm3d'

This will send 3d point coordinates to 0.0.0.0:8888. You can use --host <ip address> to change the IP.

To start a server (maybe on some other computers) to receive points and visualize:

cd visualization && python main-server.py

stereo-pose-machines's People

Contributors

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