Computer Vision

Histogram Equalization OpenCV

Histogram Equalization OpenCV

In this OpenCV Tutorial, you’ll learn how to perform histogram equalization in OpenCV Python. Histogram equalization is used in image processing for contrast adjustment. I highly recommend you get the “Computer Vision: Models, Learning, and Inference Book” to learn computer vision. In the following example, I will use this image. Output:

Template Matching

Template Matching in OpenCV

In this OpenCV Tutorial, you’ll learn how to perform template matching in OpenCV Python. I highly recommend you get the “Computer Vision: Models, Learning, and Inference Book” to learn computer vision. We will use the following two images for template matching. Output:

Edge Detection OpenCV

Edge Detection OpenCV

In this OpenCV Tutorial, you’ll learn how to implement edge detection in OpenCV Python. I highly recommend you get the “Computer Vision: Models, Learning, and Inference Book” to learn computer vision. These two following edge-detection algorithms are available in OpenCV. We will implement both algorithms on the following image and see their results. Canny Edge Detection Sobel …

Edge Detection OpenCV Read More »

Face Detection using OpenCV Python

Face Detection using OpenCV Python

In this article, you’ll see face detection using OpenCV in Python. You have to follow these steps to detect faces. I highly recommend you get the “Computer Vision: Models, Learning, and Inference Book” to learn Computer Vision. Step 1: Import Libraries Import the required Libraries. Step 2: Read an Image Read an image from the location. In …

Face Detection using OpenCV Python Read More »

How to rotate an image in Pillow Python

How to rotate an image in Pillow Python

In this article, you’ll see how to rotate an image in Pillow Python. To rotate an image you have to specify the angle of rotation. Output: Rotate an Image with expand parameter Output: Recommendation: Computer Vision: Models, Learning, and Inference Book

PIL image crop

How to crop an image in PIL (Pillow Python)

In this article, you’ll see how to crop an image in PIL Python. To crop an image you have to specify the exact position (points). In the following example, (0,0) is the start point, and (500, 300) is the endpoint. Output: Recommendation: Computer Vision: Models, Learning, and Inference Book

How to save an image in Pillow Python

How to save an image in Pillow Python

In this article, you’ll see how to save an image in Pillow Python. To read and save an image you just need to change the name and location of the image. Output: Recommendation: Computer Vision: Models, Learning, and Inference Book

PIL image resize

How to resize an image in PIL (Pillow Python)

In this article, you’ll see how to resize an image in the PIL Python module. You can specify the width and height according to your requirement. In the following example, “cats.jpg” is the name of an image. Recommendation: Computer Vision: Models, Learning, and Inference Book

How to find the mode and type of an image in PIL

How to find the mode and type of an image in PIL (Pillow)

In this article, you’ll see how to find the mode and type of an image in the PIL module. You just have to change the name and location of the image. Output: RGB <class ‘PIL.JpegImagePlugin.JpegImageFile’> Recommendation: Computer Vision: Models, Learning, and Inference Book

PIL image size

How to find the PIL image size

In this article, you’ll see how to find the PIL image size in Python. You just have to use the following code. I highly recommend you get the “Computer Vision: Models, Learning, and Inference Book” to learn Computer Vision. Output: (1279, 711)