GithubHelp home page GithubHelp logo

dicksonyuan / abnormal-behavior-detection Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shoupingshan/abnormal-behavior-detection

0.0 1.0 0.0 17.78 MB

Abnormal behavior detection in the video surveillance based on yolo darknet

License: MIT License

Makefile 0.12% Python 0.16% Shell 0.06% Cuda 7.83% C 91.15% C++ 0.64% Objective-C 0.05%

abnormal-behavior-detection's Introduction

Abnormal behavior detection

Introduction

  Detect whether there is any abnormal behavior you have defined occurs  in the video surveillance. It's going to alert when it happens.

Author

Platform

Demo

ima1

How to run

  $: git clone [email protected]:ShoupingShan/Abnormal-behavior-Detection.git
  $: cd Abnormal-behavior-Detection
  $: make
  $: wget https://pjreddie.com/media/files/yolo.weights
  $: ./darknet detector demo cfg/coco.data cfg/yolo.cfg yolo.weights -c 0

Attention

Makefile

This is what I use, uncomment if you know your arch and want to specify

ARCH= -gencode arch=compute_50,code=compute_50

demo.c

line 147 and line 154

Make sure you have replaced your own path!

How to train

First, suppose you have collected your training video files such as "samples.avi".

Please open and run Video_cut/main.cpp then you can get many subfiles and each of them is 1 second. Delete some wrong files if exist(sometimes happens).

Mark sure these subfiles obeying this principle: rename the filename as "f****.avi"(starts with 'f') if it is abnormal. Otherwise, you needn't rename it.

Return to the Terminal:ls > ../dir.txt(get file path)

Make a copy of yolo program, and replace src/ by train/src,you can get same number of subfiles but ended with '.dat'.

Return to the Terminal:ls > ../dir.txt(get file path)

Open train/SVM, train this model automatically.

Copy alpha.txt and out.txt to yolo files, and amend demo.c.

Contact Us

[email protected]

abnormal-behavior-detection's People

Contributors

shoupingshan avatar

Watchers

James Cloos 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.