Skip to contentSkip to conversation

capturing oopses

DISCUSSION Bodo Eggert 3 participants 5 messages Nov 27, 2005 3 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw
Quoted 7 lines · Ville Herva

Speaking of which, does anybody know a feasible (as in "not too much harder than manually typing it in manually") way to OCR characters from vga text mode screen captures - or even digican shots?

The vga text mode captures are from a remote administration interface (such as HP RILOE or vmware gsx console) so they are pixel perfect and OCR should be doable.

If it's a 640 pixel width image and you've got the right font loaded, the VGA function 0x08 will get you the character at the current cursor position. It's also used by PRTSCR, so pressing it in a DOS viewer may dump the text to LPT1. If you redirected it to a serial console, you might also catch it. (I never tried).

Signature · 2 lines
Ich danke GMX dafür, die Verwendung meiner Adressen mittels per SPF
verbreiteten Lügen zu sabotieren.
#4 lore raw
Quoted 6 lines · you [Bodo Eggert]

If it's a 640 pixel width image and you've got the right font loaded, the VGA function 0x08 will get you the character at the current cursor position. It's also used by PRTSCR, so pressing it in a DOS viewer may dump the text to LPT1. If you redirected it to a serial console, you might also catch it. (I never tried).

I meant that I have the image as a PNG (whatever), captured from the display of the remote control program (HP RILOE, VMWare GSX Console, VNC, whatever). I'm aware that the VGA display memory holds the characters (in addition to pixels) in text mode, but the actual machine may be dead at this point - OS crash, hw failure, whatever. The oops output is on the screen - just not in palatible text format.

-- v --

[email protected]

#5 lore raw

Ville Herva wrote (ao):

Quoted 6 lines

I meant that I have the image as a PNG (whatever), captured from the display of the remote control program (HP RILOE, VMWare GSX Console, VNC, whatever). I'm aware that the VGA display memory holds the characters (in addition to pixels) in text mode, but the actual machine may be dead at this point - OS crash, hw failure, whatever. The oops output is on the screen - just not in palatible text format.

Maybe 'gorc' can help you. I don't have an url, but it is package 'gorc' in Debian.

I had little success with a digicam photo of lightgray text on not-quite-white paper, even after trying to improve things with gimp, but it might work if you have the oops on screen.

Then again, if you have it on screen, you might as well put it on the web.

Signature · 2 lines
Humilis IT Services and Solutions
http://www.humilis.net
#6 lore raw
Quoted 7 lines · you [Sander]

Maybe 'gorc' can help you. I don't have an url, but it is package 'gorc' in Debian.

I had little success with a digicam photo of lightgray text on not-quite-white paper, even after trying to improve things with gimp, but it might work if you have the oops on screen.

Seems promising, but the results are not that great. See

http://v.iki.fi/~vherva/tmp/shot.png
and
http://v.iki.fi/~vherva/tmp/shot.txt

the gray level setting didn't help much.

Quoted 2 lines

Then again, if you have it on screen, you might as well put it on the web.

Sometimes you need to ksymoops the dump (for older kernels) or paste some parts to some program.

In theory, converting a vga text screen capture shouldn't be hard, but in practise... Well, it's much more beneficial to me to learn to type passably...

-- v --

[email protected]

#7 lore raw
Quoted 9 lines · you [Ville Herva]
Quoted 7 lines · you [Sander]

Maybe 'gorc' can help you. I don't have an url, but it is package 'gorc' in Debian.

I had little success with a digicam photo of lightgray text on not-quite-white paper, even after trying to improve things with gimp, but it might work if you have the oops on screen.

Quoted 7 lines

Seems promising, but the results are not that great. See

http://v.iki.fi/~vherva/tmp/shot.png
and
http://v.iki.fi/~vherva/tmp/shot.txt

the gray level setting didn't help much.

Ok, if I invert the image (black on white), I get
http://v.iki.fi/~vherva/tmp/shot2.txt
which is fairly usable.

-- v --

[email protected]