Track and count people walking using computer vision
- Python 2.7
- OpenCV 2.4.8
$ 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")