Blending of two images A really powerful function for collaging and compositing in OpenCV is addWeighted(). When we want to combine photos, we combine layer masks and gradients, it’s laughably easy to create stunning looking composited that are actually very easy to…
Blurring Image Using OpenCV
Blurring an image In blurring, we simple blur an image. An image looks sharper or more detailed if we are able to perceive all the objects and their shapes correctly in it. For example. An image with a face looks…
Save Webcam Video to a File
Write webcam video to file: In this example a VideoCapture object is used to capture the webcam video to frames then a VideoWriter object is used to write frames to file. The constructor of this class requires output filename, codecs,…
Working with Trackbar in OpenCV
Thresholding of image using trackbar: Trackbars are very useful on lots of occasions. It enables users to change various parameters while the OpenCV application is running. Simple Use of Trackbars Whenever you change the position of a trackbar, the value…
Displaying Webcam Video
Displaying the frames of webcame using videocapture: In this tutorial, I am going to take video output from the webcam. The opencv handles it quite easily with FFMPEG support. The code shown below will take the videos directly from the…