Skip to content

kcrkor/dive-color-corrector

 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%