An OpenCV/C++ implementation of the Zhang-Suen thinning algorithm along with related pre and post processing steps.