According to Davis Kings answer in that question: Create a shared library for dlib, I created shared libraries for Dlib and linked them to a program that uses the Dlib Face detection to detect faces in the pictures of a camera, using these commands:
cd dlib-19.0/dlib
mkdir build
cd build
cmake ..
make
sudo make install
And the -ldlib
option.
I can compile and execute the program, however the face detection is extremely slow.
I tried the same program on Windows with Visual Studio 2013. When I used the Debug Mode, the face detection was extremely slow as well, but was running pretty well in Release mode. So I thought, that the shared libraries might be in Debug mode as well and tried to force them in Release mode with these commands:
cd examples
mkdir build
cd build
cmake ..
cmake --build . --config Release
sudo make install
But the result was the same as before.
Does anybody have an Idea, what the reason could be, that it is that slow?
Thank you for your help.