Open artemklevtsov opened 5 years ago
Tried to install dlib to my OS and use the following Makevars:
CXX_STD = CXX11
PKG_CPPFLAGS = -I /usr/include -DDLIB_NO_GUI_SUPPORT -DENABLE_ASSERTS
PKG_LIBS = -lpthread -ldlib -ljpeg -lpng -ltiff -lgif
Now example works but I want to do it with the dlib from CRAN.
Have you looked at the example at https://github.com/bnosac/image/tree/master/image.dlib There it is used to get the HOG and SURF descriptors of points in the image. The dlib on CRAN is dlib 19.2 I think you need to add PKG_CPPFLAGS = -DSTRICT_R_HEADERS and also make sure you don't copy-paste code from an example of a newer version of dlib. The error seems to be indicating it hasn't find some functionality from dlib.
Thank you for the reply. I'll try your suggestion. Can you compile the above code?
Dlib 19.2 is out in oct 2016. Do you plan upgrade it in the CRAN package?
I'll start working back again on some image recognition software in February. It's on my list.
Hi, I was just wondering if you were still planning on updating the version of dlib on CRAN?
Last time I tried to push to CRAN with an update, I had to include all authors of dlib sources in the DESCRIPTION/LICENSE.note/COPYRIGHT. That was a bit too much to inspect all the headers / cpp files manually and one by one add these. Feel free to make a pull request if you want to do this.
If you want to try out dlib. I suggest you take package at https://github.com/bnosac/image/tree/master/image.dlib, remove the https://github.com/bnosac/image/blob/master/image.dlib/.Rbuildignore file and put your code in the src folder. That package is now using dlib-19.20 (released on june 6, 2020). It also shows how to pass images directly to the dlib format from R (if you are working on images). Good luck.
Thank you very much for the fast response @jwijffels! Yeah, that would be a pain. I'm looking to do some box-constrained non-linear optimization, so I think I'll use the nloptr R package instead of playing around with dlib sources.
Hello,
Thanks for the package.
I tried to use this package to face detection, but it does not works as expected:
I use very simple example:
And Makevars:
My installation output below:
Should I compile dlib and link with it? How can I do it using this package?