Skip to content

mcv-m6-video/mcv-c6-2025-team1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Module C6 Project

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.

Table of Contents

Introduction

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.

Installation

This section will guide you through the installation process of the project and its testing.

Prerequisites

The following prerequisites must be followed:

  • Python >= v3.12

Setup

  1. 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
  2. Navigate to the corresponding week's folder: For example, to enter the folder for week 1:

    cd week1
  3. Choose one of the following methods to set up your environment:

Option A: Using Python Virtual Environment

  1. Create a virtual environment:

    python -m venv env
  2. Activate the virtual environment:

    • On Windows:
      .\env\Scripts\activate
    • On MacOS/Linux:
      source env/bin/activate
  3. Install the dependencies:

    pip install -r requirements.txt

Option B: Using Conda Environment (Recommended)

  1. Create a conda environment from the environment.yml file:

    conda env create -f environment.yml
  2. Activate the conda environment:

    conda activate mcv-c6-2025

Project Structure

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:

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/
│   └── ...

WEEK 1

The contents of the first week are in the folder week1. The README file can be found in here.

WEEK 2

The contents of the second week are in the folder week2. The README file can be found in here.

WEEK 3

The contents of the third week are in the folder week3. The README file can be found in here.

WEEK 4

The contents of the fourth week are in the folder week4. The README file can be found in here.

WEEK 5

The contents of the fifth week are in the folder week5. The README file can be found in here.

WEEK 6

The contents of the sixth week are in the folder week6. The README file can be found in here.

WEEK 7

The contents of the seventh week are in the folder week7. The README file can be found in here.

Team Members

This project was developed by the following team members:

License

The MIT License (MIT). Please see LICENSE File for more information.

About

Project for the Module C6-Video Analysis of Master's in Computer Vision (MCV) in Barcelona.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 5