ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Extracting handwritten text from a color image

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
Eric24 Posted - Aug 24 2011 : 19:32:35
I'm hoping someone here with some experience doing this can point me in the right direction. What I have is a color scan of a handwritten document. The background is mostly "solid", but not "white" or any other single color, but rather shades of white/gray (think old paper). The handwriting is mostly written with blue or black ink, occasionally some other color. My objective is to extract the handwriting from the background.

So far, I'm thinking that some combination of "background color removal" and/or edge detection might do the trick. Is there some other approach I should consider? Any advice would be greatly appreciated!

Thank you!
3   L A T E S T    R E P L I E S    (Newest First)
fab Posted - Aug 28 2011 : 22:24:07
You could try to apply a local threshold. For example:
ImageEnView1.Proc.ConvertToBWLocalThreshold(8, ietMeanMinMax, 6);

You may need to change parameters depending by the background.

Also, it may be necessary to remove isolated pixels with:
ImageEnView1.Proc.RemoveIsolatedPixels(0);


This is the result applying ConvertToBWLocalThreshold and RemoveIsolatedPixels to your image:
Eric24 Posted - Aug 28 2011 : 20:05:26
Here's a simple one


69.01 KB.
fab Posted - Aug 25 2011 : 00:06:32
Please post a sample image.