473,386 Members | 1,715 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

extract text

let's say you have a java app running in a window on your linux box and it
has real time changing content as text. how can you extract the text
periodically and save it as a TEXT file. this step does not need to be
pretty formatted just all text need to be saved in a text file so I can
grep and cut it later. is it at all possible?
I need a general solution that will work with any app in a browser window or
standalone java app.
can you take snapshot of a window for instance and then convert it somehow
with utilities so it saves lines of text in a text format file?

thank you
Jul 17 '05 #1
2 3662
regarding your last question : Check out OCR (Optical Character
Recognition) softwares.
If you are using Windows, Microsoft Office comes with one [Document Imaging]
Steve wrote:
let's say you have a java app running in a window on your linux box and it
has real time changing content as text. how can you extract the text
periodically and save it as a TEXT file. this step does not need to be
pretty formatted just all text need to be saved in a text file so I can
grep and cut it later. is it at all possible?
I need a general solution that will work with any app in a browser window or
standalone java app.
can you take snapshot of a window for instance and then convert it somehow
with utilities so it saves lines of text in a text format file?

thank you


Jul 17 '05 #2
Hello,

Can OCR software work with anything other than scanners?
Can OCR software really work with images, like jpegs?
What I mean here is screen content.
I need this to work on linux.

Thank you

Hamed Seifoddini wrote:
regarding your last question : Check out OCR (Optical Character
Recognition) softwares.
If you are using Windows, Microsoft Office comes with one [Document
Imaging]
Steve wrote:
let's say you have a java app running in a window on your linux box and
it has real time changing content as text. how can you extract the text
periodically and save it as a TEXT file. this step does not need to be
pretty formatted just all text need to be saved in a text file so I can
grep and cut it later. is it at all possible?
I need a general solution that will work with any app in a browser window
or standalone java app.
can you take snapshot of a window for instance and then convert it
somehow with utilities so it saves lines of text in a text format file?

thank you


Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: ano1optimist | last post by:
I've got the code to search through a directory for word documents, open the doc, search for specific text... but I'm trying to extract data that immediately follows the selected highlighted text. ...
8
by: nick | last post by:
Hi all can any one please tell me what is wrong in this code?? I'm new to deal with text files and extract data. i'm trying to look for data in a text file (3~4 pages) some lines start with a...
1
by: csgraham74 | last post by:
Hi Guys, I want to populate a nodelist so that i can extract various details. The xml document i have is similar to the one below. baiscally i want to extract the first instance of <PP>...
7
by: teo | last post by:
hallo, I need to extract a word and few text that precedes and follows it (about 30 + 30 chars) from a long textual document. Like the description that Google returns when it has found a...
8
by: Fabian Braennstroem | last post by:
Hi, I would like to remove certain lines from a log files. I had some sed/awk scripts for this, but now, I want to use python with its re module for this task. Actually, I have two different...
9
by: flit | last post by:
Hello All, Using poplib in python I can extract only the headers using the .top, there is a way to extract only the message text without the headers? like remove the fields below: "...
1
by: Alberto Sartori | last post by:
Hello, I have a html text with custom tags which looks like html comment, such: "text text text <p>text</ptext test test text text text <p>text</ptext test test <!-- @MyTag@ -->extract...
0
by: wbw | last post by:
I am trying to extract capitalized words from text in Excel. I have a list of a combination of brands and products and I am trying to extract out the product attribute from the text. Since the text...
5
by: Steve | last post by:
Hi all Does anybody please know a way to extract an Image from a pdf file and save it as a TIFF? I have used a scanner to scan documents which are then placed on a server, but I need to...
18
by: Ecka | last post by:
Hi everyone, I'm trying to write a PHP script that connects to a bank's currency convertor page using cURL and that part works fine. The issue is that I end up with a page that includes a lot...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.