| Algorithm 2 Algorithm for straight index finger detection. |
| Input: range of as and |
| Input: range of as and |
| Input: index finger joints as |
| 1: for i each joint of index finger do |
| 2: for j = 0 to 180 do |
| 3: compute as the Hough transform of each j degree |
| 4: end for |
| 5: calculate intersection of and |
| 6: if and then |
| 7: set index finger straight |
| 8: else |
| 9: set index finger not straight |
| 10: end if |
| 11: end for |