Asynchronous video capture with OpenCV and Python

Capturing a video stream from a camera in python can be done with OpenCV. However, when doing this operation on the main thread, performance won't be great, especially when capturing in HD quality. In this blog post, a solution is shown by running the video capture operation in a separate (green)…


Simple example of multithreading and multiprocessing in Python

Implementing multithreading or multiprocessing in Python is really easy. However when running a function in a thread and collect its return value, needs a trick. There are multiple solutions to do so, here is shown just one way of many possible ways. Choosing between multithreading or…


game-of-life

A C++ exercise in function pointers and concurrency

Game of Life This program shows the well known Game of Life. I've chosen this simulation as an exercise to explore: Member function pointers as argument Problem domain slicing concurrency, using all available cpu cores, without creating and destroying thread objects after each iteration. Game of…