Template matching in planogram image

asked 2015-02-12 05:54:14 -0500

Dilip gravatar image

Hi , I am trying to perform template matching in planogram images , I went through in this article - templatematching

My images! main image - main image ref image - ref image

But when i am trying to match the image its only matching with the image where i cropped. But if u look in main image , so u will find 2 images similar to template image . How can match both the image with template images .

Please Help me on this Thanks

edit retag flag offensive close merge delete

Comments

2

A template matching approach gives you regions of interest as hotspots in a heatmap. You need to threshold that map to find the actual best matches. Try to lower the threshold. More info in the official tutorial.

StevenPuttemans gravatar imageStevenPuttemans ( 2015-02-12 06:12:35 -0500 )edit

Hi , I try by changing threshold . Currently cv::threshold(res, res, 0.80, 1., CV_THRESH_TOZERO); If i change threshold to 0.90 i will give the result which is not matching also .

Also i try to use grabcut to get only for forgout image from template and than compare , but that also not help ..

Dilip gravatar imageDilip ( 2015-02-12 23:47:54 -0500 )edit