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 ?
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.