using OpenCV with python for descriptor extraction
来源:互联网 发布:java 输出helloworld 编辑:程序博客网 时间:2024/05/01 05:18
转自http://stackoverflow.com/questions/10799625/does-anyone-have-any-examples-of-using-opencv-with-python-for-descriptor-extract
Here's an example of some code I've written for extracting SURF features using Python 2.7 and OpenCV 2.4.
im2 = cv2.imread(imgPath)im = cv2.cvtColor(im2, cv2.COLOR_BGR2GRAY)surfDetector = cv2.FeatureDetector_create("SURF")surfDescriptorExtractor = cv2.DescriptorExtractor_create("SURF")keypoints = surfDetector.detect(im)(keypoints, descriptors) = surfDescriptorExtractor.compute(im,keypoints)
This works and returns a set of descriptors. Unfortunately since cv2.SURF() doesn't work in 2.4, you have to go through this tedious process.
- using OpenCV with python for descriptor extraction
- RaspiCam: C++ API for using Raspberry camera with/without OpenCv
- Using OpenCV with MFC
- Using OpenCV with Qt
- Starting up PySpark for using python with Spark in eclipse
- Using Databases with Python
- Using OpenCV Java with Eclipse
- Using OpenCV Java with Eclipse
- Python for Everybody-Using Python to Access Web DatExtracting Data With Regular Expressions
- install opencv 3.0.0 with python 3.4 on Mac using Homebrew and Git
- ubuntu python with opencv
- Using Linux epoll with Python
- Python descriptor
- python descriptor
- Python descriptor
- python descriptor
- python descriptor
- Python descriptor
- 20130712_C++ 中的复制构造与赋值运算符函数(2)
- 产品经理-需求分析的六原则
- (服务器搭建)花生壳动态域名、微信公众平台
- 13-7-12 android如何通过单击开始线程和停止线程
- 26个新鲜有魅力的自适应网站设计实例
- using OpenCV with python for descriptor extraction
- 从零开始学C++之继承(二):继承与构造函数、派生类到基类的转换
- 保存登录plsql developer 的用户名和密码
- 线性代数(十三) : 可逆映射与逆映射
- 图像特征提取
- Android 设置控件是否可见
- 如何成为一位卓越的技术经理?
- JavaScript Class Libs
- Repeater中不能用ImageButton显示图片用什么来代替最好我的个人建议