OpenCV

Python

[Python and OpenCV] Display the BGR Value of a Pixel You Click

higashi Hi, I’m Higashi. Here’s how to display the BGR (blue, green, and red) values of a pixel you click in an OpenCV i...
Python

[Python and OpenCV] Convert a Grayscale Image to Pseudocolor

higashi Hi, I’m Higashi. Here’s how to convert a grayscale image to pseudocolor with Python and OpenCV. Original graysca...
Python

[Python and OpenCV] Count Objects in an Image

Hi, I’m Higashi. Here’s how to count objects in an image with Python and OpenCV. Let’s get started! How the object count...
Sponsored Links
AI

[Python and OpenCV] Extract Every Frame From a GIF or MP4

higashi Hi, I’m Higashi. Here’s how to save every frame of a video as a separate image. I’ll start with the clip below. ...
Python

[Python and OpenCV] Measure an Angle by Clicking Three Points

higashi Hi, I’m Higashi. Here’s how to measure an angle in an image by clicking three points, as shown in the video belo...
Python

[Python and OpenCV] Scale an Image Around a Selected Point

higashi Hi, I’m Higashi. Here’s how to zoom in or out around a point you choose in an image. The clip below shows the ef...
Python

[Python and OpenCV] Overlay a Transparent Matplotlib Plot on an Image

higashi Hi, I’m Higashi. Here’s how to overlay a Matplotlib plot on an image while making the plot’s white background tr...
Python

[Python and OpenCV] Composite an Image Onto a New Background

higashi Hi, I’m Higashi. Here’s how to composite one image onto another with Python and OpenCV. Left: the background ima...
Python

[Python and OpenCV] Replace a Selected Color in an Image

higashi Hi, I’m Higashi. Here’s how to replace a color in an image without recoloring the whole image. In this example, ...
AI

[Python and OpenCV] Split an Image Into a Grid

higashi Hi, I’m Higashi. Here’s how to split an image into a grid of smaller images. Original image Image split into til...
AI

[Python and OpenCV] Add Adjustable Noise to an Image

higashi Hi, I’m Higashi. Here’s how to add adjustable noise to an image using Python and OpenCV. The example above uses ...