Ask Your Question
0

Could you show me examples of "addText" and "displayOverlay"

asked 2013-07-18 02:30:45 -0600

JCP gravatar image

I am trying MSVS 2012 to add some texts on my video. Could anyone show me some simple example codes of "addText" and "displayOverlay" commands?

I tried a lot but all of them are failed. Is the following correct usage?

imshow("horizontal", H);
displayOverlay("horizontal", text);
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-07-18 03:59:06 -0600

berak gravatar image

updated 2013-07-18 04:05:06 -0600

you have to (re)build opencv with QT support to use those those functions.

if all you want is some text, use putText


oh, btw, the order of calls matters, too.

displayOverlay("horizontal", text); // first draw,
imshow("horizontal", H);            // then show it
waitKey(someMillis);                // imshow won't work without
edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-07-18 02:30:45 -0600

Seen: 1,784 times

Last updated: Jul 18 '13