| Algorithm 1. Proposed algorithm for creating resources. |
| t = calculate_from timestamps |
| f = from_config |
| N = round_up (size(frame) + 1)/(t × f) |
| ifN > 1 then H = array (t × f) |
| elseH = array (size(frame) + 2) |
| H [0] = to_unit(frame [0]) |
| fori = 1 to size(frame) − 2: |
| ifi mod N == 0 then: |
| append(toUnit(frame[i]), H) |
| else: |
| continue |
| append(toUnit(frame[size(frame) − 1]), H) |
| createGesture (H, t) |