Skip to content

Commit 643f17f

Browse files
committed
정상
1 parent fd9d211 commit 643f17f

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ gen/
1717
out/
1818
# Uncomment the following line in case you need and you don't have the release build type files in your app
1919
# release/
20-
20+
assets/
2121
# Gradle files
2222
.gradle/
2323
build/

app/src/main/java/com/example/gaid/DetectorActivity.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -107,14 +107,14 @@ public void onInit(int status) {
107107
private enum DetectorMode {
108108
TF_OD_API, MULTIBOX, YOLO;
109109
}
110-
private static final DetectorMode MODE = DetectorMode.YOLO;
110+
private static final DetectorMode MODE = DetectorMode.TF_OD_API;
111111

112112
// Minimum detection confidence to track a detection.
113113
private static final float MINIMUM_CONFIDENCE_TF_OD_API = 0.6f;
114114
private static final float MINIMUM_CONFIDENCE_MULTIBOX = 0.1f;
115115
private static final float MINIMUM_CONFIDENCE_YOLO = 0.25f;
116116

117-
private static final boolean MAINTAIN_ASPECT = MODE == DetectorMode.YOLO;
117+
private static final boolean MAINTAIN_ASPECT = MODE == DetectorMode.TF_OD_API;
118118

119119
private static final Size DESIRED_PREVIEW_SIZE = new Size(640, 480);
120120

app/src/main/res/layout/activity_main.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@
7272
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
7373
xmlns:tools="http://schemas.android.com/tools"
7474
android:id="@+id/container"
75-
android:layout_width="10dp"
76-
android:layout_height="10dp"
75+
android:layout_width="100dp"
76+
android:layout_height="100dp"
7777
android:background="#000"
7878
tools:context="com.example.gaid.CameraActivity"
7979
tools:ignore="MissingConstraints" />

0 commit comments

Comments
 (0)