Code Monkey home page Code Monkey logo

camerafeed's Introduction

#Camerafeed A simple app (or can be used as a module) to track people as they move in a video. You can also draw "triplines" that will emit events when a person crosses them. You can use the camerafeed module in your own app or you can run it as a stand-alone app that pulls from settings.ini.

##Getting Started

  1. First things first, you gotta install Python 3.4+ and OpenCV 3.0+. Luckily, computer vision expert Adrian has made his fantastic tutorials available.
  2. Clone the repo:
    $ git clone [email protected]:liquidg3/Camerafeed.git
  3. Jump into the repo
    $ cd Camerafeed
  4. Install additional dependencies
    $ pip setup.py develop
  5. Run the app
    $python run.py

##Settings Checkout settings.ini for everything you can customize when running Camerafeed as an app.

[video_source]
#the video to load (put 0 to use your computer's camera)
source : footage/sample-trimmed.m4v
#the following are for cropping the video (try and only show parts you need)
frame_x1 : 250
frame_y1 : 40
frame_x2 : 550
frame_y2 : 240
#set a max width and the video will be proportionality scaled to this size (smaller is usually better)
max_width : 500
#black and white?
b_and_w : False
#settings for hog.detectMultiScale
[hog]
win_stride : 4
padding : 6
scale : 1.05
#use background removal
[mog]
enabled : False
#when tracking a person
[person]
life : 20 #how many frames to wait before considering the person gone
max_distance : 50 #how far can a person move between detections?
#for crossing lines
[triplines]
total_lines = 1
line1_start : (100,60)
line1_end : (200, 160)
line1_buffer : 10
line1_direction_1: north
line1_direction_2: south
line2_start : (50,180)
line2_end : (200, 150)
line2_buffer : 10
line2_direction_1: out
line2_direction_2: in

##Recommended Reading

  1. Pedestrian Detection OpenCV
  2. HOG detectMultiScale parameters explained

camerafeed's People

Contributors

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