MatchParent not working with diferent angles and sizes

asked 2016-09-21 08:03:17 -0500

marcosbontempo gravatar image

Hello,

I'm using this template to find a juice box in a camera capture:

image description

But I'm not getting good results. It only detects the box in this angle and size. Is there a better way to find a object in diferent angles and size?

I already used a Haar Cascade Classifier. Is it better for video applications? Are there another methods?

Any tip will be very helpful,

Thanks

edit retag flag offensive close merge delete

Comments

Is it not possible to get a better image quality or it is normal? Looks like the focus is not adjusted.

Eduardo gravatar imageEduardo ( 2016-09-21 08:37:01 -0500 )edit

@Eduardo I'm having problems with the image quality and the focus because I need to detect the object in movement. Is there a better detection method for objects in movement?

marcosbontempo gravatar imagemarcosbontempo ( 2016-09-21 08:46:32 -0500 )edit

Focus issue and movement issue are different: you should get a proper in focus image at the working distance with static objects. For movement issue, maybe a high fps camera could reduce the blur.

Eduardo gravatar imageEduardo ( 2016-09-21 09:08:09 -0500 )edit

You know that matchTemplate only finds translation, right? If the object is rotated or scaled from your template it won't find it. That's not what matchTemplate is for.

Tetragramm gravatar imageTetragramm ( 2016-09-21 20:46:28 -0500 )edit