GithubHelp home page GithubHelp logo

tubbz-alt / kinect_3d_dev Goto Github PK

View Code? Open in Web Editor NEW

This project forked from janbijster/kinect_3d_dev

0.0 1.0 0.0 41 KB

Scripts to read out the Kinect v1 (xbox 360) scanner and combine multiple scans into meshes, pointclouds or voxels.

Python 100.00%

kinect_3d_dev's Introduction

Kinect 3d scanning and combining

Collection of scripts to acquire depth images from one or more Kinect v1 (xbox360) sensors and generate 3d models from them. The repository is divided in two parts, with different system and python requirements:

  1. kinect_interface/
  2. depth_image_processing/

The scripts in kinect_interface/ are only for acquiring depth images from the kinect sensor and storing them as .npy files. These scripts use pykinect with the Microsoft Kinect SDK and these dependencies also dictate the requirements, most importantly a Windows environment and Python 2.7. For Mac and Linux computers there are other ways of getting depth images from kinect sensors like OpenNI, see for instance the guide at [https://docs.opencv.org/2.4/doc/user_guide/ug_kinect.html].

The scripts in depth_image_processing/ constitute the main part of this repo. They are platform independent and require python 3.

1) kinect_interface/

1.1) Installation

(Windows only)

  1. Download & install the Microsoft Kinect SDK v1.8 [https://www.microsoft.com/en-us/download/details.aspx?id=40278]

  2. Optional but recommended because of the different python version: create a virtualenv with python 2.7 interpreter:

    virtualenv --python=<path/to/python2.7/interpreter> <path/to/new/virtualenv/>

    Example: virtualenv --python=D:/python27/python.exe kinect_interface/env

    Then, activate the environment. (Run <path/to/new/virtualenv>/scripts/activate)

  3. Move to the kinect_interface/ folder and install dependencies:

    pip install -r requirements.txt

1.2) Usage

  1. Connect Kinect scanners and position them pointing at the center of the stage/subject.
  2. Run python acquire.py, enter a name for the session and the number of connected sensors.

2) depth_image_processing/

2.1) Installation

  1. Optional: create a virtualenv with python 3.x interpreter:

    virtualenv --python=<path/to/python3/interpreter> <path/to/new/virtualenv/>

    Then, activate the environment. (Run <path/to/new/virtualenv>/scripts/activate)

  2. Move to the kinect_interface/ folder and install dependencies:

    pip install -r requirements.txt

2) depth_image_processing/

2.1) Installation

  1. Optional but recommended because of the different python version: create a virtualenv with python 2.7 interpreter:

    virtualenv --python=<path/to/python3.x/interpreter> <path/to/new/virtualenv/>

    Example: virtualenv --python=D:/python37/python.exe depth_image_processing/env

    Then, activate the environment. (Run <path/to/new/virtualenv>/scripts/activate)

  2. Move to the depth_image_processing/ folder and install dependencies:

    pip install -r requirements.txt

2.2) Usage

  1. Run calibrate_manually.py:
  • in the parameters in the top of the file you can specify the session name, number of sensors and the snapshot index to use for the calibration.
  • Use the specified keys to position the views, then press u to save.
  1. Run test_calibration.py (with the right parameters for session name and number of sensors) to test if the calibration was saved right.

  2. Run combine_continuous.py (with the right parameters for session name and number of sensors)

kinect_3d_dev's People

Contributors

janbijster avatar

Watchers

 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.