Search code examples
xmlopencvobject-detection

Combining more then one xml's in one xml for haarCascades object detection


Can we add more then one xml's in one xml for detecting more then one objects in a frame(Image)?

e.g: I want to detect nose and face at the same time. OpenCV contains face and nose in both files, but I want their combination to detect both at the same time.


Solution

  • Yes, you can do it. New OpenCV sample for face-detection comes with this property.Check it out.

    See the result below. It has detected face and eyes in the same image.

    enter image description here