SkillAgentSearch skills...

VideoAnalysis

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

Install / Use

/learn @kemerelab/VideoAnalysis
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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:

<ul> <li>Fast keyboard-based video navigation</li> <li>Background segmentation using Mixtures of Gaussians (MoG)</li> <li>ROI-based processing</li> <li>tracking coming soon!</li> </ul>

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

<ol> <li>download latest version opencv-3.0.0-beta from http://opencv.org/downloads.html</li> <li>run the following in your terminal: <pre>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</pre></li> <li>in your terminal, make sure you are within the OpenCV directory (presumably ~/home/Downloads/opencv-3.0.0-beta/) and run the following commands: <pre> 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</pre></li> <li>then build and install: <pre>make -j7 # runs 7 jobs in parallel sudo make install</pre></li> <li>finally, configure OpenCV: <code>sudo ldconfig</code></li> </ol>

Install and run VideoAnalysis software

<ol> <li>in your terminal, navigate to where you want the VideoAnalysis software to be downloaded to.</li> <li>get the latest version of VideoAnalysis by typing the following in your terminal: <pre>git clone https://github.com/kemerelab/VideoAnalysis</pre> </li> <li>from within the VideoAnalysis directory (`cd VideoAnalysis`), make a build directory, and compile the software: <pre> mkdir build cd build cmake .. && make </pre></li> <li>then run the software: <pre>./vidanalysis -fn=../data/BehaviorVideo_09052014_173527.mp4 -s</pre></li> </ol>
View on GitHub
GitHub Stars5
CategoryContent
Updated2y ago
Forks3

Languages

C++

Security Score

55/100

Audited on Aug 27, 2023

No findings