By brianbusolo
on Wed, 03/26/2014 - 08:42
I am using the wordreco sample android.
I need to get specific coordinates (x,y) of an area within a text's bounding box where there is no text.
I had a look at
QCAR::Word::getMask | ( | ) | const |
which shows areas coverd by text but i cannot get the coordinates to use for further processing. Please help me on how to obtain them.
Thank you,
B.B
help getting coordinates textreco
Hi,
could you explain this a bit better?
what do you mean with:
help getting coordinates textreco
Sory for not being so clear.
In the textreco sample, when text is detected a tectangular box is drawn around it. I need to select any area from within this box that is not coverd by text. i therefore need coordinates of any area that is not coverd by text but lies within this box.
help getting coordinates textreco
Ok, I understand it now :-)
I think the getMask() method is the right one to use in this case; as the documention says, this function:
help getting coordinates textreco
Could i get more help on the maths as stated? How do i get the coordinates of the area with pixel value 255 from the bitmask and convert the coordinates to match those of the original image? (im assuming the bitmask size is no the same as the original one).
help getting coordinates textreco
help getting coordinates textreco
help getting coordinates textreco
I modified the code and i get an error at his assignment:
help getting coordinates textreco
help getting coordinates textreco
That works okay :)
help getting coordinates textreco
Great :-)