Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
cc70a8e0
Commit
cc70a8e0
authored
Nov 15, 2014
by
Davis King
Browse files
Merged in Patrick Snape's patch that allows the python bindings to
be built without GUI support.
parent
2a9c8923
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
tools/python/src/object_detection.cpp
tools/python/src/object_detection.cpp
+7
-3
No files found.
tools/python/src/object_detection.cpp
View file @
cc70a8e0
...
...
@@ -7,7 +7,9 @@
#include <dlib/geometry.h>
#include <boost/python/suite/indexing/vector_indexing_suite.hpp>
#include <dlib/image_processing/frontal_face_detector.h>
#include <dlib/gui_widgets.h>
#ifndef DLIB_NO_GUI_SUPPORT
#include <dlib/gui_widgets.h>
#endif
#include "simple_object_detector.h"
...
...
@@ -155,7 +157,7 @@ void deserialize (simple_object_detector_py& item, std::istream& in)
}
// ----------------------------------------------------------------------------------------
#ifndef DLIB_NO_GUI_SUPPORT
void
image_window_set_image_fhog_detector
(
image_window
&
win
,
const
frontal_face_detector
&
det
...
...
@@ -210,7 +212,7 @@ boost::shared_ptr<image_window> make_image_window_from_image_and_title(object im
win
->
set_title
(
title
);
return
win
;
}
#endif
// ----------------------------------------------------------------------------------------
string
print_simple_test_results
(
const
simple_test_results
&
r
)
...
...
@@ -530,6 +532,7 @@ ensures \n\
.
def_pickle
(
serialize_pickle
<
type
>
());
}
#ifndef DLIB_NO_GUI_SUPPORT
{
typedef
image_window
type
;
typedef
void
(
image_window
::*
set_title_funct
)(
const
std
::
string
&
);
...
...
@@ -556,6 +559,7 @@ ensures \n\
.
def
(
"wait_until_closed"
,
&
type
::
wait_until_closed
,
"This function blocks until the window is closed."
);
}
#endif
{
typedef
std
::
vector
<
rectangle
>
type
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment