Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

this might be a minor bug, the default params for the DTree just don't work. try:

Ptr<cv::ml::DTrees> model = cv::ml::DTrees::create();

model->setMaxDepth(10);
model->setMinSampleCount(2);
model->setCVFolds(0);

bool ok = model->train(myTrainData);