如何使用python中的openCV检测图像中的垂直边缘
我想检测甘蔗棒中的关节,不希望检测到边界线 这是我的原始原始图像,在应用形态梯度后,我得到了这个输出图像。我需要的所需输出是仅检测关节的垂直边缘,所需的输出仅是此图像。
因此,如果有人能帮助我,那就太好了!
I want to detect joints in a sugarcane stick and do not want the border lines to be detected
this is my original Original Image, and after applying Morphological Gradient I got this output image. The desired output that I need is to detect only vertical edges that is the joints, the desired output are only the red lines in this image.
So, it would be great if anyone could help me out!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以尝试增强以下代码以找到垂直边缘,因为您需要
You can try to enhance the following code to find vertical edges as you need
Sugarcan Bud检测&切割机制
最终得到了正确的问题,并为我的问题做了回答,它使用猪圈转换来检测芽,并在其周围显示红色圆圈。
它还将序列信息传递给计算机的COM4端口,以便可以在正确的时间操作切割器。
该程序用于识别,检测和切割无人干扰的甘蔗芽,
这是我的研究论文的链接 - https://www.irjet.net/archives/v10/i6/irjet-v10i627.pdf
SUGARCAN BUD DETECTION & CUTTING MECHANISM
Finally I got the right and working answer for my question, It detects the buds using HOG Circle Transform and shows red circle around it.
It also passes a serial info to the COM4 port of the computer so that the cutter can be operated at the right time.
The program is used to Identify, Detect And Cut a sugarcane bud without human interference
Here's a link to my research paper - https://www.irjet.net/archives/V10/i6/IRJET-V10I627.pdf