bakercp / ofxDlib

An openFrameworks wrapper for dlib. http://dlib.net/
MIT License
52 stars 16 forks source link

'class dlib::random_cropper’ has no member named ‘set_max_object_height’ #12

Open nanu-c opened 7 years ago

nanu-c commented 7 years ago

This is for /example_dnn_face_recognition

home/nanu/visuals/openFrameworks/addons/ofxDlib/example_dnn_face_recognition/src/ofApp.cpp: In function ‘std::vector<dlib::matrix<dlib::rgb_pixel> > jitter_image(const dlib::matrix<dlib::rgb_pixel>&)’:
/home/nanu/visuals/openFrameworks/addons/ofxDlib/example_dnn_face_recognition/src/ofApp.cpp:20:20: error: ‘class dlib::random_cropper’ has no member named ‘set_max_object_height’; did you mean ‘set_max_object_size’?
     cropper.data().set_max_object_height(0.99999);
                    ^~~~~~~~~~~~~~~~~~~~~
                    set_max_object_size
/home/nanu/visuals/openFrameworks/addons/ofxDlib/example_dnn_face_recognition/src/ofApp.cpp:22:20: error: ‘class dlib::random_cropper’ has no member named ‘set_min_object_height’; did you mean ‘set_min_object_size’?
     cropper.data().set_min_object_height(0.97);
                    ^~~~~~~~~~~~~~~~~~~~~
                    set_min_object_size
In file included from /home/nanu/visuals/openFrameworks/addons/ofxDlib/libs/dlib/include/dlib/dnn/../image_processing/../image_transforms.h:28:0,
                 from /home/nanu/visuals/openFrameworks/addons/ofxDlib/libs/dlib/include/dlib/dnn/../image_processing/scan_image_boxes.h:12,
                 from /home/nanu/visuals/openFrameworks/addons/ofxDlib/libs/dlib/include/dlib/dnn/../image_processing/setup_hashed_features.h:8,
                 from /home/nanu/visuals/openFrameworks/addons/ofxDlib/libs/dlib/include/dlib/dnn/../image_processing.h:17,
                 from /home/nanu/visuals/openFrameworks/addons/ofxDlib/libs/dlib/include/dlib/dnn/input.h:10,
                 from /home/nanu/visuals/openFrameworks/addons/ofxDlib/libs/dlib/include/dlib/dnn.h:13,
                 from /home/nanu/visuals/openFrameworks/addons/ofxDlib/src/ofxDlib.h:16,
                 from /home/nanu/visuals/openFrameworks/addons/ofxDlib/example_dnn_face_recognition/src/ofApp.h:35,
                 from /home/nanu/visuals/openFrameworks/addons/ofxDlib/example_dnn_face_recognition/src/ofApp.cpp:8:
/home/nanu/visuals/openFrameworks/addons/ofxDlib/libs/dlib/include/dlib/dnn/../image_processing/../image_transforms/random_cropper.h: In instantiation of ‘void dlib::random_cropper::operator()(const image_type1&, const std::vector<dlib::mmod_rect>&, image_type2&, std::vector<dlib::mmod_rect>&) [with image_type1 = dlib::matrix<dlib::rgb_pixel>; image_type2 = dlib::matrix<dlib::rgb_pixel>]’:
/home/nanu/visuals/openFrameworks/addons/ofxDlib/example_dnn_face_recognition/src/ofApp.cpp:33:64:   required from here
bakercp commented 6 years ago

I'm not getting this error. Please Provide more information about your system, IDE, etc.