Here is an image cut from CCTV video and I would like to extract the time stamp from the snapshot. OpenCV/Tesseract/python are the tools for this job:

the difficulty here is the complex background so that even I binarize the picture with a median filer (opencv) and the ocr result is still very bad. Of course, I can apply specific customized thresholds but here I got 2 issues:
- how can I handle the characters with both white and black?
- Is there a way (some ways) to give a more general thresholds for these kinds of picture?
Maybe my idea for handling the pre-processing here is not correct. It seems not an easy job to pre-process this kind of image before sending into Tesseract. Any hints and idea is thankful.