Giter VIP home page Giter VIP logo

pyoniextractor's Introduction

pyOniExtractor

frame extractor for OpenNI2 recordins .Oni

Command line tool for frame extraction from OpenNI2 .oni recording. It was tested in Ubuntu 16.04 and Windows 10. OpenNI2 library are contained in the folder lib and comes from Orbbec (version 26/03/2018).

This software save all frames contained in each available stream in the recording (specified as parameter -v) as png in the folder specified (argument -d) within a step (argument -i).

Depth frames are saved in the original format (16bit grayscale) and in a more readable format, scaled to 8 bit and multiplied by a factor plus an offset (with also cast saturation). You can change this values in the code, they dependent by the max and min values of the depths.

Name of the saved images contain the frame ID, which in case of synchronization was enabled in the recording can be used to match color and depth frames.

Requirements:

Python 3 32bit, with the following packages (you can install them using pip):

  • openni
  • numpy
  • opencv 3 (opencv-python)

Usage

python3 frame_extractor.py [-h] -v VIDEO_PATH [-d DST] [-i INTERVAL]

optional arguments:

  -h, --help     show this help message and exit

  -v VIDEO_PATH  path Video (Required)
  
  -d DST         Destination Folder, default "img"
  
  -i INTERVAL    Interval, step of extraction, default 1

Acknowledgements

  • This work is partially inspired by the work of danielelic.

pyoniextractor's People

Contributors

rokopi-byte avatar

Stargazers

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