Convert .xml to .cascade
Convert .xml to .cascade
Where is your algorithm for binary haar cascade converter located? The old link for that seems to be broken.
Re: Convert .xml to .cascade
Nyamekye,
Re: Convert .xml to .cascade
Ok, I got it.
Now I am trying to open my xml with it, however it will always create a blank file. Is this the right way to use it?
Now I am trying to open my xml with it, however it will always create a blank file. Is this the right way to use it?
Re: Convert .xml to .cascade
Hi,
1) If you need to train a new cascade, follow OpenCV tutorials to train a haar cascade:
https://docs.opencv.org/3.3.0/dc/d88/tu ... scade.html
https://github.com/mrnugget/opencv-haar ... r-training
https://coding-robin.de/2013/07/22/trai ... ifier.html
* Note you have to use -baseFormatSave to save the cascade in the old format
2) Convert the xml cascade to binary using the converter script:
Code: Select all
python2 cascade_convert.py my_cascade.xml
Re: Convert .xml to .cascade
I was training it with the new format, so now I have them in the correct base format.
Now instead of creating a blank file, when I open my xml with the converter script, no file is generated whatsoever.
What should I do?
(I am sending the xml if that helps)
Now instead of creating a blank file, when I open my xml with the converter script, no file is generated whatsoever.
What should I do?
(I am sending the xml if that helps)
- Attachments
-
cascade.xml
- (46.75 KiB) Downloaded 60 times
- iabdalkader
- Posts: 679
- Joined: Sun May 24, 2015 3:53 pm
Re: Convert .xml to .cascade
Please run the following command from the command line on Linux:
Code: Select all
python2 cascade_convert.py cascade.xml
Re: Convert .xml to .cascade
Hello,
can we use this file (cascade_convert.py) with python 3.6?
Do you have another way to convert the xml file?
Thank
Julien
can we use this file (cascade_convert.py) with python 3.6?
Do you have another way to convert the xml file?
Thank
Julien
- iabdalkader
- Posts: 679
- Joined: Sun May 24, 2015 3:53 pm
Who is online
Users browsing this forum: Google [Bot] and 1 guest