centos opencv + python 配置
来源:互联网 发布:暴风影音怎么关闭网络 编辑:程序博客网 时间:2024/06/06 19:04
opencv + python 配置
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 cmakeyum install python-devel numpyyum 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-develyum install libdc1394-develyum install libv4l-develyum install ffmpeg-develyum 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-develyum install libjpeg-turbo-develyum install jasper-develyum install openexr-develyum install libtiff-develyum install libwebp-devel
1.4 install OpenCV
- yum install opencv
- yum install opencv-python
- yum install opencv-devel (opencv 开发包,含有头文件, for c++)
1.5 test.py
import cv2import numpy as npimg = np.zeros((512, 512, 3), np.uint8)cv2.line(img, (0,0), (511, 511), (255, 0, 0), 5)cv2.imshow('img',img)cv2.waitKey(1000)cv2.destroyAllWindows()
0 0
- centos opencv + python 配置
- CentOS配置caffe opencv python
- "Python" + "OpenCV" 环境配置
- Python下配置OpenCv
- opencv Python 的配置
- “Python” + “OpenCV” 环境配置
- Python下配置OpenCV
- Opencv Python 2.7配置
- python opencv 配置
- python dlib、opencv 配置
- python + opencv 环境配置
- windows+python+opencv配置
- Python配置OpenCV
- python下配置opencv
- python 3.5配置opencv
- python配置OpenCV
- CentOS Python环境配置
- 【OpenCV】|在python中配置opencv
- 系统启动运行级别
- hdu2550百步穿杨 解报告
- 配置扫描@Controller注解的细节
- Android APK size压缩(瘦身)
- JS中Array方法中常用方法六:Array.prototype.reverse()
- centos opencv + python 配置
- 为C++实现类似C#的import DLL用法
- 分数类的构造
- hdoj5867 Water problem
- Codeforces 699B - One Bomb
- Html+css基础标签属性
- PHP中的反射
- 获取 request 中 json 数据
- 第3周项目4-顺序表的应用(2)