Mercurial Hosting > traffic-intelligence
annotate scripts/setup-tracking.sh @ 1246:2397de73770d
dltrack saves after projecting coordinates
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Fri, 09 Feb 2024 17:47:33 -0500 |
parents | cc5cb04b04b0 |
children |
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 |
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
|
9 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
|
10 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
|
11 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
|
12 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
|
13 echo "Downloading OpenCV" $version |
925
974077e23804
update on setup script (not tested)
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
444
diff
changeset
|
14 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
|
15 echo "Installing OpenCV" $version |
925
974077e23804
update on setup script (not tested)
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
444
diff
changeset
|
16 unzip OpenCV-$version.tar.gz |
974077e23804
update on setup script (not tested)
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
444
diff
changeset
|
17 #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
|
18 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
|
19 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
|
20 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
|
21 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
|
22 make |
925
974077e23804
update on setup script (not tested)
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
444
diff
changeset
|
23 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
|
24 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
|
25 |
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 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
|
27 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
|
28 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
|
29 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
|
30 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
|
31 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
|
32 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
|
33 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
|
34 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
|
35 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
|
36 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
|
37 cd |
1028
cc5cb04b04b0
major update using the trafficintelligence package name and install through pip
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
925
diff
changeset
|
38 wget https://bootstrap.pypa.io/get-pip.py |
cc5cb04b04b0
major update using the trafficintelligence package name and install through pip
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
925
diff
changeset
|
39 sudo -H python3 get-pip.py |
cc5cb04b04b0
major update using the trafficintelligence package name and install through pip
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
925
diff
changeset
|
40 sudo -H pip3 install -r trafficintelligence/python-requirements.txt --upgrade |
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
|
41 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
|
42 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
|
43 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
|
44 |