Text this: Adaptive two-threshold quantization and image segmentation based on the splitting and merging areas