开发者

how to determine if a picture is explicit [closed]

开发者 https://www.devze.com 2023-03-22 21:07 出处:网络
Closed. This question is seeking recommendations for books, tools, software libraries, and more. It does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question is seeking recommendations for books, tools, software libraries, and more. It does not meet Stack Overflow guidelines. It is not currently accepting answers.

We don’t allow questions seeking recommendations for books, tools, software librarie开发者_如何学Gos, and more. You can edit the question so it can be answered with facts and citations.

Closed 5 years ago.

Improve this question

I'm looking for a way to determine whether a picture is explicit (is Safe For Work ) or not.

I am currently looking for an API that is capable of doing it, but so far I didn't have any success.

One of the ideas I had was to use the google search API and provide a URL to a picture, and looking whether or not it is in the results when safeSearch is enabled, but it will fail on a picture that was added before the crawler got to it.

Alternatively, I'm looking for pointers regarding what to look for in an image to determine how SFW it is. Any suggestions regarding shapes, colors or patterns?


As promised, a SFW paper from Google researchers and a patent for your study procured from this blog entry.


One of my colleagues led the development of the porn classification technology at one of the largest web companies. I will share what he told me about the development of the filter.

  1. The definition of what is explicit varying greatly among jurisdictions so what is considered explicit in the US might not be in other parts of the world and vice-versa. So models need to take into account the users origin.
  2. A purely imaged based approach is almost impossible to use effectively at web scale. The feature space is very complex in terms of how humans judge what is explicit and what is not and developing appropriate feature extraction technology for images proved to be exceedingly difficult.
  3. Some of the most predictive features are the text on pages that link to the images. These are among the easiest features to develop also.
  4. Building labeled training sets is very difficult since classifying porn and other explicit content for 8 hours a day tends to take a toll on the labelers. Because of this the turn over is fairly high with almost no one lasting a year.
  5. Getting a high accuracy from the classifiers is still very, very difficult. They worked on it with several PhD's and a very experienced team and still did not achieve the accuracy that you are probably looking for.

If you have a more constrained problem space you can probably achieve a higher accuracy. If you are using image features only the algorithm or model will probably not generalize well and will have a high false positive rate. Best of luck.


See papers:

Detection of Pornographic Digital Images Jorge A. Marcial-Basilio, Gualberto Aguilar-Torres, Gabriel Sánchez-Pérez, L. Karina Toscano- Medina, and Héctor M. Pérez-Meana

Pornography Detection Using Support Vector Machine Yu-Chun Lin (林語君) Hung-Wei Tseng (曾宏偉) Chiou-Shann Fuh

Image-Based Pornography Detection Rigan Ap-apid De La Salle University, Manila, Philippines

You can also take some hints from existing implementations e.g.:

"The Porn Detection Stick uses advanced image analyzing algorithms that categorize images as potentially harmful by identifying facial features, flesh tone colors, image back grounds, body part shapes, and more."

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号