更新文档

pull/34/head
jason 6 years ago
parent a2a2f37998
commit 2653279e30
  1. 16
      README.md
  2. 3
      app/build.gradle
  3. 2
      build.gradle

@ -4,6 +4,22 @@
### 色情图片离线识别,基于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.User:Repo:Tag'
}
```
```
val nsfwBean = NsfwHelper.getInstance(this, true, 1).scanBitmapSyn(bitmap)
nsfwBean?.sfw ...

@ -34,5 +34,6 @@ dependencies {
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation project(path: ':nsfw')
// implementation project(path: ':nsfw')
implementation 'com.github.devzwy:open_nsfw_android:1.1'
}

@ -19,7 +19,7 @@ allprojects {
repositories {
google()
jcenter()
maven { url 'https://jitpack.io' }
}
}

Loading…
Cancel
Save