Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
e00f6f63
Commit
e00f6f63
authored
Mar 22, 2015
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replaced the raw_input() calls with a call into dlib since raw_input() isn't
available in python3.
parent
e2680f08
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
5 deletions
+16
-5
face_detector.py
python_examples/face_detector.py
+1
-1
face_landmark_detection.py
python_examples/face_landmark_detection.py
+1
-1
train_object_detector.py
python_examples/train_object_detector.py
+2
-2
train_shape_predictor.py
python_examples/train_shape_predictor.py
+1
-1
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
(
"Hit enter to continue"
)
dlib
.
hit_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
(
"Hit enter to continue"
)
dlib
.
hit_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
(
"Hit enter to continue"
)
dlib
.
hit_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
(
"Hit enter to continue"
)
dlib
.
hit_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
(
"Hit enter to continue"
)
dlib
.
hit_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