NudeDetect is a Python-based tool for detecting nudity and adult content in images. This project combines the capabilities of the NudeNet library, EasyOCR for text detection, and the Better Profanity library for identifying offensive language in text.
- Nudity Detection: Detects nudity in images using NudeNet's pre-trained models.
- Adult Content Detection: Identifies adult or offensive text content using EasyOCR and Better Profanity.
- Text Detection: Reads and processes text from images with EasyOCR.
- Visualization: Highlights detected text in images using OpenCV and Matplotlib.
Ensure you have Python installed (Python 3.7 or higher is recommended). Then, clone this repository:
git clone https://github.com/darkwaves-ofc/nude-detect.git
cd nude-detect
Install the required Python packages using pip
:
pip install -r requirements.txt
The following Python libraries are used in this project:
- EasyOCR
- NudeNet
- Better Profanity
- NumPy
- OpenCV
- Matplotlib
To detect nudity in an image, use the script main.py
:
- Set the path to the image in
image_path
. - Run the script:
python main.py
To detect text and check for profanity in an image, use the script text_image.py
:
- Update the
image_path
variable with the image's path. - Run the script:
python text_image.py
- The
main.py
script outputs:- Whether the image contains nudity (
isNudeContent: True/False
). - Whether the image contains adult text content (
isAdultContent: True/False
).
- Whether the image contains nudity (
- The
text_image.py
script displays the processed image with detected text highlighted.
nude-detect/
├── main.py # Main script for nudity and adult content detection
├── text_image.py # Script for text detection and visualization
├── images/ # Folder for sample images
├── requirements.txt # Dependencies
└── README.md # Documentation
Feel free to fork this repository, make improvements, and create pull requests. Contributions are welcome!
This project is licensed under the MIT License. See the LICENSE
file for more details.
- NudeNet for its robust nudity detection capabilities.
- EasyOCR for text detection.
- Better Profanity for profanity filtering.
This project is intended for ethical and responsible use. The developers are not responsible for any misuse of this tool.