AutoHotkey Community

It is currently May 26th, 2012, 5:33 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 45 posts ]  Go to page Previous  1, 2, 3  Next
Author Message
 Post subject: progress bar
PostPosted: November 7th, 2007, 11:22 am 
hi guys,

can you add a progress bar for this nice tool?

thanks...


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 30th, 2008, 5:29 am 
i cant seem to get this to work. Can anyone help?
where do i get all the necessary programs?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 30th, 2008, 7:21 am 
I cant get tesseract to work, any help would be appreciated.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: April 8th, 2008, 10:04 pm 
Offline

Joined: April 18th, 2007, 9:03 am
Posts: 127
i get error all the time and it say's
Quote:
line 317 RunWait, %mkbitmap_path%\mkbitmap %mkb_ii% -f %mkb_f% -s %mkb_s% -t %mkb_t% -o %TmpFile%.pbm %TmpFile%.ppm, %TmpDir%, hide,


help plz?

_________________
you'll have to excuse me...I'm from Sweden, so my English is not that good...(but now it's better cuz JSLover/Guest is helping me)...


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 9th, 2008, 7:29 am 
Offline

Joined: November 4th, 2007, 5:48 pm
Posts: 10
where can I download all programs??
many errors?
I can't run the script


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 26th, 2008, 7:09 am 
Any chance we could get someone to re-upload that "ShowOCRunderMouse.zip" file?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: May 27th, 2008, 8:01 pm 
Offline

Joined: May 22nd, 2008, 12:57 am
Posts: 120
EatTheCake wrote:
Any chance we could get someone to re-upload that "ShowOCRunderMouse.zip" file?


Bump for this.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 27th, 2008, 8:05 pm 
My home site is offline atm, and the box on which I have the backup is dead... so, unless someone else manages to find a copy, you'll have to wait a bit, sorry...

daonlyfreez (aka n-l-i-d)


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: May 27th, 2008, 9:52 pm 
If you want to take a shot at it yourself, get gocr.exe, and (optional: to get the captured text directly, instead of reading an output file) get cmdret.dll and cmdstub.exe (gocr.exe is a 16-bit application that needs the cmdstub.exe)

gocr accepts only grey-scale pictures of a specific format (pnm/pgm/pbm/ppm/pcx), I don't know if there is GDI code to save or get that type of picture data, but you should take a look at the GDI scripts anyway, for taking a screenshot of a specific portion of the screen (I think I used Irfanview and djpeg.exe? I don't remember)

Flow: screenshot of (a portion of) the screen > save as/convert to grey-scale pnm file > feed pnm file gocr > get gocr's output

The (simplest) command line/AHK for gocr:

Code:
RunWait, %comspec% /c gocr -i screenshot.pnm -o output.txt, %A_ScriptDir%


gocr options:

Quote:
Optical Character Recognition --- gocr 0.40
using: gocr [options] pnm_file_name # use - for stdin
options:
-h - get this help
-i name - input image file (pnm,pgm,pbm,ppm,pcx,...)
-i - - read PNM from stdin (djpeg -gray a.jpg | gocr -)
-o name - output file (redirection of stdout)
-e name - logging file (redirection of stderr)
-x name - progress output (file or fifo)
-p name - database path (including final slash, default is ./db/)
-f fmt - output format (ISO8859_1 TeX HTML XML UTF8 ASCII)
-l num - threshold grey level 0<160<=255 (0 = autodetect)
-d num - dust_size (remove smaller clusters, -1 = autodetect)
-s num - spacewidth/dots (0 = autodetect)
-v num - verbose [summed]
1 print more info
2 list shapes of boxes (see -c)
4 list pattern of boxes (see -c)
8 print pattern after recognition
16 print line infos
32 debug outXX.pgm
-c string - list of chars (_ = not recognized chars, debug)
-C string - char filter (ex. hexdigits: 0-9A-Fx, only ASCII)
-m num - operation modes, ~ = switch off
2 use database (early development)
4 layout analysis, zoning (development)
8 ~ compare non recognized chars
16 ~ divide overlapping chars
32 ~ context correction
64 char packing (development)
130 extend database, prompts user (128+2, early development)
256 switch off the OCR engine (makes sense together with -m 2)
-n 1 only numbers
examples:
gocr -v 33 text1.pbm # some infos + out30.bmp
gocr -v 7 -c _YV text1.pbm # list unknown, Y and V chars
djpeg -pnm -gray text.jpg | gocr - # use jpeg-file via pipe


