How to train cascade classifier
Hello,
I am having trouble implementing the HaarDetectObjects function (using OpenCV / Python). The script attempts to identify electronic components (resistors, capacitors, etc.) on a PCB. I have created a large bank of positive and negative images to use for the Haar Training, but am unsure how to go about taking the list of images and generating the cascade XML file. Following some information found online, I have created two text files listing the positive and negative images. My understanding is that these files will then be used by the program located at opencv\samples\c\convert_cascade
, which will need to be compiled. However, I have been unable to compile the necessary files to be able to run convert_cascade.
If anyone has generated a custom cascade and knows what I might be doing wrong, please let me know. I greatly appreciate your help and thank you in advance for your time. If any more information would be helpful, please let me know.
In summary, I am at a loss for how to generate a cascade XML file.