Skip to content

Filter(remove) the NSFW(not safe for work) images in a certain directory recursively, backup every images before it

License

Notifications You must be signed in to change notification settings

yjg30737/pyqt_nsfw_image_filter_gui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyqt_nsfw_image_filter_gui

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

How to Run

  1. clone this
  2. pip install -r requirements.txt
  3. install Keras 299x299 Image Model and put it into src folder
  4. python main.py

Preview

image

How to Use

  1. Set the directory which contains image files.
  2. Press the filter button to remove the NSFW images.

How this works

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.

Note

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 !!

About

Filter(remove) the NSFW(not safe for work) images in a certain directory recursively, backup every images before it

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages