opencv-3.0.0

Introduction to opencv

The opencv package contains graphics libraries mainly aimed at real-time computer vision.

This package is known to build and work properly using an LFS-7.8 platform.

Package Information

Additional Downloads

Optional file: http://sourceforge.net/projects/opencvlibrary/files/3rdparty/ippicv/ippicv_linux_20141027.tgz

opencv Dependencies

Required

CMake-3.3.1 and UnZip-6.0

Recommended

Optional

apache-ant-1.9.6, Doxygen-1.8.10, Java-1.8.0.60, Python-3.4.3, Cuda, Eigen, OpenEXR, GCD, GDAL, GigEVisionSDK, JACK, libdc1394, libgphoto2, NumPy, OpenNI, PlanetUML, PvAPI, Threading Building Blocks (TBB), UniCap, VTK - The Visualization Toolkit, and XIMEA

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/opencv

Installation of opencv

If the optional Integrated Performance Primitives (IPP) package has been downloaded, put it in place so the cmake script does not try to download it again:

ipp_file=../ippicv_linux_20141027.tgz             &&
ipp_hash=$(md5sum $ipp_file | cut -d" " -f1)      &&
ipp_dir=3rdparty/ippicv/downloads/linux-$ipp_hash &&

mkdir -p $ipp_dir &&
cp $ipp_file $ipp_dir

Install opencv by running the following commands:

mkdir build &&
cd    build &&

cmake -DCMAKE_INSTALL_PREFIX=/usr \
      -DWITH_XINE=ON              \
      -DBUILD_TESTS=OFF           \
      -Wno-dev  ..
make

The package does not come with an operable test suite.

Now, as the root user:

make install

Command Explanations

-DWITH_XINE=ON: This option instucts the make procedure to use xine-lib-1.2.6.

-DWITH_IPP=ON: This option instucts the make procedure to use the downloaded IPP package.

Contents

Installed Programs: opencv_annotation, opencv_createsamples, and opencv_traincascade
Installed Libraries: libopencv_calib3d.so, libopencv_core.so, libopencv_features2d.so, libopencv_flann.so, libopencv_highgui.so, libopencv_imgcodecs.so, libopencv_imgproc.so, libopencv_ml.so, libopencv_objdetect.so, libopencv_photo.so, libopencv_shape.so, libopencv_stitching.so, libopencv_superres.so, libopencv_video.so, libopencv_videoio.so, and libopencv_videostab.so
Installed Directories: /usr/include/opencv and /usr/share/OpenCV

Last updated on 2015-09-20 15:38:20 -0700