Changed variables such as perimeter_threshold, area_thresh, and quality level to make the code work better at competition