Start a new topic



I'm using SDK 6.1 with inputPlugin.

I am trying to use the function getTargetPositionInCameraFrame.


When I configure the camera preview size with 640 x 480 pixels, and provide SD640x480 to the callback getCameraResolution(), I got a cameraFrame (through cameraFrameAvailable) on which I draw  the rectangle returned by getTargetPositionInCameraFrame. I can observe that the rectangle is as expected, surrounding the target on my cameraFrame.


When I configure the camera preview size with 1280 x 720 pixels, and provide HD1280x720 to the callback getCameraResolution(), I observe that the rectangle returned by getTargetPositionInCameraFrame does not surround the target (bad position, bad size).


How can I retrieve the correct rectangle in the case 1280 x 720 ?



Hi Laurent,

thank you for reporting this issue.

We will fix this with the upcoming release.

As workaround for the 1280x720 frame you could try to multiply size and position by 2.

Best Regards,



Thanks for your reply.

I don't think multipliying by 2 could work around this issue, as the size and position values are for a 4:3 frame ratio, and 1280x720 is a 16:9..

I'll wait for the upcoming release... Do you have any idea about the release date ?




Login or Signup to post a comment