An open API service indexing awesome lists of open source software.

https://github.com/lissy93/pax

📸 A script which removes flashes from a video stream
https://github.com/lissy93/pax

Last synced: 9 months ago
JSON representation

📸 A script which removes flashes from a video stream

Awesome Lists containing this project

README

          

Pax 📸



Detects and removes camera flashes from a video stream

## Intro

The aim in developing this module was to use machine vision to detect and eliminate sudden contrast changes, caused mainly by camera speed light. Video footage containing fast flickering images, such as camera flashes is non-accessible for some people with photosensitive epilepsy. It also generally decreases the viewing quality of clips.

_This project is a proof of concept, and as such it is yet optimised for production.
_
_It was built at [StartHack 19](https://starthack.ch/) by myself and [Ollie](https://github.com/OlliePoole), and won first place :)_

## Example

| Before | After |
| ------------- |:-------------:|
| ![Demo before running script](docs/before.gif) | ![Demo after running script](docs/after.gif) |
| ![Chart showing luminosity against frame, before](docs/before-chart-grey.png) | ![Chart showing luminosity against frame, after](docs/after-chart-grey.png) |

## Usage Instructions

Once you've cloned and cd'd into the repo, use Python 3 to run the Pax script, for example:

python3 main.py -i path/to/your/video.mp4 -o path/to/your/dest.mp4 -c mp4v

Where the `--ifile` is your input, `--ofile` is your output, and `--codec` is your chosen, and installed codec

## How It Works






Watch Interview


The general flow of the program:

![Flow Chart](docs/flow-chart.png)


Developed at StartHack 19, won 1st place 🏆

© Alicia Sykes and Ollie Poole 2019

Licensed under MIT