Skip to content

trydoff/Baby-Action-Detection-for-Safety-System-Prototype

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Baby Action Detection

Dashbaord

Table of Contents

About

An attempt to harness the power of Deep Learning to come up with a solution that can let us detect various classes of activities an infant, toddler or a baby is performing in real-time. This POC can then be published as an end-to-end deployable cloud project.

The model does not restrict predictions for babies only, it is applicable to all entities that appears in a human posture. So temporary, this needs to be handled at project level.

Special thanks to nicknochnack/ActionDetectionforSignLanguage repository for putting up such helpful content. Without it this project might have never existed.

Data collection

Data was collected from YouTube video clips. Human pose keypoints were extracted with the help of MediaPipe.

Classes trained

  1. Baby Walking
  2. Baby Still (no movement, can be considered as sleeping)
  3. Baby Crawling

Install

Create a new environment and use below command for installing all required packages

pip install -r- requirements.txt

Run Predictions

  1. Rename your baby video as input.mp4 and place it inside /raw directory.
  2. Open cmd and traverse to the project directory.
  3. To run the prediction script, just do:
python prediction.py 

Results

Downloaded Videos - Drive Link

GIF

GIF

GIF

Deployable App using Streamlit

Navigate to streamlit directory inside root project

cd streamlit

Run the application

streamlit run .\app.py

YouTube demo for the application: https://www.youtube.com/watch?v=ZIDhvSGXDmI

About

Prototype for Baby Action Detection and Classification

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages