hello everyone
I want to build this repository but ,I have following error :
error: ‘DNN_BACKEND_OPENCV’ was not declared in this scope
net.setPreferableBackend(DNN_BACKEND_OPENCV);
^~~~~~
/src/YOLO-DynaSLAM/src/yolo.cc: In member function ‘cv::Mat yolov3::yolov3Segment::Segmentation(cv::Mat&)’:
/src/YOLO-DynaSLAM/src/yolo.cc:36:108: error: cannot convert ‘cv::Mat’ to ‘double’ for argument ‘2’ to ‘cv::Mat cv::dnn::experimental_dnn_v2::blobFromImage(const cv::Mat&, double, const Size&, const Scalar&, bool, bool)’
cvSize(this->inpWidth, this->inpHeight), Scalar(0,0,0), true, false);
^
/src/YOLO-DynaSLAM/src/yolo.cc: In member function ‘cv::Mat yolov3::yolov3Segment::postprocess(cv::Mat&, const std::vector&)’:
/src/YOLO-DynaSLAM/src/yolo.cc:96:5: error: ‘NMSBoxes’ was not declared in this scope
NMSBoxes(boxes, confidences, this->confThreshold, this->nmsThreshold, indices);
^~~~
/src/YOLO-DynaSLAM/src/yolo.cc:96:5: note: suggested alternative: ‘boxes’
NMSBoxes(boxes, confidences, this->confThreshold, this->nmsThreshold, indices);
hello everyone I want to build this repository but ,I have following error :
error: ‘DNN_BACKEND_OPENCV’ was not declared in this scope net.setPreferableBackend(DNN_BACKEND_OPENCV); ^&)’:
/src/YOLO-DynaSLAM/src/yolo.cc:96:5: error: ‘NMSBoxes’ was not declared in this scope
NMSBoxes(boxes, confidences, this->confThreshold, this->nmsThreshold, indices);
^
~~~~~ /src/YOLO-DynaSLAM/src/yolo.cc: In member function ‘cv::Mat yolov3::yolov3Segment::Segmentation(cv::Mat&)’: /src/YOLO-DynaSLAM/src/yolo.cc:36:108: error: cannot convert ‘cv::Mat’ to ‘double’ for argument ‘2’ to ‘cv::Mat cv::dnn::experimental_dnn_v2::blobFromImage(const cv::Mat&, double, const Size&, const Scalar&, bool, bool)’ cvSize(this->inpWidth, this->inpHeight), Scalar(0,0,0), true, false); ^ /src/YOLO-DynaSLAM/src/yolo.cc: In member function ‘cv::Mat yolov3::yolov3Segment::postprocess(cv::Mat&, const std::vector~~~ /src/YOLO-DynaSLAM/src/yolo.cc:96:5: note: suggested alternative: ‘boxes’ NMSBoxes(boxes, confidences, this->confThreshold, this->nmsThreshold, indices);opencv 4.54 ros melodic ubuntu 18.04
can have a suggest to me ?