如何使用open cv python检测箭头? [英] how to detect arrows using open cv python?

查看:89
本文介绍了如何使用open cv python检测箭头?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在从事盲人导航项目.为此,我需要使用 open cv 和 python 检测左右箭头.任何人都可以帮助处理程序或示例代码.我对打开简历很陌生我必须检测以下形状:

I am working on the blind man navigation project. for this i need to detect right and left arrows using open cv and python. can anyone help with procedure or with sample code. i am pretty much new to open cv I have to detect the following shape:

这将是在现场环境中,即箭头将打印在一张 A4 纸上并挂在走廊上.需要检测图像的相机很可能会有点晃动,所以我认为图像会有一些变形,照明也可能是一个问题.此外,箭头只需要从前面检测到,例如不是从它会变形的一侧.

This will be in a live environment i.e. the arrow will be printed on a piece of A4 paper and hung up in a corridor. The camera which needs to detect the image will most likely be a bit shaky so there will be some deformation of the image I presume, also lighting might be an issue. Further the arrow only needs to be detected from the front e.g. not from the side where it will be deformed.

我现在想知道正确检测箭头及其方向(向左或向右)的最佳方法是什么.

I am now wondering now what my best approach might be to correctly detect the arrow and as such its direction, left or right.

推荐答案

1) 您可以使用 模板匹配来检测箭头,但是如果您使用手持相机,那么要获得正确的方向,您需要确保相机姿势正确,即相机没有旋转.

1) You can use template matching to detect the arrow, however if you using handheld camera, then to get the direction right, you need to make sure that the camera pose is correct, that is the camera is not rotated.

2) 您可以使用基于特征的分类器,例如 HOG角落Lines 等构建检测器,然后预测方向.

2) You can use feature based classifier such as HOG or Corners, Lines etc to build a detector and later predict the direction.

这个Paper 父母一种适用于您的情况的道路标志检测方法.

This Paper parents a road sign detection approach which is applicable in your case.

这篇关于如何使用open cv python检测箭头?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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