2016-07-25 22:22:56 +02:00
|
|
|
language: cpp
|
|
|
|
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
- develop
|
2016-07-31 19:15:47 +02:00
|
|
|
- /^feature-.*$/
|
2016-07-27 21:20:38 +02:00
|
|
|
compiler:
|
|
|
|
- gcc
|
2016-07-28 00:37:40 +02:00
|
|
|
- clang
|
2016-07-29 15:56:38 +02:00
|
|
|
|
|
|
|
os:
|
|
|
|
- osx
|
|
|
|
- linux
|
2016-07-26 19:12:07 +02:00
|
|
|
|
2016-07-27 21:20:38 +02:00
|
|
|
before_install:
|
2016-12-21 16:07:27 +01:00
|
|
|
|
|
|
|
# OpenCV dependencies and boost
|
|
|
|
- if [ ${TRAVIS_OS_NAME} = linux ]; then
|
|
|
|
sudo apt-get install 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 checkinstall;
|
|
|
|
sudo add-apt-repository -y ppa:boost-latest/ppa;
|
|
|
|
sudo apt-get update;
|
|
|
|
sudo apt-get install libboost1.55-all-dev;
|
2016-12-21 19:01:32 +01:00
|
|
|
wget https://github.com/Itseez/opencv/archive/3.1.0.zip;
|
|
|
|
sudo unzip 3.1.0.zip;
|
2016-12-21 19:09:49 +01:00
|
|
|
cd opencv-3.1.0;
|
|
|
|
sudo mkdir build;
|
2016-12-21 19:19:15 +01:00
|
|
|
cd build;
|
2016-12-21 16:07:27 +01:00
|
|
|
fi
|
|
|
|
|
2016-07-27 21:20:38 +02:00
|
|
|
# g++4.8.1
|
2016-12-19 20:59:25 +01:00
|
|
|
- if [ "$CXX" = "g++" ]; then
|
2016-12-21 15:58:15 +01:00
|
|
|
if [ ${TRAVIS_OS_NAME} = linux ]; then
|
2016-07-29 16:31:29 +02:00
|
|
|
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test;
|
2016-12-21 00:13:49 +01:00
|
|
|
sudo apt-get update -qq;
|
2016-12-20 23:54:54 +01:00
|
|
|
sudo apt-get install -qq g++-4.8;
|
|
|
|
export CXX="g++-4.8";
|
2016-12-21 19:09:49 +01:00
|
|
|
sudo cmake -D CMAKE_BUILD_TYPE=RELEASE -D WITH_V4L=ON -D WITH_OPENCL=OFF -D INSTALL_C_EXAMPLES=OFF -D BUILD_EXAMPLES=OFF -D BUILD_TESTS=OFF -D BUILD_PERF_TESTS=OFF -D BUILD_EXAMPLES=OFF -D INSTALL_PYTHON_EXAMPLES=OFF ..;
|
2016-07-29 16:31:29 +02:00
|
|
|
fi
|
|
|
|
fi
|
2016-07-27 21:20:38 +02:00
|
|
|
|
2016-07-28 00:40:30 +02:00
|
|
|
# clang 3.4
|
2016-12-19 20:59:25 +01:00
|
|
|
- if [ "$CXX" = "clang++" ]; then
|
2016-12-21 15:58:15 +01:00
|
|
|
if [ ${TRAVIS_OS_NAME} = linux ]; then
|
2016-12-22 01:47:01 +01:00
|
|
|
$CXX --version;
|
2016-12-22 03:01:27 +01:00
|
|
|
sudo sed -i -e 's/^Defaults\tsecure_path.*$//' /etc/sudoers;
|
2016-12-21 23:54:07 +01:00
|
|
|
sudo cmake -D CMAKE_BUILD_TYPE=RELEASE -D WITH_V4L=ON -D WITH_OPENCL=OFF -D INSTALL_C_EXAMPLES=OFF -D BUILD_EXAMPLES=OFF -D BUILD_TESTS=OFF -D BUILD_PERF_TESTS=OFF -D BUILD_EXAMPLES=OFF -D INSTALL_PYTHON_EXAMPLES=OFF ..;
|
2016-07-29 16:31:29 +02:00
|
|
|
fi
|
|
|
|
fi
|
2016-12-21 18:07:15 +01:00
|
|
|
|
2016-12-21 18:55:13 +01:00
|
|
|
- if [ ${TRAVIS_OS_NAME} = osx ]; then
|
2016-12-21 17:51:36 +01:00
|
|
|
brew update;
|
2016-12-21 21:06:48 +01:00
|
|
|
brew install tbb;
|
2016-12-21 19:01:32 +01:00
|
|
|
wget https://github.com/Itseez/opencv/archive/3.1.0.zip;
|
|
|
|
sudo unzip 3.1.0.zip;
|
2016-12-21 19:54:45 +01:00
|
|
|
cd opencv-3.1.0;
|
|
|
|
sudo mkdir build;
|
|
|
|
cd build;
|
2016-12-21 19:09:49 +01:00
|
|
|
sudo cmake -D CMAKE_BUILD_TYPE=RELEASE -D WITH_V4L=ON ..;
|
2016-12-21 17:51:36 +01:00
|
|
|
fi
|
|
|
|
|
2016-12-21 18:07:15 +01:00
|
|
|
before_script:
|
2016-12-20 20:15:09 +01:00
|
|
|
- sudo make -j4
|
2016-12-20 19:05:35 +01:00
|
|
|
- sudo make install
|
2016-12-21 00:13:49 +01:00
|
|
|
- cd ../..
|
|
|
|
|
2016-07-25 22:22:56 +02:00
|
|
|
script:
|
2016-07-27 21:20:38 +02:00
|
|
|
- $CXX --version
|
2016-07-25 22:22:56 +02:00
|
|
|
- mkdir build
|
|
|
|
- cd build
|
2016-07-26 19:12:07 +02:00
|
|
|
- cmake -D CMAKE_BUILD_TYPE=RELEASE ..
|
2016-07-29 16:31:29 +02:00
|
|
|
- make -j2
|
2016-07-30 21:51:07 +02:00
|
|
|
- ../build/bin/FaceLandmarkImg -fdir "../videos/" -ofdir "./demo_img/" -oidir "./demo_img/" -wild -q
|
2016-08-01 16:14:58 +02:00
|
|
|
- ../build/bin/FaceLandmarkImg -inroot ../videos -f Obama.jpg -outroot data -of obama.txt -op obama.3d -oi obama.bmp -multi_view 1 -wild -q
|
2016-08-01 02:55:29 +02:00
|
|
|
- ../build/bin/FaceLandmarkVidMulti -inroot ../videos -f multi_face.avi -outroot output -ov multi_face.avi -q
|
|
|
|
- ../build/bin/FeatureExtraction -f "../videos/1815_01_008_tony_blair.avi" -outroot output_features -ov blair.avi -of "1815_01_008_tony_blair.txt" -simalign aligned -ov feat_test.avi -hogalign hog_test.dat -q
|
2017-03-08 17:46:50 +01:00
|
|
|
- ../build/bin/FeatureExtraction -f "../videos/1815_01_008_tony_blair.avi" -outroot output_features -simsize 200 -simscale 0.5 -ov blair.avi -of "1815_01_008_tony_blair.txt" -simalign aligned -ov feat_test.avi -hogalign hog_test.dat -q
|
2016-12-22 01:47:01 +01:00
|
|
|
- ../build/bin/FaceLandmarkVid -inroot ../videos -f 1815_01_008_tony_blair.avi -f 0188_03_021_al_pacino.avi -f 0217_03_006_alanis_morissette.avi -outroot output_data -ov 1.avi -ov 2.avi -ov 3.avi -q
|