asus4 / tf-lite-unity-sample

TensorFlow Lite Samples on Unity
834 stars 249 forks source link

using static image instead of WebCamTexture on BlazePose #337

Closed cancaglar closed 1 month ago

cancaglar commented 3 months ago

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

asus4 commented 3 months ago

@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

stale[bot] commented 1 month ago

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.