Prasad Naik has Published 74 Articles

Detecting contours in an image using OpenCV

Prasad Naik

Prasad Naik

Updated on 17-Mar-2021 08:50:38

522 Views

In this program, we will detect contours in an image. Contours can be explained simply as a curve joining all the continuous points having the same color or intensity. The contours are a useful tool for shape analysis and object detection and recognition.Original ImageAlgorithmStep 1: Import OpenCV. Step 2: Import ... Read More

Loading and displaying an image using the Pillow library

Prasad Naik

Prasad Naik

Updated on 17-Mar-2021 08:46:35

139 Views

In this program, we will read or load an image using the pillow library. The pillow library consists of a method called Image.open(). This function takes the file path or the name of the file as a string. To display the image, we use another function show(). It does not ... Read More

Cropping an image using the Pillow library

Prasad Naik

Prasad Naik

Updated on 17-Mar-2021 08:46:10

188 Views

In this program, we will crop an image using the Pillow library. We will use the crop() function for the same. The function takes left, top, right, bottom pixel coordinates to crop the image.Original ImageAlgorithmStep 1: Import Image from Pillow. Step 2: Read the image. Step 3: Crop the image ... Read More

Rotating an image using Pillow library

Prasad Naik

Prasad Naik

Updated on 17-Mar-2021 08:45:51

689 Views

In this program, we will rotate an image using the pillow library. The rotate() function in the Image class takes in angle of rotation.Original ImageAlgorithmStep1: Import Image class from Pillow. Step 2: Open the image. Step 3: Rotate the image. Step 4: Display the output.Example Codefrom PIL import Image ... Read More

Performing binary thresholding on an image using OpenCV

Prasad Naik

Prasad Naik

Updated on 17-Mar-2021 08:44:44

585 Views

In this program, we will perform binary thresholding on an image using openCV.Thresholding is a process in which the value of each pixel is changed in relation to a threshold value. The pixel is given a certain value if it is less than the threshold and some other value if ... Read More

Performing inverse binary thresholding on an image using OpenCV

Prasad Naik

Prasad Naik

Updated on 17-Mar-2021 08:44:08

1K+ Views

In this program, we will perform inverse binary thresholding on an image using openCV. Thresholding is a process in which the value of each pixel is changed in relation to a threshold value.The pixel is given a certain value if it is less than the threshold and some other value ... Read More

Performing truncate thresholding on an image using OpenCV

Prasad Naik

Prasad Naik

Updated on 17-Mar-2021 08:43:20

643 Views

In this program, we will perform truncate thresholding on an image using openCV. Thresholding is a process in which the value of each pixel is changed in relation to a threshold value.The pixel is given a certain value if it is less than the threshold and some other value if ... Read More

Performing zero thresholding on an image using OpenCV

Prasad Naik

Prasad Naik

Updated on 17-Mar-2021 08:42:20

410 Views

In this program, we will perform zero thresholding on an image using openCV. Thresholding is a process in which the value of each pixel is changed in relation to a threshold value. The pixel is given a certain value if it is less than the threshold and some other value ... Read More

Performing inverse zero thresholding on an image using OpenCV

Prasad Naik

Prasad Naik

Updated on 17-Mar-2021 08:41:43

208 Views

In this program, we will perform inverse zero thresholding on an image using openCV. Thresholding is a process in which the value of each pixel is changed in relation to a threshold value. The pixel is given a certain value if it is less than the threshold and some other ... Read More

Finding edges in an image using Pillow

Prasad Naik

Prasad Naik

Updated on 17-Mar-2021 08:37:53

1K+ Views

In this program, we will find the edges in an image using the pillow library. The FIND_EDGES function in the ImageFilter class helps us to find the edges in our image.Original ImageAlgorithmStep 1: Import Image and ImageFilter from Pillow. Step 2: Open the image. Step 3: Call the filter function ... Read More

Advertisements