facetools/facegrep release

Since Jones and Viola introduced their game changing face detection algorithm in 2001, face detection has been advancing extremely fast. Similarly, face recognition has improved by leaps and bounds. Some of the standard methods found in the OpenCV API lag behind the frontier in terms of accuracy.

To make some of the more recent techniques easier to access for high-level developers,  facetools abstracts away the details of the detection and recognition methods found in dlib. It wraps two face detection algorithms from dlib (including a state of the art of the art deep learning method), and a state of the art deep learning face recogniser from dlib.

A similar face searching tool called ‘facegrep’ (inspired by the Unix grep tool) is implemented on top of the facetools framework for when you want to conveniently find friends or family in your photo albums.

[GitHub link]

C++ meta programming: recursive template functions

C++ provides a few mechanisms for meta programming through its automatic type deduction tools, and the templating engine.  This allows for example, compile time evaluation of constants, loop unpacking.

We’ll demonstrate a way to use recursive template functions to evaluate a factorial at compile time, and do loop unpacking. A rough evaluation of the efficacy of these hand micro-optimisations  is also considered.

Continue reading “C++ meta programming: recursive template functions”