annotate scripts/setup-tracking.sh @ 1152:dceaca7e1c97 dev

old work on stabilization for drones
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Mon, 24 Aug 2020 15:34:39 -0400
parents 4a62c3b1eb3a
children 974077e23804
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
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
1 version="$(wget -q -O - http://sourceforge.net/projects/opencvlibrary/files/opencv-unix | egrep -m1 -o '\"[0-9](\.[0-9])+' | cut -c2-)"
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
2 echo "Removing any pre-installed ffmpeg and x264"
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 sudo apt-get -qq remove ffmpeg x264 libx264-dev
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
4 echo "Installing Dependencies"
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 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
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
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
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
7 sudo easy_install -U mercurial
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
8 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
9 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
10 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
11 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
12 echo "Downloading 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
13 wget -O OpenCV-$version.tar.gz http://sourceforge.net/projects/opencvlibrary/files/opencv-unix/$version/opencv-"$version".tar.gz/download
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 "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
15 tar -xvf OpenCV-$version.tar.gz
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 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
17 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
18 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
19 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
20 make
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 sudo make install
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 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
23
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 "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
25 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
26 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
27 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
28 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
29 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
30 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
31 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
32 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
33 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
34 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
35 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
36 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
37 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
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