Ask HN: Please recommend me an NSFW content detection API
5 comments
If you need a quick & dirty solution (that works for now), I suggest using [An Algorithm for Nudity Detection - by R. Ap-Apid](https://www.researchgate.net/publication/249767252_An_Algori...). It has multiple oss implementations in [js](https://github.com/pa7/nude.js), [python](https://github.com/hhatto/nude.py), [ruby](https://github.com/rummelonp/nude.rb), [go](https://github.com/koyachi/go-nude), and you could probably find one in the language you're using (or implement it yourself). It works well enough™
You can play around with Wingman Jr with a few clicks. I remember it being decent. Depends on what your acceptable error rate is.
https://addons.mozilla.org/en-US/firefox/addon/wingman-jr-fi...
https://addons.mozilla.org/en-US/firefox/addon/wingman-jr-fi...
If you have the inclination you can try opennsfw2[0].
If you have content that slips through you can finetune it with your dataset to improve detection.
[0] - https://github.com/bhky/opennsfw2
If you have content that slips through you can finetune it with your dataset to improve detection.
[0] - https://github.com/bhky/opennsfw2
Are you billed on the ones failing?
Do you know where it fails? Is it inside Google’s infrastructure or between Google and your infrastructures?
Maybe a short timeout with an automatic retry mechanism could work.
Do you know where it fails? Is it inside Google’s infrastructure or between Google and your infrastructures?
Maybe a short timeout with an automatic retry mechanism could work.
I'm looking for recommendations for an alternative solution which can flag images containing pornography, gore, violence, etc. All the bad stuff.
What should I be looking at? Are there any I should avoid?