Skip to content

Commit f5fa4f8

Browse files
committed
Remove opencv & facetrackr. You can get the legacy branch at 'face_features'
1 parent 0a93d4b commit f5fa4f8

File tree

260 files changed

+38
-87340
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

260 files changed

+38
-87340
lines changed

cgeDemo/src/main/java/org/wysaid/cgeDemo/MainActivity.java

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@
1414
import android.widget.Button;
1515
import android.widget.LinearLayout;
1616

17-
import org.wysaid.common.Common;
18-
import org.wysaid.nativePort.CGENativeLibrary;
19-
2017
import java.io.IOException;
2118
import java.io.InputStream;
2219

20+
import org.wysaid.common.Common;
21+
import org.wysaid.myUtils.MsgUtil;
22+
import org.wysaid.nativePort.CGENativeLibrary;
23+
2324

2425
public class MainActivity extends AppCompatActivity {
2526

@@ -206,6 +207,12 @@ public void setDemo(DemoClassDescription demo) {
206207

207208
@Override
208209
public void onClick(final View v) {
210+
211+
if (mDemo.activityName == "FaceTrackingDemoActivity") {
212+
MsgUtil.toastMsg(v.getContext(), "Error: Please checkout the branch 'face_features' for this demo!");
213+
return;
214+
}
215+
209216
Log.i(LOG_TAG, String.format("%s is clicked!", mDemo.title));
210217
Class cls;
211218
try {

library/src/main/jni/buildJNI

Lines changed: 28 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,73 +1,72 @@
11
#!/bin/bash
22

3-
#replace the path below with your ndk-dir
3+
#replace the path below with your ndk-dir
44
#NDK=/Users/wangyang/android_dev/android-ndk
55

66
if [[ "$NDK" == "" ]]; then
77

8-
echo "Please specify the NDK variable to your ndk-dir"
9-
exit
8+
echo "Please specify the NDK variable to your ndk-dir"
9+
exit
1010

1111
fi
1212

1313
cd $(dirname $0)
1414

15-
for i in $*
16-
do
15+
for i in $*; do
1716

18-
if [ "${i}" == "-r" ] || [ "${i}" == "--release" ]; then
17+
if [ "${i}" == "-r" ] || [ "${i}" == "--release" ]; then
1918

20-
export CGE_RELEASE_MODE=1
19+
export CGE_RELEASE_MODE=1
2120

22-
echo "release mode enabled!"
21+
echo "release mode enabled!"
2322

24-
fi
23+
fi
2524

26-
if [ "${i}" == "-d" ] || [ "${i}" == "--debug" ]; then
25+
if [ "${i}" == "-d" ] || [ "${i}" == "--debug" ]; then
2726

28-
export CGE_DEBUG_MODE=1
27+
export CGE_DEBUG_MODE=1
2928

30-
echo "debug mode enabled!"
29+
echo "debug mode enabled!"
3130

32-
fi
31+
fi
3332

34-
if [ "${i}" == "-b" ] || [ "${i}" == "-B" ]; then
33+
if [ "${i}" == "-b" ] || [ "${i}" == "-B" ]; then
3534

36-
BUILD_ARG=-B
35+
BUILD_ARG=-B
3736

38-
echo "force rebuild!"
37+
echo "force rebuild!"
3938

40-
fi
39+
fi
4140

42-
if [ "${i}" == "--noface" ] || [ "${i}" == "-n" ]; then
41+
if [ "${i}" == "--noface" ] || [ "${i}" == "-n" ]; then
4342

44-
NO_FACE=1
43+
NO_FACE=1
4544

46-
echo "disable face module!"
45+
echo "disable face module!"
4746

48-
fi
47+
fi
4948

50-
if [ "${i}" == "--leaktest" ] || [ "${i}" == "-lt" ] || [ "${i}" == "--lt" ]; then
49+
if [ "${i}" == "--leaktest" ] || [ "${i}" == "-lt" ] || [ "${i}" == "--lt" ]; then
5150

52-
export CGE_USE_LEAK_TEST=1
51+
export CGE_USE_LEAK_TEST=1
5352

54-
echo "leak test enabled!"
53+
echo "leak test enabled!"
5554

56-
fi
55+
fi
5756

5857
done
5958

60-
if [[ "$NO_FACE" == "" ]]; then
59+
# if [[ "$NO_FACE" == "" ]]; then
6160

62-
export CGE_USE_FACE_MODULE=1
61+
# export CGE_USE_FACE_MODULE=1
6362

64-
fi
63+
# fi
6564

6665
export CGE_USE_VIDEO_MODULE=1
6766

6867
echo "The NDK dir is: ${NDK}, If the shell can not run normally, you should set the NDK variable to your local ndk-dir"
6968

70-
THREADS=`getconf _NPROCESSORS_ONLN`
69+
THREADS=$(getconf _NPROCESSORS_ONLN)
7170
if [[ -z "$THREADS" ]] || [[ "$THREADS" -eq "0" ]]; then
7271
THREADS=8
7372
fi

0 commit comments

Comments
 (0)