Text Extraction from Color .gif image

I have a few .gif images which are screenshots of a terminal window with a table of information; thus they are on a black background with white/yellow text, alpha-numeric.

I've tried the OCR file in the File Exchange (file 18169) but when it reads my color image and converts it to greyscale, the image is barely readable.

I know nothing about image processing; I use Matlab heavily for statistical analysis and it seems the only way I can get this data is via these screenshots, and I'm trying to avoid hand-entering these tables of data.

But this seems like something that is relatively easy to do - these are computer generated fonts on a high-contrast background. I'm hoping that there is a way to either more crisply convert it to a white background with black text image for the OCR file exchange program or an entirely separate program to do it. Is there?
0
Jesse
11/18/2010 3:00:08 AM
comp.soft-sys.matlab 206924 articles. 560 followers. lunamoonmoon (258) is leader. Post Follow

1 Replies
728 Views

Similar Articles

[PageSpeed] 45
Just make your own monochrome image.  Try taking one of the color
channels
redChannel = rgbImage(:,:,1);
greenChannel = rgbImage(:,:,2);
blueChannel = rgbImage(:,:,3);
Use whichever one gives you the best contrast.

0
ImageAnalyst
11/18/2010 3:53:07 AM
Reply:
Similar Artilces:

How to reject on text string?
I have noticed that the second line in the headers of all the spam I have received in te last 24 hours has the following content X-Account-Key: account2 Which raises the obvious question as to how I tell sendmail (or other app ?) to reject that email. "terryc" <newssixspam-spam@woa.com.au> wrote in message news:pan.2008.07.14.01.50.57.417329@woa.com.au... > I have noticed that the second line in the headers of all the > spam I have received in te last 24 hours has the following > content > X-Account-Key: account2 > > Which raises the obvious question as to h...

How can I read the properties of an Image.
I want to read information form an image (jpg) witch has some extra information includet form a digital camera like cration date, fokus, flash on of, ... How can I get this informations. My first idea was. BufferedImage image = ImageIO.read(filePicture); if (image().getPropertyNames() != null) { for (int j = 0; j < image().getPropertyNames().length; j++) { String key = image().getPropertyNames()[j]; String value = (String) image().getProperty(key); System.out.println(key + ": " + value); } } But the getPr...

Width of a canvas text widget
I'm trying to place a canvas text widget and I need to know the width of its text in pixels. My little tester has a sequence like this: my $id = $c->createText( $x, $y, -text => $label, -justify => 'left' ); my $font = $c->itemcget( $id, -font ); my $text = $c->itemcget( $id, -text ); print "text=\"$text\"\n"; my $width = $font->measure($text); print "width=$width\n"; But this code return an error message on the line that ends "$font->measure($text);": "Tk::Error: Can't locate object method &quo...

text in a mask (simulink)
I want to type text in a mask as a parameter. like variable(...) = <text> under the mask I would use the text to display on the command window when a variable is above 0. When de variable is a number, I could use a contant block ...

Dynasty text based game
Hi, I am looking for Dynasty text based strategy game here is a link to wikipedia that has a screen shot of the game. Thanks for anyone's help in finding this game. http://en.wikipedia.org/wiki/Dynasty_%28computer_game%29 On 1/16/2013 7:51 PM, Bradley Ehn wrote: > Hi, > I am looking for Dynasty text based strategy game here is a link to > wikipedia that has a screen shot of the game. > > Thanks for anyone's help in finding this game. > > http://en.wikipedia.org/wiki/Dynasty_%28computer_game%29 I loved Hammurabi! Looks like Dynasty is a deriv...

Cannot edit text in existing text layer
Hi, I prefer to use PSP 8 for a number of things instead of Photoshop CS which I also use a lot. One of the things I think PSP does better is creating sharp, crisp text, yet with enough smoothness to it. Especially small sized text in Photoshop often has a certain blurry and unclear quality to it that I really dislike. However, what annoys the hell out of me is that you cannot edit the text once you have done something else. At least, I do not succeed in that. In Photoshop you just select the text layer to do whatever you want with it, but in Paintshop you can only change the layer properties...

display monochromatic images wxPython
Dear All, I want to write a GUI program with wxPython displaying an image. But the image I have is monochromatic. When I retrieve the data from the image I end up with a list of integer. Starting from a list of integer and knowing the width and height of the image, how do I display such an image on a wx panel or frame ? I have had a look at the wxPython demo but there I see only images where the data is a list of tuple consisting of r,g ,b values. Is there are function where I directly can input the list of array and let it display the image ? Thanks in advance RR On Apr 25, 3:42=A0pm, "...

