Ask Your Question

cv::dnn::dnn.hpp in opencv-3.3.1-vc14.exe is different from github? [closed]

asked 2017-11-21 01:05:40 -0500

AlexChan gravatar image


I try to test the text detection file "textbox_demo.cpp" in opencv_contrib text, but there is no cv::dnn::NMSBoxes in cv::dnn::dnn.hpp. Details:

In textbox_demo.cpp, Line 87:

cv::dnn::NMSBoxes(bbox, outProbabillities, 0.3f, 0.4f, indexes);

In github dnn::dnn.hpp, Line 761:

CV_EXPORTS_W void NMSBoxes(const std::vector<Rect>& bboxes, const std::vector<float>& scores,
                           const float score_threshold, const float nms_threshold,
                           CV_OUT std::vector<int>& indices,
                           const float eta = 1.f, const int top_k = 0);

In opencv-3.3.1-vc14.exe dnn::dnn.hpp, there is not a function named "NMSBoxes".

Is a bug? or opencv-3.3.1-vc14.exe will be updated later? or any newer version? So I have to cmake the source in github if I want to call the cv::dnn::NMSBoxes?

thanks in advance!

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by AlexChan
close date 2017-11-21 02:00:29.390223



"opencv-3.3.1-vc14.exe" -- do you mean, the 3.3.1 release downloaded from sourceforge ?

that is indeed a bit behind the current master branch.

please use git clone or similar, you need latest master branch for both opencv and opencv_contrib for this.

berak gravatar imageberak ( 2017-11-21 01:10:46 -0500 )edit

Your answer is right. Sorry for accepting my comment by mistake! first time to use it....

AlexChan gravatar imageAlexChan ( 2017-11-21 02:15:14 -0500 )edit

there is nothing wrong here, don't worry !

berak gravatar imageberak ( 2017-11-21 02:24:58 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2017-11-21 01:58:05 -0500

AlexChan gravatar image

Yes, the 3.3.1 release downloaded from sourceforge.

thanks! I have solved this problem with cmaking the latest master branch.

edit flag offensive delete link more

Question Tools


Asked: 2017-11-21 01:05:40 -0500

Seen: 185 times

Last updated: Nov 21 '17