Save repeatedly 5 data and do averaging after 5 frames in video processing
Hello, In a main loop opencv C++ for the video processing frame by frame, how can it possible for me to save the value for each of 5 frames and do averaging and then make decision, and then continuously process the next 5 frames and do the same thing (averaging and make decision).
In c++, i'm looking at the array method, to save the data, but i'm pretty sure I do not know how to interrupt to do something after 5 big loop and then continue with the next 5 loops. Please help if anyone have idea to do this.
Thanks Zamani