user1264415
user1264415

Reputation: 3

Clear Text Overlay using opencv

i was wondering if there is a way to clear a text overlay using opencv. i nee to write text to the same area of the screen and it just writes over the initial overlay

Upvotes: 0

Views: 1669

Answers (1)

Eric
Eric

Reputation: 2341

You can draw a white rectangle at the place you want to write text.

cv::rectangle(image,topLeftPoint,bottomRightPoint,cv::Scalar(255,255,255),CV_FILLED);

Upvotes: 1

Related Questions