Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Programming/Scripts

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 22nd February 2010, 07:02
kudzu kudzu is offline
Junior Member
Join Date: Feb 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Help making a GIMP/tesseract script, please?

Hey guys,

I'm currently undertaking the ridiculously stupid task of using tesseract ocr to convert a scanned 1,000 page .pdf document into .txt documents (I volunteered to do it for a girl - I'm pathetic, I know). I figured out how to do this by reading a how-to written by "o.meyer" here at howtoforge.com. Basically, I import one page of the .pdf at time in GIMP, convert it to indexed colors, save it as an uncompressed .tif, and then run tesseract in a terminal on the saved .tif, after which it spits out a .txt file (which I instruct tesseract to name after the page number of the .tif, for example 537.tif becomes 537.txt).

This process takes about a minute per page, so at 1,000 pages we're looking at 1,000 minutes. That's a lot of minutes.

I've looked into scripts some and I understand the very basics, but I don't know how to make a program, like GIMP, perform several specific functions in succession (import, convert to indexed colors, save as uncompressed .tif), and then have another program, like tesseract, perform its function after the completion of the prior program's function. I'm not trying to ask anyone to do my work for me, but could someone give me some advice regarding this, or point me in the direction of a newbie-friendly how-to that might help me out? I haven't found any. I'd like to finish this thing quickly, so as to maximize girl-impressing potential.

I asked for help at ubuntuforums.org but didn't receive any, so I looked harder and found a how-to for writing Gimp scripts, but it's more than I think I can learn before I'll need to have this project done.

I'd appreciate any kind of help that anyone can give me.

Reply With Quote
Sponsored Links
Old 23rd February 2010, 17:06
falko falko is offline
Super Moderator
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts

I'd love to help, but unfortunately I'm no expert on this field...
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
freebsd 7, samba 3, domain controller alexdimarco Suggest HOWTO 6 5th November 2010 17:54
can't help ispconfig to install please help steve51184 Installation/Configuration 17 20th February 2009 11:37
need help making boot script for unrealIRCd staticanime Programming/Scripts 5 29th December 2008 12:19
Internet Explorer won't connect to my server wctaelectronics Server Operation 10 27th October 2008 22:14
ISPConfig install issues... flyingaggie Installation/Configuration 2 18th July 2008 11:46

All times are GMT +2. The time now is 17:58.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.