pa7 / nude.js

Nudity detection with JavaScript and HTMLCanvas

Home Page:http://www.patrick-wied.at/static/nudejs/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using FaceDetection for better skin model.

vikasTmz opened this issue · comments

A small possible improvement for a better skin model.

  • Perform face detection on the image:

screenshot from 2017-06-26 02 35 08

  • Get a color palette of dominant colors in the bounding box region:

screenshot from 2017-06-26 02 38 57

  • Original skin detection:

screenshot from 2017-06-26 02 36 33

  • New skin detection:

screenshot from 2017-06-26 02 34 34

For this example, this technique made a difference between nude detection i.e (totalSkin/totalPixels)*100 became greater than 15.

@vikasTmz that's smart, if I ever get to update nude.js I will implement it :) thanks for sharing

But it could be infeasible if this is to be integrated to a plugin. Do know if anyone has created a browser plugin already using your nude.js?