how to get character from mouse

I want to get input from mouse for as image. I am working on OCR. imfreehand get input from mouse but at the end it turns out to be a polygon. I couldnot get the desired output. Please help

 Accepted Answer

use
imfreehand('Closed',false)
to avoid the polygon..

1 Comment

Thank you sir. This is exactly what i want. May I request if you tell me how to increase the width of the line. As it is too thin now.

Sign in to comment.

More Answers (1)

KSSV
KSSV on 30 Aug 2016
You may follow the below link:
https://in.mathworks.com/matlabcentral/answers/91818-how-can-i-control-the-thickness-of-the-lines-in-imcrop-and-imfreehand-in-image-processing-toolbox-6
Way of thanking in mathworks is accepting the answer.

Categories

Find more on Convert Image Type in Help Center and File Exchange

Asked:

on 30 Aug 2016

Answered:

on 30 Aug 2016

Community Treasure Hunt

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

Start Hunting!