NsfwSpy / NsfwSpy.js

A JavaScript image classifier used to identify explicit/pornographic content written in TypeScript.
MIT License
39 stars 3 forks source link

Add a `confidence` property #7

Open ServerDeveloper9447 opened 3 months ago

ServerDeveloper9447 commented 3 months ago

Add the confidence property on determining if the image is nsfw

d00ML0rDz commented 3 months ago

You could probably just do this by totalling up the pornography, hentai and sexy scores and that would give you a decimal of how confident it thinks it's a NSFW image. Or you could do 1 - the neural score.

This is how the isNsfw function works, where if the neutral score is under 0.5, it returns true.

ServerDeveloper9447 commented 3 months ago

Maybe, give an option to change the checking score of isNsfw function?