Research Article
Football Player Posture Detection Method Combining Foreground Detection and Neural Networks
Algorithm 1
Pixel classification for sample consistency.
| | Input: current input frame pixel | | | Output: the foreground/background label of | | (1) | initialize related variable (nCounts = 0, i = 0) | | (2) | while | | (3) | | | (4) | if | | (5) | goto wrongMatch; | | (6) | | | (7) | if | | (8) | goto wrongMatch; | | (9) | nCounts++; | | (10) | wrongMatch; | | (11) | i++; | | (12) | if | | (13) | is foreground | | (14) | else | | (15) | is background |
|