If you're using ocropus on Linux you could always create a bash
script.  You can use the following instructions to create a bash
script for batch processing files with ocropus.

1. Type the following:  sudo gedit /usr/sbin/ocropus-batch
2.  Copy all of the text at the end of this post and paste it into
gedit.
3.  Click save and close gedit.
4.  Type the following:  sudo chmod +x /usr/sbin/ocropus-batch
5.  Now anytime you need to do batch processing simply change to the
directory where the image files are stored and type ocropus-batch
[ext] where ext represents the file extension of the images you want
to process.

Example:

cd /home/YourUserName/Desktop/images
ocropus-batch png
or
ocropus-batch jpg


Copy the following text into gedit:

#!/bin/bash

for i in *.$1
 do
 ocroscript rec-tess $i > $i.htm
 ocroscript hocr-to-text $i.htm > $i.txt
 echo "$i COMPLETED"
done
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"ocropus" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/ocropus?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to