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

2020 ワード

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に対してエラーを定義し、vectorlinesをvectorlinesに変更します.