How to separate overlapping contours

you shouldn’t want to do that.

OCR is supposed to tolerate such occlusion.

if it can’t, it sucks and you should look for better OCR.