Text this: Adaptive Refinement of Segmented Object Contour Based on the Brightness of Neighboring Pixels Using the Ensemble Method