Giter VIP home page Giter VIP logo

suspicious-activity-detection-using-pose-estimation's Introduction

πŸŽ₯ πŸƒ πŸƒ Suspicious-Activity-Detection-Using-Pose-Estimation

ezgif com-optimize

πŸ“ Description

  • This implemantation is based on official AlphaPose Pose Estimation Algorithm.
  • It is β€˜AlphaPose’ & β€˜XGBOOST’ based β€œSuspicious-Activity-Detection-Using-Pose Estimation” project.
  • Purpose of this project is to make a system which can detect if someone is trying to Climb a house compound wall, Climbing on Fence, Climbing on gate & trying to do some suspicious activity.
  • This model will detect this activities accurately & helps to prevent those kind of activities by giving real time feedback.

🎯 Inference demo

im1_HSP img2_HSP

πŸ½β€ Download Object Detection Model

πŸ½β€ For Pose Tracking, Download the object tracking model

πŸ½β€ Download Fast.res50.pt file

πŸ–₯️ Installation

πŸ› οΈ Requirements

βš™οΈ Setup on Colab

  1. Install PyTorch :-
$ !pip3 install torch==1.1.0 torchvision==0.3.0
  1. Git Clone :-
$ !git clone https://github.com/akshaykadam771/Suspicious-Activity-Detection-Using-Pose-Estimation.git 
  1. Install :-
$ !export PATH=/usr/local/cuda/bin/:$PATH
$ !export LD_LIBRARY_PATH=/usr/local/cuda/lib64/:$LD_LIBRARY_PATH
$ !pip install cython
$ !sudo apt-get install libyaml-dev
$ !python setup.py build develop --user
$ !python -m pip install Pillow==6.2.1
$ !pip install -U PyYAML

🎯 Inference

  1. Testing with Images ( Put test images in AlphaPose/examples/demo/ ) :-
$ !python scripts/demo_inference.py --cfg configs/coco/resnet/256x192_res50_lr1e-3_1x.yaml --checkpoint pretrained_models/fast_res50_256x192.pth --indir examples/demo/ --save_img
  1. Output Images & json file will save in bydefault AlphaPose/examples/res folder.

  2. Testing with Videos :-

$ !python scripts/demo_inference.py --cfg configs/coco/resnet/256x192_res50_lr1e-3_1x.yaml --checkpoint pretrained_models/fast_res50_256x192.pth --video examples/video/demo5.mp4 --outdir examples/res --save_video --gpus 0
  1. If it is giving memory error during Videos testing you can add --sp argument in command which enable Single processing :-
$ !python scripts/demo_inference.py --cfg configs/coco/resnet/256x192_res50_lr1e-3_1x.yaml --checkpoint pretrained_models/fast_res50_256x192.pth --video examples/video/demo5.mp4 --outdir examples/res --save_video --gpus 0 --sp

πŸ“‚ Json Dataset for training your own custom ML model πŸ”§ πŸ”© πŸ”¨

suspicious-activity-detection-using-pose-estimation's People

Contributors

fang-haoshu avatar jeff-sjtu avatar akshaykadam771 avatar haoyizhu avatar xuchao1688 avatar jellyfish1456 avatar maxreimann avatar hjpotter92 avatar tang-hy avatar afewthings avatar jasonyzhang avatar jmwill86 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.