tampe125 Posted December 1, 2009 Posted December 1, 2009 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
jvanegmond Posted December 1, 2009 Posted December 1, 2009 I have made something like this before, unfortunately, you will have to strip it from my existing code. github.com/jvanegmond
tampe125 Posted December 1, 2009 Author Posted December 1, 2009 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
jvanegmond Posted December 1, 2009 Posted December 1, 2009 Look in the attached files. github.com/jvanegmond
tampe125 Posted December 1, 2009 Author Posted December 1, 2009 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?
jvanegmond Posted December 1, 2009 Posted December 1, 2009 It's all in the example I've given you. github.com/jvanegmond
tampe125 Posted December 2, 2009 Author Posted December 2, 2009 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). btw this is what i'd wish to create: is that possible? thanks in advance
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now