parent
c112fd1765
commit
8b2057b8bb
@ -1,32 +1,32 @@ |
||||
# open_nsfw_android |
||||
[[](https://jitpack.io/#devzwy/open_nsfw_android)](https://github.com/devzwy/open_nsfw_android) [](https://www.apache.org/licenses/LICENSE-2.0) |
||||
[](https://jitpack.io/#devzwy/open_nsfw_android)[](https://github.com/devzwy/open_nsfw_android) [](https://www.apache.org/licenses/LICENSE-2.0) |
||||
[](https://github.com/devzwy/open_nsfw_android) [](https://github.com/devzwy/KUtils) [](https://github.com/devzwy/open_nsfw_android) [](https://github.com/devzwy/open_nsfw_android) |
||||
|
||||
### 色情图片离线识别,基于TensorFlow实现。识别只需200ms,可断网测试,成功率100%,调用只要一行代码,从雅虎的开源项目open_nsfw_python移植,tflite(6M)为训练好的模型,可用于iOS平台 |
||||
### 色情图片离线识别,基于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 { |
||||
//versionCode:上面小icon中最新版本号 |
||||
implementation 'com.github.devzwy:open_nsfw_android:[versionCode]' |
||||
} |
||||
``` |
||||
- code |
||||
### 使用 |
||||
- Add it in your root build.gradle at the end of repositories: |
||||
``` |
||||
allprojects { |
||||
repositories { |
||||
... |
||||
maven { url 'https://jitpack.io' } |
||||
} |
||||
} |
||||
``` |
||||
- Add the dependency |
||||
``` |
||||
dependencies { |
||||
//versionCode:上面小icon中最新版本号 |
||||
implementation 'com.github.devzwy:open_nsfw_android:[versionCode]' |
||||
} |
||||
``` |
||||
- code |
||||
|
||||
``` |
||||
val nsfwBean = NsfwHelper.getInstance(this, true, 1).scanBitmapSyn(bitmap) |
||||
nsfwBean?.sfw ... |
||||
nsfwBean?.nsfw ... |
||||
``` |
||||
``` |
||||
val nsfwBean = NsfwHelper.getInstance(this, true, 1).scanBitmapSyn(bitmap) |
||||
nsfwBean?.sfw ... |
||||
nsfwBean?.nsfw ... |
||||
``` |
||||
### Demo运行结果: |
||||
 |
||||
 |
@ -1 +1,4 @@ |
||||
<manifest package="com.zwy.nsfw"/> |
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in new issue