Giter Club home page Giter Club logo

roi-marking-for-traffic-surveillance-'s Introduction

ROI-marking-for-traffic-surveillance-

Interactive on road ROI marking for tarfic counting, tracking of vehicles and recording of their time when the vehicle crosses the ROI. This repository is the extension of work done https://github.com/creotiv/object_detection_projects/tree/master/opencv_traffic_counting. In extension, interactive ROI marking is introduced in the script which makes it useful for every kind of vehicle tracking work.

How to run

  1. Keep all the files along with Roundabout.MP4 in the same directory.
  2. Move to the directory path from the terminal
  3. pip install -r ../requirements.txt
  4. after installation of every pakage in the txt file is finished.
  5. python main.py

Input Video

Input video for this repository can be fetched from https://drive.google.com/open?id=1XbG76LyEvemTTRBwQeNe9z9ZEeZVcJvY

To see the ROI marking process

https://www.youtube.com/watch?v=J52Gh3BBfQE&t=21s

roi-marking-for-traffic-surveillance-'s People

Contributors

earthat avatar nourahussein avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

roi-marking-for-traffic-surveillance-'s Issues

Value Erro

Traceback (most recent call last):
File "C:\ROI-Marking\ROI-marking-for-traffic-surveillance--master\main.py", line 178, in
cc = pipeline.run()
File "C:\ROI-Marking\ROI-marking-for-traffic-surveillance--master\pipeline.py", line 59, in run
self.context = p(self.context)
File "C:\ROI-Marking\ROI-marking-for-traffic-surveillance--master\pipeline.py", line 151, in call
context['objects'] = self.detect_vehicles(fg_mask, context)
File "C:\ROI-Marking\ROI-marking-for-traffic-surveillance--master\pipeline.py", line 122, in detect_vehicles
fg_mask, cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_TC89_L1)
ValueError: not enough values to unpack (expected 3, got 2)

i got that error when trying to run it with cv2.VideoCapture(0). any idea whats wrong?

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.