All Projects → lovoo → Nsfwdetector

lovoo / Nsfwdetector

Licence: bsd-3-clause
A NSFW (aka porn) detector with CoreML

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Nsfwdetector

Kotlin Mpp Standard
A standard setup for Kotlin multiplatform projects.
Stars: ✭ 92 (-93.26%)
Mutual labels:  cocoapods
Arkit Sampler
Code examples for ARKit.
Stars: ✭ 1,334 (-2.2%)
Mutual labels:  coreml
Cardsstack
An awesome set of cards at your disposal ✌️ ⚡️
Stars: ✭ 97 (-92.89%)
Mutual labels:  cocoapods
Face landmark dnn
Face Landmark Detector based on Mobilenet V1
Stars: ✭ 92 (-93.26%)
Mutual labels:  coreml
Rpborderlesssegmentedcontrol
A replica of Xcode 5's toolbar segmented controls.
Stars: ✭ 94 (-93.11%)
Mutual labels:  cocoapods
Tkrubberindicator
A rubber animation pagecontrol
Stars: ✭ 1,337 (-1.98%)
Mutual labels:  cocoapods
Quick
The Swift (and Objective-C) testing framework.
Stars: ✭ 9,303 (+582.04%)
Mutual labels:  cocoapods
Http.swift
A tiny HTTP server engine written in swift.
Stars: ✭ 99 (-92.74%)
Mutual labels:  cocoapods
Swiftforms
A small and lightweight library written in Swift that allows you to easily create forms.
Stars: ✭ 1,329 (-2.57%)
Mutual labels:  cocoapods
Swiftcsvexport
Swift CSV Export is rich features framework and it helpful to read and write CSV in simple way.
Stars: ✭ 96 (-92.96%)
Mutual labels:  cocoapods
Mscircularslider
A fully-featured, powerful circular slider for iOS applications
Stars: ✭ 94 (-93.11%)
Mutual labels:  cocoapods
Nim ios uikit
网易云信 iOS UI 组件,提供聊天界面,文本消息,图片消息,语音消息,视频消息,地理位置消息,自定义消息(阅后即焚)等消息示例。#推荐客户得比特币,首次推荐得0.02BTC,连续推荐得0.03BTC/单,上不封顶。点击参与https://yunxin.163.com/promotion/recommend
Stars: ✭ 1,326 (-2.79%)
Mutual labels:  cocoapods
Colormatchtabs
This is a Review posting app that let user find interesting places near them
Stars: ✭ 1,341 (-1.69%)
Mutual labels:  cocoapods
Materialdesignsymbol
Icon font library for Swift. Currently supports GoogleMaterialDesignIcons
Stars: ✭ 92 (-93.26%)
Mutual labels:  cocoapods
Predicateflow
Write amazing, strong-typed and easy-to-read NSPredicate.
Stars: ✭ 98 (-92.82%)
Mutual labels:  cocoapods
Cocoapods Playgrounds
🃏 Generate Swift Playgrounds for any library.
Stars: ✭ 1,307 (-4.18%)
Mutual labels:  cocoapods
Pluggableappdelegate
!! No longer supported !! A lightweight service-oriented AppDelegate for iOS, made in Swift.
Stars: ✭ 96 (-92.96%)
Mutual labels:  cocoapods
Puzzlemaker
Swift framework responsible for generating puzzles from the image
Stars: ✭ 99 (-92.74%)
Mutual labels:  cocoapods
Suggestionsbox
SuggestionsBox helps you build better a product trough your user suggestions. Written in Swift. 🗳
Stars: ✭ 98 (-92.82%)
Mutual labels:  cocoapods
Cuckoo
Boilerplate-free mocking framework for Swift!
Stars: ✭ 1,344 (-1.47%)
Mutual labels:  cocoapods

NSFWDetector

Version License Platform

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'

⚠️ Because the model was trained with CreateML, you need Xcode 10 and above to compile the project.

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].