Skip to content

Commit 8e769f7

Browse files
First_order_filtering
1 parent c0ac4d6 commit 8e769f7

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ dataset.zip
66
dataset_bkup.txt
77
hand_tracking.zip
88
trained_200.h5
9+
oh2k19-2019-12-14_13.04.07.mp4

run1.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,16 +74,16 @@
7474
pred = mdl.predict(inp)
7575
val = np.argmax(pred[0])
7676
# print("Predicted values is :"+chr(65+val))
77-
if(len(predict)<30):
77+
if(len(predict)<20):
7878
predict.append(chr(65+val))
79-
if(len(predict)==30):
79+
if(len(predict)==20):
8080
del predict[0]
8181
predict.append(chr(65+val))
8282
a = Counter(predict)
8383
next_char = list((a.most_common())[0])
8484
count = next_char[1]
8585
next_char = next_char[0]
86-
if(count>=20):
86+
if(count>=15):
8787
if(next_char != present):
8888
k.append(next_char)
8989
present = next_char

0 commit comments

Comments
 (0)