Skip to content

kemerelab/VideoAnalysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VideoAnalysis

This is a stand-alone OpenCV-based video analysis program designed to annotate and navigate through video files, perform lens correction from camera calibration data, and to perform automated animal tracking.

Currently implemented:

  • Fast keyboard-based video navigation
  • Background segmentation using Mixtures of Gaussians (MoG)
  • ROI-based processing
  • tracking coming soon!

The code depends on features of OpenCV 3.0.0 beta, Qt 5+, and OpenCV-contrib (tracking-api). It has been tested in Ubuntu 14.04 LTS.

Installation instructions for OpenCV on Ubuntu 14.04

Install and configure OpenCV and its dependencies

  1. download latest version opencv-3.0.0-beta from http://opencv.org/downloads.html
  2. run the following in your terminal:
    sudo apt-get install build-essential
    sudo apt-get install libopencv-dev libqt5svg5-dev qtcreator #not sure which ones are necessary...
    sudo apt-get install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev
    sudo apt-get install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev
  3. in your terminal, make sure you are within the OpenCV directory (presumably ~/home/Downloads/opencv-3.0.0-beta/) and run the following commands:
    git clone https://github.com/Itseez/opencv_contrib.git
    mkdir build
    cd build
    cmake -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_INSTALL_PREFIX=/usr/local -DFORCE_VTK=ON -DWITH_GDAL=ON -DWITH_XINE=ON -DWITH_CUBLAS=ON -DWITH_CUFFT=ON -DWITH_OPENGL=ON -DWITH_QT=ON -DWITH_TBB=ON -DBUILD_DOCS=ON -DBUILD_EXAMPLES=ON -DBUILD_TESTS=ON -D CUDA_ARCH_BIN="3.0" -DOPENCV_EXTRA_MODULES_PATH=../opencv_contrib/modules .. -DBUILD_opencv_cvv=OFF
  4. then build and install:
    make -j7 # runs 7 jobs in parallel
    sudo make install
  5. finally, configure OpenCV: sudo ldconfig

Install and run VideoAnalysis software

  1. in your terminal, navigate to where you want the VideoAnalysis software to be downloaded to.
  2. get the latest version of VideoAnalysis by typing the following in your terminal:
    git clone https://github.com/kemerelab/VideoAnalysis
  3. from within the VideoAnalysis directory (`cd VideoAnalysis`), make a build directory, and compile the software:
    mkdir build
    cd build
    cmake .. && make
    
  4. then run the software:
    ./vidanalysis -fn=../data/BehaviorVideo_09052014_173527.mp4 -s

About

Stand-alone application for offline video analysis and realtime tracking, To be integrated with BehavioralVideo software later on.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors