| Input: Image , initialized |
| Output: Multitask face spoof attack detection model. |
(1) | Local model learning: |
(2) | Extract LBP features of and get ; |
(3) | Compute feature similarities with (15); |
(4) | for all each task do |
(5) | Compute with (12); |
(6) | Compute with (13); |
(7) | Compute with (10); |
(8) | Compute with (14); |
(9) | Compute with (11); |
(10) | Compute ; |
(11) | Update and with (1); |
(12) | Solve dual problem with (3); |
(13) | end for |
(14) | Global model learning: |
(15) | Train the multi-task model with (4); |
(16) | return The multi-task model; |