The goal of ROpenCVLite
is to enable developers to create their own packages for R based on OpenCV. Computer vision is
just one of the possible applications for OpenCV. It can do many more
things, such as fast matrix processing and GPU computing. By providing
access to a standardized installation of OpenCV, we hope to help the
R community take
advantage of this fantastic library.
Create a package using ROpenCVLite
Follow these steps to configure your package for ROpenCVLite:
- Set
ROpenCVLiteas a dependency in the DESCRIPTION file of your package. - Use the
opencvConfigfunction provided withROpenCVLiteto:- set the
PKG_LIBSvalue of the Makevars and Makevars.win files of your package (usingopencvConfig("libs")). - set the
PKG_CPPFLAGS() value of the Makevars and Makevars.win files of your package (usingopencvConfig("cflags")).
- set the
You can find an example of how to set up your package with ROpenCVLite
in our Rvision
package: