Hand Tracking Project

    mask = cv2.line(mask, (a, b), (x, y), (0, 0, 255), 6)
cv2.error: OpenCV(4.5.2) :-1: error: (-5:Bad argument) in function 'line'
> Overload resolution failed:
>  - Can't parse 'pt1'. Sequence item with index 0 has a wrong type
>  - Can't parse 'pt1'. Sequence item with index 0 has a wrong type

I am getting this error while try to run the hand tracking code.
code details - write_on_air/write_o_air.py at main · aisociety-in/write_on_air · GitHub

( same as Tracking feature using optical flow )

can you at least ask a question? this post is incredibly lazy. you’re expecting help for free. you could act like you would appreciate it.

1 Like

Thanks for the comment.
If you don’t wanna help then you can just ignore the post.

If i would have understand that i would have done by myself. I tried googling it , reaching to the person but didn’t get luck

again was searching into google and found this forum. thought it might be helpful.

Anyways got a warm welcome. Thanks

What’s your problem @crackwitz ? we are trying to learn something !!!

and if we are getting an error it’s our right to ask

And no problem is small or big. We are just getting started … !! If you just can’t help then don’t criticize as well.

well then, the error message says it doesn’t like the types so you could check the types of (a, b), (x, y),, right?

2 Likes

@Nik1991 circle() expects integer coords so go and find out, what x,y,a,b really are (e.g. type(x))
and if nessecary cast to int, like (int(a), int(b))

Do anyone have any idea about - You need configured Python 2 SDK to render Epydoc docstrings

@rashmi004 , please don’t post to unrelated topics,

and no we cannot help you with arbitrary python problems (off-topic)