You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
6 years ago | |
---|---|---|
.idea | 6 years ago | |
app | 6 years ago | |
gradle/wrapper | 6 years ago | |
nsfw | 6 years ago | |
.gitignore | 6 years ago | |
README.md | 6 years ago | |
build.gradle | 6 years ago | |
gradle.properties | 6 years ago | |
gradlew | 6 years ago | |
gradlew.bat | 6 years ago | |
settings.gradle | 6 years ago |
README.md
open_nsfw_android
色情图片离线识别,基于TensorFlow实现。识别只需200ms,可断网测试,成功率100%,调用只要一行代码,从雅虎的开源项目open_nsfw_python移植,tflite(6M)为训练好的模型,可用于iOS平台
使用
- Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
- Add the dependency
dependencies {
implementation 'com.github.devzwy:open_nsfw_android:Tag'
}
- Code like this
val nsfwBean = NsfwHelper.getInstance(this, true, 1).scanBitmapSyn(bitmap)
nsfwBean?.sfw ...
nsfwBean?.nsfw ...