I have the following image of a table
I want to remove the background colors (blue, grey, white) and also reduce noise. I want to remove only the colors and I don't want to remove the table and text. After removing the background colors I will process it to OCR to extract the table with the text. (I want to extract the table contents including the text). I have Mathpix, a LaTeX OCR, but it is not able to recognize my image, so I want to remove the background color and reduce noise and then process OCR. So I want something like this, for example;
I tried Adobe Free Online Transparent Background Maker and Background Remover and I also tried vectorize the image but it gave me poor, unsatisfactory results. So how to remove background color and noise from a text image or any other alternative solution? Thanks in advance!
EDIT: I found a similar question on stack overflow remove background color in image processing for ocr, but the solutions are programming-based.