Jump to content

OCR error with Tesseract


lightwave
 Share

Recommended Posts

Hi,

I've started fiddling with the Tesseract OCR script from seangriffin which is great. Using his example code I created a very basic script using his _TesseractScreenCapture UDF which seems very simple to use:

$ocrtest = _TesseractScreenCapture(0, "", 1, 2, 434, 299, 1243, 895, 1)

Seems to work. Splendid! However then I came to use the _TesseractWinCapture UDF which takes two additional parameters "title", "text" prior to those parameters above. Whether I enter a window title or a handle, I always get the error:

_WinAPI_CreateCompatibleBitmap: The parameter is incorrect.

I searched the forums and didn't find anything related to this error. The good news is I suppose I'm doing something right as I run the script and it selects the window before throwing the error.

Any help appreciated!

Link to comment
Share on other sites

Shouldn't you post in that thread, maybe the author will see it and help you directly.

I'd love to, but at the top of that forum it clearly states:

This is not a general support forum!

This is a more appropriate thread I believe, although I agree, I might get more focused eyeballs in the other thread. Nothing I can do about that really - just following the rules.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...