Giter Club home page Giter Club logo

pedestrian-counter's Introduction

Pedestrian Counting Using OpenCV 3.1 in Python

Prerequisites

  • You can download the TownCentre dataset used for demonstration here
  • Update This dataset is now unavailable online due to the privacy risks
  • Conda installed

Instructions

  • Added a conda env to easily set this up on your machine
  • Just run:
conda env create -f ./env.yaml
conda activate pedestrian-counter
python pedestrian.py

pedestrian-counter's People

Contributors

anandsinghkunwar avatar alperenkara avatar

Stargazers

 avatar  avatar  avatar  avatar Antonio Hofmeister Ribeiro avatar  avatar Swarup Tripathy avatar Cruz Jesús Rodríguez avatar Hugh Gao avatar  avatar  avatar Zoltan Polgar avatar  avatar james_jjyang avatar  avatar Rastafouille avatar  avatar Liudingyi avatar Arslan Topçu avatar masbog avatar Ya-Jung, Lu avatar He Jiang avatar Boris avatar world4jason avatar Fabian Manzke avatar  avatar  avatar  avatar Eric avatar  avatar

Watchers

James Cloos avatar  avatar

pedestrian-counter's Issues

Line cross

return y - (29*x)/96.0 - 300

i have tried to understand but didn't get anything
Can you please explain why "29" and "96" is used?

def line1(x,y) and def line2(x,y)

Hi @anandsinghkunwar, can you explain to me more about this lines of code?

def line1(x,y):
    return y - (29*x)/96.0 - 300

def line2(x,y):
    return y - (29*x)/96.0 - 500

I believe its related to this code (create two lines on the frame)

    cv2.line(frame, (0,300), (1920,880), (255, 0, 0), 4)
    cv2.line(frame, (0,500), (1920,1080), (255, 0, 0), 4)

If I want to change the code above to (which is two lines transverse the frame)

    cv2.line(frame, (0,100), (500,100), (255, 0, 0), 4)
    cv2.line(frame, (0,200), (500,200), (255, 0, 0), 4)

How can I modify the function line1() and line2()

Can you help me sir?

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.