Skip to content

H4ya/handDetectionByPy

Repository files navigation

!handDetectionByPy Hello, I'm in my summer break so I decided to kill myself by starting a new project in the AI field with 0.000% knowledge! Wish me luck!!

I just got an idea, will start recording my changes here!

6/16/2025 5:37:

  • started using "lary" (a very terrible short name for landmark array)
  • optimized the if statements for showing the points' coordinates (start using mathematical logic instead of multiple ORs)
  • rounded the z values for clear visualization

13:24

  • added a thumbs up detector (without youtube)
  • start using the range function, can't believe I forgot about it! life is easier now
  • messed up a little with the thumbs up and ok if statements(I was trying to optimize it using range), will fix it later

18:05

  • add distinguishing right 1\left 0 hands and added it as a forth dimension in lary

22:28

  • deleted unnecessary comments\code
  • fixed the thumb up state to contain right\left thumbs
  • added a range for the thumbs to be acceptable (-60,60) I'm proud and sleepy

6/20/2025 1:50 :

  • I added if statement to check the space between 4 and 5
  • I missed up something in the lines 80-87

02/07/2025 23:05 :

  • Trying to add a sound control feature cuz it looks cool
  • (one hour later) I did it it is really cool!!!
  • (+30 min) negative numbers are the worst!!!! it keeps crashing it
  • Done!!
  • deleted the thumbs up\down recognition

03/07/2025 15:33 : ! todo I want to add a virtual way to stop the code (maybe a function to type ^c in terminal)

04/07/2025 11:40 :

  • adding a line between index and thumb for more visual clarity (I failed)

04/07/2025 16:36 :

  • adding a brightness control to the right hand
  • make sure the volume will only be controlled by the left hand did it using a unique if statement ! todo search for get volume method to display it by default- Done

07/07/2025 15:50 : ! todo find\make a method to check if the fingers from the same hand

06/08/2025 20:57 : (I'm working from a plane)

  • optimized some of the functions
  • canceled the sameHand function for now (seems not important) ! todo check if the current functions are working

06/08/2025 10:24 :

  • fixing the points' x-axis --Done (turns out I used 'w-' when calculating the x-axis (I forgot for what)) ! todo add a function to kill the process when the cam is off (screen is 90% black)

19:40 :

  • created and used the functions isFurther()/Higher/sameHand to simplify the code
  • created new file for features cuz this readme is not a good space to imagine lol
  • cleaned the messy parts of the code -that ctrl the light and sound

20:14 :

  • fixed the cv2 circle issue (it was the shift=1 instead of 0)

21:05 :

  • created and used sameX/Y and pointRange functions
  • working on adding stop sign
  • sum up sameX and Y in one called sameCoord

08/08/2025 13:04 :

  • added a way to stop the camera by signaling ك in arabic sign lang
  • stuck with VideoCapture 1 not working ! add a timer before killing the process to make sure the sign was intended

10/80/2025 9:40 :

  • adding .sleep() before closing the app --Done (need optimizing) ! todo: add a window or text "r u sure u want to exit the program"
  • adding a way to stop the program if cam is black for +3 sec

10/80/2025 18:02 :

  • fixed the issue of the stopping gesture

11/08/2025 14:08 :

  • added a photo of the last frame to Identify the cause of shut down
  • added a 'finalMSG' var to contain the reason of shut down
  • added an output file to record when opened\closed, h and w of the frame
  • got it working with phones camera ! todo: decide which gesture stops the program ! add a calculation that put the messages in the corners with respect to the difference in frames h&w with different cameras ! add a way to rewrite to overwrite the output file if the date is not today-- Done

12/08/2025 12:54 : ! add a function to calc the hands\user distance to allow\prefer gestures from the ideal range\distance

#today I will be working on all the todos from the previous days so I can start working on objects by 14/08 max!

About

Hello, I'm in my summer break so I decided to kill myself by starting a new project in the AI field with 0.000% knowledge! Wish me luck!!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages