parent
2f5053f380
commit
2d2fd8bd9b
@ -1 +0,0 @@ |
||||
[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":1,"versionName":"1.0","enabled":true,"outputFile":"app-debug.apk","fullName":"debug","baseName":"debug"},"path":"app-debug.apk","properties":{}}] |
@ -1,3 +1,4 @@ |
||||
<resources> |
||||
<string name="app_name">离线鉴黄</string> |
||||
<string name="str_bt1">识别Assets下图片</string> |
||||
</resources> |
||||
|
@ -1,4 +1,2 @@ |
||||
<manifest package="com.zwy.nsfw" xmlns:android="http://schemas.android.com/apk/res/android"> |
||||
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/> |
||||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> |
||||
</manifest> |
||||
|
@ -1,53 +0,0 @@ |
||||
/* Copyright 2019 The TensorFlow Authors. All Rights Reserved. |
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License"); |
||||
you may not use this file except in compliance with the License. |
||||
You may obtain a copy of the License at |
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software |
||||
distributed under the License is distributed on an "AS IS" BASIS, |
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||
See the License for the specific language governing permissions and |
||||
limitations under the License. |
||||
==============================================================================*/ |
||||
|
||||
package com.zwy.nsfw; |
||||
|
||||
import android.app.Activity; |
||||
|
||||
import java.io.IOException; |
||||
|
||||
/** |
||||
* This TensorFlowLite classifier works with the float MobileNet model. |
||||
*/ |
||||
public class ClassifierFloatMobileNet extends Classifier { |
||||
|
||||
|
||||
public ClassifierFloatMobileNet(Activity activity, Boolean isAddGpuDelegate, int numThreads) |
||||
throws IOException { |
||||
super(activity, isAddGpuDelegate, numThreads); |
||||
} |
||||
|
||||
@Override |
||||
public int getImageSizeX() { |
||||
return 224; |
||||
} |
||||
|
||||
@Override |
||||
public int getImageSizeY() { |
||||
return 224; |
||||
} |
||||
|
||||
@Override |
||||
protected String getModelPath() { |
||||
return "nsfw.tflite"; |
||||
} |
||||
|
||||
@Override |
||||
protected int getNumBytesPerChannel() { |
||||
return 4; |
||||
} |
||||
|
||||
} |
@ -1 +0,0 @@ |
||||
{} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,2 +0,0 @@ |
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<merger version="3"><dataSet config="main" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/jason/AndroidStudioProjects/open_nsfw_android/openCVLibrary340/src/main/jniLibs"/></dataSet><dataSet config="debug" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/jason/AndroidStudioProjects/open_nsfw_android/openCVLibrary340/src/debug/jniLibs"/></dataSet></merger> |
@ -1,2 +0,0 @@ |
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<merger version="3"><dataSet config="main" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/jason/AndroidStudioProjects/open_nsfw_android/openCVLibrary340/src/main/shaders"/></dataSet><dataSet config="debug" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/jason/AndroidStudioProjects/open_nsfw_android/openCVLibrary340/src/debug/shaders"/></dataSet></merger> |
@ -1,2 +0,0 @@ |
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<merger version="3"><dataSet config="main" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/jason/AndroidStudioProjects/open_nsfw_android/openCVLibrary340/src/main/assets"/><source path="/Users/jason/AndroidStudioProjects/open_nsfw_android/openCVLibrary340/build/intermediates/shader_assets/debug/compileDebugShaders/out"/></dataSet><dataSet config="debug" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/jason/AndroidStudioProjects/open_nsfw_android/openCVLibrary340/src/debug/assets"/></dataSet></merger> |
@ -1 +0,0 @@ |
||||
#Mon May 20 15:37:48 CST 2019 |
@ -1,11 +0,0 @@ |
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<resources> |
||||
<declare-styleable name="CameraBridgeViewBase"> |
||||
<attr format="boolean" name="show_fps"/> |
||||
<attr format="integer" name="camera_id"> |
||||
<enum name="any" value="-1"/> |
||||
<enum name="back" value="99"/> |
||||
<enum name="front" value="98"/> |
||||
</attr> |
||||
</declare-styleable> |
||||
</resources> |
@ -1,16 +0,0 @@ |
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<merger version="3"><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="main$Generated" generated="true" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/jason/AndroidStudioProjects/open_nsfw_android/openCVLibrary340/src/main/res"/><source path="/Users/jason/AndroidStudioProjects/open_nsfw_android/openCVLibrary340/build/generated/res/rs/debug"/><source path="/Users/jason/AndroidStudioProjects/open_nsfw_android/openCVLibrary340/build/generated/res/resValues/debug"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="main" generated-set="main$Generated" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/jason/AndroidStudioProjects/open_nsfw_android/openCVLibrary340/src/main/res"><file path="/Users/jason/AndroidStudioProjects/open_nsfw_android/openCVLibrary340/src/main/res/values/attrs.xml" qualifiers=""><declare-styleable name="CameraBridgeViewBase"> |
||||
<attr format="boolean" name="show_fps"/> |
||||
<attr format="integer" name="camera_id"> |
||||
<enum name="any" value="-1"/> |
||||
<enum name="back" value="99"/> |
||||
<enum name="front" value="98"/> |
||||
</attr> |
||||
</declare-styleable></file></source><source path="/Users/jason/AndroidStudioProjects/open_nsfw_android/openCVLibrary340/build/generated/res/rs/debug"/><source path="/Users/jason/AndroidStudioProjects/open_nsfw_android/openCVLibrary340/build/generated/res/resValues/debug"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="debug$Generated" generated="true" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/jason/AndroidStudioProjects/open_nsfw_android/openCVLibrary340/src/debug/res"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="debug" generated-set="debug$Generated" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/jason/AndroidStudioProjects/open_nsfw_android/openCVLibrary340/src/debug/res"/></dataSet><mergedItems><configuration qualifiers=""><declare-styleable name="CameraBridgeViewBase"> |
||||
<attr format="boolean" name="show_fps"/> |
||||
<attr format="integer" name="camera_id"> |
||||
<enum name="any" value="-1"/> |
||||
<enum name="back" value="99"/> |
||||
<enum name="front" value="98"/> |
||||
</attr> |
||||
</declare-styleable></configuration></mergedItems></merger> |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue