Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

“使用边缘检测匹配物块上沿”时计算错误 #3

Open
Darkxiete opened this issue Jan 2, 2018 · 3 comments
Open

“使用边缘检测匹配物块上沿”时计算错误 #3

Darkxiete opened this issue Jan 2, 2018 · 3 comments

Comments

@Darkxiete
Copy link

可能是分辨率不同导致点计算错误?
还有就是 上下边沿得计算原理是什么啊,能不能细说一下

@moneyDboat
Copy link
Owner

对图片进行边缘检测之后,从上至下扫描,最先出现的白点就是物块的上沿,就能得到x_top和y_top,上下沿两点x_top是一样的,就在x_top那一条从上往下扫描下一个白点,就能大致确定下沿的位置。边缘检测偶尔会失效,可以检查输出的last.jpg,调整下边缘检测的参数和算子。

@Darkxiete
Copy link
Author

明白了,有一些时长方形棋盘,这时x_top != x_bottom

@zkailinzhang
Copy link

是的,长方形的期盼 上下沿两位置的x坐标不一样

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants