Skip to main content
. 2019 Nov 20;19(23):5060. doi: 10.3390/s19235060
Algorithm 1. Procedure to detect the smoke object in a video.
Input: A video.
Initialize: k = 1, N = 100.
While obtaining a frame from the input video do
1. using bilinear interpolation method to scale the current frame image size to 224 × 224, denoted as YkUkVk.
2. if (k > = N) then,
3. calculating the change-cumulative image of the current frame image according to formulas (1) to (4), denoted as Yk(a)Uk(a)Vk(a);
4. calculating the classification score s of the cumulative image after fusion deep network;
5. If (s > 0.5), then
6. outputting the alarm signal of smoke object;
7. End if
8. End if
9. caching images YkUkVk and Yk(a)Uk(a)Vk(a);
10. k = k + 1;
end while