Run "introduction_to_svm.cpp" from OpenCV 2.4.11 but got wrong support vectors

asked 2015-10-08 06:11:25 -0600

van gravatar image

updated 2015-10-08 08:30:02 -0600

I am new in using OpenCV, I run the "introduction_to_svm.cpp" sample code with Visual Studio 2010 on Windows 7(64bit) PC, but could not get the right support vectors in the result image, the returned support vector is point(0,0), which is not the right answer. Have anyone ever encountered similar problem ?

edit retag flag offensive close merge delete

Comments

Are you using OpenCV 2.4.x or 3.0.0?

LorenaGdL gravatar imageLorenaGdL ( 2015-10-08 07:02:28 -0600 )edit

I am using OpenCV 2.4.11

van gravatar imagevan ( 2015-10-08 07:52:38 -0600 )edit
1

Please, refer to this issue to know the reason of this behaviour: http://code.opencv.org/issues/2978

LorenaGdL gravatar imageLorenaGdL ( 2015-10-08 09:51:20 -0600 )edit

It works, thanks a lot.

van gravatar imagevan ( 2015-10-08 20:34:25 -0600 )edit