Skip to content

Commit

Permalink
initial commit for adaptation of dlib sample mmod object detector code
Browse files Browse the repository at this point in the history
  • Loading branch information
headupinclouds committed Jun 24, 2018
1 parent 507d039 commit 68fcb05
Show file tree
Hide file tree
Showing 8 changed files with 1,344 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,12 @@
*.exe
*.out
*.app

# cmake/hunter
_*/

# osx
.DS_Store

# emacs
*~
24 changes: 24 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
cmake_minimum_required(VERSION 3.8)

option(HUNTER_KEEP_PACKAGE_SOURCES "Keep" ON)

include("cmake/HunterGate.cmake")

HunterGate(
URL "https://github.com/ruslo/hunter/archive/v0.22.16.tar.gz"
SHA1 "84153076a3cebf4869c904fa5c93ea309386b583"
LOCAL # cmake/Hunter/config.cmake
)

project(dlib_dnn_mmod_detect VERSION 0.0.1)

hunter_add_package(dlib)
find_package(dlib CONFIG REQUIRED)

set(app_list dnn_mmod_find_thing_ex dnn_mmod_train_find_thing_ex)

foreach(name ${app_list})
add_executable(${name} ${name}.cpp dnn_mmod_sample_detector.h)
target_link_libraries(${name} PUBLIC dlib::dlib)
install(TARGETS ${name} DESTINATION bin)
endforeach()
18 changes: 18 additions & 0 deletions cmake/Hunter/config.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
set(dlib_cmake_args
DLIB_HEADER_ONLY=OFF #all previous builds were header on, so that is the default
DLIB_ENABLE_ASSERTS=OFF #must be set on/off or debug/release build will differ and config will not match one
DLIB_NO_GUI_SUPPORT=ON
DLIB_ISO_CPP_ONLY=OFF # needed for directory navigation code (loading training data)
DLIB_JPEG_SUPPORT=OFF # https://github.com/hunter-packages/dlib/blob/eb79843227d0be45e1efa68ef9cc6cc187338c8e/dlib/CMakeLists.txt#L422-L432
DLIB_LINK_WITH_SQLITE3=OFF
DLIB_USE_BLAS=OFF
DLIB_USE_LAPACK=OFF
DLIB_USE_CUDA=ON
DLIB_PNG_SUPPORT=ON
DLIB_JPEG_SUPPORT=ON
DLIB_GIF_SUPPORT=OFF
DLIB_USE_MKL_FFT=OFF
HUNTER_INSTALL_LICENSE_FILES=dlib/LICENSE.txt
)

hunter_config(dlib VERSION ${HUNTER_dlib_VERSION} CMAKE_ARGS ${dlib_cmake_args} DUMMY_SOURCES=2)
Loading

0 comments on commit 68fcb05

Please sign in to comment.