Skip to content

Moldoteck/MagicEraser

Repository files navigation

MagicEraser - Telegram Bot for removing objects from pictures
@MagicEraserBot - not working due to running cost
Just send two photos:
Bot can delete objects from your photos, just follow next steps:
1- Send original image
2- Edit that image by coloring what you want to remove(Telegram has an built-in function for this)
3- Send edited image
4- Wait for results
5- Use /new command to start again

And you should be good to go! Feel free to fork and submit pull requests. Thanks!

Environment variables

  • TOKEN — Telegram bot token
  • MONGO— URL of the mongo database

Also, please, consider looking at .env.sample.

License

MIT — use for any purpose. Would be great if you could leave a note about the original developers. Thanks!

Inspired from: https://github.com/Borodutch/telegram-bot-starter
Big thanks to https://github.com/saic-mdal/lama for amazing DeepLearning models Model and pre-processing code can be found here: https://github.com/Moldoteck/lama