Match GitHub usage protocol

pull/34/head
devzwy 6 years ago
parent 8d03085242
commit 09ca03ccfe
  1. 2
      .gitignore
  2. 25
      README.md
  3. BIN
      app/src/main/assets/img/timg-6.jpeg
  4. BIN
      app/src/main/assets/img/timg.jpeg
  5. BIN
      app/src/main/assets/img/u=881880805,1007652126&fm=15&gp=0.jpg
  6. 66
      app/src/main/res/layout/activity_main.xml
  7. BIN
      img/1.png
  8. BIN
      img/2.png

2
.gitignore vendored

@ -12,5 +12,3 @@
/captures /captures
.externalNativeBuild .externalNativeBuild
/images/TestImagesForNSFW.rtf /images/TestImagesForNSFW.rtf
/img/*
/app/src/main/assets/img/*

@ -3,7 +3,8 @@
[![](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) ![Mozilla Add-on](https://img.shields.io/amo/stars/dustman.svg?label=stars&logo=1&logoColor=1&style=popout) [![](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) ![Mozilla Add-on](https://img.shields.io/amo/stars/dustman.svg?label=stars&logo=1&logoColor=1&style=popout)
### 色情图片离线识别,基于TensorFlow实现。识别只需200ms,可断网测试,成功率99%,调用只要一行代码,从雅虎的开源项目open_nsfw移植,tflite(6M)为训练好的模型(已量化),该模型文件可用于iOS、java、C++等平台,Python使用生成的tfLite文件检测图片的速度远远快于使用原模型. ### 色情图片离线识别,基于TensorFlow实现。识别只需200ms,可断网测试,成功率99%,调用只要一行代码,从雅虎的开源项目open_nsfw移植,tflite(6M)为训练好的模型(已量化),该模型文件可用于iOS、java、C++等平台,Python使用生成的tfLite文件检测图片的速度远远快于使用原模型.
### 页面最底部有测试Demo和效果图片,请勿在公共场所打开。 ### iOS请参考:[issues13](https://github.com/devzwy/open_nsfw_android/issues/13)
### 本项目移除测试图片,请下载Demo后自行配图测试
### 使用 ### 使用
- Add it in your root build.gradle at the end of repositories: - Add it in your root build.gradle at the end of repositories:
@ -78,31 +79,13 @@ __请添加__
``` ```
### [点我下载apk](https://fir.im/nsfw) ### 安卓手机直接[点我安装](https://fir.im/1rj9)
### 扫码下载 ### 扫码下载
![图片](https://github.com/devzwy/open_nsfw_android/blob/master/img/2.png) ![图片](https://github.com/devzwy/open_nsfw_android/blob/master/img/2.png)
### Demo运行结果: ### Demo运行结果:
## 提示:下面的图片不要在公共场所打开!!!
## 提示:下面的图片不要在公共场所打开!!!
## 提示:下面的图片不要在公共场所打开!!!
## 提示:下面的图片不要在公共场所打开!!!
## 提示:下面的图片不要在公共场所打开!!!
## 提示:下面的图片不要在公共场所打开!!!
## 提示:下面的图片不要在公共场所打开!!!
## 提示:下面的图片不要在公共场所打开!!!
## 提示:下面的图片不要在公共场所打开!!!
![图片](https://github.com/devzwy/open_nsfw_android/blob/master/img/1.png) ![图片](https://github.com/devzwy/open_nsfw_android/blob/master/img/1.png)

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

@ -1,44 +1,64 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" android:orientation="vertical"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_width="match_parent" android:layout_height="match_parent">
android:layout_height="match_parent"> <LinearLayout
<LinearLayout android:layout_width="match_parent" android:layout_width="match_parent"
android:orientation="horizontal" android:orientation="horizontal"
android:layout_height="wrap_content"> android:layout_height="wrap_content">
<Button android:layout_width="0dp" android:layout_height="wrap_content"
<Button
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"
android:textSize="16sp" android:textSize="16sp"
android:id="@+id/bt_sc_assets" android:id="@+id/bt_sc_assets"
android:gravity="center" android:gravity="center"
android:layout_gravity="center" android:layout_gravity="center"
android:padding="20dp" android:padding="20dp"
android:text="@string/str_bt1"/> android:text="@string/str_bt1" />
<Button android:layout_width="0dp" android:layout_height="wrap_content"
<Button
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"
android:textSize="16sp" android:textSize="16sp"
android:id="@+id/bt_sc_from_other" android:id="@+id/bt_sc_from_other"
android:gravity="center" android:gravity="center"
android:layout_gravity="center" android:layout_gravity="center"
android:padding="20dp" android:padding="20dp"
android:text="从相册选取"/> android:text="从相册选取" />
</LinearLayout> </LinearLayout>
<TextView android:layout_width="match_parent" android:layout_height="wrap_content"
android:gravity="center"
android:id="@+id/tv_version"
android:textSize="15sp"
android:textColor="@color/blue"
android:padding="5dp"
android:text="版本号:"/>
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" <TextView
android:text="sfw:适宜在公共场所浏览,nsfw:不适宜在公共场所浏览,两者都是0-1中间的浮点型值,nsfw数值越大表示色情程度越高,sfw反之" android:layout_width="match_parent"
android:padding="15dp" android:layout_height="wrap_content"
android:textSize="14sp"/> android:gravity="center"
android:id="@+id/tv_version"
android:textSize="15sp"
android:textColor="@color/blue"
android:padding="5dp"
android:text="版本号:" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="sfw:适宜在公共场所浏览,nsfw:不适宜在公共场所浏览,两者都是0-1中间的浮点型值,nsfw数值越大表示色情程度越高,sfw反之"
android:padding="15dp"
android:textSize="14sp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="所有图片均来源百度,如有侵权请联系我删除。大尺度图片请自行google来测试"
android:textColor="#FF0404"
android:padding="15dp"
android:textSize="12sp" />
<android.support.v7.widget.RecyclerView <android.support.v7.widget.RecyclerView
android:id="@+id/rv" android:id="@+id/rv"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content"/> android:layout_height="wrap_content" />
</LinearLayout> </LinearLayout>

Binary file not shown.

After

Width:  |  Height:  |  Size: 589 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 127 KiB

Loading…
Cancel
Save