News for hackers. Stuff that matters.
Re:Pico.js, a face-detection library in 200 lines of JavaScript by geenat on Tuesday October 11, 2022 @09:50AM (#33163348)
Would be great to have something like this for filtering adult content from uploads.
Re:Pico.js, a face-detection library in 200 lines of JavaScript by fundamental on Tuesday October 11, 2022 @09:57AM (#33163428)
FYI in case you didn't already know this, filtering adult content is a massively more challenging problem than face detection.
Re:Pico.js, a face-detection library in 200 lines of JavaScript by hbn on Tuesday October 11, 2022 @10:19AM (#33163660)
And the philosophical aspect of what "adult content" is more difficult than the implementation
Re:Pico.js, a face-detection library in 200 lines of JavaScript by robertlagrant on Tuesday October 11, 2022 @02:53PM (#33167528)
I thought they solved this on that Silicon Valley documentary?
Re:Pico.js, a face-detection library in 200 lines of JavaScript by classified on Tuesday October 11, 2022 @03:02PM (#33167661)
"I'll know it whe I see it."
Re:Pico.js, a face-detection library in 200 lines of JavaScript by no-1ne on Tuesday October 11, 2022 @09:59AM (#33163446)
Re:Pico.js, a face-detection library in 200 lines of JavaScript by tinus_hn on Tuesday October 11, 2022 @10:25AM (#33163736)
It’s not very useful to implement a filter on the client, you have to filter somewhere where you have control, i.e. on the server.
Re:Pico.js, a face-detection library in 200 lines of JavaScript by stjohnswarts on Tuesday October 11, 2022 @11:12AM (#33164308)
I'm kind of surprised that the big guys who do image detection (like google) won't open source whatever algos they use to separate "moderate" content from "adult" content on their image search. It's not 100% but works pretty well in my experience.
Re:Pico.js, a face-detection library in 200 lines of JavaScript by doytch on Tuesday October 11, 2022 @12:44PM (#33165552)
I'm not saying it's correct, but my first thought would be that it would make it much easier for bad actors to come up with ways of getting around the algorithm.
Re:Pico.js, a face-detection library in 200 lines of JavaScript by stjohnswarts on Tuesday October 11, 2022 @04:29PM (#33168825)
that's a good point and I didn't think about that.
Re:Pico.js, a face-detection library in 200 lines of JavaScript by amenghra on Tuesday October 11, 2022 @11:47AM (#33164802)
Might not be the answer you are looking for, but there are several companies offering APIs to filter content.

E.g. Microsoft has a Vision API. Per https://azure.microsoft.com/en-us/pricing/details/cognitive-..., it's $1 per 1000 requests (with the first 5000 being free). They also have PhotoDNA, which is free but does a subset of SFW.

PixLab is another option (https://pixlab.io/cmdls).

Google has an API too (Cloud Vision).

If you go down this path, you'll have to do your own research on which service works best and what you can afford.

Re:Pico.js, a face-detection library in 200 lines of JavaScript by pstuart on Tuesday October 11, 2022 @01:06PM (#33165852)