Ruby binding of dlib C++ library.
dlib
depends libjpeg and libpng. So, you should install libraries at first.
Mac
$ brew install jpeg libpng
Ubuntu 16.04
$ apt-get install libjpeg8-dev libpng12-dev
If you want to use DNN based face detector, you would have to install CUDA SDKs and cuDNN SDK. Please read this page. http://docs.nvidia.com/cuda/#axzz4anGdXQuB This gem try to use CUDA if /usr/local/cuda directory is exists.
Add this line to your application's Gemfile:
gem 'dlib'
And then execute:
$ bundle
Or install it yourself as:
$ gem install dlib
See examples directory. https://github.com/ruby-dlib/ruby-dlib/tree/master/examples
CPU | GPU | recall rate | precision rate | |
---|---|---|---|---|
opencv haar based | 😄 | - | 😄 | 🤔 |
dlib hog based *1 | 😄 | - | 😄 | 😻 |
dlib dnn based *2 | 🤔 | 😄 | 😂 | 😻 |
- http://blog.dlib.net/2014/02/dlib-186-released-make-your-own-object.html
- http://blog.dlib.net/2016/10/easily-create-high-quality-object.html
demonstrated movie by original author of dlib on youtube
- Fork it ( https://github.com/ruby-dlib/ruby-dlib/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request