File tree Expand file tree Collapse file tree 5 files changed +30
-11
lines changed Expand file tree Collapse file tree 5 files changed +30
-11
lines changed Original file line number Diff line number Diff 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' )
5656options = vision .GestureRecognizerOptions (base_options = base_options )
5757recognizer = vision .GestureRecognizer .create_from_options (options )
5858def classify_image (image_opencv ):
@@ -62,14 +62,14 @@ def classify_image(image_opencv):
6262
6363
6464if __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
Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 1+ training data (curated):
2+
3+
4+
5+ sources:
16https://www.cvssp.org/FingerSpellingKinect2011/fingerspelling5.tar.bz2
27https://www.cvssp.org/FingerSpellingKinect2011/dataset9-depth.tar.gz
8+ https://www.kaggle.com/datasets/grassknoted/asl-alphabet/data
You can’t perform that action at this time.
0 commit comments