From 0d6830a48dfc1d4218c5ad4dc7abf7893e745bfd Mon Sep 17 00:00:00 2001 From: Davis King Date: Sun, 29 Mar 2015 16:47:37 -0400 Subject: [PATCH] added comments about using imglab --- examples/train_shape_predictor_ex.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/examples/train_shape_predictor_ex.cpp b/examples/train_shape_predictor_ex.cpp index bf8500c99..d0d3e1b28 100644 --- a/examples/train_shape_predictor_ex.cpp +++ b/examples/train_shape_predictor_ex.cpp @@ -82,7 +82,12 @@ int main(int argc, char** argv) // dataset and also contain the positions of the face boxes and // 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 - // 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_test, faces_test, faces_directory+"/testing_with_face_landmarks.xml");