writing text into notepad

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 个评论

What does "write into notepad" mean? Notepad displays normal text files. So why not just writing to a text file and open it in notepad or any other editor?
What is the connection between the question and the shown code? What are these two lines doing and is there any specific problem?
actually i have detected text in figure window,now i want that text to be writtenen into notepad,so that i can call that notepad for further processing
the code shown contains the figure of detected text
as u said can u tell how to" write to a text file and open it in notepad or any other editor"
What is "notepad" and how can you "call that notepad" for further processing?

请先登录,再进行评论。

回答(1 个)

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 个评论

Jan i want to write some text which is in figure window to a file
i have uploaded a figure window and i want to write that content in that figure window to a text file
http://imgur.com/1TRHM
Jan please look at this figure also
http://imgur.com/E8o9o
@Pat: These comments are not related to my answer.
You do not answer my question about the term "notepad".
notepad is one where we can save ,write any documents(like text pad,wordpad)
Notepad is a simple text editor for Microsoft Windows.
Notepad is a common text-only (plain text) editor
Ok, then we are talking about the same program. Does "write into notepad" mean that you want to qrite in a text file and open it into notepad? If so, does my answer solve this question?
no Jan ur answer is correct for text,my text is in image which i had uploaded ,please give some suggestion for text in image ,is it possible to write text in image to a file
@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.
ok Jan ,thanks for your suggestions

请先登录,再进行评论。

提问:

Pat
2011-11-2

Community Treasure Hunt

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

Start Hunting!

Translated by