how to get clear text

3 ビュー (過去 30 日間)
Pat
Pat 2013 年 2 月 12 日
I have a image below which is a cropped one ,i want to make the background black in colour and text text,i used some code,but am not getting clear image.I changed the values,even though could not get clear image
imgGray = rgb2gray(img_crop);
bw = im2bw(img_crop,graythresh(imgGray));
imshow(bw);
plz assist how to get clear text

回答 (1 件)

Jan
Jan 2013 年 2 月 12 日
It is impossible to guess why your text get unclear by this procedure. Perhaps posting the picture helps to understand your problem.
Converting the image from RGB to GREY removes useful information from the image. I you want to identify a certain feature, here the text, using the color information could be important. Therefore I suggest not to use IM2BW(IM2GRAY(Image)), but to let one of Image Analysts frequently posted methods to find the speficic color of the text letters in the RGB image. The found mask will be an BW image also.
  11 件のコメント
Pat
Pat 2013 年 2 月 12 日
can u tell how?
Jan
Jan 2013 年 2 月 12 日
@ChristianW: All Gaptchas are easy to crack: Simply set up a server and offer anything for free, but add a gaptcha copied from the service you want to misuse. Then voluntary users solve the problem with their enormous visual inteligence, while even high skilled functions for image analysis fail. To demontrate this technique:
The image contains the string CLIE620020
And I even do not have the image processing toolbox!

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeConvert Image Type についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by