Welcome to the NSFW Detection Telegram Bot, an advanced tool designed to identify Not Safe for Work (NSFW) content in images through cutting-edge machine learning algorithms. The bot is written in Python using pyrogram, torch, transformers, TensorFlow, OpenCV, Pillow, and MongoDB.
This project leverages the powerful Falconsai/nsfw_image_detection
pre-trained model and dataset. We extend our gratitude to them for their contributions, enabling the functionality of this bot.
Python 3.9 | Telegram API Key | Telegram Bot Token | MongoDB URI
Follow these simple steps to unleash the power of the NSFW Detection Telegram Bot:
- Begin by ensuring you have Git installed. If not, you can install it by running:
sudo apt-get update
sudo apt-get install git
Then, clone the repository into your terminal:
git clone https://github.com/ArshCypherZ/NSFWDetection
-
Now navigate into the directory:
cd NSFWDetection
-
Install the necessary dependencies. Execute the following command:
pip3 install -U -r requirements.txt
-
Acquire a Telegram Bot API token by creating a new bot through Telegram BotFather.
-
Personalize the
telegram/__init__.py
script by replacing the variables with your Telegram Bot API token. -
Launch the bot using the following command:
python3 -m telegram
-
Integrate the bot into your Telegram group or chat, and send an image for analysis. The bot will promptly provide you with the results.
Ensure you have the following dependencies installed to run the NSFW Detection Telegram Bot seamlessly:
- Python 3.x
- TensorFlow
- Pillow
- pyrogram 2.x
- motor
- OpenCV
- torch
- transformers
Evaluate the script's performance by executing the command below in your terminal and supplying the image file path:
pip3 install -U -r requirements.txt
python3 main.py
If you find the NSFW Detection project useful, consider supporting the project through a donation. Your contributions help us maintain and improve the service.
- UPI:
arsh-j@paytm