Skip to content

Telegram Bot that can translate text on image using Azure cognitive services API

Notifications You must be signed in to change notification settings

haizadtarik/visual-translator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

Visual Translator Bot

Telegram Bot that can translate text on image using Azure cognitive services API.

Setup

  1. This project require you to have python 3.x, Telegram account and Azure account with active subscription to cognitive service
  2. Download the repository or use Git to clone it :
git clone https://github.com/haizadtarik/TranslatorBot
  1. Install dependencies
pip install -r requiremnets
  1. Insert Telegram bot TOKEN, Azure Computer Vision API subscription key and endpoint and Translate Text API subscription key in bot.py
# =========== Setup bot ============
TOKEN = '<BOT-TOKEN>'

# =========== Setup CV client ============
endpoint = '<AZURE-COMPUTER-VISION-ENDPOINT>'
key = '<AZURE-COMPUTER-VISION-SUBSSCRIPTION-KEY>'

# =========== Setup translator client ============
subscriptionKey = '<AZURE-TRANSLATE-SUBSSCRIPTION-KEY>'
  1. Run the code and the Bot can now be used in Telegram.

Demo

https://t.me/azure_translatorBot

Resources

  1. Telegram Bot
  2. Azure Cognitive Services

About

Telegram Bot that can translate text on image using Azure cognitive services API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages