Category: Python

Contours OpenCV Python | Approximation, Contour Sorting & Hierarchy

What is Image Segmentation? What are Contours in OpenCV Python? In this blog we will learn about Both Image Segmentation and Contours in OpenCV Python. Let’s learn Contours in OpenCV Python! What are Contours? Contours are continuous lines or curves that bound or cover the full boundary of an object in an image. Contours are…
Read more

Blob Detection OpenCV Python

What is blob? How to detect blobs in an image? In this blog, we are going to learn about blob detection in OpenCV Python. Blob can be described as groups of connected pixels that all share a common property. Let’s Code Blob Detection in OpenCV Python! Blob Detection OpenCV Algorithm Read Image using OpenCV imread()…
Read more

Object Tracking OpenCV Python

Object tracking is highlighting a particular object in a live video or pre-recorded video or Image in OpenCV Python. In this blog, we are going to make an Object tracking application in OpenCV Python. Let’s Code Object Tacking OpenCV! Steps for Object Tracking/Detection Using OpenCV Make a trackbar in OpenCV for controlling the color in…
Read more

Line Detection OpenCV Python

In this article, we will learn about Line Detection in OpenCV Python. We will learn Line Detection in OpenCV using Hough Lines and Probabilistic Hough Lines. Let’s Code Line Detection in OpenCV! Line Detection Theory OpenCV The Hough Transform is a popular technique to detect any shape if you can represent that shape in a…
Read more

Mouse Events OpenCV Python

Today we will learn about Mouse Events in OpenCV Python. We will be creating a black background and on left mouse click print X and Y Co-ordinates and on right mouse click print RGB Value of that pixel. Let’s Code Mouse Events in OpenCV! Mouse Events OpenCV Algorithm Import Packages NumPy for manipulation in Color…
Read more

Background Subtraction OpenCV Python | MOG2 and KNN

Today we are going to look at how you can remove the background from an image or video frames. The method is known as background subtraction in OpenCV Python. Let’s Code it! Background Subtraction OpenCV Python Algorithm Import Packages import cv2 as cv Computer Vision and NumPy package are very important for working in OpenCV…
Read more

Trackbar OpenCV Python

Today we will make Trackbar in OpenCV Python. You can also call it Sliders. We will be creating three trackbars / Sliders in OpenCV basically for RGB ( Red, Green, and Blue) color channels. Let’s Code it! Trackbar OpenCV Algorithm Installing Packages Install OpenCV, as its the most important package for computer vision in Python.…
Read more

Motion Detection OpenCV Python

We make use of Motion Detection technology in our daily life. This feature is used in CCTV Cameras to detect any kind of motion in the video frame. In this blog, we are going to make a motion detection script using OpenCV in Python. Download Vtest.avi Motion Detection Video Download the vtest.avi from here. Steps…
Read more

Live Sketch Using OpenCV Python

Today we are going to make a Real-time/ live Sketch making script using OpenCV in Python. OpenCV makes it very easy for us to work with images and videos on the computer. We will also make use of Numpy and Matplotlib to make this live sketch app. Live Sketch Algorithm OpenCV Capturing Real-time Video from…
Read more

Image Manipulation OpenCV Python

OpenCV (tutorial) (Computer Vision) is widely used for Image Manipulation. Image manipulation OpenCV techniques help us to read different data from the image. This blog post will provide you important image manipulation techniques in OpenCV Python. Image Manipulation OpenCV Transformation, affine, and non–affine Translations Rotations Scaling, re-sizing, and Interpolations Image Pyramids Cropping Arithmetic Operations Bitwise…
Read more