Giter Site home page Giter Site logo

enric1994 / improved_traj_cuda Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ffmpbgrnn/improved_traj_cuda

0.0 2.0 0.0 170 KB

GPU implementation of improved dense trajectory

C++ 43.94% Makefile 0.68% Python 0.62% Cuda 54.21% C 0.48% Dockerfile 0.07%

improved_traj_cuda's Introduction

### Compiling ###

In order to compile the improved trajectories code, you need to have the following libraries installed in your system:
* OpenCV library (tested with OpenCV-2.4.2)
* ffmpeg library (tested with ffmpeg-0.11.1)

Currently, the libraries are the latest versions. In case they will be out of date, you can also find them on our website: http://lear.inrialpes.fr/people/wang/improved_trajectories

If these libraries are installed correctly, simply type 'make' to compile the code. The executable will be in the directory './release/'.

### test video decoding  ###

The most complicated part of compiling is to install opencv and ffmpeg. To make sure your video is decoded properly, we have a simple code (named 'Video.cpp') for visualization:

./release/Video your_video.avi

If your video plays smoothly, congratulations! You are just one step before getting the features.

If there is a bug and the video can't be decoded, you need first fix your bug. You can find plenty of instructions about how to install opencv and ffmpeg on the web.

### compute features on a test video ###

Once you are able to decode the video, computing our features is simple:

./release/DenseTrackStab ./test_sequences/person01_boxing_d1_uncomp.avi | gzip > out.features.gz

Now you want to compare your file out.features.gz with the file that we have computed to verify that everything is working correctly. To do so, type:

vimdiff out.features.gz ./test_sequences/person01_boxing_d1.gz 

Note that due to different versions of codecs, your features may be slightly different with ours. But the major part should be the same.

Due to the randomness of RANSAC, you may get different features for some videos. But for the example "person01_boxing_d1_uncomp.avi", I don't observe any randomness. 

There are more explanations about our features on the website, and also a list of FAQ.

### History ###

* October 2013: improved_trajectory_release.tar.gz
                The code is an extension of dense_trajectory_release_v1.2.tar.gz

### Bugs and extensions ###

If you find bugs, etc., feel free to drop me a line. Also if you developed some extension to the program, let me know and I can include it in the code. You can find my contact data on my webpage, as well.

http://lear.inrialpes.fr/people/wang/

### LICENSE CONDITIONS ###

Copyright (C) 2011 Heng Wang 

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.

improved_traj_cuda's People

Contributors

ffmpbgrnn avatar enric1994 avatar

Watchers

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