Table of Contents
- 1. Installing OpenCV from source
- 1.1. We need CMake to configure the installation, GCC for compilation, python-devel and Numpy for creating Python extensions etc.
- 1.2. Next we need GTK support for GUI features, Camera support (libdc1394, libv4l), Media Support (FFmpeg, gstreamer)
- 1.3. OpenCV comes with supporting files for image fORMats like PNG, JPEG, JPEG2000, TIFF, WEBP etc. But it may be a little old. If you want to get latest libraries, you can install development files for these formats.
- 1.4. install OpenCV
- 1.5. test.py
1 Installing OpenCV from source
1.1 We need CMake to configure the installation, GCC for compilation, Python-devel and Numpy for creating Python extensions etc.
yum install cmake
yum install python-devel numpy
yum install gcc gcc-c++
1.2 Next we need GTK support for GUI features, Camera support (libdc1394, libv4l), Media Support (ffmpeg, gstreamer)
yum install gtk2-devel
yum install libdc1394-devel
yum install libv4l-devel
yum install ffmpeg-devel
yum install gstreamer-plugins-base-devel
1.3 OpenCV comes with supporting files for image formats like PNG, JPEG, JPEG2000, TIFF, WebP etc. But it may be a little old. If you want to get latest libraries, you can install development files for these formats.
yum install libpng-devel
yum install libjpeg-turbo-devel
yum install jasper-devel
yum install openexr-devel
yum install libtiff-devel
yum install libwebp-devel
1.4 install OpenCV
- yum install opencv
- yum install opencv-python
- yum install opencv-devel (opencv 开发包,含有头文件, for c++)
0