Convert new format haarcasccade xml file to old format
I have a haarcascade file generated using opencv_traincascade which generates an xml file. The format of this xml file is different from that of generated by opencv_haartraining.
OpenCV documentation says that opencv_traincascade can save (export) a trained cascade in the older format. However, I have not found any way to do this.
I wanted to ask if anybody has any luck in converting a new format haarcascade xml file to the older format.
why on earth do you want the old format ?
if you got legacy code, that only can read that, it's probably a better idea, to update that instead.
@berak I am working on GPU version of haar object detection. For that I need the haar classifier file to be loaded in the gpu::CascadeClassifier_GPU class. It turns out that it doesn't support the new xml format.
It seems there isn't any way to achieve this. It is sad that the documentation is misleading.
@berak like he said, gpu version of 3.0 only works with old models...
^^ yep, learned that from the issues page lately.