tf-lite-unity-sample icon indicating copy to clipboard operation
tf-lite-unity-sample copied to clipboard

using static image instead of WebCamTexture on BlazePose

Open cancaglar opened this issue 1 year ago • 2 comments

I want to give a static image instead of a webcam, and in the blazeposesample script, I gave an image on the screen instead of a webcam in the invoke, but the landsmarks grow very large, for example, every time the image changes, I want landmarks to be created exactly according to the size of the image, how do I do this?

image

cancaglar avatar Mar 10 '24 12:03 cancaglar

@cancaglar In the demo app, the viewport-landmarks (range of 0.0f to 1.0f) are scaled to the current camera space in BlazePoseDrawer.cs. Please implement custom scaling for the static image input.

https://github.com/asus4/tf-lite-unity-sample/blob/20742dea4845bed46dd40bfa1909e0fb62912098/Assets/Samples/BlazePose/BlazePoseDrawer.cs#L76C1-L83C1

asus4 avatar Mar 11 '24 08:03 asus4

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar May 11 '24 08:05 stale[bot]