In old days, web mainly consisted of textual data. But now-a-days images, audio and videos occupied more web space and most of the information is now communicated with images. For every news, we wish to see the related photos, for every new gadget we want images, in fact before the specifications. What if you want to select a car for a test drive and you just get the specifications and technical details and reviews from other people, but not able to see the images…aahhh, you would say, first I want to see ‘how it looks’. Thus, all the websites, blogs, product pages, review pages, wikis, social media sites and so on have to have images. So the control on the image upload and display to the user depending on the  site terms and user age is very essential when it comes to good sites.

nudeJS

For example, you need to put control on the images displayed on your site, say if it is nude and if the person viewing it is a child (age limit), then you can choose not to display it (not allowed). Also, if you allow people to upload images on your site (like a social networking site), you would definitely want to check that if the image being uploaded is some nude or pornographic image or it is a normal image. So for all such needs, here is a javascript named nude.js that will help you the check the displayed image or uploaded image for nudity and do actions depending on the result.

The developer of the JS, Patrick Wied explains it this way …

nude.js is a JavaScript implementation of a nudity scanner based on approaches from research papers. HTMLCanvas makes it possible to analyze 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 web-proxies with child security filters, and maybe even more (e.g. on social media platforms)

You can find the research paper which states the nudity detection algorithm here.

Project page and Download link: http://www.patrick-wied.at/static/nudejs/

Leave a Reply

Your email address will not be published. Required fields are marked *