Skip to content

renzhichaos/MagicEraser

 
 

Repository files navigation

MagicEraser - Telegram Bot for removing objects from pictures
@MagicEraserBot
Just send two photos:
Bot can delete objects from your photos, just follow next steps:
1- Send original image
2- Reply to original image and choose that image again
3- Edit that image by coloring what you want to remove(Telegram has an built-in function for this)
4- Press send button

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/backmeupplz/telegraf-template
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

About

MagicEraser bot for telegram

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%