Skip to content

Commit 8973ad2

Browse files
committed
created photo-demo app
This is a "hello world" style app for the face API, to be released to third parties via GitHub. It runs face/landmark detection on a photo and displays the photo with graphics indicating the landmark positions. Also updated the face tracker demo to remove the titlebar and change to the new mobile vision icon. Change-Id: I2a3c88a7c83efd1efa6b9b8d17b13e532daa7d70
1 parent 8ac9103 commit 8973ad2

File tree

27 files changed

+621
-1
lines changed

27 files changed

+621
-1
lines changed

face/FaceTracker/app/src/main/AndroidManifest.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
android:name="com.google.android.gms.samples.vision.face.facetracker.FaceTrackerActivity"
2828
android:icon="@drawable/icon"
2929
android:label="Face Tracker"
30+
android:theme="@android:style/Theme.Black.NoTitleBar"
3031
android:screenOrientation="fullSensor">
3132
<intent-filter>
3233
<action android:name="android.intent.action.MAIN" />
@@ -36,4 +37,4 @@
3637
</activity>
3738
</application>
3839

39-
</manifest>
40+
</manifest>
Binary file not shown.
Binary file not shown.
Binary file not shown.
171 KB
Loading

face/photo-demo/.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.gradle
2+
/local.properties
3+
/.idea/workspace.xml
4+
/.idea/libraries
5+
.DS_Store
6+
/build
7+
/captures

face/photo-demo/app/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build

face/photo-demo/app/build.gradle

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
apply plugin: 'com.android.application'
2+
3+
android {
4+
compileSdkVersion 22
5+
buildToolsVersion "22.0.1"
6+
7+
defaultConfig {
8+
applicationId "com.google.android.gms.samples.vision.face.photo"
9+
minSdkVersion 19
10+
targetSdkVersion 22
11+
versionCode 1
12+
versionName "1.0"
13+
}
14+
buildTypes {
15+
release {
16+
minifyEnabled false
17+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
18+
}
19+
}
20+
}
21+
22+
dependencies {
23+
compile fileTree(dir: 'libs', include: ['*.jar'])
24+
compile 'com.android.support:appcompat-v7:22.0.0'
25+
compile 'com.google.android.gms:play-services:7.8.+'
26+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Add project specific ProGuard rules here.
2+
# By default, the flags in this file are appended to flags specified
3+
# in /usr/local/google/home/mccartney/android/ub-gcore-master/prebuilts/fullsdk/linux/tools/proguard/proguard-android.txt
4+
# You can edit the include path and order by changing the proguardFiles
5+
# directive in build.gradle.
6+
#
7+
# For more details, see
8+
# http://developer.android.com/guide/developing/tools/proguard.html
9+
10+
# Add any project specific keep options here:
11+
12+
# If your project uses WebView with JS, uncomment the following
13+
# and specify the fully qualified class name to the JavaScript interface
14+
# class:
15+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16+
# public *;
17+
#}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/*
2+
* Copyright (C) The Android Open Source Project
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
package com.google.android.gms.samples.vision.face.photo;
17+
18+
import android.app.Application;
19+
import android.test.ApplicationTestCase;
20+
21+
/**
22+
* <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a>
23+
*/
24+
public class ApplicationTest extends ApplicationTestCase<Application> {
25+
public ApplicationTest() {
26+
super(Application.class);
27+
}
28+
}

0 commit comments

Comments
 (0)