Tag Archives: OpenCV

OpenCV Python Program to analyze an image using Histogram

In this article, image analysis using Matplotlib and OpenCV is discussed. Let’s first understand how to experiment image data with various styles and how to represent with Histogram. Prerequisites: OpenCV matplotlib Importing image data import matplotlib.pyplot as plt #importing matplotlib The image should be used in a PNG file as matplotlib supports only PNG images.… Read More »

Real-Time Edge Detection using OpenCV in Python

The objective of the program given is to perform edge detection of images in real-time. In this article, the popular canny edge detection algorithm is used to detect a wide range of edges in images. OpenCV has in-built function cv2.Canny() which takes our input image as first argument and its aperture size(min value and max… Read More »

OpenCV C++ Program to blur a Video

The following is the explanation to the C++ code to blur a video in C++ using the tool OpenCV. Things to know: (1) The code will only compile in Linux environment. (2) To run in windows, please use the file: ‘blur_video.o’ and run it in cmd. However if it does not run(problem in system architecture) then… Read More »

OpenCV C++ Program to play a video

The following is the explanation to the C++ code to play a video in C++ using the tool OpenCV. Things to know: (1) The code will only compile in Linux environment. (2) To run in windows, please use the file: ‘play_video.o’ and run it in cmd. However if it does not run(problem in system architecture) then… Read More »