Log in or register to post comments

coordinates of text bounding box

February 28, 2014 - 9:39am #1

I am trying to create a bitmap of the area inside the text bounding box. for this i need the x and y coordinates of the area with respect to the whole image.

Which  native function could i use to obtain the coordinates of this area?

and is it possible to get only a small area that is not coverd by text.

(using android)

coordinates of text bounding box

February 28, 2014 - 11:46pm #4

Vuforia just provides the bounding box around the detected word; if you want to build a sub-area, you need to create it manually, although there will be no use of it in Vuforia.

In addition, you can also get the bounding box of each letter in a Word, see the getLetterBoundingBox method of the Word class:

https://developer.vuforia.com/resources/api/classcom_1_1qualcomm_1_1vuforia_1_1_word

 

coordinates of text bounding box

February 28, 2014 - 11:37pm #3

What if i requre only a subset of this box, say a small area on the top right corner.

coordinates of text bounding box

February 28, 2014 - 1:16pm #2

Hi, you can get the screen-aligned rectangle occupied by a word using the getObb() for the WordResult object; see:

https://developer.vuforia.com/resources/api/classcom_1_1qualcomm_1_1vuforia_1_1_obb2_d

https://developer.vuforia.com/resources/api/classcom_1_1qualcomm_1_1vuforia_1_1_word_result

 

 

Log in or register to post comments