wolterlw / hand_tracking

Minimal Python interface for Google's Mediapipe HandTracking pipeline
Apache License 2.0
148 stars 37 forks source link

Wht img_norm.shape must be (256,256,3)? #40

Closed kukuhaza closed 4 years ago

kukuhaza commented 4 years ago

Hello~ Thank you for your work. In the hand_tracker.py, I want to enlarge the size and then detect, but I don’t know which parts need to change. Why do you resize to 256,256? If I want to change to other sizes, is it okay?

wolterlw commented 4 years ago

This particular neural net expects a (256,256,3) tensor as input. For best quality just crop around the hand region.

kukuhaza commented 4 years ago

Thank u for your reply. I will try to crop ,thank you!