资源简介

利用Tensorflow训练的模型,在安卓设备上实现物体识别

资源截图

代码片段和文件信息

package wlkdb.lg.cat_dog;

import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;

import org.junit.Test;
import org.junit.runner.RunWith;

import static org.junit.Assert.*;

/**
 * Instrumented test which will execute on an Android device.
 *
 * @see Testing documentation
 */
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
    @Test
    public void useAppContext() throws Exception {
        // Context of the app under test.
        Context appContext = InstrumentationRegistry.getTargetContext();

        assertEquals(“wlkdb.lg.cat_dog“ appContext.getPackageName());
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-07-07 07:31  TensorflowInAndroid-master\
     文件         118  2018-07-07 07:31  TensorflowInAndroid-master\.gitignore
     目录           0  2018-07-07 07:31  TensorflowInAndroid-master\.idea\
     文件         626  2018-07-07 07:31  TensorflowInAndroid-master\.idea\gradle.xml
     文件        2044  2018-07-07 07:31  TensorflowInAndroid-master\.idea\misc.xml
     文件         351  2018-07-07 07:31  TensorflowInAndroid-master\.idea\modules.xml
     文件         564  2018-07-07 07:31  TensorflowInAndroid-master\.idea\runConfigurations.xml
     文件         144  2018-07-07 07:31  TensorflowInAndroid-master\README.md
     目录           0  2018-07-07 07:31  TensorflowInAndroid-master\app\
     文件           7  2018-07-07 07:31  TensorflowInAndroid-master\app\.gitignore
     文件        1147  2018-07-07 07:31  TensorflowInAndroid-master\app\build.gradle
     文件         751  2018-07-07 07:31  TensorflowInAndroid-master\app\proguard-rules.pro
     目录           0  2018-07-07 07:31  TensorflowInAndroid-master\app\src\
     目录           0  2018-07-07 07:31  TensorflowInAndroid-master\app\src\androidTest\
     目录           0  2018-07-07 07:31  TensorflowInAndroid-master\app\src\androidTest\java\
     目录           0  2018-07-07 07:31  TensorflowInAndroid-master\app\src\androidTest\java\wlkdb\
     目录           0  2018-07-07 07:31  TensorflowInAndroid-master\app\src\androidTest\java\wlkdb\lg\
     目录           0  2018-07-07 07:31  TensorflowInAndroid-master\app\src\androidTest\java\wlkdb\lg\cat_dog\
     文件         733  2018-07-07 07:31  TensorflowInAndroid-master\app\src\androidTest\java\wlkdb\lg\cat_dog\ExampleInstrumentedTest.java
     目录           0  2018-07-07 07:31  TensorflowInAndroid-master\app\src\main\
     文件        1056  2018-07-07 07:31  TensorflowInAndroid-master\app\src\main\AndroidManifest.xml
     目录           0  2018-07-07 07:31  TensorflowInAndroid-master\app\src\main\assets\
     文件    44856504  2018-07-07 07:31  TensorflowInAndroid-master\app\src\main\assets\cats_and_dogs.pb
     文件           7  2018-07-07 07:31  TensorflowInAndroid-master\app\src\main\assets\cats_and_dogs.txt
     目录           0  2018-07-07 07:31  TensorflowInAndroid-master\app\src\main\java\
     目录           0  2018-07-07 07:31  TensorflowInAndroid-master\app\src\main\java\wlkdb\
     目录           0  2018-07-07 07:31  TensorflowInAndroid-master\app\src\main\java\wlkdb\lg\
     目录           0  2018-07-07 07:31  TensorflowInAndroid-master\app\src\main\java\wlkdb\lg\cat_dog\
     文件        7543  2018-07-07 07:31  TensorflowInAndroid-master\app\src\main\java\wlkdb\lg\cat_dog\CameraFragment.java
     文件        2519  2018-07-07 07:31  TensorflowInAndroid-master\app\src\main\java\wlkdb\lg\cat_dog\CircleImageView.java
     文件        2738  2018-07-07 07:31  TensorflowInAndroid-master\app\src\main\java\wlkdb\lg\cat_dog\Classifier.java
............此处省略67个文件信息

评论

共有 条评论