Skip to content

Commit 3245ee7

Browse files
committed
Merge branch 'dlib-opencv-tf' of https://github.com/sweetdream779/FR-android-dlib-opencv into dlib-opencv-tf
2 parents 4e73909 + 867dbf5 commit 3245ee7

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.travis.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ android:
2626
- android-23
2727
- extra-android-m2repository
2828
- sys-img-${ANDROID_ABI}-${ANDROID_TARGET}
29+
30+
licenses:
31+
- android-sdk-preview-license-.+
32+
- android-sdk-license-.+
33+
- google-gdk-license-.+
2934

3035
before_install:
3136
- echo $(ant -version)
@@ -34,6 +39,8 @@ before_script:
3439
- wget https://github.com/opencv/opencv/releases/download/3.4.1/opencv-3.4.1-android-sdk.zip
3540
- unzip -q opencv-3.4.1-android-sdk.zip
3641
- export OPENCV_ANDROID_SDK=$(pwd)/OpenCV-android-sdk
42+
- git clone https://github.com/tensorflow/tensorflow.git
43+
- export TF_SRC_ROOT=$(pwd)/tensorflow
3744

3845
script:
3946
- cd FaceTracker

FaceTracker/app/src/main/java/org/opencv/android/facetracker/OpenCvActivity.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import com.google.android.gms.samples.vision.face.facetracker.FaceTrackerActivity;
1010
import com.google.android.gms.samples.vision.face.facetracker.R;
1111

12+
1213
import tensorflow.detector.spc.CameraActivityMain;
1314

1415
public class OpenCvActivity extends AppCompatActivity {
@@ -25,7 +26,9 @@ public void onCreate(Bundle icicle) {
2526
mBtnDetect.setOnClickListener(new View.OnClickListener() {
2627
@Override
2728
public void onClick(View v) {
29+
2830
Intent myIntent = new Intent(OpenCvActivity.this, CameraActivityMain.class);
31+
2932
OpenCvActivity.this.startActivity(myIntent);
3033
}
3134
});

0 commit comments

Comments
 (0)