Replacing text in a text file with VB6
Hi all, I'm trying to figure out how to replace text in a text file with a new string. The replace function seems to be the way to go, but I can't get it to work right. The program is a time clock for employees to punch in and out at a business. It uses ADOX for its database and creates a separate text file for each employee which the clock in and clock out timestamps are written to. The top 3 lines of each file containe 1. The employee's name, 2. His or her SSN, and 3. His or her employee number. If an employee's name or SSN changes, I have no problem updatin...

text + text
What is "text + text" supposed to do right now? It doesn't seem very useful to me. What about making "text + text" as an equivalent for "text || text"? Most strongly-typed programming languages do this. And MS SQL Server too, I think (CMIIW). -- dave ---------------------------(end of broadcast)--------------------------- TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org Am Freitag, 8. Oktober 2004 12:57 schrieb David Garamond: > What is "text + text" supposed to do right now? Nothing. > What a...

text boxes
Hi all i am writing a small program and what i need to do is have some code that will do the following: When i press a key within a text box it will type that letter/number in and then move to the next text box in the tab order. any help appreciated steve Steve wrote: > Hi all i am writing a small program and what i need to do is have some code > that will do the following: > > When i press a key within a text box it will type that letter/number in > and then move to the next text box in the tab order. > > any help appreciated > > steve Use KeyPress...

