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
0d6830a4
Commit
0d6830a4
authored
Mar 29, 2015
by
Davis King
Browse files
added comments about using imglab
parent
03b6fb0b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
examples/train_shape_predictor_ex.cpp
examples/train_shape_predictor_ex.cpp
+6
-1
No files found.
examples/train_shape_predictor_ex.cpp
View file @
0d6830a4
...
@@ -82,7 +82,12 @@ int main(int argc, char** argv)
...
@@ -82,7 +82,12 @@ int main(int argc, char** argv)
// dataset and also contain the positions of the face boxes and
// dataset and also contain the positions of the face boxes and
// landmarks (called parts in the XML file). Obviously you can use any
// landmarks (called parts in the XML file). Obviously you can use any
// kind of input format you like so long as you store the data into
// kind of input format you like so long as you store the data into
// images_train and faces_train.
// images_train and faces_train. But for convenience dlib comes with
// tools for creating and loading XML image dataset files. Here you see
// how to load the data. To create the XML files you can use the imglab
// tool which can be found in the tools/imglab folder. It is a simple
// graphical tool for labeling objects in images. To see how to use it
// read the tools/imglab/README.txt file.
load_image_dataset
(
images_train
,
faces_train
,
faces_directory
+
"/training_with_face_landmarks.xml"
);
load_image_dataset
(
images_train
,
faces_train
,
faces_directory
+
"/training_with_face_landmarks.xml"
);
load_image_dataset
(
images_test
,
faces_test
,
faces_directory
+
"/testing_with_face_landmarks.xml"
);
load_image_dataset
(
images_test
,
faces_test
,
faces_directory
+
"/testing_with_face_landmarks.xml"
);
...
...
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