Ask Your Question

fedor_v2's profile - activity

2015-05-26 03:46:00 -0500 received badge  Enthusiast
2015-05-06 05:28:46 -0500 commented question Any image labeling tool for object detection?

you could try the one from dlib it's in dlib/tools/imglab

2015-05-05 11:31:32 -0500 asked a question Train cv::ml::StatModel in opencv 3.0 with weights

I'm trying to train ml::EM to predict skin color on compaq dataset. I have 8e007 skin and 8e008 non-skin pixels, when I try to convert this data to float to put to ml::trainingData program exit with not enough memory. I compressed my data in this way : deleted same pixels and created Mat with number of duplicates of unique pixels. ( example data={1,2,3,4,1,2,4} -> uniqueData={1,2,3,4} + numDuplicates ={2,2,1,2} ). And putted to trainingData unique as samples and numDuplicates as weights of samples. But when I'm training EM using this code :

 Ptr<ml::EM> em = ml::EM::create();
    em->setTermCriteria(TermCriteria( TermCriteria::MAX_ITER+TermCriteria::EPS, 10000, FLT_EPSILON ));
    em->setCovarianceMatrixType( ml::EM::COV_MAT_DIAGONAL);

I's does't use weights that I putted to trainingData

Ptr<ml::TrainData> trainData = ml::TrainData::create(trainSamples, ml::ROW_SAMPLE, trainLables, noArray(),noArray(),trainWeight);

I tryed with weights and without weights in trainData and have same prediction results.