All Projects → BetaPundit → Yoga Guru

BetaPundit / Yoga Guru

Licence: cc0-1.0
A personalized yoga trainer app based on Flutter and TensorFlow Lite.

Programming Languages

dart
5743 projects

Projects that are alternatives of or similar to Yoga Guru

Homebridge Nest Cam old
Use your Nest Cam as IP camera in HomeKit.
Stars: ✭ 92 (-16.36%)
Mutual labels:  camera
Laser Camera Calibration Toolbox
A Laser-Camera Calibration Toolbox extending from that at http://www.cs.cmu.edu/~ranjith/lcct.html
Stars: ✭ 99 (-10%)
Mutual labels:  camera
Instacam
Instant canvas video
Stars: ✭ 106 (-3.64%)
Mutual labels:  camera
Flutter wechat camera picker
A camera picker in WeChat style.
Stars: ✭ 95 (-13.64%)
Mutual labels:  camera
Easy Yolo
Yolo (Real time object detection) model training tutorial with deep learning neural networks
Stars: ✭ 98 (-10.91%)
Mutual labels:  camera
Recordbutton
A record button in Swift
Stars: ✭ 101 (-8.18%)
Mutual labels:  camera
Lcamera
A camera app using the new camera2 API in Android Lollipop
Stars: ✭ 1,298 (+1080%)
Mutual labels:  camera
Longimagecamera
📷 A camera view to capture long image merged from small captured images as it is in Shoparoo app available on Google Play!!
Stars: ✭ 107 (-2.73%)
Mutual labels:  camera
Pymba
Python wrapper for Allied Vision's Vimba C API
Stars: ✭ 98 (-10.91%)
Mutual labels:  camera
Is Camera On
Check if the built-in Mac camera is on
Stars: ✭ 101 (-8.18%)
Mutual labels:  camera
Frigate
NVR with realtime local object detection for IP cameras
Stars: ✭ 1,329 (+1108.18%)
Mutual labels:  camera
Python Arlo
Python Arlo is a library written in Python 2.7/3x that exposes the Netgear Arlo cameras as Python objects.
Stars: ✭ 97 (-11.82%)
Mutual labels:  camera
Videop2proxy
Proxy to enable P2P only cameras to work with standard protocols.
Stars: ✭ 102 (-7.27%)
Mutual labels:  camera
Image Picker
An easy to use, highly configurable image picker for your chat application.
Stars: ✭ 94 (-14.55%)
Mutual labels:  camera
Publishcommunity Master
仿微博,QQ空间,论坛 ,九宫格图文混排发表说说,动态,帖子
Stars: ✭ 107 (-2.73%)
Mutual labels:  camera
React Native Camera
A Camera component for React Native. Also supports barcode scanning!
Stars: ✭ 9,530 (+8563.64%)
Mutual labels:  camera
Hisilicon Dvr Telnet
PoC materials for article https://habr.com/en/post/486856/
Stars: ✭ 101 (-8.18%)
Mutual labels:  camera
Contentmanager
Android library for getting photo or video from a device gallery, cloud or camera. Working with samsung devices. Made by Stfalcon
Stars: ✭ 108 (-1.82%)
Mutual labels:  camera
Androidfacedetection
Android 平台进行人脸检测的几种方案
Stars: ✭ 106 (-3.64%)
Mutual labels:  camera
Yi Hack Allwinner V2
Custom firmware for Yi 1080p camera based on Allwinner platform
Stars: ✭ 100 (-9.09%)
Mutual labels:  camera

Yoga Guru

HomeBeginnerIntermediateAdvance

ProfileUpdate ProfileInference

Yoga Guru is your personalized yoga trainer app based on Flutter. It uses posenet, a pre-trained deep learning model, to estimate body poses in real time and predict yoga asanas.

Getting Started

Step 1: Clone the project repository

Open terminal and type

git clone https://github.com/adityaas26/Yoga-Guru.git

Step 2: Run the app

Connect your device or start the emulator and run the following code

# change directories
cd Yoga-Guru

# gets all the dependencies
flutter pub get

# run the app
flutter run

Project Structure

The project structure is quite primitive right now.

project structure

Let's look at the lib folder

project structure

Don't worry, we'll take a brief look at all the files in a minute! Let's start with main.dart

1. main.dart

main.dart loads data from shared preferences and the camera module. It also defines routes for home, login and register pages. If the user is already logged in, it sets the initial route to home.dart else login.dart.

2. login.dart

login.dart defines a Login class, which is a stateful widget. It contains the textfields required to login into the app. The Login button calls the _login() method which routes to home.dart. Also contains a button to send the user to register.dart.

3. register.dart

register.dart defines a Register class, which is a stateful widget. It contains the textfields required to login into the app. The Login button calls the _register() method which routes to home.dart. Also contains a button to send the user to login.dart.

Home

4. home.dart

home.dart defines a Home class, which is a stateless widget. It contains buttons which routes the user to poses.dart according to the button they press. Each button (beginner, intermediate, advance) call a method _onPoseSelect().

This _onPoseSelect() method is quite important as the arguments given to this function decides which list of poses needs to be shown on the poses page.




Beginner

5. poses.dart

poses.dart defines a Poses class, which is a stateless widget. It shows a list of available poses as swipable cards. The code of the custom cards can be found in yoga_card.dart file. Each card is clickable and calls the _onSelect() method which directs the user to the InferencePage (inference.dart).






Inference

6. inference.dart

inference.dart defines a InferencePage class, which is a stateful widget. It is the class which loads the posenet model. It initializes the Camera object with the camera instance and _setRecognitions() callback function. The _setRecognitions() method is responsibe for saving the predicted output of the PoseNet model into a List (_recognitions). This list of predicted values (_recognitions) is then passed to BndBox's constructor.

You can read more about the implementation here.



7. camera.dart

camera.dart defines a Camera class, which is a stateful widget. It contains code related to camera initialization and calls Tflite.runPoseNetOnFrame() method by passing in the current CameraImage as an argument. The output (predictions) of this method is given as an argument to the _setRecognitions() method, which was passed to Camera() as callback.

8. bndbox.dart

bndbox.dart defines a BndBox class, which is a stateless widget. It takes the List of predictions (_recognitions) and plot keypoints on the screen. It also prints the accuracy of the model in %.

Profile

9. profile.dart

profile.dart defines a Profile class, which is a stateful widget. It contains the code for viewing and updating the user's profile data.







Support

Buy Me A Coffee

Reach out to me at any of the following platforms:

Resources to help you start

A few resources to get you started if this is your first Flutter project:

For help getting started with Flutter, view online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].