Skip to content

Ecocity-The-Try-People/ecocity-traffic-prediction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ecocity Traffic Image Analysis 🚗

Overview 😎

  • This subproject utilizes the YOLOv8 model for real-time traffic image analysis.
  • Fetches images from a Firebase database, processes them to detect vehicles, and updates congestion levels based on the number of detected vehicles.

Requirements ✅

  1. Python 3.12 or above
  2. Libraries:
  • os, io, requests, ultralytics, PIL,firebase_admin, dotenv

Setup Instructions 📦

  1. Clone the repository
git clone "https://github.com/jiayin04/ecocity-traffic-prediction.git"
cd ecocity-traffic-prediction
  1. Install dependencies
pip install -r requirements.txt
  1. Environment variables
  • Create .env file in root directory and add:
FIREBASE_CREDENTIAL_PATH=<fileName>.json
FIREBASE_DATABASE_URL= <firebase-database-url> 

Run it 🏃‍♂️‍➡️

  • Click to run the main.py file or
python main.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages