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
e00f6f63
Commit
e00f6f63
authored
Mar 22, 2015
by
Davis King
Browse files
Replaced the raw_input() calls with a call into dlib since raw_input() isn't
available in python3.
parent
e2680f08
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
5 deletions
+16
-5
python_examples/face_detector.py
python_examples/face_detector.py
+1
-1
python_examples/face_landmark_detection.py
python_examples/face_landmark_detection.py
+1
-1
python_examples/train_object_detector.py
python_examples/train_object_detector.py
+2
-2
python_examples/train_shape_predictor.py
python_examples/train_shape_predictor.py
+1
-1
tools/python/src/other.cpp
tools/python/src/other.cpp
+11
-0
No files found.
python_examples/face_detector.py
View file @
e00f6f63
...
...
@@ -58,4 +58,4 @@ for f in sys.argv[1:]:
win
.
clear_overlay
()
win
.
set_image
(
img
)
win
.
add_overlay
(
dets
)
raw_input
(
"H
it
enter
to
continue
"
)
dlib
.
h
it
_
enter
_
to
_
continue
(
)
python_examples/face_landmark_detection.py
View file @
e00f6f63
...
...
@@ -81,4 +81,4 @@ for f in glob.glob(os.path.join(faces_folder_path, "*.jpg")):
win
.
add_overlay
(
shape
)
win
.
add_overlay
(
dets
)
raw_input
(
"H
it
enter
to
continue
"
)
dlib
.
h
it
_
enter
_
to
_
continue
(
)
python_examples/train_object_detector.py
View file @
e00f6f63
...
...
@@ -117,7 +117,7 @@ for f in glob.glob(os.path.join(faces_folder, "*.jpg")):
win
.
clear_overlay
()
win
.
set_image
(
img
)
win
.
add_overlay
(
dets
)
raw_input
(
"H
it
enter
to
continue
"
)
dlib
.
h
it
_
enter
_
to
_
continue
(
)
...
...
@@ -150,7 +150,7 @@ detector2 = dlib.train_simple_object_detector(images, boxes, options)
# Now let's look at its HOG filter!
win_det
.
set_image
(
detector2
)
raw_input
(
"H
it
enter
to
continue
"
)
dlib
.
h
it
_
enter
_
to
_
continue
(
)
# Note that you don't have to use the XML based input to
# test_simple_object_detector(). If you have already loaded your training
...
...
python_examples/train_shape_predictor.py
View file @
e00f6f63
...
...
@@ -123,5 +123,5 @@ for f in glob.glob(os.path.join(faces_folder, "*.jpg")):
win
.
add_overlay
(
shape
)
win
.
add_overlay
(
dets
)
raw_input
(
"H
it
enter
to
continue
"
)
dlib
.
h
it
_
enter
_
to
_
continue
(
)
tools/python/src/other.cpp
View file @
e00f6f63
...
...
@@ -74,6 +74,14 @@ double _assignment_cost (
// ----------------------------------------------------------------------------------------
void
hit_enter_to_continue
()
{
std
::
cout
<<
"Hit enter to continue"
;
std
::
cin
.
get
();
}
// ----------------------------------------------------------------------------------------
void
bind_other
()
{
using
boost
::
python
::
arg
;
...
...
@@ -140,5 +148,8 @@ present in the output. "
ensures
\n
\
- saves the data to the given file in libsvm format "
);
def
(
"hit_enter_to_continue"
,
hit_enter_to_continue
,
"Asks the user to hit enter to continue and pauses until they do so."
);
}
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