This is a .NET 4.6.1 C# x86 setup that uses the Emgu.net wrapper for OpenCV. The Shape Detection sample has been modified so that the parameters can be played with. If it doesn't run try getting some C++ redistributables.
Download, unzip and install Setup:
https://1drv.ms/u/s!ApAM7UwokcmouUqUXL4voWz-VIBL
Source:
https://internetsellout.visualstudio.com/DeathKing/_versioncontrol?path=%24%2FDeathKing%2FImageProcess&_a=contents
Images:
https://drive.google.com/folderview?id=0B-5QSwySLgIzd2FZSkcyQ2s5dEE&usp=sharing_eid&ts=57a0cb66
Food for thought:
https://www.packtpub.com/books/content/detecting-edges-lines-and-shapes