← Back to the lab

Experiment 02 / Applied computer vision

Underwater image enhancement

A web application that restores clarity and color in underwater photographs using a super-resolution model.

Written

2025

Rahul’s contribution

Personal project. Model integration, Flask application and interface.

Repositoryrahulm16 / underwater_img_encht

01 / The problem

What it set
out to do.

Water absorbs light unevenly, so underwater photographs lose contrast and drift toward green and blue. The correction is tedious by hand and needs to happen before anyone can read detail in the image.

System sketch / conceptual04 connected stages
  1. 01Image upload
  2. 02Preprocessing
  3. 03Enhancement model
  4. 04Result & download

A simplified view of how the code is organized, not a production infrastructure diagram.

02 / The approach

Decisions beneath
the surface.

  1. 01

    Put a trained enhancement model behind a single upload-and-wait interaction.

  2. 02

    Handle the image work server-side so the browser only carries the picture and the result.

  3. 03

    Keep the before and after together, so the change is something you judge rather than take on trust.

03 / Inside the repository

Where to look
in the code.

  • new/a.py

    The current Flask application: upload handling, enhancement and result delivery.

  • new/templates/

    Landing, upload and results screens for the enhancement flow.

  • model_enhance.py

    The enhancement step, wrapping the model call.

  • app.py

    The earlier version of the application, kept in the repository alongside the rewrite.

  • input1–4.png

    Sample underwater images for trying the pipeline without your own photographs.

04 / Technologies

The working set.

PythonFlaskPyTorchReal-ESRGANOpenCVHTML/CSS

05 / What it left behind

A working demonstration of a deep-learning model doing one job end to end, from upload to downloadable result.

Source notes

Described from the repository's README and source tree. No accuracy benchmark or published evaluation is claimed.

Continue exploring / next experimentBanking system
THE SYSTEMS ATLAS / INDEX
RAHUL.SYS / TERMINAL

A small door into the atlas. Type help to begin.