opencv_contrib icon indicating copy to clipboard operation
opencv_contrib copied to clipboard

linear SVM stop working during recent updates

Open ZlodeiBaal opened this issue 10 years ago • 2 comments

Hello! Mouth ago I use linear SVM for fast recognise images with number. It was learned on 200000 images (10 classes) and gives 70% accuracy. Yesterday I download current version of OpenCV build it and add it to project:

INCLUDEPATH += /home/admin/Documents/OpenCVIPP/OldBuild/release/include
LIBS += -L/home/admin/Documents/OpenCVIPP/OldBuild/release/lib


INCLUDEPATH += /home/admin/Documents/NewBuild/release/include
LIBS += -L/home/admin/Documents/NewBuild/release/lib

Only this two lines were changed (I use same xml file). And now it always return one class. (both build with IPP and OpenMP turned on)

All others parts of my project work fine, nothing changes.

ZlodeiBaal avatar Nov 02 '15 14:11 ZlodeiBaal

Could you try to revert two first lines from this patch? https://github.com/Itseez/opencv/commit/74fc9acdd1ae975ecf4d89824d8b0ee329199b68#diff-904081da1df25a16e787d2df8935cee4

BTW, Commits history for ML module is here: https://github.com/Itseez/opencv/commits/master/modules/ml

alalek avatar Dec 09 '15 15:12 alalek

BTW, There is a fix https://github.com/Itseez/opencv/pull/5798 for digits.py sample (10 classes classification problem), related to SVM usage.

alalek avatar Dec 14 '15 16:12 alalek