# How would you track two average points? (Shiffman tutorial)

**URL:** <https://discourse.processing.org/t/how-would-you-track-two-average-points-shiffman-tutorial/19786>\
**Category:** Libraries\
**Created:** [April 14, 2020, 9:34pm UTC](https://discourse.processing.org/t/how-would-you-track-two-average-points-shiffman-tutorial/19786 "2020-04-14T21:34:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![samloos](https://avatars.discourse-cdn.com/v4/letter/s/7ba0ec/32.png) [@samloos](https://discourse.processing.org/u/samloos)\
**Post date:** [April 14, 2020, 9:34pm UTC](https://discourse.processing.org/t/how-would-you-track-two-average-points-shiffman-tutorial/19786/1 "2020-04-14T21:34:43Z")

</div>

Hello there!

How would you guys track two (or multiple) average points instead of one as shown in the Shiffman video below? I have tried a lot of things but cannot seem to find the solution!

Video:

[![](https://img.youtube.com/vi/Kr4s5sLoROY/hqdefault.jpg "12.4: Average Point Hand Tracking - Kinect and Processing Tutorial") ](https://www.youtube.com/watch?v=Kr4s5sLoROY&t=550s)

Code:

> **[AveragePointTracking - Pastebin.com](https://pastebin.com/azds7dez)**
>
> Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.

Thousand times thanks to whomever can help me!

---

<div class="post-metadata">

**Author:** ![Kevin](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kevin/32/2297_2.png) [@Kevin](https://discourse.processing.org/u/Kevin)\
**Post date:** [April 15, 2020, 2:05am UTC](https://discourse.processing.org/t/how-would-you-track-two-average-points-shiffman-tutorial/19786/2 "2020-04-15T02:05:56Z")

</div>

In general you’re probably looking for arrays or ArrayLists.

Shameless self-promotion:

> **[Arrays in Processing](https://happycoding.io/tutorials/processing/arrays)**
>
> Learn how to use arrays in Processing. This allows you to store multiple values in a single variable!

> **[ArrayLists](https://happycoding.io/tutorials/processing/arraylists)**
>
> Learn how to use ArrayLists in Processing.

---

<div class="post-metadata">

**Author:** ![samloos](https://avatars.discourse-cdn.com/v4/letter/s/7ba0ec/32.png) [@samloos](https://discourse.processing.org/u/samloos)\
**Post date:** [April 15, 2020, 10:20pm UTC](https://discourse.processing.org/t/how-would-you-track-two-average-points-shiffman-tutorial/19786/3 "2020-04-15T22:20:13Z")

</div>

Thank you for your response. You have a cool website and I’m going to try to look through it. However, I realize that I can use Arrays or ArrayLists to store the multiple average points. The question is how I can start tracking multiple points? How do I tell my program that if has found one average point that is to start looking for another, in a different location even when it might be close by?
