Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 778 Bytes

README.md

File metadata and controls

30 lines (23 loc) · 778 Bytes

people-counting

Track and count people walking using computer vision

Requirements

  • Python 2.7
  • OpenCV 2.4.8

Tech

  • OpenCV - Open Source Computer Vision Library.
  • numpy - Package for scientific computing with Python.

Installation and usage

$ pip install opencv 
$ pip install numpy
$ python hellow.py

Passing '0' to cv2.VideoCapture will use the default camera of your computer, however you may pass the path of a video file saved on your computer or a RTSP (Real Time Streaming Protocol) URL.

cap = cv2.VideoCapture(0)
cap = cv2.VideoCapture("video.avi")
cap = cv2.VideoCapture("rtsp://YourRTSPUrl")