Telegram Image Upscaler Bot

Overview

A simple telegram bot for Upscaling images.

Demo

Telegram Image Upscaler Bot

Introduction

This bot was created with the purpose of upscaling images via Telegram, in order to have higher resolution images for design or editing. The bot will ask users which kind of upscale to perform (x2, x3, x4) and it will wait for an input image. Once it receives an image, an openCV model (EDSR) for upscaling will be applied and the result image will be sent back. The bot is currently offline, but in the future it may be hosted and available.

How to setup

Docker

Steps
  • Clone this repository
  • Add your API token in bot.py in row 19
  • Run docker build --tag bot .
  • Run docker run bot

Local instance

Requirements:
  • python >= 3.7 with the following modules:
    • python-telegram-bot.
    • opencv-contrib-python -(optional) nvidia GPU and CUDA toolkit
Steps
  • Clone this repository
  • Add your API token in bot.py in row 19
  • Run python bot.py

Results

Here you can see the comparison between EDSR upscaling and Nearest Neighour or Cubic interpolation upscaling:

confronto - input output

confronto - nn output

confronto - cubic output (1)