Giter Site home page Giter Site logo

amakelany / human-activity-recognition Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mrinaljain17/human-activity-recognition

0.0 0.0 0.0 7.4 MB

Recognizing human activities using Deep Learning

License: MIT License

Jupyter Notebook 99.63% Python 0.37%

human-activity-recognition's Introduction

Machine Learning Engineer Nanodegree

⚠️ This project is not maintained anymore ⚠️

Capstone Project - Human Activity Recognition

Recognizing human activities using Deep Learning

View the project notebook here - Link to Jupyter Notebook

Dataset

Recognition of Human Actions

There are a total of 599 videos, with each category having 100 videos (with the exception of Handclapping having 99 videos).

All the videos were captured at 25fps frame rate. Each video has a spatial resolution of 160x120 pixels.

Instructions

  1. Clone the repository and navigate to the downloaded folder.

    	git clone https://github.com/MrinalJain17/Human-Activity-Recognition.git
    	cd Human-Activity-Recognition
    
  2. Unzip the compressed data files and store in the format as mentioned here

    • Use the helper function download_files() present in data_utils.py as follows to do this in your current working directory automatically. (The function will delete the compressed files after they are successfully extracted)
    	import data_utils
    	
    	data_utils.download_files()
  3. The following file is corrupted which gives an error when being loaded. Delete it before proceeding.

    'person01_boxing_d4_uncomp.avi' (present in Data/Boxing/)

  4. In order to read the videos, there is a helper class Videos in utils.py.

    	import numpy as np
    	from utils import Videos
    	
    	reader = Videos(target_size=(128, 128), 
    			to_gray=True, 
                		max_frames=40, 
                		extract_frames='first', 
                		required_fps=5, 
                		normalize_pixels=(-1, 1))
    	
    	videos = reader.read_videos(video_absolute_paths)

    Refer the code for a detailed documentation.
    This utility is being maintained in a seperate repository here

  5. Run the following command to view the project notebook:

    	jupyter notebook human_activity_recognition.ipynb
    

Requirements

Python 3.x (preferably from the Anaconda Distribution)

Install FFmpeg on your machine

For Linux:

	$ sudo apt-get update
	$ sudo apt-get install libav-tools

For Windows or MAC/OSX:
Download the required binaries from here. Extract the zip file and add the location of binaries to the PATH variable

Additional Libraries:

  • Scikit-video

     	pip install sk-video
    
  • Tensorflow

     	pip install tensorflow
    

    For GPU support or a custom installation, follow the instructions given on the Tensorflow website.

  • Keras

     	pip install keras
    
  • tqdm - Required for displaying the progress bar.

     	pip install tqdm
    

These libraries will be required for successful execution of the project files.

human-activity-recognition's People

Contributors

mrinaljain17 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.