Thanks for your response Tanaka!
Oh yeah, i got your point. When I tested your code for an image containing eyes only, it didn't work.
That means, this type of combination works when all the parts are present in the image. This is what hierarchical relationship I think.
In my toolbox, I use a spatial correlation among a left eye, a right eye, a nose, and a mouse. I also use a hierarchical relationship between a face and face parts. I don’t think that a pistol and a rifle have such kind of spatial correlation. If there are some spatial correlation and/or the hierarchical relationship, you can combine multiple detectors for them by following my toolbox.
You have done a great job! This code has made life easier.
Can you tell me that where exactly in your code you have integrated multiple detectors?
Let suppose, if I have trained 2 custom detectors, one known as PistolDetector and the other as RifleDetector; can u guide me that how I can combine both the detectors?