nude.js
nude.js copied to clipboard
Using FaceDetection for better skin model.
A small possible improvement for a better skin model.
-
Perform face detection on the image:

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

-
Original skin detection:

-
New skin detection:

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?
This looks promising: https://github.com/justadudewhohacks/face-api.js