标签: opencv real-time detection shape template-matching
我尝试在窗口中实时绘制形状。形状类似于缠结,矩形,圆形,半圆形或圆形,屏幕中的“Z”使用黄色。尺寸和形状可能与原始图像不同。但程序知道所有原始形状。因为它们是预定义的。我想知道如何识别正确的形状。例如,
有可能这样做吗?我可以使用模板匹配吗?请帮帮我...
答案 0 :(得分:2)
您可以使用different methods检测每个形状。检查这些:
Ellipse detection with OpenCV
Square detection doesn't find squares