The opencv_contrib has a text module that provides a sample classifier. It is found here https://github.com/opencv/opencv_contrib/blob/master/modules/text/samples/trained_classifierNM1.xml
I am trying to find a way for me to re-train the classifier for my particular purposes. How can I generate the two XML files and provide them to the functions cv2.text.loadClassifierNM1
and cv2.text.loadClassifierNM2
?