comparison scripts/setup-tracking.sh @ 444:4a62c3b1eb3a

added example script to install and compile the feature-based tracking software (installing ubuntu dependencies, downloading and compiling the OpenCV library)
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Thu, 30 Jan 2014 14:43:53 -0500
parents
children 974077e23804
comparison
equal deleted inserted replaced
443:51810d737d86 444:4a62c3b1eb3a
1 version="$(wget -q -O - http://sourceforge.net/projects/opencvlibrary/files/opencv-unix | egrep -m1 -o '\"[0-9](\.[0-9])+' | cut -c2-)"
2 echo "Removing any pre-installed ffmpeg and x264"
3 sudo apt-get -qq remove ffmpeg x264 libx264-dev
4 echo "Installing Dependencies"
5 sudo apt-get -qq install libopencv-dev build-essential checkinstall cmake pkg-config yasm libtiff4-dev libjpeg-dev libjasper-dev libavcodec-dev libavformat-dev libswscale-dev libdc1394-22-dev libxine-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev libv4l-dev python-dev python-numpy libtbb-dev libqt4-dev libgtk2.0-dev libfaac-dev libmp3lame-dev libopencore-amrnb-dev libopencore-amrwb-dev libtheora-dev libvorbis-dev libxvidcore-dev x264 v4l-utils ffmpeg
6 sudo apt-get -qq install libavfilter-dev libboost-dev libboost-program-options-dev libboost-graph-dev python-setuptools python-dev libcppunit-dev sqlite3 libsqlite3-dev cmake-qt-gui libboost-all-dev
7 sudo easy_install -U mercurial
8 echo "Installing OpenCV" $version
9 cd
10 mkdir OpenCV
11 cd OpenCV
12 echo "Downloading OpenCV" $version
13 wget -O OpenCV-$version.tar.gz http://sourceforge.net/projects/opencvlibrary/files/opencv-unix/$version/opencv-"$version".tar.gz/download
14 echo "Installing OpenCV" $version
15 tar -xvf OpenCV-$version.tar.gz
16 cd opencv-$version
17 mkdir release
18 cd release
19 cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local ..
20 make
21 sudo make install
22 echo "OpenCV" $version "ready to be used"
23
24 echo "Installing Traffic Intelligence..."
25 cd
26 mkdir Research
27 cd Research
28 mkdir Code
29 cd Code
30 hg clone https://Nicolas@bitbucket.org/trajectories/trajectorymanagementandanalysis
31 hg clone https://Nicolas@bitbucket.org/Nicolas/trafficintelligence
32 cd trajectorymanagementandanalysis/trunk/src/TrajectoryManagementAndAnalysis/
33 cmake .
34 make TrajectoryManagementAndAnalysis
35 cd
36 cd trafficintelligence/c/
37 make feature-based-tracking
38 cd
39