首页| 论坛| 消息

标题:求助Qt与opencv应用问题
作者:chy761
日期:2020-01-10 14:55
内容:

我用Qt做了一个界面,然后用opencv检测图片,有两个窗口,左边窗口是原图像,右边窗口是经过opencv处理过的图像,我在调用findContours函数的时候出现了一些问题像求助一下。
这个error: no matching function for call to 'findContours(cv::Mat&, QVector&, QVector&, cv::RetrievalModes, cv::ContourApproximationModes)'
findContours(bin, contours, hierarchy, RETR_TREE, CHAIN_APPROX_SIMPLE);
这个是什么问题 ^
....


#1 [lieber 01-15 19:35]
#include "opencv/highgui.h"
#include "opencv/cv.h"
#2 [shasidaran 01-16 11:14]
错误提示说的很明确了,findContours函数没有匹配类型的参数,
你用了QVector,应该用Vector

回复 发表
主题 版块