Skip to main content

Posts

Showing posts from September, 2020

Video motivation example of Opencv GStreamer HLS video stream output

 This video is a motivation example of how to build OpenCV C++ application that uses the GStreamer pipeline and produces your processed video as HLS stream. This video is describing many problems to reach the goal. You can follow my recommendation and try to build such an app by yourself. I mentioned all the troubles during the dev and the rest is almost easy.  There will be more video tutorials in more detail about this topic.  1. Install OpenCV 4.4 with GStreamer. I already have materials for this.  2. Setup nginx to expose your web with HLS video playlist and video segments.  3. Write your application on Windows and stream the video to a simple website This is the example of Opencv GStreamer HLS output stream to web

Opencv 4 C++ Tutorial simple Background Subtraction

Opencv tutorial C++ Background substraction This method is used to learn what belongs to the background of the image and what belongs to the foreground. The static cameras that monitor the area can very easily recognize, what is part of the image that is always here or there is something that is new and moving over the background.  Background subtraction Visual studio 2019 project setup If you have Opencv 4+ compiled or installed only steps you need to do is set the include directory with OpenCV header files. Set the Additional library Directories that point to \lib folder. Just note that Visual Studio 2019 should use VC16 \lib. Finally, As additional dependencies, specify the libs used to resolve the function implementation in the code. The list for Opencv 420 is here. The different version of opencv is using different numbering for example opencv 440 will use opencv_core440.lib.  opencv_bgsegm420.lib opencv_core420.lib opencv_videoio420.lib opencv_imgproc420.lib opencv_highgui420.