mirror of
https://gitcode.com/gh_mirrors/ope/OpenFace.git
synced 2025-12-30 04:52:29 +00:00
* Removing code duplication and getting rid of some C++ warnings due to float/double and signed/unsigned mixing. * Fixing the screenshot functionality. * Feature/code cleanup (#573) * Header guard cleanup (making sure naming is compliant with C++ standards and consistent). * Removing un-needed nullptr checks. * Removing SSE warnings for x64 builds (as SSE is enabled by default no need for a flag) * Reverting Mat deletion * Adding Visual Studio 2017 solution * Feature/code cleanup (#580) - name of revision - better scripts for model download (not only in Dropbox also OneDrive) * Update the OpenCV constants to the corresponding ones in cpp namespace. (#578) Updating OpenCV macros. * Slight change in packaging code (use a shared download script). * Removing TBB dependency (#590) Removing a TBB dependence for code parallelization (done through OpenCV's parralel_for_ * Updating OpenBLAS (#594) Updating the 64 bit OpenBLAS version for Windows to 0.3.3 (50% perf improvement on certain machines) * Ability to specify output image formats and removing unused quiet parameter. * Update Windows download script (#608) (#610) - Automatically choose correct path to the model files so that it works for both, source code compilation and binary use - Use absolute paths in the system exists methods * Updating version. * Packaging code update.
87 lines
2.9 KiB
YAML
87 lines
2.9 KiB
YAML
language: cpp
|
|
|
|
dist: trusty
|
|
sudo: required
|
|
|
|
branches:
|
|
only:
|
|
- master
|
|
- develop
|
|
compiler:
|
|
- gcc
|
|
|
|
os:
|
|
- linux
|
|
- osx
|
|
|
|
before_install:
|
|
|
|
# OpenCV dependencies, dlib and boost
|
|
- if [ ${TRAVIS_OS_NAME} = linux ]; then
|
|
sudo apt-get update;
|
|
sudo apt-get install libopenblas-dev;
|
|
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 libdc1394-22-dev;
|
|
sudo apt-get install cmake;
|
|
sudo apt-get install libboost-all-dev;
|
|
wget http://dlib.net/files/dlib-19.13.tar.bz2;
|
|
tar xf dlib-19.13.tar.bz2;
|
|
cd dlib-19.13;
|
|
mkdir build;
|
|
cd build;
|
|
cmake ..;
|
|
cmake --build . --config Release;
|
|
sudo make install;
|
|
sudo ldconfig;
|
|
cd ../..;
|
|
wget https://github.com/opencv/opencv/archive/3.4.0.zip;
|
|
unzip -qq 3.4.0.zip;
|
|
cd opencv-3.4.0;
|
|
mkdir build;
|
|
cd build;
|
|
fi
|
|
|
|
# g++4.8.1
|
|
- if [ "$CXX" = "g++" ]; then
|
|
if [ ${TRAVIS_OS_NAME} = linux ]; then
|
|
$CXX --version;
|
|
sudo cmake -D CMAKE_BUILD_TYPE=RELEASE -D WITH_V4L=ON -D WITH_OPENCL=OFF -D INSTALL_C_EXAMPLES=OFF -D WITH_TBB=ON -D BUILD_EXAMPLES=OFF -D BUILD_TESTS=OFF -D BUILD_PERF_TESTS=OFF -D BUILD_EXAMPLES=OFF -D INSTALL_PYTHON_EXAMPLES=OFF ..;
|
|
sudo make -j4;
|
|
sudo make install;
|
|
cd ../..;
|
|
fi
|
|
fi
|
|
|
|
# clang 3.4
|
|
- if [ "$CXX" = "clang++" ]; then
|
|
if [ ${TRAVIS_OS_NAME} = linux ]; then
|
|
$CXX --version;
|
|
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 -D WITH_TBB=ON ..;
|
|
sudo make -j4;
|
|
sudo make install;
|
|
cd ../..;
|
|
fi
|
|
fi
|
|
|
|
- if [ ${TRAVIS_OS_NAME} = osx ]; then
|
|
brew update;
|
|
brew install tbb;
|
|
brew install openblas;
|
|
brew install dlib;
|
|
brew install opencv3;
|
|
fi
|
|
|
|
script:
|
|
- $CXX --version
|
|
- chmod 777 ./download_models.sh
|
|
- ./download_models.sh
|
|
- mkdir build
|
|
- cd build
|
|
- cmake -D CMAKE_BUILD_TYPE=RELEASE CMAKE_CXX_FLAGS="-std=c++11" -D CMAKE_EXE_LINKER_FLAGS="-std=c++11" ..
|
|
- make
|
|
- ../build/bin/FeatureExtraction -f "../samples/2015-10-15-15-14.avi" -q -mloc model/main_clm_general.txt
|
|
- ../build/bin/FaceLandmarkImg -fdir ../samples -out_dir data -multi_view 1 -wild -q
|
|
- ../build/bin/FaceLandmarkImg -f ../samples/sample1.jpg -out_dir data -multi_view 1 -wild -q
|
|
- ../build/bin/FeatureExtraction -fdir "../samples/image_sequence" -out_dir output -q
|
|
- ../build/bin/FaceLandmarkVidMulti -fdir ../samples/image_sequence -q -mloc model/main_clm_general.txt
|
|
- ../build/bin/FaceLandmarkVidMulti -f ../samples/multi_face.avi -q -mloc model/main_clnf_general.txt |