Skip to content

Commit e177ef9

Browse files
trained another model with more data
Co-Authored-By: Tudosie Razvan <[email protected]>
1 parent 6dab83f commit e177ef9

File tree

5 files changed

+30
-11
lines changed

5 files changed

+30
-11
lines changed

AI/main.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def classify_image_huggingface(image_opencv):
5252
return result
5353

5454

55-
base_options = python.BaseOptions(model_asset_path='./AI/training/gesture_recognizer_trained_large_dataset.task')
55+
base_options = python.BaseOptions(model_asset_path='./AI/training/recent_data_gesture_recognizer.task')
5656
options = vision.GestureRecognizerOptions(base_options=base_options)
5757
recognizer = vision.GestureRecognizer.create_from_options(options)
5858
def classify_image(image_opencv):
@@ -62,14 +62,14 @@ def classify_image(image_opencv):
6262

6363

6464
if __name__ == '__main__':
65-
print(call_openai_model("HHhhhhheeeelllllloooooo"))
66-
# cap = cv2.VideoCapture(0)
67-
# w, h = 360, 240
68-
# while True:
69-
# _, img = cap.read()
70-
# img = cv2.resize(img, (w,h))
71-
# cv2.imshow("Camera",img)
72-
# if cv2.waitKey(1) & 0xFF == ord('q'):
73-
# break
74-
# print(classify_image(img))
65+
# print(call_openai_model("HHhhhhheeeelllllloooooo"))
66+
cap = cv2.VideoCapture(0)
67+
w, h = 360, 240
68+
while True:
69+
_, img = cap.read()
70+
img = cv2.resize(img, (w,h))
71+
cv2.imshow("Camera",img)
72+
if cv2.waitKey(1) & 0xFF == ord('q'):
73+
break
74+
print(classify_image(img))
7575

8.09 MB
Binary file not shown.

AI/training/script.txt

Whitespace-only changes.

AI/training/script2.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Set the directory where you want to start
2+
$startDirectory = "C:\Path\To\Your\Directory"
3+
4+
# Get all files recursively
5+
Get-ChildItem -Path $startDirectory -Recurse -File | ForEach-Object {
6+
$filePath = $_.FullName
7+
$directory = $_.DirectoryName
8+
$newName = "a" + $_.Name # Add 'a' at the start of the file name (modify as needed)
9+
$newPath = Join-Path -Path $directory -ChildPath $newName
10+
11+
# Rename the file
12+
Rename-Item -Path $filePath -NewName $newPath
13+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
1+
training data (curated):
2+
3+
4+
5+
sources:
16
https://www.cvssp.org/FingerSpellingKinect2011/fingerspelling5.tar.bz2
27
https://www.cvssp.org/FingerSpellingKinect2011/dataset9-depth.tar.gz
8+
https://www.kaggle.com/datasets/grassknoted/asl-alphabet/data

0 commit comments

Comments
 (0)