2016-12-22 45 views
-2

我有如下圖像,如何檢測數字區域。我曾經使用bounding-contour來檢測數字,但我不知道要刪除沒有數字的區域。如何檢測二進制圖像中的數字區域

Binary image1

+0

哪種語言,C **或** C++?它們是不同的,例如,C++有迭代器和'std :: vector'。在C語言中,我可以有一個名爲「class」的變量。請相應地編輯您的標籤。 –

+0

更重要的是,OpenCV有不同的C和C++ API。 – MSalters

+0

查看二進制圖像庫。 https://github.com/MalcolmMcLean/binaryimagelibrary你可以很容易地查詢圖像的子圖像,做洪水等 –

回答

0

我建議你使用它,你會得到一個結果圖像像下面看看代碼在this repository

enter image description here

enter image description here

+0

非常感謝您的幫助。 –

相關問題