DEV Community

Cover image for Nudity detection with JavaScript and HTMLCanvas
manish srivastava
manish srivastava

Posted on

Nudity detection with JavaScript and HTMLCanvas

Guess, you get a javascript solution to avoid showing an image uploaded by user that contains nudity.

Here is a wonderful solution:
Nude.js

You can directly jump to its repo:

GitHub logo pa7 / nude.js

Nudity detection with JavaScript and HTMLCanvas

nude.js

nude.js is a JavaScript implementation of a nudity scanner based on approaches from research papers. HTMLCanvas makes it possible to analyse image data and afterwards decide whether it should be displayed or not. The detection algorithm runs at the client, therefore it's possible (with user interaction) to display the image even if it's identified as nude (false positive) The real world usage for client side nudity detection could be in webproxies with child security filters, and maybe even more (e.g. on social media plattforms) nude.js is Open Source. Contributions are very welcome, the goal is to build a reliable client-side nudity scanner.

NOTE The algorithm is mostly based on the following paper https://sites.google.com/a/dcs.upd.edu.ph/csp-proceedings/Home/pcsc-2005/AI4.pdf?attredirects=0

Demo

Test the nudity detection script on several predefined images, I didn't have enough time to build a nice demo with flickr image support but feel free to test some of your images too. nude.js is…

IMP REQUEST:
You are most welcome to join my team

Alt Text

Click here for joining my team .

Also you are most welcome to join OPEN SOURCE INTELLIGENT SYSTEM (OSINT) if you can help in open source project regarding safeguarding humans from various diseases like CORONA outbreak
https://github.com/Manishfoodtechs/OSINTHRH/wiki

Contact email: Manishfoodtechs@gmail.com.

If you have any problem, our team is also engaged in professional consultancy and delivery.

Imagecredit: Pixabay, manishfoodtechs,giphy renaissance

Discussion (6)

Collapse
lehmannsystems profile image
Mike

hot dog, not hot dog

Collapse
perpetual_education profile image
perpetual . education

"What does it mean - when it's always blocking out my nose?" πŸ˜‰

Collapse
manishfoodtechs profile image
manish srivastava Author

Haha

Collapse
jaqko profile image
Jacko

NASA wants their nudity detection system back, they need to censor Uranus

Collapse
manishfoodtechs profile image
manish srivastava Author

Hahaha

Collapse
bacloud14 profile image
bacloud14

last commit is 11 years ago