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 commentaires

Jan
Jan le 2 Nov 2011
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?
Pat
Pat le 2 Nov 2011
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
Pat
Pat le 2 Nov 2011
as u said can u tell how to" write to a text file and open it in notepad or any other editor"
Jan
Jan le 2 Nov 2011
What is "notepad" and how can you "call that notepad" for further processing?

Connectez-vous pour commenter.

Réponses (1)

Jan
Jan le 2 Nov 2011

0 votes

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 commentaires

Pat
Pat le 3 Nov 2011
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
Pat
Pat le 3 Nov 2011
Jan please look at this figure also
http://imgur.com/E8o9o
Jan
Jan le 3 Nov 2011
@Pat: These comments are not related to my answer.
You do not answer my question about the term "notepad".
Pat
Pat le 3 Nov 2011
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
Jan
Jan le 3 Nov 2011
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?
Pat
Pat le 3 Nov 2011
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
Jan
Jan le 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.
Pat
Pat le 3 Nov 2011
ok Jan ,thanks for your suggestions

Connectez-vous pour commenter.

Question posée :

Pat
le 2 Nov 2011

Community Treasure Hunt

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

Start Hunting!

Translated by