cvsandbox / cam2web

Streaming camera to web as MJPEG stream or individual JPEG snapshots. Providing embedded web UI for watching camera directly from a web browser.
http://www.cvsandbox.com/projects/cam2web/
GNU General Public License v2.0
186 stars 72 forks source link

add text overlay to image? #5

Open Obliterous opened 6 years ago

Obliterous commented 6 years ago

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

cvsandbox commented 6 years ago

This functionality is not there. Need to add it.

shipp02 commented 4 years ago

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 commented 4 years ago

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

cvsandbox commented 4 years ago

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

No OpenCV needed.