Re: [Gimp-user] extract text in a rectangle from a jpg file

2009-03-04 Thread powah
My image is 640 x 512 pixels  X Y resolution are both 300 pixels/in.
How to improve the image so that the OCR programs will recognize the text 
better?
I try the Scale Image menu with different values of pixels  X Y resolutions
(e.g. 1920 x 1536 pixels  X Y resolution are both 1200 pixels/in) but does not
seem to improve the result.

___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] extract text in a rectangle from a jpg file

2009-03-04 Thread Daniel Hornung
On Wednesday 04 March 2009, powah wrote:
 My image is 640 x 512 pixels  X Y resolution are both 300 pixels/in.
 How to improve the image so that the OCR programs will recognize the text
 better? I try the Scale Image menu with different values of pixels  X Y
 resolutions (e.g. 1920 x 1536 pixels  X Y resolution are both 1200
 pixels/in) but does not seem to improve the result.

In most cases there's not much you can do, since scaling the image up doesn't 
increase the amount of available information.  The best programs to improve 
such images do nothing more but good (sometimes surprisingly good) guesses.  
Maybe greycstoration[1] could improve the situation a bit?  And the OCR 
program might work better with increased contrasts, so playing around with 
the levels (or curves) tool could also help.

Daniel


[1] http://cimg.sourceforge.net/greycstoration/index.shtml


signature.asc
Description: This is a digitally signed message part.
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] extract text in a rectangle from a jpg file

2009-03-04 Thread Jernej Simončič
On Wed, 4 Mar 2009 16:08:31 + (UTC), powah wrote:

 My image is 640 x 512 pixels  X Y resolution are both 300 pixels/in.
 How to improve the image so that the OCR programs will recognize the text 
 better?
 I try the Scale Image menu with different values of pixels  X Y resolutions
 (e.g. 1920 x 1536 pixels  X Y resolution are both 1200 pixels/in) but does 
 not
 seem to improve the result.

640x512 seems pretty small for something to OCR out. What kind of image is
it?

Note that resizing will not have any positive effect on text recognition.

-- 
 Jernej Simončič  http://deepthought.ena.si/ 
 Contact address:  jernej simoncic at isg si 

___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] extract text in a rectangle from a jpg file

2009-03-04 Thread PoWah Wong
--- On Mon, 3/2/09, PoWah Wong wong_po...@yahoo.ca wrote:

 From: PoWah Wong wong_po...@yahoo.ca
 Subject: extract text in a rectangle from a jpg file
 To: gimp-user@lists.XCF.Berkeley.EDU
 Received: Monday, March 2, 2009, 5:07 PM
 How to extract (get or copy) text in a rectangle from a jpg
 file?
 i.e. the jpg file has a rectangle which has some text
 (character strings).  How to get those text to a text file?
 
 
  
 640x512 seems pretty small for something to OCR out. What kind of image is
it?

 Note that resizing will not have any positive effect on text recognition.

Attached is the image.
It has some text inside some rectangles.


  __
Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your 
favourite sites. Download it now at
http://ca.toolbar.yahoo.com.attachment: test.jpg___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] extract text in a rectangle from a jpg file

2009-03-04 Thread PoWah Wong

--- On Thu, 3/5/09, Chris Mohler cr33...@gmail.com wrote:

 From: Chris Mohler cr33...@gmail.com
 Subject: Re: [Gimp-user] extract text in a rectangle from a jpg file
 To: PoWah Wong wong_po...@yahoo.ca
 Cc: gimp-user@lists.xcf.berkeley.edu
 Received: Thursday, March 5, 2009, 7:14 AM
 On Thu, Mar 5, 2009 at 2:00 PM, PoWah Wong
 wong_po...@yahoo.ca wrote:
 
  Attached is the image.
  It has some text inside some rectangles.
 
 Wow - that's tough.  No chance of getting the original
 at a higher
 res?  I tried tesseract and was only able to get roughly
 half of
 it  In GIMP - Grayscale - Levels - Scale
 about 200% - Levels
 -  Indexed - save as TIFF.
 
 Chris

No, that is the best res I get.



  __
Instant Messaging, free SMS, sharing photos and more... Try the new Yahoo! 
Canada Messenger at http://ca.beta.messenger.yahoo.com/
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user