Skip to content

brian-yu/pedestrian-cam

Repository files navigation

Pedestrian Cam

Counting Foot Traffic Over IP Webcams with Machine Learning

This is the repository for the project talked about in this blog post.

How to get up and running:

  1. Ensure you have prerequisite libraries

    • Install Python 3 and OpenCV python
  2. Clone YOLO & Darknet

    git clone https://github.com/pjreddie/darknet
  3. Clone this repository into the same directory

    git clone https://github.com/brian-yu/pedestrian-cam.git
    mv pedestrian-cam/* .
    rm -r pedestrian-cam
  4. Download Yolo 2.0 weights

    wget https://pjreddie.com/media/files/yolo.2.0.weights
  5. Run the files

    • For the webserver, run server.py and prediction.py
    • Otherwise, you can explore the Jupyter notebooks.