Giter Site home page Giter Site logo

brainhub24 / yolov8-dashcam-analyzer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from johnwangwyx/yolov8-dashcam-analyzer

0.0 0.0 0.0 8 KB

This project utilize the YOLOv8 computer vision model to differentiate between parked and moving vehicles, and to monitor pedestrian traffic. The analytics can be used to create insightful heatmaps of traffic flow and parking availability. Can be helpful for urban planners and traffic management teams.

Python 100.00%

yolov8-dashcam-analyzer's Introduction

Dashcam Analyzer

Dashcam Analyzer leverages advanced computer vision technologies to dynamically track and analyze vehicular and pedestrian traffic through dashcam footage. Utilizing the powerful YOLOv8 model, this project provides insights into urban mobility patterns by distinguishing between parked and moving vehicles as well as monitoring pedestrian flow.

image

Features

  • Real-time Tracking: Identify and track cars and pedestrians and show the processing frames in real-time while writing the annotated video to the desired output.
  • Traffic Analysis: Analyze traffic patterns to determine the popularity of different regions and the availability of parking spaces.
  • Flexible Output Options: Customize the output to display real-time analytics or save the processed video for further analysis.

How It Works

The system captures video data from dashcams, and processes the video frame-by-frame to detect and classify objects using the ObjectTracker module, which relies on the YOLOv8 object detection model. Each frame is annotated with tracking information, and the analysis can be viewed in real-time or output to a file for subsequent review.

Technology Stack

  • Python
  • OpenCV for video processing
  • PyTorch and YOLOv8 for object detection and tracking

Usage

Set up the analyzer with the desired video input and output paths, model parameters, and view options. Start the analysis and watch as the system processes the video, providing insightful metrics and visualizations.

video_paths = ["sample1.mp4", "sample2.mp4"]
output_paths = ["sample1_output.mp4", "sample2_output.mp4"]
for video_path, output_path in zip(video_paths, output_paths):
    analyzer = DashcamAnalyzer(video_path, output_path)
    analyzer.analyze()

(The next step for this project is to enable cli options with click module to allow for cli usage to specify input/output and on/off for real-time annotation display, etc)

Example output snippets

image image image

yolov8-dashcam-analyzer's People

Contributors

johnwangwyx avatar

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.