Sign in to follow this  
Followers 0
lightwave

OCR error with Tesseract

4 posts in this topic

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!

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

I think that rule means that one shouldn't post new threads about questions they have. I'm pretty sure the thread of a "working script" is just there to provide support and discussion for that script !

Share this post


Link to post
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
Sign in to follow this  
Followers 0