Thank you for good explanation how to detect and count opened fingers. Just that looked for.. But something with annotate() in second example: Traceback (most recent call last): File "/mnt/vega/home/storage/_prg/__python/ocv/bleedai/./bleedai_countFingers02.py", line 315, in frame = annotate(frame, results, fingers_statuses, count, display=False) NameError: name 'fingers_statuses' is not defined fingers_statuses filled correctly, as I could see with first example
This is really appreciable. Very good explanation and code works actually as elaborated. I cannot get the way ROI calculation with hand_index * width/2. Why do we actually need this part. Hand_index, does it denotes left / right hand or finger up / down ? Appreciate some clarification. I already subscribed your channel. Waiting for more amazing and nicely elaborated contents
Thank you for the appreciation, hand_index is the index of the hand we are iterating upon, it will be 0 for the first hand and 1 for the other one. Using this number while selecting the ROIs to annotate, allows us to select a different region for each hand. As you do not want the same region for both hands to avoid overlap of the handprints.
Traceback (most recent call last): File "C:\Users\admin\Desktop\textpy\hand\main.py", line 367, in frame = annotate(frame, results, fingers_statuses, count, display=False) File "C:\Users\admin\Desktop\textpy\hand\main.py", line 310, in annotate ROI[alpha_channel == 255] = hand_imageBGR[alpha_channel == 255] IndexError: boolean index did not match indexed array along dimension 1; dimension is 267 but corresponding boolean dimension is 400 How should I fix this error?
Awesome , just loved the idea of showing a colored hand on the screen
Thanks
Excellent explanation and very good examples!
Nice content
Thank you
Thank you for good explanation how to detect and count opened fingers. Just that looked for..
But something with annotate() in second example:
Traceback (most recent call last):
File "/mnt/vega/home/storage/_prg/__python/ocv/bleedai/./bleedai_countFingers02.py", line 315, in
frame = annotate(frame, results, fingers_statuses, count, display=False)
NameError: name 'fingers_statuses' is not defined
fingers_statuses filled correctly, as I could see with first example
This is really appreciable. Very good explanation and code works actually as elaborated. I cannot get the way ROI calculation with hand_index * width/2. Why do we actually need this part. Hand_index, does it denotes left / right hand or finger up / down ? Appreciate some clarification. I already subscribed your channel. Waiting for more amazing and nicely elaborated contents
Thank you for the appreciation, hand_index is the index of the hand we are iterating upon, it will be 0 for the first hand and 1 for the other one. Using this number while selecting the ROIs to annotate, allows us to select a different region for each hand. As you do not want the same region for both hands to avoid overlap of the handprints.
@@BleedAIAcademy Can we read #multipleHand (3, 4, ...), sir?
Great content, i need one help from your side can you?
Thanks Hammad and I do offer 1 on 1 support here: pensight.com/x/tahaatbleedai
What algorithm is used in this project ?
Traceback (most recent call last):
File "C:\Users\admin\Desktop\textpy\hand\main.py", line 367, in
frame = annotate(frame, results, fingers_statuses, count, display=False)
File "C:\Users\admin\Desktop\textpy\hand\main.py", line 310, in annotate
ROI[alpha_channel == 255] = hand_imageBGR[alpha_channel == 255]
IndexError: boolean index did not match indexed array along dimension 1; dimension is 267 but corresponding boolean dimension is 400
How should I fix this error?
Hi 普通科学人 , please make sure that the dimensions of the ROI, alpha_channel, and hand_imgBGR are the same.
how can I download the code? the website won't work
Where is the previous class link??
Hi Shruti, You can find all our tutorials related to the Mediapipe in this list: ruclips.net/video/I2TiDdPlOSk/видео.html
Great work
The code file does not include the code for counting fingers
Hi Thanks, btw the notebook actually has that code.