Ask Your Question

ajs's profile - activity

2016-12-23 00:56:10 -0600 received badge  Enthusiast
2016-12-22 10:50:58 -0600 commented answer Can Haar or Cascade classifiers be accurate enough in detecting object size?

Nice thinking, but I wish to be able to measure distance in different conditions(lighting, background), so wouldn't I then need different threshold values for different cases? That's one of problems why I started to work with machine learning algorithms at first.

2016-12-22 10:30:45 -0600 received badge  Supporter (source)
2016-12-18 16:39:07 -0600 asked a question Can Haar or Cascade classifiers be accurate enough in detecting object size?

I'm trying to detect ping pong ball using my own trained Haar classifier(not so good one) and then to calculate ball distance from camera.I calibrated camera and used those parameters alongside with known ball dimensions in real world and ball size on picture,and the formula works fine when I detect ball just the right. The problem is Haar classifier sometimes detect ball slightly smaller, and sometimes slightly bigger then it is in picture so I got wrong distance values.Like here: image description

My question is, can Haar or Cascade classifiers be used for this purpose, or they are here only to detect that there is object but can't detect the exact size? Will the classifier trained on larger set of images be more accurate here?(currently using haar trained on 730 positives and 1870 negatives images on 12 stages)