tallwhitestck
commited on
Commit
•
5253a31
1
Parent(s):
9c22ad8
reorganized file system
Browse files- .DS_Store +0 -0
- app.py +12 -5
- images/A_test.jpg +0 -0
- B_test.jpg → images/B_test.jpg +0 -0
- C_test.jpg → images/C_test.jpg +0 -0
- images/D_test.jpg +0 -0
- images/E_test.jpg +0 -0
- images/F_test.jpg +0 -0
- images/G_test.jpg +0 -0
- images/H_test.jpg +0 -0
- images/I_test.jpg +0 -0
- images/J_test.jpg +0 -0
- images/K_test.jpg +0 -0
- images/L_test.jpg +0 -0
- images/M_test.jpg +0 -0
- images/N_test.jpg +0 -0
- images/O_test.jpg +0 -0
- images/P_test.jpg +0 -0
- images/Q_test.jpg +0 -0
- images/R_test.jpg +0 -0
- images/S_test.jpg +0 -0
- images/T_test.jpg +0 -0
- images/U_test.jpg +0 -0
- images/V_test.jpg +0 -0
- images/W_test.jpg +0 -0
- images/X_test.jpg +0 -0
- Y_test.jpg → images/Y_test.jpg +0 -0
- images/Z_test.jpg +0 -0
- images/nothing_test.jpg +0 -0
- images/space_test.jpg +0 -0
.DS_Store
ADDED
Binary file (6.15 kB). View file
|
|
app.py
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
import cv2
|
2 |
from tensorflow.keras.models import load_model
|
3 |
import matplotlib.pyplot as plt
|
@@ -21,14 +22,20 @@ def recog(img):
|
|
21 |
|
22 |
title = "ASL Fingerspelling Recognition"
|
23 |
desc = ""
|
24 |
-
input =
|
|
|
|
|
25 |
# output = gr.outputs.HTML(label="")
|
26 |
-
output =
|
|
|
|
|
27 |
# output = "text"
|
28 |
examples = [
|
29 |
-
["B_test.jpg"],
|
30 |
-
["C_test.jpg"],
|
31 |
-
["
|
|
|
|
|
32 |
]
|
33 |
|
34 |
iface = gr.Interface(
|
|
|
1 |
+
from cProfile import label
|
2 |
import cv2
|
3 |
from tensorflow.keras.models import load_model
|
4 |
import matplotlib.pyplot as plt
|
|
|
22 |
|
23 |
title = "ASL Fingerspelling Recognition"
|
24 |
desc = ""
|
25 |
+
input = [
|
26 |
+
gr.inputs.Image(type="pil", source="webcam", label="Image")
|
27 |
+
]
|
28 |
# output = gr.outputs.HTML(label="")
|
29 |
+
output = [
|
30 |
+
gr.outputs.Label(label="")
|
31 |
+
]
|
32 |
# output = "text"
|
33 |
examples = [
|
34 |
+
["images/B_test.jpg"],
|
35 |
+
["images/C_test.jpg"],
|
36 |
+
["images/L_test.jpg"],
|
37 |
+
["images/R_test.jpg"],
|
38 |
+
["images/Y_test.jpg"]
|
39 |
]
|
40 |
|
41 |
iface = gr.Interface(
|
images/A_test.jpg
ADDED
B_test.jpg → images/B_test.jpg
RENAMED
File without changes
|
C_test.jpg → images/C_test.jpg
RENAMED
File without changes
|
images/D_test.jpg
ADDED
images/E_test.jpg
ADDED
images/F_test.jpg
ADDED
images/G_test.jpg
ADDED
images/H_test.jpg
ADDED
images/I_test.jpg
ADDED
images/J_test.jpg
ADDED
images/K_test.jpg
ADDED
images/L_test.jpg
ADDED
images/M_test.jpg
ADDED
images/N_test.jpg
ADDED
images/O_test.jpg
ADDED
images/P_test.jpg
ADDED
images/Q_test.jpg
ADDED
images/R_test.jpg
ADDED
images/S_test.jpg
ADDED
images/T_test.jpg
ADDED
images/U_test.jpg
ADDED
images/V_test.jpg
ADDED
images/W_test.jpg
ADDED
images/X_test.jpg
ADDED
Y_test.jpg → images/Y_test.jpg
RENAMED
File without changes
|
images/Z_test.jpg
ADDED
images/nothing_test.jpg
ADDED
images/space_test.jpg
ADDED