Click here to Skip to main content
15,895,509 members

Comments by SilentH11 (Top 8 by date)

SilentH11 25-Nov-21 20:27pm View    
you are very welcome!!!🤗
SilentH11 25-Nov-21 14:18pm View    
i dont find anything wrong with the code on the contrary i have seen a bunch of projects tried them and came out with the same result it always detects the picture
SilentH11 25-Nov-21 14:15pm View    
i have already thought about it the thing is smartphones now can actually differ
a picture from reality that gives me hope of finding the solution
SilentH11 5-Nov-21 5:19am View    
its ok i just solved it thanks mate for the help !!🤗🤗🤗🤗
SilentH11 5-Nov-21 5:06am View    
thanks they were helpful in getting imgRGB = cv2.cvtColor(img, cv2.COLOR_BGR2RGB) to work but still got another error:
'numpy.ndarray' object has no attribute 'hands' after trying alot more examples another error decided to show up
Traceback (most recent call last):
File "C:/Users/hamdan/PycharmProjects/Hamdan/HandTrackingMod.py", line 49, in <module>
main()
File "C:/Users/hamdan/PycharmProjects/Hamdan/HandTrackingMod.py", line 33, in main
detector = handDetector()
File "C:/Users/hamdan/PycharmProjects/Hamdan/HandTrackingMod.py", line 16, in __init__
,self.detectCon, self.trCon)
File "C:\Users\hamdan\PycharmProjects\Hamdan\venv\lib\site-packages\mediapipe\python\solutions\hands.py", line 127, in __init__
outputs=['multi_hand_landmarks', 'multi_handedness'])
File "C:\Users\hamdan\PycharmProjects\Hamdan\venv\lib\site-packages\mediapipe\python\solution_base.py", line 260, in __init__
for name, data in (side_inputs or {}).items()
File "C:\Users\hamdan\PycharmProjects\Hamdan\venv\lib\site-packages\mediapipe\python\solution_base.py", line 260, in <dictcomp>
for name, data in (side_inputs or {}).items()
File "C:\Users\hamdan\PycharmProjects\Hamdan\venv\lib\site-packages\mediapipe\python\solution_base.py", line 513, in _make_packet
return getattr(packet_creator, 'create_' + packet_data_type.value)(data)
TypeError: create_int(): incompatible function arguments. The following argument types are supported:
1. (arg0: int) -> mediapipe.python._framework_bindings.packet.Packet

Invoked with: 0.5
[ WARN:0] global D:\a\opencv-python\opencv-python\opencv\modules\videoio\src\cap_msmf.cpp (438) `anonymous-namespace'::SourceReaderCB::~SourceReaderCB terminating async callback