AI-Coach-PT / ExerSights

Mediapipe-powered AI coach/physical therapist; improve anytime, anywhere.
https://exersights.web.app/
Apache License 2.0
2 stars 1 forks source link

ENV Variables for Switching Between CV Models #16

Closed Anish701 closed 1 month ago

Anish701 commented 1 month ago

Add in ENV variables which switch between the old (pose) and new (tasks-vision) models. Initially, I am thinking about having two separate PoseDetector.js pages, one which utilizes the old pose model in the detectPose method, and another page which utilizes the newer tasks-vision model. Both pages should refer and export their methods as "detectPose". This way the ENV variable will just be the paths to these pages which can be included in the import statements at the top of the separate pages for different exercises. If the developer wants to switch models, they will do so by changing the ENV variable.