Ask Your Question

Revision history [back]

How do I access the class_labels stored in OpenCV ML RF XML file?

I need to know what class_labels are in my trained model when loaded from XML. I cannot see how to access them from the XML, where they are clearly stored as a numerical list \<<class_labels> 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24<\class_labels>> in my saved XML.

There are no methods for reading such from a model.