Ask Your Question

Revision history [back]

They have an example in the source code which shows how to set things up. Fom opencv git repo:

opencv/samples/cpp/letter_recog.cpp

I used this as a basis for my random forest implementation. You need to encapsulate your training data in the TrainData class and use method calls to set each paramter. I didn't use the 2.x versions, but that seems to be the big change?