nude.js icon indicating copy to clipboard operation
nude.js copied to clipboard

Using FaceDetection for better skin model.

Open vikasTmz opened this issue 8 years ago • 3 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 avatar Jun 25 '17 23:06 vikasTmz

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

pa7 avatar Jun 26 '17 21:06 pa7

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?

vikasTmz avatar Jun 27 '17 16:06 vikasTmz

This looks promising: https://github.com/justadudewhohacks/face-api.js

five23 avatar Jan 28 '19 16:01 five23