I have an image consisting of background image with multiple colors and text on it.
I have done OCR and i have recognised the text and bounding box surrounding the text.
Now i want to get all the pixels surrounding the text inside the bounding box and store it in a matrix.
I am using opencv for image processing and opengl for rendering (Rajawali).
Any help would be appreciated.
Thanks in advance.