This question already has answers here:
Java OCR implementation [closed]
(5 answers)
Closed 9 years ago.
Hey guys is it possible to read text from an image, like how you go to submit a form and it ask you to fill in the text inside image. I want to know if it is possible to read the text inside it. If so, what language?
David Biga
EDIT:
I am not trying to read captcha I was just giving an example of an image with text in it.
It is possible to read text with Optical Character Recognition.
However, CAPTCHAs are designed to thwart this, in order to distinguish humans from computers.
Related
This question already has answers here:
Print in bold on a terminal
(3 answers)
Closed 28 days ago.
I am making a Blackjack program using Java, and I want to add bold text to it; however, I am having trouble knowing how to do that. Can anyone help?
I have tried to look up escape codes for it (I know they exist, I just don't remember them) on here and on the web, but couldn't find anything useful.
Here is one way to write texts bold on console for IDEs like NetBeans and Eclipse
String boldText= "Java_Bold_Text";
System.out.print("\033[0;1m" + boldText);
This question already has answers here:
Best way to store data between program runs in java?
(11 answers)
How can I save the state of my program and then load it?
(2 answers)
Closed 5 years ago.
For example, if I had checked a JCheckBox when I opened the program, how would I make the it remember the status of the checkbox so that the next time I open up the JFrame, the box stays checked.
I would also like to extend this question to other swing components like radiobuttons, color chooser, etc.
Attempted solution: The only way I can think of it is possibly making a new file so that the program can update and read the status of it and adjust the swing components when opened. However, this is too inefficient. I read online something about cookies but I am not too sure.
This question already has answers here:
How do you add text to JTextArea? (console simulation) [closed]
(2 answers)
Closed 7 years ago.
I am making a simple NotePad app in my spare time and i have added some buttons to add some text, like the time or an essay plan etc. I am currently using the code
textArea.setText("Text");
But it keeps on replacing all of the text, is there anyway to just add the text to the JTextArea? I've tried
textArea.addText("Text");
and it doesn't seem to work.
You need to use textArea.append("text");
You should use the append and insert methods.
Use textArea.append("text"), but I recomend JTextPane for more control like color, selection, etc.
This question already has answers here:
Playing an arbitrary tone with Android
(10 answers)
Closed 3 years ago.
So I'm trying to find out if its possible to create some sound waves that I can then manipulate using java, more specifically for the android platform. The Idea is to get integer values and using that, dynamically change pitch/pulse based on user input. I've looked into the soundpool class and it seems that that only handles sampled audio, I'm wondering if there is any way to actually generate it using code.
I'm assuming that if so, each wave generated would have to use it's own thread in order to manipulate them independently. Can someone confirm this?
Any help in the right direction is appreciated.
So I found this question whose highest voted answer is pretty much exactly what I was looking for. In any case, here's the link for reference:
Playing an arbitrary tone with Android
This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
marquee text in android
in my app i want to have a news banner with the words moving to one side like tv .. i don't really know how to run that kind of animation .. and should the banner be a TextView ? i'm not really sure of anything .. so i just need the xml format of such thing, Thankss!
This is commonly referred to as a ticker or marquee. Here's a tutorial on how to make one.
Edit: Here's another tutorial.
Edit: Here's another stackoverflow question about the same thing.
Edit: And another.