google-ai-edge / mediapipe

Cross-platform, customizable ML solutions for live and streaming media.
https://ai.google.dev/edge/mediapipe
Apache License 2.0
27.71k stars 5.18k forks source link

New warning NORM_RECT without IMAGE_DIMENSIONS for face/pose landmarks with 0.10.15 #5639

Open eyaler opened 2 months ago

eyaler commented 2 months ago

Have I written custom code (as opposed to using a stock example script provided in MediaPipe)

No

OS Platform and Distribution

windows 64, firefox 130 and chromium 130

MediaPipe Tasks SDK version

0.10.15

Task name (e.g. Image classification, Gesture recognition etc.)

Face landmarks, Pose landmarks

Programming Language and version (e.g. C++, Python, Java)

js

Describe the actual behavior

warning appears regarding NORM_RECT without IMAGE_DIMENSIONS

Describe the expected behaviour

no warning

Standalone code/steps you may have used to try to get what you need

I updated the official face landmarks and pose landmarks examples to 0.10.15:
https://codepen.io/eyaler/pen/abeogLK
https://codepen.io/eyaler/pen/OJKLeOV

Running them gives the warning:
`W0922 18:23:02.646000 1895072 landmark_projection_calculator.cc:189] Using NORM_RECT without IMAGE_DIMENSIONS is only supported for the square ROI. Provide IMAGE_DIMENSIONS or use PROJECTION_MATRIX.`

Need the code in the standard examples be changed?

Other info / Complete Logs

No response

kuaashish commented 2 months ago

Hi @eyaler,

Please allow us some time to review. We will inform you whether it is possible to remove this warning or not.