Yup.
You need two packages
nsfw-detector and PyQt5
This works every images, not only real photo but paintings such as anime too.
Having the background feature as well, for person who want to handle a lot of images with this
- clone this
- pip install -r requirements.txt
- install Keras 299x299 Image Model and put it into src folder
- python main.py
- Set the directory which contains image files.
- Press the filter button to remove the NSFW images.
This is using Keras 299x299 Image Model, and this is influenced by nsfw_model also known as nsfw-detector. This is pretty much GUI version of it.
Personally i categorized nsfw level as three, "nsfw", "semi-nsfw", "safe" based on certain standard.
You can use this in CUI(Python code) only. Look at the script.py to figure it out how it works.
This really helps me a lot from encountered embarrassing moment from someone who checks my images which stored by crawling 🙂
By the way i'm not sure i can upload the even slightly controversial image to explain how this works so i won't do it.
Please try it !!