Using OpenCV's Bioinspired Module Retina to enhance low(er) quality photos from e.g. an old compact camera.
OpenCV 3.4.5 compiled with Bioinspired Module Retina and Python bindings (installation process out of scope).
Run
python bio_enhance.py
This will create two files: magno.jpg
and parvo.jpg
. Open parvo.jpg
in GIMP.
Go to Colors -> Brightness-Contrast Tool
. Turn Brightness
down and
the Contrast
up untill you like what you see 😃.
You should be able to turn something like this:
into this:
Or something like this:
into this:
Or something like this:
into this:
Or something like this:
into this:
The input file path is hardcoded in the script, so to use it on own images adjust this line:
inputImage = cv.imread("images/input.JPG", -1)
- add commandline parameters support ?