14

I have been working around with OpenCV for few days now and I have a project where I should detect cars and humans from the sky.

So here are my inputs:

  • A moving camera in the sky (embedded on a quadcopter) which is gonna capture frames.
  • A set of objects I should detect (humans and cars)

And here are my output:

  • A detection of those objects outlined by a rectangle or some contours

Based on that, my question is as follows: Which one between Haar Cascade and Hog Detection would you recommend to do so and why? Or any else?

Many thanks for your answers

TheCodeArtist
  • 19,131
  • 3
  • 60
  • 123
user2039318
  • 191
  • 1
  • 2
  • 6
  • 1
    Which one do *you* think would be best, and why? –  Mar 31 '13 at 17:30
  • 2
    In case your camera faces downwards, none. Upright position with frontal view was used only in the pre-trained models. You'll have to train your own model to improve the results. In that case, test both. – LovaBill Apr 01 '13 at 08:13
  • I'm developing something very similar. How far did you get with this? – timemanx Aug 19 '13 at 11:56

3 Answers3

8

HOG is usually better for human detection, than Haar. I have only experience in this so I thought I'd give some input on that. However, the limitation of HOG is that the human must be within a "perfect" area on the screen. Too close, it won't detect the human. Too far, it won't detect the human.

I have had better luck with HOG than Haar. Haar gave me too many false positives.

David Daniel
  • 487
  • 5
  • 10
3

I have been trying to use HAAR to detect human, and it turns out to give too many false positives. I think HAAR is only suitable for face or eye detection.

since your camera is in the sky, the human is pretty small in the image and got a whole body shape. HOG would be a better choice.

Jiechao Li
  • 226
  • 2
  • 6
  • 16
1

You need to change scale factor and minimum neighbours in HAAR cascade which is not same for all the image. So it's better to use HOG.

Mohan Goud
  • 57
  • 1
  • 9