Log in or register to post comments

word box coordination doesn't work properly in different screen sizes

September 16, 2014 - 1:21am #1

these are lines of code which compute center coordinations of the recognized word in vuforia's textReco sample.
 

wordx = - obb.getCenter().getData()[1];
wordy = obb.getCenter().getData()[0];

but these coordinations are correct only when i'm using my 480*782 device
when i try to compile this code in another device with different screen size like 480*800 , the coordinations are incorrect and in this device wordy value is upper than recognized word
any idea why?

word box coordination doesn't work properly in different screen

September 24, 2014 - 6:33pm #4

Would you be able to track on screen the half extents using obb.getHalfExtents()? Generating a visible bounding box from this data might help explain the center positioning differences between devices.

word box coordination doesn't work properly in different screen

September 19, 2014 - 10:00am #3

sure,at first when I'm using a sony xperia L (C2105) device(with 480*782 screen size ) in debug mode, as i've specified  in the image the wordy value which is watched in debugging mode,is at bottom of the recognized word ''today''.

but when i'm using a samsung galaxy grand (I9082) device (with 480*800 screen size), as shown in the image the wordy value is upper than the recognized word "today".

when i tried to debug this code on a tablet with a bigger screen width and height, things just got worse. even wordx value was very far of it's correct place.

AttachmentSize
Image icon Samsung Galaxy Grand.jpg184.79 KB
Image icon Sony Xperia L.png199.93 KB

word box coordination doesn't work properly in different screen

September 18, 2014 - 6:27pm #2

Could you post a screenshot comparison? Which two devices are you using?

Log in or register to post comments