Howw to extract a vector from a matrix in simulink?
Hi, I have a 2x2 matrix, [A]. Sometimes one column of this matrix is zero and some times both columns are non-zero. I want to extract a 2x1 vector from this matrix such that: -If both columns of A are non-zero, extract the column with smaller value in the second row. For example if A=[6 2 3 10], then [6 3] is extracted. -If one of the columns of A is zero, then the non-zero column is extracted. For example if A=[4 0 5 0], then [4 ...

get text from enum
Hello, my problem is to get the enum-text from a enum in my cluster. if i have an enum without a cluster i can choose Strings[] from the property node. can anyone help me?? thanks markus DataClusterToLogFileText.vi: http://forums.ni.com/attachments/ni/170/187150/1/DataClusterToLogFileText.vi Hi Markus, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Here you go! <img src="http://forums.ni.com/attachments/ni/170/187152/1/FormatIntoString.JPG"> &nbsp; &nbsp;Message Edited by Dynamik on 05-29-2006 03:18 AM FormatIntoString.JPG: http://forums.ni.com/attachmen...

Parsing excel CVS data on a mac OSX to extract blocks of cells
I would like to parse some excel CVS data which has a repetitive block pattern "Experiment ID: 1",,,,,,,,,,,, "Subject ID: 1013938829432171e868c340. Trial,stimulus,time,type,field1,field2,text_response,Abs. time of response,,,,, 26,undefined,14828,KEY,RETURN,UNUSED,DCS,Sat Oct 15 17:48:04 GMT-0400 2005,,,,, 23,undefined,15078,KEY,RETURN,UNUSED,244,Sat Oct 15 17:48:19 GMT-0400 2005,,,,, 7,nixontrialleft copy.pct [TAG: 1],5953,KEY,1,UNUSED,,Sat Oct 15 17:49:24 GMT-0400 2005,,,,, 8,nixontrialfront copy.pct [TAG: 3],6250,KEY,3,UNUSED,,Sat Oct 15 17:49:31 GMT-0400 2005,,,,, 9,nixont...

import text
Hi everyone! I've created a small database using flmk proadvanced 8. The data was imported for an xcel file. How can I import / maintain the formatation of the text which I have in xcel into flmk. Thank you. Alberto. On Tue, 26 May 2009 04:41:18 -0700 (PDT), albfaria@gmail.com wrote: > Hi everyone! I've created a small database using flmk proadvanced 8. > The data was imported for an xcel file. How can I import / maintain > the formatation of the text which I have in xcel into flmk. Thank you. You can't. Excel import does not maintain field formatting. You might ex...

Save images with colorbars
Hi, I have the following problem. I am working with images and trying to save my output with standard matlab colorbar on its right. For an image without colorbar I would just use imwrite(image,'A.png'), but the same image with colorbar I save using imagesc(image) colorbar image2 = imcapture(gcf, 'all', 150) % function from http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=13355 imwrite(image2,'B.png') This code works just fine, but it has an annoying problem of imagesc constantly opening windows. I am writing codes for batch proce...

3D or shadow text?
Hello, Using PS Elements, is there a way give text a shadow or a 3D effect? I tried all of the options under Effects/Text but could not see a 3D appearing one. Thanks a lot, Bob In article <QXPHe.7032$p%3.33918@typhoon.sonic.net>, "ergobob" <ergobob@sonic[REMOVE].net> wrote: > Hello, > > Using PS Elements, is there a way give text a shadow or a 3D effect? > > I tried all of the options under Effects/Text but could not see a 3D > appearing one. > You mean a simulated cast shadow instead of a drop shadow? I don't know if this will w...

text copy of the FAQ?
I was wondering if someone could post a link to a printer friendly text copy of the FAQ. I found one on FAQs.org, but it was from 2000, and I'd like to try to get the most recent copy. tmaccallum@gmail.com wrote: > I was wondering if someone could post a link to a printer friendly text > copy of the FAQ. I found one on FAQs.org, but it was from 2000, and I'd > like to try to get the most recent copy. No, but you can apparently download the current one with wget. See: http://www.parashift.com/c++-faq-lite/on-line-availability.html#faq-2.2 Cheers! --M ...

Adding and updating new tDOM XML text nodes
Hi guys, Some code: package require tdom # Read in data in the xml variable. set dom [dom parse -keepEmpties \ "<BASE>\n<al>\n<Cats>9 lives</Cats>\n<Canaries/>\n</al>\n</BASE>"] set doc [$dom documentElement] # Add a missing node. set node [$doc selectNodes /BASE/al] $node appendXML "<Dogs></Dogs>" # Update an existing node. set node [$doc selectNodes /BASE/al/Cats/text()] $node nodeValue "Great swingers" # Output doc to show Dogs got added and Cats changed. puts [$doc asXML] ...

Re: converting text to date to quarter #3
easier to scan from the right to find the year. yyq = input(cats('01',substr(field,1.3),scan(field,-1)),monyy.); On Fri, Oct 23, 2009 at 4:37 PM, Norm Weston <nweston@amgen.com> wrote: > SD, > > When dealing with data I don't know, I always like to control it as much > as possible to prevent potential issues. Thus, upcasing the field before > working with it. If the field is already upcased, this does nothing, but > it hurts nothing either so... As for the compress, if you remove the DROP > statement and run the code against 100 obs, you will see th...

to make text compact on JButton
Hi, I hope to make the text on the JButton compact. This is comparable to set the "internal margin" attribute for a Text box in the Microsoft WORD. The default margin is none zero. If you set one of the left/ right/top/bottom to be zero, a little more text can be displayed in one line/column when the Text box size is not changed. I didn't find where can I set this for the JButton. The JTextComponent has a "setMargin(Insets m) " method to achieve this. But JButton is not a subclass of JTextComponent. JButton has setFont() method, but font attribute doesn't seem to ...

Conditional yes\no E-mail text box
Hello all, I am rather new to FM (FM 5.5). Last year I created a rather simple database for input in layouts with all text fields. For it's function, it works perfectly fine. This year I am considering some updates to the fields partly to learn something and partly as convenience to the users of the DB. OK, here goes. I have one text field where E-mail addresses are input. I found a really handy functional script that allows one to click on this field which directly opens a mail form to send a message. really cool. But, the problem comes in the fact that the same box also needs a c...

inserting a timestamp when entering data in a text field
Hello, I would like to have a timestamp appended to any input added to a text field. This seems like it should be fairly easy, but I'm having trouble figuring it out. Alternatively I could use the now() function in a seperate field, however the problem I'm having with that is that when entering text in the text field access automatically creates the next record with the current time/date. That record may not actually have data for several hours, or the following day. Any help/guidance is much appreciated! Terry, > I would like to have a timestamp appended to any input added ...

Several small images on top of one plot
Hi! I have got the following problem: I want to plot a 2D-function in matlab, and then I want to insert (small) png-Images at certain locations within the figure. Any suggestions on how to do that? Thanks a lot! yggobk ...

text 2 text
I'm rather new to ustation and am having trouble finding replacements for all of my Acad lisp routines. One that I'd like to find changes a selected text string to read like the second selected text string. I realize this can all be done in the text editor but it's not all that quick. Does anyone know of a macro or mdl which can handle this task? Thanks in advance.---Calvin I don't know of any application that will do what you describe, but have you looked at Edit > Find/Replace text? You may also find Bentley's discussion groups of assistance. Over th...

Access ADP Form Sort on ComboBox Text
Here is BenchmarkCategory table. Notice the BenchmarkCategoryName is not sorted alphabetically when sorted by BenchmarkCategoryID. BenchmarkCategory BenchmarkCategoryName BenchmarkCategoryID US EQUITY 1 INTERNATIONAL EQUITY 2 US FIXED INCOME 3 NON-US FIXED INCOME 4 OTHER 5 Here is another table Benchmark with a BenchmarkCategoryID column. I built a form on the table and added a ComboBox displaying the BenchmarkCategoryName. Because users would like to see Names instead of IDs. The right hand Column is a ComboBox based on BenchmarkCatgoryID but displaying BenchmarkCategoryName. Benchmark Ben...