Skip to content

Using OpenCV's Bioinspired Module Retina to enhance low(er) quality photos from e.g. an old compact camera.

License

Notifications You must be signed in to change notification settings

mryndzionek/opencv_bio_enhance

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bio Enhance

Using OpenCV's Bioinspired Module Retina to enhance low(er) quality photos from e.g. an old compact camera.

Requirements

OpenCV 3.4.5 compiled with Bioinspired Module Retina and Python bindings (installation process out of scope).

Usage

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:

input

into this:

output

Or something like this:

input2

into this:

output2

Or something like this:

input3

into this:

output3

Or something like this:

input4

into this:

output4

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)

TODO

  • add commandline parameters support ?

About

Using OpenCV's Bioinspired Module Retina to enhance low(er) quality photos from e.g. an old compact camera.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages