The Wayback Machine - https://web.archive.org/web/20201115210439/https://github.com/MobileFirstInc/MFNudity
Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

README.md

MFNudity

Platform iOS 11

Swift 4 compatible

License MIT

CocoaPods compatible

MFNudity is an iOS library that can be helpful for checking image nudity. You can use it in any iOS application which is dealing with images.

Swift 4.0 (Xcode 9.0)

pod 'MFNudity'

Usage

First Step - @import MFNudity to your project

Second Step - Pass image to MFNudity's shared object

 MFNudity.shared.checkImageNudity(image: imageView.image!) { (error, confidence) in
            
            if error != nil
            {
                let converted = String(format: "%.2f", confidence!)
                resultLbl.text = "NSFW - \(converted) %"
            }

     }

This 'confidence' shows float value from 0 to 1 . You can simply convert it into % and show image's nudity in percentage . For higher 'confidence' value it will be nude picture.

CocoaPods Install

Add this to your Podfile.

pod 'MFNudity'

Collaboration

Feel free to collaborate with ideas, issues and/or pull requests.

Contact

License

MFNudity is released under the MIT License.

About

Check any image's nudity by just few lines of code

Topics

Resources

License

Packages

No packages published
You can’t perform that action at this time.