An OpenCV based shape detector