HTH

(rehash from Optical Character Recognition (OCR) - gocr [CLI] and the other postings on this topic)


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: May 29th, 2008, 11:30 am 
FYI: There is also tesseract (now at Google Code)

Quote:
The Tesseract OCR engine was one of the top 3 engines in the 1995 UNLV Accuracy test. Between 1995 and 2006 it had little work done on it, but it is probably one of the most accurate open source OCR engines available. The source code will read a binary, grey or color image and output text. A tiff reader is built in that will read uncompressed TIFF images, or libtiff can be added to read compressed images.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: October 16th, 2008, 5:22 pm 
Offline

Joined: March 16th, 2005, 10:33 pm
Posts: 968
Location: Frisia
The OCR demo script is now here: ShowOCRUnderMouse.zip

_________________
Image mirror 1mirror 2mirror 3ahk4.me • PM or Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject: so many dependancies
PostPosted: November 17th, 2008, 12:10 am 
Offline

Joined: January 28th, 2008, 9:40 pm
Posts: 140
Location: KC
been trying for like 2 days to get this to work. at all. always get errors. could somebody Simplify this a bit? to run this script you need

Gocr <in this directory><looks like this>
Potrace<in this directory><looks like this>
Whatever i am missing< here >

something!

i have made a folder c:\bin . and put Gocr Potrace and Mkbitmap in it


i get
Error: failed attempt to launch program or document:
Action: <c:\bin\mkbitmap -f 4 -s 3 -t 0.45 -o Image_out.pbm image_out.ppm>
params: <>

Current thread will exit.

Specifically: the system cannot find the file specified
Line#317 RunWait, %mkbitmap_path%\mkbitmap %mkb_ii% -f %mkb_f% -s %mkb_s% -t %mkb_t% -o %TmpFile%.pbm %TmpFile%.ppm, %TmpDir%, hide,

Deleting that section gives me a similar error on line 273

RunWait,cmd /c %gocr_path%\gocr -i %TmpDir%\%TmpFile%.pbm -s %ocr_s% -d %ocr_d% -m %ocr_m% -n %ocr_n% -o %TmpFile%.txt,%TmpDir%,hide

it seems like the path information is bad but getting into all these flags has me lost .
any help would be appreciated.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 13th, 2009, 7:12 am 
Offline

Joined: February 8th, 2009, 6:25 pm
Posts: 13
i get the same error. any help??


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 13th, 2009, 12:39 pm 
Try the OCR demo script: ShowOCRUnderMouse.zip

HTH


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: March 24th, 2009, 5:40 am 
Offline

Joined: March 23rd, 2009, 12:27 pm
Posts: 27
n-l-i-d wrote:
Here is another OCR demo script: ShowOCRUnderMouse.zip (contains all needed files). It does not 'optimize' the image before OCRing, but I found that this 'optimizing' (with potrace or netpbm) does not really generate much better results.

Quote:
This script will show the current text under mouse

It uses:
- GDIplusWrapper.ahk (by PhiLho)
Converts screen portion to jpg
- djpeg.exe
Converts jpg to pnm
- gocr.exe
OCRs the pnm file
- cmdret.dll/cmdstub.exe
Gets the result from gocr.exe
(since gocr.exe is a 16-bit program, cmdret.dll needs the cmdstub.exe)

When the script is running, you can press the Escape key anytime to exit


Enjoy!


Tells me it will not work with Win XP 64-bit. Any solution?


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 45 posts ]  Go to page Previous  1, 2, 3  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: Stigg and 10 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group