I have this picture:
As you can see, some lines are not connected. These lines were drawn using semantic segmentation. What I want is to connect these lines, because I cannot improve my model any more. I was looking through cv2 ways to deal with this but couldn't find a way. Any help will be appreciated.