GithubHelp home page GithubHelp logo

sdaujohnfan / active-video-summarization Goto Github PK

View Code? Open in Web Editor NEW

This project forked from garciadelmolino/active-video-summarization

0.0 1.0 0.0 100.29 MB

Customized summarization of egocentric videos as described in "Active Video Summarization: Customized Summaries via On-line Interaction with the User." AAAI. 2017.

License: GNU General Public License v3.0

MATLAB 12.42% Makefile 0.22% C++ 87.37%

active-video-summarization's Introduction

Active Video Summarization

Customized summarization of egocentric videos through minimal user interaction as described in our AAAI-2017 paper.

Requirements:

1) Caffe Deep Learning Framework and matcaffe wrapper (for global features calculation)
	Caffe main page: http://caffe.berkeleyvision.org/
	Good Linux installation tutorial: https://github.com/tiangolo/caffe/blob/ubuntu-tutorial-b/docs/install_apt2.md
	Model Zoo (places, objects, etc): https://github.com/BVLC/caffe/wiki/Model-Zoo 
2) C++ compiler
3) MATLAB*
4) avconv/ffmpeg or any other tool to extract the frames from the video.


*Please note that Matlab R2011b was used to implement and test AVS. Therefore, if using newer versions, some functions (e.g. ismember) may need a 'legacy' flag.

Dataset

AVS.m can be used as a demo with CSumm, as the features for some of the videos are provided (the videos can be downloaded here). AVS has been tested on CSumm, UTEgo, and four videos in SumMe. Alternatively, any other video data can be used, as long as the needed features can be extracted.

The provided image features and metadata labels have been obtained at 10fps. For AVS GUI to work as expected with such features, the original videos need to be converted to frames at that rate. AVS will execute the frame extraction automatically using avconv. Alternatively, you can choose to run in your terminal

mkdir VIDEOid
avconv -i VIDEOid.mp4 -r 10 -f image2 VIDEOid/VIDEOid_%04d.png

(For Windows 10, we recommend using Bash on Ubuntu on Windows to perform this operation)

Citation

If you use this code or CSumm dataset, please cite the following paper:

    GARCIA DEL MOLINO, A.; BOIX, X.; LIM, J.H.; TAN, A.H. 
    Active Video Summarization: Customized Summaries via On-line Interaction with the User. 
    AAAI Conference on Artificial Intelligence, North America, feb. 2017. 
    Available at: <https://www.aaai.org/ocs/index.php/AAAI/AAAI17/paper/view/14856>.

MRF

Our implementation of the MRF is a modification of the MAXFLOW library by Yuri Boykov. Please check their license and README files for how to use and cite it.

There are two implementations for MRF: one for windows, one for unix systems. Make sure you are using the right one for your machine. To compile, go to the MRF folder and:

Windows: 
	run MakeWin on the VS console. (Change LIBPATH for your MATLAB path and version)
	run make_matlab in MATLAB.

Unix:	
	run make on the console.
	run make_matlab in MATLAB.

How To

Run AVS.m for a walk-through of the system. AVS will first extract all video frames at 10fps using avconv. This will only work on Unix systems. For Windows 10, we recommend using Bash on Ubuntu on Windows to perform this operation.

AVS.m uses batch and paralel programming. If matlabpool is not possible in your machine, change all batch calls to simple script calls to speed the computation.

Function structure:

AVS.m 	-- extract_frames (once done, set the conditional to 0)
	-- descriptor (batch) -- load_features -- extract_cnn
	-- segmentation (batch)
	-- passive (batch) (requires object_dir and places_dir to be modified)
	-- init_crf (batch) -- my_kmeans
	-- compute_summ
	-- what_to_query (batch) -- compute_summ
	-- movie_show

active-video-summarization's People

Contributors

garciadelmolino avatar

Watchers

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