I am trying to repair image contains letters each letter split into two halves from the middle.
original Image
After Applying the following code:
gray = cv2.cvtColor(cropped_bot, cv2.COLOR_BGR2GRAY)
new_img = ((gray >= 230)*255).astype('uint8')
bottom_image = 255-new_img
My Problem is to fix the line that split the letters into two part.
I have tried adaptiveThreshold
cv2.adaptiveThreshold(gray, 255, cv2.ADAPTIVE_THRESH_MEAN_C, cv2.THRESH_BINARY, 15, 2)
But it doesn't help. How I can solve this