开发者

Suggest template matching algorithm

I want to ask you to help to choose or find a good algorithm for the following problem: I want to recognize the template in the image, the template is a text of non standard font, so OCR possibly will not handle it. What I want is to recognize it using the template matching algorithm. Please refer to the image:

Suggest template matching algorithm

As you see there is a background, in this image I draw it myself, and the background is simple. Usually it is not so simple: it has illuminance variations and usually colored to one color. So, I want to match this template, but I want the algorithm to be invariant of background color.

I've tryed the opencv's cvMatchTemplate, it handles well if there is a template on the image. But if I rotate object under the camera or remove it so that there will not be any templates, the algorithm finds many false-positive matches. So I want to find an algorithm that also is rotation-invar开发者_如何学Ciant. Can you suggest any?


Look at Hu Moments - is rotation & size invariant. , OpenCV has a Match shapes method which does most of the work for you.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