Huskylens coordinates -

userHead Delavel 2023-08-15 09:02:10 977 Views2 Replies

Hi,

I'm new to the Huskylens and have a question about coordinates provided for a Block when using Face Recognition mode.

Sample return:  Block:xCenter=180,yCenter=73,width=31,height=42,ID=0

 

So - the value ‘xCenter’ -  is this actually the centre of the bounding box, or is it the left hand edge of the box?  If the latter, I would have to add width/2 to find the centre.

 

Sorry if this is a silly question - I am creating a face tracking gimbal with Arduino, and whilst the camera is now tracking a face, I would expect it to move until the face is centred ( just panning at the moment) - but it is not centering, and ends up offset.

Thanks for any info

2023-08-16 03:55:19

ok, thanks for that..

userHeadPic Delavel
2023-08-15 17:22:35

According to the HuskyLens wiki, the “xCenter” is actually the center of the bounding box.

So you don't have to add width/2.

userHeadPic Yeez_B