Allow Access to the 'Dlib' C++ Library

Interface for 'Rcpp' users to 'dlib' < http://dlib.net> which is a 'C++' toolkit containing machine learning algorithms and computer vision tools. It is used in a wide range of domains including robotics, embedded devices, mobile phones, and large high performance computing environments. This package allows R users to use 'dlib' through 'Rcpp'.


Dlib is a C++ toolkit containing machine learning algorithms and computer vision tools. It is used in a wide range of domains including robotics, embedded devices, mobile phones, and large high performance computing environments. This package allows R users to use dlib through the Rcpp package.

The version of dlib which is included is version 19.2

Installation

Install from CRAN

install.packages("dlib")

Install this development version from github.

install.packages("devtools")
devtools::install_github("bnosac/dlib")

Example

An example of the usage of the package is included regarding identifying SURF descriptors in an image.

## See an example of the usage 
help("dlib-package")

Include dlib inside an Rcpp package

The following shows how to include dlib inside an R package which uses Rcpp. Examples on using Rcpp in that way can be found at the Rcpp gallery, e.g. http://gallery.rcpp.org/articles/using-boost-with-bh.

#include <Rcpp.h>
using namespace Rcpp;
// [[Rcpp::plugins(cpp11)]]
// [[Rcpp::depends(dlib)]]
#include <dlib/algs.h>
#include <dlib/image_processing/frontal_face_detector.h>

An example of this can be found at the image.dlib R package where it is used for image recognition. More information: https://github.com/bnosac/image/image.dlib.

Support in machine learning, robotics or image recognition

Need support in machine learning, robotics or image recognition? Contact BNOSAC: http://www.bnosac.be

News

Package: dlib

Version: 1.0.3

  • Removed inst/include/dlib/external folder
  • Added AUTHORS and COPYRIGHT notice containing explicit dlib authors + copyright notices which were extracted from the dlib source code

Version: 1.0.2

  • Using dlib version 19.2
  • Manually commented out some pragma statements in the dlib code for CRAN compliance

Version: 1.0

  • Using dlib version 19.2

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("dlib")

1.0.3 by Jan Wijffels, 8 months ago


Browse source code at https://github.com/cran/dlib


Authors: Jan Wijffels , BNOSAC , Davis King and dlib package authors (see file AUTHORS)


Documentation:   PDF Manual  


BSL-1.0 license


Imports Rcpp

Suggests inline, magick

Linking to Rcpp


See at CRAN