[英]Image boundary detection using python opencv
I am newbie who is trying to learn opencv-python in Ubuntu - 14.04. 我是新手,正在尝试在Ubuntu-14.04中学习opencv-python。 I want to draw the boundary around the black layer at the center of the image that we tested in our laboratory.
我想在我们实验室中测试的图像中心的黑色层周围绘制边界。 After finding the boundary i want to perform some action on the image inside boundary.
找到边界后,我想对边界内的图像执行一些操作。 Here is the image http://prntscr.com/5qfxha
这是图片http://prntscr.com/5qfxha
But all the documents and materials in opencv are provided only for a specific set of images. 但是opencv中的所有文档和材料仅针对特定的图像集提供。 There is no specific detail of how to deal with custom images.
没有关于如何处理自定义图像的具体细节。 I read every single question and as I told I am newbie i am very confused so please guide me through this.
我读了每个问题,正如我告诉我的新手一样,我很困惑,请通过此指导我。 Thanks in advance.
提前致谢。
findContours
can do the trick, see C++ 's and Python example/tutorial. findContours
可以解决问题,请参阅C ++和Python示例/教程。
Once you have your contours, check ConnectedComponent
to find who's included in who ? 轮廓确定后,检查
ConnectedComponent
以查找谁包括在谁中? (only Opencv 3) (仅Opencv 3)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.