Ask Your Question

Vishnu Makkapati's profile - activity

2016-07-27 12:36:14 -0600 asked a question Error while compiling opencv with contrib

I get following error when I try to compile opencv_contrib with opencv3.1 on my mac with OS X El Capitan 10.11.6. How do I resolve the error? [ 97%] Generating pyopencv_generated_include.h, pyopencv_generated_funcs.h, pyopencv_generated_types.h, pyopencv_generated_type_reg.h, pyopencv_generated_ns_reg.h Traceback (most recent call last): File "/Users/11200/opencv-3.1.0/modules/python/python2/..//src2/gen2.py", line 943, in <module> generator.gen(srcfiles, dstdir) File "/Users/11200/opencv-3.1.0/modules/python/python2/..//src2/gen2.py", line 869, in gen self.add_func(decl) File "/Users/11200/opencv-3.1.0/modules/python/python2/..//src2/gen2.py", line 807, in add_func func_map = self.classes[classname].methods KeyError: u'dnn_LSTMLayer' make[2]: * [modules/python2/pyopencv_generated_include.h] Error 1 make[1]: [modules/python2/CMakeFiles/opencv_python2.dir/all] Error 2 make: ** [all] Error 2

2015-11-06 04:18:46 -0600 answered a question SVM save/load problems

I run into the same problem even when the number of classes is 6. Is there a fix for it?

2015-10-29 21:49:24 -0600 asked a question Error with trainAuto

Hi,

I get an error "Floating point exception: 8" when I use trainAuto using the following code. How can this error be resolved?

cv::Mat matFeatures(batch_size, dim_features, CV_32F, rgFeatures); cv::Mat matLabels(batch_size, 1, CV_32F, rgLabels);

cv::Ptr<cv::ml::SVM> svm = cv::ml::SVM::create();
svm->setType(cv::ml::SVM::C_SVC);
svm->setKernel(cv::ml::SVM::LINEAR);
svm->setGamma(3);
svm->setTermCriteria(cv::TermCriteria(cv::TermCriteria::MAX_ITER+cv::TermCriteria::EPS, 10000, 1e-6));

cv::Ptr<cv::ml::TrainData> tData = cv::ml::TrainData::create(matFeatures, cv::ml::ROW_SAMPLE, matLabels);

svm->trainAuto(tData, 2);

Regards, Vishnu