Coder Social home page Coder Social logo

martlettt / human-pose-detection Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nik1806/human-pose-detection

0.0 0.0 0.0 32.3 MB

Implementation and quantitative analysis of different classifier on top of pose data from separate model.

Python 100.00%

human-pose-detection's Introduction

Human-Pose-Detection

Objective

According to NCRB, 2.97 million cases of crime recorded in year 2018. The project propose a solution for remote monitoring and analysis, suitable an aerial vehicle - Suspicious activity detection through video analysis, primarily for human pose detection using visual features.

Project information

  • Every activity has a particular pose associated with it.
  • Total 4 activities are consider for the scope of this work:
    1. Slap
    2. Kick
    3. Shoot
    4. Normal
  • A comparative analysis of existing classifier to suite the data set.

Code Execution Instructions

Command to download large files

git lfs fetch --all

Requirements

Python (ver >= 3.4)
Numpy
Sklearn
OpenCv

Steps

  • Orientation Extraction on Images
python OpenPoseImage.py
  • Training (Results stored in 'orient_train.csv')
python multi-person-train.py
  • Classification on video (sample video: 'etc/d_fight.mp4') - Using Dtree/ KNN classifiers
python multi-person-classify_video_dtree.py -v video_path
python multi-person-classify_video_knn.py -v video_path
  • Testing (Results stored in 'orient_test_result.csv')
python multi-person-classify_test_knn.py

Process Flow

flow

Pose Estimation

  • Z. Cao has proposed mutli-person pose estimation with using CNN
  • Two branches - One for body part location and other for affinity between them.

Orientation Extraction

  • Angle with 13 major pairs of body is considered such as Shoulder to Elbow and so on.
  • Angles are inverted and w.r.t to horizontal axis.

Classification

  • Simple classification algorithms such as KNN, Decision Tree and Naive Bayes can be trained and used for classification.

cls

Analysis of Classification Techniques

  • Performance of classifier of great importance
  • Cross-validation is used for better evaluation of classifiers.

anaCls

Results

Output of the proposed method

op

Pre-processing of Data

  • Due to obstruction in the scenario many body parts will not get covered.
  • A weak assumption that those body parts are vertically straight is made.(highlighted by yellow color)

pre

Data set Statistics

data

Comparative Analysis results

KNN

knn

More

more

  • For further analysis KNN & DTree are selected

Video Demonstration

KNN (individual frames)

Click here to go the detailed report.

human-pose-detection's People

Contributors

nik1806 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.