Research Article

Exploiting Offloading in IoT-Based Microfog: Experiments with Face Recognition and Fall Detection

Algorithm 1

Algorithm for offloading decision.

 Input: a new block of data composed with images or coordinates
1 while do
2  if firstExecution then
3    ;
4    ;
5    ;
6    ;
7  else
8    ;
9    ;
10    if then
11     ;
12     ;
13    else
14     ;
15     ;
16    end
17  end
18 end