bornfree / dive-color-corrector

Dive and underwater image and video color correction

Home Page:https://bornfree.github.io/dive-color-corrector/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dive and underwater image and video color correction

Sample images

Example

Sample video

Video

Setup

$ pip install -r requirements.txt

For images

$ python correct.py image /my/raw.png /my/corrected.png

For videos

$ python correct.py video /my/raw.mp4 /my/corrected.mp4

GUI

You can either download the desktop softwares or build one yourself.

GUI

Building the GUI

Uncomment the libraries needed for GUI in requirements.txt and re-run pip install.

MacOS (via Py2App)

$ py2applet --make-setup dcc.py
$ python setup.py py2app

Windows (via PyInstaller)

$ python -m PyInstaller -n "Dive Color Corrector" -F -w -i .\logo\logo.ico dcc.py

Linux (via PyInstaller)

$ pyinstaller -n "Dive Color Corrector" -F -w -i ./logo/logo.png dcc.py

Final builds will be available in 'dist' folder

Share

If this repo was useful, please considering sharing the word on Twitter.

Inspiration

This repo was inspired by the algorithm at https://github.com/nikolajbech/underwater-image-color-correction.

About

Dive and underwater image and video color correction

https://bornfree.github.io/dive-color-corrector/

License:GNU General Public License v3.0


Languages

Language:Python 100.0%