The camera delivers a continuous stream of pictures. These are then processed by the main program and directly sent to the flask web server. The main program runs on C++, while the server has a python backend. This problem is solved with a named pipe on the operating system level.
The server opens a pipe on which the main program connects to and sends the images. These pictures are stored in a server-side FIFO until they get shown on the web interface to create a fluent stream of images.