简体   繁体   中英

Recognize hand drawn shape in OpenCV

I have the following task: recognize a set of simple hand-drawn shapes on a sheet of paper from a still image (not a video stream), so they might not be exactly identically pixelwise.

Those shapes are basically symbols for doors, windows, etc. in a floor plan (see attached image), so they might be slightly scaled or rotated (90° steps). There are about 5 different ones.

So far I came across SIFT (and its OpenCV-variants SURF and ORB ) as well as a cascaded classifier to recognize haar-like features .

For SIFT there seem to be too little key points in such a shape whereas I did not manage to get the haar-trained cascaded classifier to work. Also, a cascaded classifier seems a bit heavy for recognizing such simple shapes, no?


Does anyone of you have any good hints or alternative approaches? Or maybe you even have a snippet of code lying around which I can use?

门的符号

我认为,梯度直方图(HOG)对于此类元素应适用。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM