I dont know whether should I post this question here or not? But if someone knows it, please answer?
What are the algorithms for determining which region in an image is
first step would probably be to isolate the sharper contrast between text and image. This can be done by taking the derivative of the image. This will show the change in color and the high values would most likely then be compared to textual shapes