asus4 / tf-lite-unity-sample

TensorFlow Lite Samples on Unity

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

using static image instead of WebCamTexture on BlazePose

cancaglar opened this issue · 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 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

commented

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.