File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
FaceTracker/app/src/main/java/org/opencv/android/facetracker Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,11 @@ android:
26
26
- android-23
27
27
- extra-android-m2repository
28
28
- sys-img-${ANDROID_ABI}-${ANDROID_TARGET}
29
+
30
+ licenses :
31
+ - android-sdk-preview-license-.+
32
+ - android-sdk-license-.+
33
+ - google-gdk-license-.+
29
34
30
35
before_install :
31
36
- echo $(ant -version)
@@ -34,6 +39,8 @@ before_script:
34
39
- wget https://github.com/opencv/opencv/releases/download/3.4.1/opencv-3.4.1-android-sdk.zip
35
40
- unzip -q opencv-3.4.1-android-sdk.zip
36
41
- export OPENCV_ANDROID_SDK=$(pwd)/OpenCV-android-sdk
42
+ - git clone https://github.com/tensorflow/tensorflow.git
43
+ - export TF_SRC_ROOT=$(pwd)/tensorflow
37
44
38
45
script :
39
46
- cd FaceTracker
Original file line number Diff line number Diff line change 9
9
import com .google .android .gms .samples .vision .face .facetracker .FaceTrackerActivity ;
10
10
import com .google .android .gms .samples .vision .face .facetracker .R ;
11
11
12
+
12
13
import tensorflow .detector .spc .CameraActivityMain ;
13
14
14
15
public class OpenCvActivity extends AppCompatActivity {
@@ -25,7 +26,9 @@ public void onCreate(Bundle icicle) {
25
26
mBtnDetect .setOnClickListener (new View .OnClickListener () {
26
27
@ Override
27
28
public void onClick (View v ) {
29
+
28
30
Intent myIntent = new Intent (OpenCvActivity .this , CameraActivityMain .class );
31
+
29
32
OpenCvActivity .this .startActivity (myIntent );
30
33
}
31
34
});
You can’t perform that action at this time.
0 commit comments