My project consists of a collection of video effects propagated on your live webcam feed. When I first decided to work with video, I was thinking about taking a premade video and combining all the frames into a single image as a sort of "4 dimensional image." But, as loading video into OpenCV is not particularly easy or fun, I decided, hey, let's do it live! So I adapted my idea to live video—now, taking a set of frames in the past (a segment of time) to combine and manipulate and produce the effects below in real time.
In the first set of functions (4D and 4D Delay), I use color as an "extra dimension" to show objects as they were in the past. I made two functions that do this slightly differently: one which captures the immediate past (the last X frames, seen in the leftmost image below), and one which displays past frames at a certain time delay (the other three images below).
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |