cam2web icon indicating copy to clipboard operation
cam2web copied to clipboard

add text overlay to image?

Open Obliterous opened this issue 7 years ago • 4 comments

Is it possible to add text overlay & timestamp to image/video so that multiple similar streams can be distinguished?

Obliterous avatar Jul 16 '18 08:07 Obliterous

This functionality is not there. Need to add it.

cvsandbox avatar Jul 16 '18 09:07 cvsandbox

It should be quite simple using opencv.The documentation for the specific function you need to use can be found here: https://docs.opencv.org/master/d6/d0f/structcv_1_1gapi_1_1wip_1_1draw_1_1Text.html#details

shipp02 avatar Dec 08 '19 06:12 shipp02

Some example code:

putText( image2, "OpenCV forever!", org, FONT_HERSHEY_COMPLEX, 3,Scalar(i, i, 255), 5,lineType );

It is taken from here: https://docs.opencv.org/master/de/d06/samples_2cpp_2tutorial_code_2ImgProc_2basic_drawing_2Drawing_2_8cpp-example.html#a22

shipp02 avatar Dec 08 '19 06:12 shipp02

Windows version already has this feature: https://github.com/cvsandbox/cam2web/commit/b915c73a55dc281ab3b68cdb2fae032fa2ef048a

No OpenCV needed.

cvsandbox avatar Dec 08 '19 06:12 cvsandbox