Giter VIP home page Giter VIP logo

vision's Introduction

vision

This is a simple vehile detection project using Computer Vision

Here I used background subtractions methods of OpenCV Library of Python and some morphological transformation for accuracy. But this is for only static cameras.

At the corner of the video you can see the count of the vehicles which gets recorded when they cross a predefined limit. For the calculation of the object coordinates and object ids I defined a class called vehicles.py

For running it, just download all files and run the main.py Thank you.

Demo

A simple demo to show how the VideoCapture() works with the webcam:

python video_capture_demo.py

Set up

  1. (Optional) It is highly recommended to set up and run this in a separate conda environment.
  2. Install required packages:

    python install -r requirements.txt

  3. You need to follow this step only if you want to try out the functionality that captures and processes video from a given URL of a traffic camera.
    • Install Chrome Web Browser (Other web browsers could also work. But corresponding changes are needed in the code.), and find out its version by going to Menu on the top right -> Help -> About.
    • Find and download the matching Chrome driver. I believe as long as the major versions (the number before the first . in version number) of the driver and browser are the same, it should work fine.
    • Unzip the Chrome Driver and put it onto the Desktop (Of course you can put it wherever you want, but then you need to make some changes in the coding so that the program knows where to find the Driver.)

To Run

  1. To process video stream from URL, run:

    python WebsiteVidCapture.py [web-cam-URL]

    where [web-cam-URL] can be found at New York City Department of Transportation, e.g. https://webcams.nyctmc.org/google_popup.php?cid=738 for Northern Blvd @ Honeywell Bridge.

  2. To launch with GUI, follow

    TO Be Continued

vision's People

Contributors

wdzhong avatar amhepel avatar paulp123 avatar amartya-k avatar

Stargazers

 avatar

Forkers

paulp123

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.