如何在OpenCV中检测已知对象? [英] how to detect known objects in OpenCV?

查看:121
本文介绍了如何在OpenCV中检测已知对象?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在窗口中实时绘制形状.屏幕中的形状像是缠结,矩形,圆形,半圆形或圆形,并使用黄色显示"Z".尺寸和形状可能与原始图像不同.但是Program知道所有原始形状.因为它们是预定义的.我想知道如何识别正确的形状.例如,

I am try to draw shapes in the window in real time. The shapes are like tangle ,rectangle ,circle , half or circle and "Z" in the screen using yellow color. The size and the shape may not be same to the original image. But Program know all the original shapes. Because they are predefined. I want to know how i can identify the correct shape. as an example,

有没有办法做到这一点?我可以为此使用模板匹配吗?请帮我解决这个问题.

is there possible way to do this? can I use template matching for this? Please help me with this..

推荐答案

您可以使用不同的方法来检测每种形状.检查这些:

You can use different methods to detect each shape. Check these:

正方形检测未找到正方形

这篇关于如何在OpenCV中检测已知对象?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