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
ROpenCVLite
as a dependency in the DESCRIPTION file of your package. - Use the
opencvConfig
function provided withROpenCVLite
to:- set the
PKG_LIBS
value 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: