Sign in to follow this  
Followers 0
tampe125

Create a selection box

7 posts in this topic

hi, i'm trying to create a screen OCR using the Tesseract lib found on this forum (btw, it's really awesome).

i'd wish to create a "selection box" other the window, so i'll be able to get the 4 coord of the box and then pass them to the tesseract function.

is that possible' i searched the forum, but i didn't find anything.

can you help me?

thanks in advance

Share this post


Link to post
Share on other sites



I have made something like this before, unfortunately, you will have to strip it from my existing code.

i saw that's compiled. can you give me the source code?

can you tell me in where i have to looking for?

thank you for fast reply

Share this post


Link to post
Share on other sites

thanks, i think i'll use MouseGetPos function.

btw there is a way to know when the left button is pressed and released?

can i draw a new "box" over the selection?

Share this post


Link to post
Share on other sites

i'm so sorry, but i can't figure how to make it work.

btw i get an error when i try to run it (probably a non-declared variable).

i tried to "fix" it, but this is what i get (see screen below).

post-50871-12597506539464_thumb.jpg

btw this is what i'd wish to create:

post-50871-12597506609449_thumb.jpg

is that possible?

thanks in advance

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