Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mobilefirstinc/mfnudity
Check any image's nudity by just few lines of code
https://github.com/mobilefirstinc/mfnudity
core-ml ios swift4
Last synced: 24 days ago
JSON representation
Check any image's nudity by just few lines of code
- Host: GitHub
- URL: https://github.com/mobilefirstinc/mfnudity
- Owner: MobileFirstInc
- License: mit
- Created: 2017-11-09T08:21:51.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-11-13T11:32:51.000Z (about 7 years ago)
- Last Synced: 2024-10-09T16:30:53.641Z (about 1 month ago)
- Topics: core-ml, ios, swift4
- Language: Swift
- Homepage:
- Size: 50.8 MB
- Stars: 0
- Watchers: 5
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MFNudity
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)*
```ruby
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
* Arpan & Jigar (http://mobilefirst.in)
* Twitter: [@mobilefirstinc](http://twitter.com/mobilefirstinc)
* Email : [arpan at mobilefirst.in](mailto:[email protected])## License
MFNudity is released under the [MIT License](http://www.opensource.org/licenses/MIT).