# Hand Tracking Project

**URL:** <https://forum.opencv.org/t/hand-tracking-project/3984>\
**Category:** Uncategorized\
**Created:** [June 23, 2021, 2:13pm UTC](https://forum.opencv.org/t/hand-tracking-project/3984 "2021-06-23T14:13:41Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![rashmi004](https://avatars.discourse-cdn.com/v4/letter/r/e8c25b/32.png) [@rashmi004](https://forum.opencv.org/u/rashmi004)\
**Post date:** [June 23, 2021, 2:13pm UTC](https://forum.opencv.org/t/hand-tracking-project/3984/1 "2021-06-23T14:13:41Z")

</div>

```nohighlight
    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](https://github.com/aisociety-in/write_on_air/blob/main/write_o_air.py)

---

<div class="post-metadata">

**Author:** ![crackwitz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/crackwitz/32/14_2.png) [@crackwitz](https://forum.opencv.org/u/crackwitz)\
**Post date:** [June 23, 2021, 3:45pm UTC](https://forum.opencv.org/t/hand-tracking-project/3984/2 "2021-06-23T15:45:22Z")

</div>

( same as [Tracking feature using optical flow](https://forum.opencv.org/t/tracking-feature-using-optical-flow/3987) )

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.

---

<div class="post-metadata">

**Author:** ![rashmi004](https://avatars.discourse-cdn.com/v4/letter/r/e8c25b/32.png) [@rashmi004](https://forum.opencv.org/u/rashmi004)\
**Post date:** [June 23, 2021, 3:59pm UTC](https://forum.opencv.org/t/hand-tracking-project/3984/3 "2021-06-23T15:59:32Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![rashmi004](https://avatars.discourse-cdn.com/v4/letter/r/e8c25b/32.png) [@rashmi004](https://forum.opencv.org/u/rashmi004)\
**Post date:** [June 23, 2021, 4:05pm UTC](https://forum.opencv.org/t/hand-tracking-project/3984/4 "2021-06-23T16:05:07Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![crackwitz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/crackwitz/32/14_2.png) [@crackwitz](https://forum.opencv.org/u/crackwitz)\
**Post date:** [June 23, 2021, 4:31pm UTC](https://forum.opencv.org/t/hand-tracking-project/3984/5 "2021-06-23T16:31:09Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![berak](https://avatars.discourse-cdn.com/v4/letter/b/85f322/32.png) [@berak](https://forum.opencv.org/u/berak)\
**Post date:** [June 24, 2021, 9:18am UTC](https://forum.opencv.org/t/hand-tracking-project/3984/7 "2021-06-24T09:18:24Z")

</div>

@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))`

---

<div class="post-metadata">

**Author:** ![rashmi004](https://avatars.discourse-cdn.com/v4/letter/r/e8c25b/32.png) [@rashmi004](https://forum.opencv.org/u/rashmi004)\
**Post date:** [June 25, 2021, 7:13pm UTC](https://forum.opencv.org/t/hand-tracking-project/3984/8 "2021-06-25T19:13:55Z")

</div>

Do anyone have any idea about - You need configured Python 2 SDK to render [Epydoc](http://epydoc.sourceforge.net/) docstrings

---

<div class="post-metadata">

**Author:** ![berak](https://avatars.discourse-cdn.com/v4/letter/b/85f322/32.png) [@berak](https://forum.opencv.org/u/berak)\
**Post date:** [June 26, 2021, 10:57am UTC](https://forum.opencv.org/t/hand-tracking-project/3984/9 "2021-06-26T10:57:25Z")

</div>

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

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