简体   繁体   English

图像分割 python opencv

[英]Image segmentation python opencv

I want to ask for some advice about the procedure that I should implement for image segmentation working with opencv in python.我想就在 python 中使用 opencv 的图像分割应实施的程序征求一些建议。

I have this kind of image我有这种图片图片 and my purpose is to detect the white fiber like here我的目的是检测像这里的白色纤维图2

Does anyone have a proposition of the steps of image processing that I should do?有人对我应该做的图像处理步骤提出建议吗?

Since I can notice that object's color is different than the background, I found this guide helpful.由于我注意到对象的颜色与背景不同,因此我发现本指南很有帮助。 The concept is the following: 1.apply RGB filters to your image, 2.grab contours using OpenCV, then 3.apply some handcraft conditions to them so as to fit your desired output, and finally 4.produce the box.概念如下:1.将RGB滤镜应用于您的图像,2.使用OpenCV抓取轮廓,然后3.对其应用一些手工条件以适合您想要的output,最后4.制作盒子。

If all of your images share the same color patterns, this should work.. If not, it will prove noisy..如果您所有的图像共享相同的颜色模式,这应该可以工作。如果不是,它会证明很嘈杂..

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM