There is a picture:
Need to get only the text. The text is black, grey or dark-grey colour, my idea is that want to use opencv to process the image to "remove" those parts which do not fall into the range of "gray-black", and then run the converted image through the text recognition algorithm. I want to ask two questions: 1) I Know that cv2 has a method inRange, which you can pass a range of colors, but do not know how to specify those colors (grey, dark grey) that I need. 2) Prompt, what generally it is better to use the approach of pre-processing? I am sure there are options better than mine.