![](/img/trans.png)
[英]To get the center mask from an image of masks using Python3 and opencv
[英]Given a image of white lines forming a grid, how to get masks of the interior shapes using opencv?
您可以嘗試使用“霍夫線檢測”來檢測圖像中的線段,然后使用該信息來填補當前結果中的空白,或者僅使用線段來檢測單元格。
使用線條檢測的優點是,一旦有了線條的參數,就可以將其擴展到圖像中實際顯示的下方。 因此,即使一個單元格有間隙,您也應該能夠將其關閉。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.