notAI-tech / NudeNet

Lightweight nudity detection
https://nudenet.notai.tech/
GNU Affero General Public License v3.0
1.66k stars 335 forks source link

Couple newbie questions #105

Open madstacksofcash opened 2 years ago

madstacksofcash commented 2 years ago

I generated the windows installer - what does that actually install?

Is there any additional documentation or examples anywhere?

My primary use-case would be: input image -> output image with selective censorship boxes. Are there any examples that implement this already? Or will I have to implement the boxes myself since the api just returns the coordinates?

Great project. Cheers.

tflament commented 2 years ago

Censoring isn't shown as an example however I was able to censor images with such a code :

from nudenet import NudeDetector

detector = NudeDetector()

detector.censor('image.jpg', out_path="censured_image.jpg")

The .detect() method returns boxes coordinates with detected content

The .censor() method internally uses the returned values of the .detect() method to put boxes on, hence censoring the image

Depending of what you want to achieve you may want to use either or both