writing text into notepad
11 views (last 30 days)
Show older comments
i have detected text using text detection technique,now i want that detected text to be written into notepad,is it possible ans also in command window these are the last two lines which detects text
Final = immultiply(~(Ibin),im2bw(NewImage));
figure,imshow(Final),title('Result')
4 Comments
Answers (1)
Jan
on 2 Nov 2011
A surprising question. You are working with fuzzy neural networks, Nitzberg-Mumford-Shiota segmentation, face recognition, finger print recognition, cancer classification, ... But you cannot write some text to a file? And you even do not find the corresponding examples in the documentation?
TheText = 'hello world';
TheFile = fullfile(tempdir, 'TheTextFile.txt');
fid = fopen(TheFile, 'w');
if fid == -1; error('Cannot open file: %s', TheFile); end
fprintf(fid, '%s\n', TheText);
fclose(fid);
8 Comments
Jan
on 3 Nov 2011
@Pat: In your question you explain, that you have detected the text already "using text detection technique". In you other questions you showed some OCR methods and mentioned, that they are not working reliably. But you have not explained the exact problem ever. You have posted some code, but the failing OCR part in the subfunction "read_letter" was missing and in consequence a suggestion for improvements have been impossible.
Pat, you have asked dozens of questions about your OCR problem since 19-Sept-2011. None of the questions have been clear enough to allow an answer, which can solve the problems. Now it is time to realize that your strategy to ask questions in this forum does not work. Then asking even more questions in the same style will not be more successful. Therefore I suggest two different new strategies:
1. Instead of wasting months to create a program to read the scores from a picture, read them by your own in just some seconds and type them into NotePad manually. Sometimes computers are not helpful.
2. Process your questions by splitting them into parts until each single question can be answered completely by "yes" or "no". This is not trivial, I know. But it is more efficient than asking 30 questions without getting even one answer.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!