The HUD sample

As defined by Wikipedia, a heads-up display, also known as a HUD, is a transparent display that presents data without requiring users to look away from the main activity. The origin of the name comes from a pilot being able to view information with their head positioned up or straight ahead, instead of looking down at some instruments.

So, to stop us from looking down into the console, I thought it would be a nice idea to see some information about our Raspberry Pi directly on the video stream.

With some help from Luca, I have created the C++ code that allows you to update the overlay pretty much on every frame using the UV4L API directly, which means hardly any CPU overhead is used.

If you feel comfortable with C++11, I have provided ...

Get Raspberry Pi 2 Server Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.