OpenCV Shape Detect Prototype