For text detection, I split the entire image for better results (all those images with the same dimensions having overlapping) and generate its mask(Binary image) and merge those split images into one full image(with the dimension of the original image).
image: Full image split images masked binary image
now I used to merge all these images, but the overlapped image where the text not detected removes the white patch in the image full merged mask image.
In order to overcome this issue I came to know about the stitching image in OpenCV, hence I used this link for stitching imagehttps://www.pyimagesearch.com/2018/12/17/image-stitching-with-opencv-and-python/#pyi-pyimagesearch-plus-pricing-modal, but this code doesn't work for a binary image. Is it possible to stitch binary image with overlapping in OpenCV?