From 46a0faa89d91f3df77d00ad7f2e1054f45a53f18 Mon Sep 17 00:00:00 2001 From: jason Date: Wed, 15 May 2019 11:41:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 74305063..9fa140cf 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,11 @@ # open_nsfw_android -[![](https://jitpack.io/v/devzwy/open_nsfw_android.svg)](https://jitpack.io/#devzwy/open_nsfw_android)[![](https://img.shields.io/badge/Base-TensorFlow-brightgreen.svg)](https://github.com/devzwy/open_nsfw_android) [![](https://img.shields.io/badge/license-Apache%202-green.svg)](https://www.apache.org/licenses/LICENSE-2.0) +[![](https://jitpack.io/v/devzwy/open_nsfw_android.svg)](https://jitpack.io/#devzwy/open_nsfw_android) [![](https://img.shields.io/badge/Base-TensorFlow-brightgreen.svg)](https://github.com/devzwy/open_nsfw_android) [![](https://img.shields.io/badge/license-Apache%202-green.svg)](https://www.apache.org/licenses/LICENSE-2.0) [![](https://img.shields.io/badge/%E4%BD%9C%E8%80%85-赵文贇-orange.svg)](https://github.com/devzwy/open_nsfw_android) [![](https://img.shields.io/badge/QQ-3648415-brightgreen.svg)](https://github.com/devzwy/KUtils) [![](https://img.shields.io/badge/微信-admin_zwy-brightgreen.svg)](https://github.com/devzwy/open_nsfw_android) [![](https://img.shields.io/badge/Mail-dev_zwy@aliyun.com-green.svg)](https://github.com/devzwy/open_nsfw_android) ### 色情图片离线识别,基于TensorFlow实现。识别只需200ms,可断网测试,成功率100%,调用只要一行代码,从雅虎的开源项目open_nsfw_python移植,tflite(6M)为训练好的模型,可用于iOS平台 ### 使用 -- Add it in your root build.gradle at the end of repositories: +- Add it in your root build.gradle at the end of repositories: ``` allprojects { repositories { @@ -13,24 +13,24 @@ maven { url 'https://jitpack.io' } } } -``` +``` -- Add the dependency +- Add the dependency ``` dependencies { implementation 'com.github.devzwy:open_nsfw_android:Tag' } -``` +``` -- code +- Code like this ``` val nsfwBean = NsfwHelper.getInstance(this, true, 1).scanBitmapSyn(bitmap) nsfwBean?.sfw ... nsfwBean?.nsfw ... ``` -### Demo运行结果: +### Demo运行结果: ![图片](https://github.com/devzwy/open_nsfw_android/blob/master/img/1.png) \ No newline at end of file