Hi,
I tried to run face_detector in python_examples, but I get the following error:
Traceback (most recent call last):
File "face_detector.py", line 44, in <module>
win = dlib.image_window()
AttributeError: 'module' object has no attribute 'image_window'
I tried deleting the build folder and running again ./compile_dlib_python_module.bat but I still get the same error message.
Any help would be appreciated.
You must have compiled dlib without the X11 GUI option. When you compile it it should print a message saying that it's not going to have GUI support and it tells you what to do to. But if you do nothing then you get a copy of dlib without any kind of GUI features, which is what you have.
Thank you. Installing Quartz solved the problem.
* DLIB GUI SUPPORT DISABLED BECAUSE X11 DEVELOPMENT LIBRARIES NOT FOUND
Make sure XQuartz is installed if you want GUI support.
You can download XQuartz from: http://xquartz.macosforge.org/landing/ *
Yep, that's the message the build scripts print. Somehow lots of people see that message and still don't understand what to do to enable GUI support. :(
They might not realize they need GUI support (since the install goes smoothly, and the functions needing GUI aren't realized until much later when running the python script)
Same thing with the CUDA message - it's not clear what is CUDA and why I should bother during install
The message is near the top of the long output, move it to the bottom if you don't want fewer people to ignore it :) - Errors are usually at the end so people tend only to read the end of long outputs
Most helpful comment
They might not realize they need GUI support (since the install goes smoothly, and the functions needing GUI aren't realized until much later when running the python script)
Same thing with the CUDA message - it's not clear what is CUDA and why I should bother during install
The message is near the top of the long output, move it to the bottom if you don't want fewer people to ignore it :) - Errors are usually at the end so people tend only to read the end of long outputs