Project for the Module C6-Video Analysis in Master's in Computer Vision in Barcelona.
Report bug
·
Request feature
Important
The final presentation for the Action Classification & Spotting part is available here. The final presentation of the first part of the subject is available here. If for some reason you don't have permissions to access it, contact any of the administrators of this repository.
- Introduction
- Installation
- Project Structure
- WEEK 1
- WEEK 2
- WEEK 3
- WEEK 4
- WEEK 5
- WEEK 6
- WEEK 7
- Team Members
- License
This project is developed as part of the Master's program in Computer Vision in Barcelona, specifically for the course C6: Video Analysis during the third academic semester.
The goal of this project is to implement computer vision techniques for road traffic monitoring, enabling the detection and tracking of vehicles in video footage from multiple cameras. The system is designed to analyze traffic flow by applying the following key methodologies:
- Background modeling: Establishing a model to differentiate between static background and moving objects.
- Foreground detection: Identifying vehicles by segmenting them from the background.
- Motion estimation: Using optical flow techniques to estimate vehicle movement.
- Multi-object tracking: Combining detections and motion estimation to track multiple vehicles across video frames and camera viewpoints.
This project aims to contribute to intelligent traffic monitoring systems, improving road safety, traffic management, and urban mobility analysis.
This section will guide you through the installation process of the project and its testing.
The following prerequisites must be followed:
- Python >= v3.12
-
Clone the repository:
git clone https://github.com/yeray142/mcv-c6-2025-team1 cd mcv-c6-team1 # To install all third party tools git submodule update --init --recursive
-
Navigate to the corresponding week's folder: For example, to enter the folder for week 1:
cd week1
-
Choose one of the following methods to set up your environment:
-
Create a virtual environment:
python -m venv env
-
Activate the virtual environment:
- On Windows:
.\env\Scripts\activate
- On MacOS/Linux:
source env/bin/activate
- On Windows:
-
Install the dependencies:
pip install -r requirements.txt
-
Create a conda environment from the environment.yml file:
conda env create -f environment.yml
-
Activate the conda environment:
conda activate mcv-c6-2025
Within the downloaded repository, you'll find the following directories and files, logically grouping common assets. The data folders need to be downloaded and decompressed from the provided links:
- AICity_data: Download here
- results: Download here
- ai_challenge_s03_c010-full_annotation.xml: Download here
Once downloaded and extracted, the project structure will look like this:
Team1/
├── data/
│ ├── AICity_data/
│ ├── results/
│ └── ai_challenge_s03_c010-full_annotation.xml
├── week1/
│ └── ...
├── week2/
│ └── ...
The contents of the first week are in the folder week1
. The README
file can be found in here.
The contents of the second week are in the folder week2
. The README
file can be found in here.
The contents of the third week are in the folder week3
. The README
file can be found in here.
The contents of the fourth week are in the folder week4
. The README
file can be found in here.
The contents of the fifth week are in the folder week5
. The README
file can be found in here.
The contents of the sixth week are in the folder week6
. The README
file can be found in here.
The contents of the seventh week are in the folder week7
. The README
file can be found in here.
This project was developed by the following team members:
The MIT License (MIT). Please see LICENSE File for more information.