Skip to main content
. 2021 Feb 6;21(4):1155. doi: 10.3390/s21041155
Algorithm 3 Algorithm for pattern matching.
Input:PT1,PT2,PT3,PT4,PT5,PT6,PT7,PT8
Input: hand pattern as T at current frame
  1: for i each pattern of templates do
  2:  calculate HP=T∧(PT1∨PT2∨..PT8)
  3:  if HP = 1 then
  4:   set pattern match
  5:  else
  6:   set pattern does not match
  7:  end if
  8: end for