0

I was working on hand detection,I tried haar cascade but it doesnt give proper result on most of the images but templateMatching is giving better result.I am just curious if template matching will work in different condition of light and which one is more reliable?

Rahul galgali
  • 775
  • 2
  • 10
  • 26

1 Answers1

2

The following depends on what your training and input images look like, but you have included no samples:

Of the two options, Haar cascade is most certainly the better choice. OpenCV template matching is not robust against lighting changes, or really any changes at all, period. The template matching more or less looks for an exact image match, not matching features (which the cascade does).

Christopher Peterson
  • 1,570
  • 1
  • 10
  • 9