This project is about utilizing four pre-trained super resolution models which are listed below to perform super resolution with OpenCV in images
Google Drive to download the models:https://drive.google.com/drive/folders/1fRoOmdEE0K5IgP3kw80qWhHb5M3664VB?usp=sharing
-
EDSR_x4.pb: Model from the Enhanced Deep Residual Networks for Single Image Super-Resolution paper — increases the input image resolution by 4x
-
ESPCN_x4.pb: Super resolution model from Real-Time Single Image and Video Super-Resolution Using an Efficient Sub-Pixel Convolutional Neural Network — increases resolution by 4x
-
FSRCNN_x3.pb: Model from Accelerating the Super-Resolution Convolutional Neural Network — increases image resolution by 3x
-
LapSRN_x8.pb: Super resolution model from Fast and Accurate Image Super-Resolution with Deep Laplacian Pyramid Networks — increases image resolution by 8x
To run this in command line:
--model: The path to the input OpenCV super resolution model
--image: The path to the input image that we want to apply super resolution to
Example:python super_res_image.py --model models/EDSR_x4.pb --image examples/zebra.png
More details about the Opencv libraries and explanation about the project are in the pdf file. More about the documentation of dnn_superres can be found in the official documentation https://docs.opencv.org/master/d8/d11/classcv_1_1dnn__superres_1_1DnnSuperResImpl.html