Wrong type of output lines: > ‘type == CV_32FC2 || type == CV_32FC3‘

terminate called after throwing an instance of 'cv::Exception'
  what():  OpenCV(4.1.1) /home/nvidia/host/build_opencv/nv_opencv/modules/imgproc/src/hough.cpp:904: error: (-2:Unspecified error) in function 'void cv::HoughLines(cv::InputArray, cv::OutputArray, double, double, int, double, double, double, double)'
> Wrong type of output lines:
>     'type == CV_32FC2 || type == CV_32FC3'
> where
>     'type' is 4 (CV_32SC1)

在使用HoughLines函数时,对输出lines定义错误,vector lines改为vector lines。

你可能感兴趣的:(笔记)