Find best fit rectangle based OpenCV