Mercurial Hosting > traffic-intelligence
annotate scripts/setup-tracking.sh @ 986:3be8aaa47651
work in progress
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Tue, 06 Mar 2018 23:54:10 -0500 |
parents | 974077e23804 |
children | cc5cb04b04b0 |
rev | line source |
---|---|
925
974077e23804
update on setup script (not tested)
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
444
diff
changeset
|
1 version="$(wget -q -O - http://sourceforge.net/projects/opencvlibrary/files/opencv-unix | egrep -m1 -o '\"[0-2](\.[0-9]+)+' | cut -c2-)" |
974077e23804
update on setup script (not tested)
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
444
diff
changeset
|
2 #'\"[0-9](\.[0-9])+' |
444
4a62c3b1eb3a
added example script to install and compile the feature-based tracking software (installing ubuntu dependencies, downloading and compiling the OpenCV library)
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff
changeset
|
3 echo "Removing any pre-installed ffmpeg and x264" |
925
974077e23804
update on setup script (not tested)
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
444
diff
changeset
|
4 sudo apt -qq remove ffmpeg x264 libx264-dev |
444
4a62c3b1eb3a
added example script to install and compile the feature-based tracking software (installing ubuntu dependencies, downloading and compiling the OpenCV library)
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff
changeset
|
5 echo "Installing Dependencies" |
925
974077e23804
update on setup script (not tested)
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
444
diff
changeset
|
6 sudo apt -qq install build-essential checkinstall cmake pkg-config yasm libtiff5-dev libjpeg-dev libjasper-dev libavcodec-dev libavformat-dev libswscale-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev libv4l-dev python-dev libtbb-dev libgtk2.0-dev libfaac-dev libmp3lame-dev libtheora-dev libvorbis-dev libxvidcore-dev x264 |
974077e23804
update on setup script (not tested)
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
444
diff
changeset
|
7 # libdc1394-22-dev libxine-dev python-numpy libqt4-dev libopencore-amrnb-dev libopencore-amrwb-dev v4l-utils ffmpeg libboost-all-dev |
974077e23804
update on setup script (not tested)
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
444
diff
changeset
|
8 sudo apt -qq install libavfilter-dev libboost-dev libboost-program-options-dev libboost-graph-dev python-pip sqlite3 libsqlite3-dev cmake-qt-gui libgeos-dev |
974077e23804
update on setup script (not tested)
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
444
diff
changeset
|
9 sudo -H pip install --upgrade mercurial numpy matplotlib scikit-image scikit-learn |
444
4a62c3b1eb3a
added example script to install and compile the feature-based tracking software (installing ubuntu dependencies, downloading and compiling the OpenCV library)
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff
changeset
|
10 echo "Installing OpenCV" $version |
4a62c3b1eb3a
added example script to install and compile the feature-based tracking software (installing ubuntu dependencies, downloading and compiling the OpenCV library)
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff
changeset
|
11 cd |
4a62c3b1eb3a
added example script to install and compile the feature-based tracking software (installing ubuntu dependencies, downloading and compiling the OpenCV library)
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff
changeset
|
12 mkdir OpenCV |
4a62c3b1eb3a
added example script to install and compile the feature-based tracking software (installing ubuntu dependencies, downloading and compiling the OpenCV library)
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff
changeset
|
13 cd OpenCV |
4a62c3b1eb3a
added example script to install and compile the feature-based tracking software (installing ubuntu dependencies, downloading and compiling the OpenCV library)
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff
changeset
|
14 echo "Downloading OpenCV" $version |
925
974077e23804
update on setup script (not tested)
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
444
diff
changeset
|
15 wget -O OpenCV-$version.zip http://sourceforge.net/projects/opencvlibrary/files/opencv-unix/$version/opencv-"$version".zip/download |
444
4a62c3b1eb3a
added example script to install and compile the feature-based tracking software (installing ubuntu dependencies, downloading and compiling the OpenCV library)
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff
changeset
|
16 echo "Installing OpenCV" $version |
925
974077e23804
update on setup script (not tested)
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
444
diff
changeset
|
17 unzip OpenCV-$version.tar.gz |
974077e23804
update on setup script (not tested)
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
444
diff
changeset
|
18 #tar -xvf |
444
4a62c3b1eb3a
added example script to install and compile the feature-based tracking software (installing ubuntu dependencies, downloading and compiling the OpenCV library)
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff
changeset
|
19 cd opencv-$version |
4a62c3b1eb3a
added example script to install and compile the feature-based tracking software (installing ubuntu dependencies, downloading and compiling the OpenCV library)
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff
changeset
|
20 mkdir release |
4a62c3b1eb3a
added example script to install and compile the feature-based tracking software (installing ubuntu dependencies, downloading and compiling the OpenCV library)
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff
changeset
|
21 cd release |
4a62c3b1eb3a
added example script to install and compile the feature-based tracking software (installing ubuntu dependencies, downloading and compiling the OpenCV library)
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff
changeset
|
22 cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local .. |
4a62c3b1eb3a
added example script to install and compile the feature-based tracking software (installing ubuntu dependencies, downloading and compiling the OpenCV library)
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff
changeset
|
23 make |
925
974077e23804
update on setup script (not tested)
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
444
diff
changeset
|
24 sudo make -j4 install |
444
4a62c3b1eb3a
added example script to install and compile the feature-based tracking software (installing ubuntu dependencies, downloading and compiling the OpenCV library)
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff
changeset
|
25 echo "OpenCV" $version "ready to be used" |
4a62c3b1eb3a
added example script to install and compile the feature-based tracking software (installing ubuntu dependencies, downloading and compiling the OpenCV library)
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff
changeset
|
26 |
4a62c3b1eb3a
added example script to install and compile the feature-based tracking software (installing ubuntu dependencies, downloading and compiling the OpenCV library)
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff
changeset
|
27 echo "Installing Traffic Intelligence..." |
4a62c3b1eb3a
added example script to install and compile the feature-based tracking software (installing ubuntu dependencies, downloading and compiling the OpenCV library)
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff
changeset
|
28 cd |
4a62c3b1eb3a
added example script to install and compile the feature-based tracking software (installing ubuntu dependencies, downloading and compiling the OpenCV library)
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff
changeset
|
29 mkdir Research |
4a62c3b1eb3a
added example script to install and compile the feature-based tracking software (installing ubuntu dependencies, downloading and compiling the OpenCV library)
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff
changeset
|
30 cd Research |
4a62c3b1eb3a
added example script to install and compile the feature-based tracking software (installing ubuntu dependencies, downloading and compiling the OpenCV library)
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff
changeset
|
31 mkdir Code |
4a62c3b1eb3a
added example script to install and compile the feature-based tracking software (installing ubuntu dependencies, downloading and compiling the OpenCV library)
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff
changeset
|
32 cd Code |
4a62c3b1eb3a
added example script to install and compile the feature-based tracking software (installing ubuntu dependencies, downloading and compiling the OpenCV library)
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff
changeset
|
33 hg clone https://Nicolas@bitbucket.org/trajectories/trajectorymanagementandanalysis |
4a62c3b1eb3a
added example script to install and compile the feature-based tracking software (installing ubuntu dependencies, downloading and compiling the OpenCV library)
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff
changeset
|
34 hg clone https://Nicolas@bitbucket.org/Nicolas/trafficintelligence |
4a62c3b1eb3a
added example script to install and compile the feature-based tracking software (installing ubuntu dependencies, downloading and compiling the OpenCV library)
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff
changeset
|
35 cd trajectorymanagementandanalysis/trunk/src/TrajectoryManagementAndAnalysis/ |
4a62c3b1eb3a
added example script to install and compile the feature-based tracking software (installing ubuntu dependencies, downloading and compiling the OpenCV library)
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff
changeset
|
36 cmake . |
4a62c3b1eb3a
added example script to install and compile the feature-based tracking software (installing ubuntu dependencies, downloading and compiling the OpenCV library)
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff
changeset
|
37 make TrajectoryManagementAndAnalysis |
4a62c3b1eb3a
added example script to install and compile the feature-based tracking software (installing ubuntu dependencies, downloading and compiling the OpenCV library)
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff
changeset
|
38 cd |
4a62c3b1eb3a
added example script to install and compile the feature-based tracking software (installing ubuntu dependencies, downloading and compiling the OpenCV library)
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff
changeset
|
39 cd trafficintelligence/c/ |
4a62c3b1eb3a
added example script to install and compile the feature-based tracking software (installing ubuntu dependencies, downloading and compiling the OpenCV library)
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff
changeset
|
40 make feature-based-tracking |
4a62c3b1eb3a
added example script to install and compile the feature-based tracking software (installing ubuntu dependencies, downloading and compiling the OpenCV library)
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff
changeset
|
41 cd |
4a62c3b1eb3a
added example script to install and compile the feature-based tracking software (installing ubuntu dependencies, downloading and compiling the OpenCV library)
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff
changeset
|
42 |