File tree 3 files changed +5
-5
lines changed
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 17
17
out /
18
18
# Uncomment the following line in case you need and you don't have the release build type files in your app
19
19
# release/
20
-
20
+ assets /
21
21
# Gradle files
22
22
.gradle /
23
23
build /
Original file line number Diff line number Diff line change @@ -107,14 +107,14 @@ public void onInit(int status) {
107
107
private enum DetectorMode {
108
108
TF_OD_API , MULTIBOX , YOLO ;
109
109
}
110
- private static final DetectorMode MODE = DetectorMode .YOLO ;
110
+ private static final DetectorMode MODE = DetectorMode .TF_OD_API ;
111
111
112
112
// Minimum detection confidence to track a detection.
113
113
private static final float MINIMUM_CONFIDENCE_TF_OD_API = 0.6f ;
114
114
private static final float MINIMUM_CONFIDENCE_MULTIBOX = 0.1f ;
115
115
private static final float MINIMUM_CONFIDENCE_YOLO = 0.25f ;
116
116
117
- private static final boolean MAINTAIN_ASPECT = MODE == DetectorMode .YOLO ;
117
+ private static final boolean MAINTAIN_ASPECT = MODE == DetectorMode .TF_OD_API ;
118
118
119
119
private static final Size DESIRED_PREVIEW_SIZE = new Size (640 , 480 );
120
120
Original file line number Diff line number Diff line change 72
72
<FrameLayout xmlns : android =" http://schemas.android.com/apk/res/android"
73
73
xmlns : tools =" http://schemas.android.com/tools"
74
74
android : id =" @+id/container"
75
- android : layout_width =" 10dp "
76
- android : layout_height =" 10dp "
75
+ android : layout_width =" 100dp "
76
+ android : layout_height =" 100dp "
77
77
android : background =" #000"
78
78
tools : context =" com.example.gaid.CameraActivity"
79
79
tools : ignore =" MissingConstraints" />
You can’t perform that action at this time.
0 commit comments