Skip to content

Principal Component Analysis for video compression

Notifications You must be signed in to change notification settings

alvarolmartinez/VidPCA

Repository files navigation

VidPCA

Principal Component Analysis for video compression

This repository contains code for implementing Principal Component Analysis (PCA) for video compression. PCA is a technique used for reducing the dimensionality of data while preserving most of its variance, and it is based on the Singular Value Decomposition (SVD).

Background

This project focuses on the classic 1878 video 'Sallie Gardner at a Gallop'. The idea is to showcase the efficiency of PCA in reducing data size while retaining essential information, in a visual way.

Getting Started

Prerequisites

Requirements

  • Octave Installation guide
  • JupyterLab Installation guide

Installation and Setup

  1. Clone or Download the Repository:

    • Open a terminal or command prompt.
    • Clone the repository using git clone [repository URL]. Replace [repository URL] with the actual URL of the repository.
  2. Prepare Frame Files:

    • Navigate to the AlternativeFrameSets folder in the cloned repository.
    • Place your own frame files (in JPEG format, one for each frame of the video). The repository already includes some frame sets for experimentation.
  3. Open and Run the Notebook:

    • Open JupyterLab by running jupyter lab in your terminal or command prompt.
    • In JupyterLab, navigate to the repository directory and open VidPCA.ipynb.

Contributions

We welcome contributions! Feel free to submit pull requests with more examples

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Principal Component Analysis for video compression

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published