Skip to content

Improve Vehicle Counting Logic to Count Each Vehicle Once Per Hour #9

@Alims-Repo

Description

@Alims-Repo

🚧 Issue: Improve Vehicle Counting Logic to Count Each Vehicle Once Per Hour

🧠 Problem

Currently, the system detects and counts vehicles for each frame, resulting in multiple counts for the same vehicle. This causes inflated and inaccurate vehicle counts.

✅ Expected Behavior

  • Each vehicle should be counted only once per hour, even if it appears in multiple frames.
  • The final count should reflect the number of unique vehicles per hour.

🛠 Proposed Solution

  • Implement vehicle tracking (e.g., using DeepSORT, SORT, or BYTETrack).
  • Assign a unique ID to each detected vehicle.
  • Use a buffer or dictionary to store and track counted IDs.
  • Reset the ID buffer every hour to allow for fresh counting.
  • Ensure tracking is robust enough to handle occlusions and re-identification.

📌 Acceptance Criteria

  • Vehicles are not counted multiple times within an hour.
  • Hourly vehicle count reflects accurate, unique vehicle entries.
  • Tested with various traffic scenarios (e.g., high density, occlusion).
  • Minimal performance overhead added by tracking system.

💡 References


📂 Project: AI Based Traffic Management System
🏷️ Type: Feature Enhancement
🕓 Priority: High

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions