

GitHub - lovoo/NSFWDetector: A NSFW (aka porn) detector with CoreML
source link: https://github.com/lovoo/NSFWDetector
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md
NSFWDetector is a small (17 kB) CoreML Model to scan images for nudity. It was trained using CreateML to distinguish between porn/nudity and appropriate pictures. With the main focus on distinguishing between instagram model like pictures and porn.
Usage
guard #available(iOS 12.0, *), let detector = NSFWDetector.shared else { return } detector.check(image: image, completion: { result in switch result { case let .success(nsfwConfidence: confidence): if confidence > 0.9 { // ??? } else { // ¯\_(ツ)_/¯ } default: break } })
If you want to enforce stricter boundaries for your platform, just apply a lower threshold for the confidence.
Installation
NSFWDetector is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'NSFWDetector'
App Size
The Machine Learning Model is only 17 kB in size, so App size won't be affected compared to other libraries using the yahoo model.
Using just the Model
If you don't want to use the Detection Code, you can also just download the MLModel file directly from the latest Release.
Feedback
If you recognize issues with certain kind of pictures, feel free to reach out via Mail or Twitter.
Author
Michael Berg, [email protected]
License
NSFWDetector is available under the BSD license. See the LICENSE file for more info.
Recommend
-
101
Convert from Tensorflow to CoreML coremltools (Recommended approach) For converting TensorFlow models to CoreML format, the recommended approach is to use TensorF...
-
47
机器学习是当今最热门的研究方向之一,涉及到包括算法在内的多项技术,看似门槛挺高,但是在 iOS 端可以基于苹果提供的 CoreML 及相关框架来更加便捷的研究并实现和人工智能相关的功能。 一、 CoreML 概览 使用 Core ML...
-
13
Building a Face Detecting Robot with URLSessionWebSocketTask, CoreML, SwiftUI and an Arduino Building a Face Detecting Robot with URLSessionWebSocketTask, CoreML, SwiftUI and an Arduino October 16, 2019
-
31
Want more videos like this? Every day we send an email with the top videos from Digg. In other coronavirus news: Vice President-elect Kamala Harris got her shot; the pandemic...
-
251
README.md This repository represents Ultralytics open-source research into future object detection methods, and incorporates lessons learned and best practices evolved...
-
16
Discord is making a major change to its iOS app, one that involves blocking access to adult, not safe for work (NSFW) servers. The platform, which is geared towards hosting invite-only gaming-related chatrooms, stresses that user...
-
13
no sex please, we're ios — iOS users—and only iOS users—face NSFW content ban on Discord app App Store rules seemingly lead to tighter restrictions for Apple users. ...
-
19
Image courtesy Caroline Dy‘Building the Cockchain:’ How NSFW Artists Are Shaping the Future of NFTsThe crypto-art medium has a lot of potential for adult creators—but some advise caution. ...
-
19
Seeing NSFW Ads on Government Sites? Here's Why By Damir Mujezinovic Published 1 day ago Stumbled across unsuitable adverts...
-
16
NSFW logos from internetFor any Brand Identity Designers, Bad logos are fun and if they are dirty, it’s a Lottery. Find a collection of these funny logos at one place.
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK