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)…


Video art - Sandrine

Sometimes, it is nice to look back in time. In September 2013, on the last day of "Magneet festival" in Amsterdam, a selected group of artists showed their short movies. I was one of the lucky ones who's movie was selected for the performance. The performance in itself was quite unique. The…


Network crawler

Holywood style artwork of a network crawler. Run Full Screen


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…


Fun with FFT

For a project I work on, the designer had the idea of having real-time sound waves on the background of the application. Challenge accepted! See below the result of the first prototype. The current implementation measures the energy of sound by doing fast Fourier transformations and sum the…


Intel Python Distribution

Intel provides an high performance python distribution that integrates seamless into Anaconda. You'll see performance gains when using packages like pandas, numpy, scikit-learn and more. Intel provides a downloadable package that installs in the OS on system level. However, I prefer to install it…


Creating Tensorflow C++ headers and libraries for macOS

Note: this is an updated post for Tensorflow 1.6.0   I had some tough times in finding out how to prepare a Tensorflow library package that you can use in your own cmake projects. Tensorflow uses bazel as build system and does not provide a build target yet for creating the necessary C++…


Deep Dream in HD

Around may 2015, a researcher at Google, Alexander Mordvintsev, took a deep network meant to recognize objects in an image, and instead used it to *generate new objects in an image. The internet quickly exploded after seeing one of the images it produced. Soon after, Google posted a blog entry on…


Generative Adversarial Network (GAN / VAEGAN)

The Generative Adversarial Network (GAN) is a relatively new Machine Learning architecture for neural networks, first introduced by Ian Goodfellow et al at the University of Montreal in 2014 [1]. It is an unsupervised, generative learning machine that has not the luxury of having labeled samples,…


L-Systems

L-systems are a mathematical formalism proposed by the biologist Aristid Lindenmayer in 1968 as a foundation for an axiomatic theory of biological development. More recently, L-systems have found several applications in computer graphics [Smith 1984; Prusinkiewicz and Hanan 1989; Prusinkiewicz and…