2

我已經搜索了關於這個領域,我發現了一些論文提出了從圖像中提取文本的新方法,但我有一個灰度圖像由一個簡單的背景和一些texts.so我需要一個方法,每個人都與它合作。 請詳細說明如何做到這一點。使用matlab從圖像中分割文本的常用方法是什麼?

+1

也許看看[本](http://stackoverflow.com/questions/19960826/how-to-make-the-blackboard-text-appear-clearer-using-matlab/199​​62240?noredirect=1#評論29743737_19962240) – Vuwox

+0

[The article](http://www.math.tau.ac.il/~turkel/imagepapers/text_detection.pdf) – Vuwox

+0

例如Steven Bell提出的「自然圖像中的文本檢測和識別」沒有執行分割。 –

回答

2

這裏是一篇關於文本分割的文章。

article

在這裏,一個簡單的方法來區隔在2類圖像。

I = imread('...'); % Your board image 
ThreshConstant = 1; % Try to vary this constant. 

bw = im2bw(I , ThreshConstant * graythresh(I)); % Black-white image 

SegmentedImg = I.*repmat(uint8(bw), [1 1 3]); 

只要做imshow(bw);,你將有一個2彩色圖像通常也分割。

如果閾值太大,請嘗試使用ThreshConstant將其轉化爲0.5至1.5。

+0

我試過你的[這個問題](http://stackoverflow.com/users/2049859/top-eng?tab=reputation)的答案,並幫助我。如果您在此張貼,我想將其標記爲我的答案。 –

+0

BW或SWT文章?無論如何,我編輯我的答案 – Vuwox

+0

不客氣。但這是一個簡單的2級分類。如果你也許會尋找更多的課堂細分。這[文件交換](http://www.mathworks.com/matlabcentral/fileexchange/26532-image-segmentation-using-otsu-thresholding)非常好。 – Vuwox