Giter Club home page Giter Club logo

keypointer's Introduction

KeyPointer

Keypoint extractor using openpose and opencv.

Given a video generates a numpy array containing the extracted keypoints and cleans up afterweards, if wished.

Installation:

Navigate to this repository. This will install the tool vid_to_key and link it to $HOME/.local/bin:

pip install -e .

Add -vvv flag to see all installation outputs.

If you cannot find the executable vid_to_key afterwards and/or adding -vvv does not produce an output line linking script, try the following:

python setup.py install

Now it can be called from anywhere on you system. If you installed it in a virtualenv, make sure to start the virtualenv before calling the script.

Example usage:

If run on hci servers needs to be run on hcigpu01!

This will extract keypoints from all videos or images inside the folder using the gpu with index 1:

cd /path/to/where_my_video_is/
vid_to_key -cvd 1

It is equivalent to:

vid_to_key --v '/path/to/where_my_video_is/'

If fthe folder contains videos, keypoints are extracted for each video. If it contains images, these are interpreted as coming from one video. Make sure the images follow the nameing convention FRAMENUMBER_VIDEONAME.jpg, though only the framenumber and the _ are important.

Note that if the folder contains both videos and images an error is raised.

You can also point to a video directly:

vid_to_key --v /path/to/video.mpg

The script assumes that there is only one person in the video. This number can be increased with the --np argument:

vid_to_key --np 3 --v /path/to/video.mpg

During the creation of the keypoint file a lot of images ans json files are created. These can be deleted using the --ci and --cj flags respectiveley.

vid_to_key --ci --cj --v /path/to/video.mpg

keypointer's People

Contributors

jhaux avatar pesser avatar

Watchers

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