Adding script to use ar to detect text and segment.
Better start for segment_by_ar
initial contains method
Improvement to formation of masks
Loosened conditions on cc containment.