Ubuntu :: Could Use Some Pointers For Making A GIMP/tesseract Script
Feb 17, 2010
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 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.
View 2 Replies
ADVERTISEMENT
Dec 2, 2009
Whether tesseract-ocr 2.03 can be installed in Fedora-11 and if so how to do? I installed - but failed to run tesseract phototest.tif test.
View 3 Replies
View Related
Jun 23, 2011
How do I achieve this? I know how to get the design and everything working... but if I add some rounded corners for instance... the pixels stick out and look horrible.
View 5 Replies
View Related
Jun 9, 2010
how to make two different wallpapers on two displays WITHOUT making a new one with GIMP?
View 1 Replies
View Related
Mar 14, 2011
Seems it failed because I am missing a header file called allheaders.h. What is this and where do I get it?
Here is the output of the configure and make commands:
/var/tmp/tesseract-ocr-read-only$ ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
[code]....
View 1 Replies
View Related
Mar 2, 2010
If you had Gimp 2.6 (with gimp-plugin-registry installed) and installed Gimp 2.7 to try its new goodies, but Layer Effects are not showing, and when executing "gimp" from console you get these *nasty* errors:
Code:
This is a development version of GIMP. Debug messages may appear here.
gimp-user-install: migrating from /home/user/.gimp-2.6
Traceback (most recent call last):
File "/usr/lib/gimp/2.0/plug-ins/layerfx.py", line 23, in <module>
import gimp, gimpplugin, math
ImportError: No module named gimp .....
If you haven't install the 2.7 version yet. Before upgrading, backup "python" directory and then just restore it after installing 2.7.
View 6 Replies
View Related
Jun 12, 2010
Some of you may have had with issues after installing GIMP on Lucid Lynx 10.04. Which may be directly related to "gimp-help-en", which could prevent you from installing other applications and preforming system tasks. If so, use this method to fix it.
Process: (Terminal > $ sudo apt-get install gimp)
1. After installing Gimp go to the terminal:
2. Then load up the language support application:
3. Then it will ask you to install the "gimp-help-en", confirm it.
4. Fix'd
I think this issue is directly linked to a systems with multiple languages, but I haven't been able to test this theory out yet.
View 3 Replies
View Related
Jun 10, 2010
I've been facing this problem since months before I decided to find an answer. I downloaded a cursor theme from gnome-look.org and then installed it by dragging the tarball to the themes window. It said theme is installed. But the effects are not visible yet. I then shoot up firefox to see the new pointer working but not outside firefox. I even noticed the new pointer theme works in nautilus for all except pointing (it works while resizing, selecting text, loading but not the regular pointing).
I searched the forums and found a similar problem: [URL]
the solution doesn't work because there is no "cursor theme" option in ccsm. i've attached a screenshot too.
Is it a bug? do i need to disable compiz to "have my own desktop"? Is there a solution?
View 5 Replies
View Related
Dec 15, 2010
I need to use fglrx as later don't support TecraS1 chipset and ati driver is unable for FS flash playback.The required ati fglrx only works with Dapper 6.06 LTS but not with new newer releases with newer xorg. someone fix me on this. If I remember maverick xorg I lose all the ubuntu screen candy, right? If I compile xorg7.0 with Maverick I guess I could get it to work, but what about getting Ubuntu Gnome desktop instead of plain out-of-the-box xorg?
View 6 Replies
View Related
Apr 25, 2011
I have a project for my computer class, and I was a bit ambitious with my ideas and am wondering if I made a smart choice. I need to learn sooner or later anyway! I'm a beginner when it comes to scripting but I'd like to learn more advanced stuff. When I say basic I really mean basic among all basic. To give you an idea I only know some simple HTML and Python. The idea I proposed for my project goes as follows:
The challenge we were given is to create a spreadsheet of data from a website given to us. Points are given for creativity and simplicity in how we go about doing this.After taking a look at the site (or rather, html files given to us), and with having dabbled with Python before, I came up with what I thought was a pretty good idea.The pages of the "site" are just numbers. They go from 001-117 .html in terms of filenames. Their source code has some sort of table set up, and the information we are pulling off are easily found by the tags that precede them (the info, btw are the periodic elements).
The tags are pretty obvious, and state pretty much what they are labeling. My python knowledge is almost nonexistent but I figured that would be something Python would be capable of. Why do I post this here? I'm relatively new to Ubuntu too but keep hearing about bash scripts and such. Would this be even better? (Perhaps it's silly but I'd like to use Ubuntu to accomplish this)
Or is there an even better scripting method/language I should be using? Could anyone give me some pointers in how I could accomplish this? I'm really hoping to learn a lot from my first "real" scripting experience!
View 4 Replies
View Related
Oct 18, 2010
Running 10.04 64-bit. After installing any custom mouse pointers the new pointers only appear when the pointer is in the main "body" of a window. When in the menu bar, title bar, and some other peripheral areas of the window the pointer changes back to the default. Custom pointers are not displayed at all on the desktop or in the panels. Very strange.
View 2 Replies
View Related
Jan 19, 2010
I am running ubuntu 9.10 on a dell mini 10v. I am experienced in running themes and xsplashes, but for some reason i can not successfully install pointers. I drag and drop the pointer themes to the appearance window found from System>Prefrences>Appearances. When i click customize i see that the pointers i instatlled are there, however when i choose them it doesn't work properly, if i go over text or resize a window i see the new pointers but the main pointer always stays the default white.
View 1 Replies
View Related
Sep 13, 2010
i'm practicing in very basic c programs using the gcc compiler.I found that when i create two variables let's say
Code:
int a,b and Code: a=15;
b=3;
a=b;
b--;
then a equals 2.I thought that this isn't normal in C isn't it?I haven't had the time to read the gcc documentation yet...so i think it has something to do with my compiler's default settings.I use the
Code: gcc filename.c -o filename command to compile
Are all variables defined like pointers?
View 5 Replies
View Related
Jun 15, 2010
I'm trying to list some information of my database. To do that I'm using a class(MyClassDao) that will do all the SQL stuff and returns to me a list of objects with the content of my table (each row = one object). The problem is: my list gets only the first object... on the second index I'm getting 'segfault'.Can someone post something to help me (link, reference or example)?The call for the list function is:
Code:
MyClassDao* mcd = new MyClassDao();
MyClass** myClassList;
[code]...
View 2 Replies
View Related
Mar 23, 2010
So the place where I'm having a problem is here:
Code:
typedef struct {
void **Mem_Chunk;
[code]...
View 10 Replies
View Related
Jun 1, 2010
What is the difference between *ptr++ and (*ptr)++. In my opinion the terminology is all over the place so if you could give an example it would be better.
View 8 Replies
View Related
Mar 22, 2009
I am trying to install MyEclipse on FC10. But, I am getting an SELinux alert saying that myeclipse is attempting to move/change a file - Thus I can't seem to get it installed.
I have NO idea how to get around or work with SELinux any pointers.
View 2 Replies
View Related
May 23, 2010
i'm a bit stuck playing with the following class setup for glut. The actual issue is with the function pointers.Basically the following code is the opengl redbook cube example slightly modified.
View 2 Replies
View Related
Jul 14, 2011
I need to call functions that match an input string (if input str = "func1", call func1), so I have this:
Code:
#include <stdio.h>
#include <string.h>
void function_a(void) { printf("Function A
"); }
[Code].....
In the above example, the functions take no input arguments. Can they take a different number of arguments, for example, function_a(int), function_c(int, int), function_e(int, char, int)? How can I do that?
View 3 Replies
View Related
Apr 12, 2010
I want to know is there some more efficient way of passing a pointer to a local variable as a parameter to a function in x86 asm? Right now I have to move the base pointer to a temp register, subtract from the register and pass that, like this (assuming a local var at esp-4):
Code:
mov eax, ebp
sub eax, 4
push eax
Is there a better way?
View 8 Replies
View Related
Feb 18, 2010
I'm trying to figure out how to code for this specific type of instance - I want to use a hash and have the key be a reference to an array, and not use the key in the standard way of it being a scalar. Basically, I have a large output that I need to process line by line, and rather have access to it as an array than a big block in a scalar. For the big block hash as a scalar I would do -
Code:
foreach $CONTROLLER (<CONTROLLER_LIST>) {
$ALL_DISKS{$CONTROLLER} = `ssh -n <commands>`;
}
Now I know I could take the scalar and split it to another array after the fact like -
Code:
@TEMP_HOLD = split (/s+/,$ALL_DISKS{$CONTROLLER});
How would I code it that I would have access to the key information as an array and not a scalar? I know it needs to be a pointer and we're going to have -> in there somewhere, but not sure how to approach it. Some of the documentaiton I've been reading about referencing I've found a little confusing so far, and trying to figure out how to use them in context of what I'm working on.
View 1 Replies
View Related
Jul 3, 2010
I've seen all three uses:
type * pointer
type *pointer
type* pointer
Are these 3 forms essentially the same, i.e., is the spacing as used here a non-factor when declaring pointers?
View 2 Replies
View Related
Mar 25, 2010
I am trying to find a way to pull Node Pointers out of the model, for use in other areas of the program. The solution is probably simple but I haven't had any luck finding it.
Model for a QTreeView:
Code:
class testModel : public QAbstractItemModel
{
public:
testModel();
~testModel();
[code]....
View 2 Replies
View Related
Feb 17, 2011
I have the most strange problem ever in programming. I fork a process into a parent and a child. In every forked process i declare a pointer, malloc and define a different value for every pointer.When i printf the value and the address guess what? They both have the SAME ADDRESS but DIFFERENT values, as assigned..Here's the portion of my code:
pid = fork ();
switch (pid)
{
[code]....
View 8 Replies
View Related
May 3, 2010
Sun VBox
host - Debian 5.0
VM - Ubuntu 10.04 (lucid)
gnome desktop
rdesktop
Running rdesktop to connect the VM on the host connection can be established with VM desktop displayed on the host desktop. But there are 2 mouse pointers on VM desktop. It is difficult to control. One mouse pointer does not work but hanging there. 2 pointers moves simultaneously.
View 3 Replies
View Related
Jan 22, 2010
how RAR archives work. Suppose I have a .rar archive of text documents (for the sake of argument, containing personal information). I am able to run 'shred *.rar' in that directory from the terminal. What happens here? My assumption is that the contents of the .rar file (pointers to the text documents on the disk?) are 'shredded' (overwritten n times), but the text documents themselves are still on the disk intact.
View 4 Replies
View Related
Jul 2, 2010
I following structure
typedef struct
{
[code]...
View 5 Replies
View Related
Jun 6, 2011
I'm using an external USB drive to perform system backups. The script I'm using has a mount command - mount /dev/sdcx /systembak, it works fine until the external drive is mounted into a different USB port which causes the device path to change and the script needs to be modified to reflect that change. Looking in the /dev/disk/ directory I see ./by-id ./by-label ./by-path ./by-uuid. I've been able to mount the disk using one of the device pointers in those directories; are any of those device pointers static or do they change every time the USB disk is plugged into a different USB port.
OS: RHEL/CentOS
View 4 Replies
View Related
Feb 8, 2010
I am new to mysql can some one provide me the documentation or some recommended links to start the configuration of mysql server on RHEL. Also if I get the database schema, how can I replicate the same in my machine. Any documentation for this?
View 8 Replies
View Related
May 26, 2011
I have a 10x2 matrix, I create said matrix and fill it one column with zeros and the other with ones, now when I print the matrix I get this:
column 1:
0,0,0,0,0,0,0,0,1,1
column 2:
1,1,1,1,1,1,1,1,1,1
The first two rows of the second column are being replaced into the last two rows of the first column, now I even checked in visual studio and it works fine there. A friend tried my code and he gets it even worse:
column 1:
0,0,0,0,1,1,1,1,1,1
column 2:
1,1,1,1,1,1,1,1,1,1
As far as I've seen it must be a problem with GCC, unfortunately I need to have this up and running in GCC no matter what.
[Code].....
View 6 Replies
View Related