higashi

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...
Sponsored Links
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 pandas] Compare the Contents of Two Text Files

higashi Hi, I’m Higashi. Here’s how to compare the contents of two text files. The example reports which lines differ wh...
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 ...
Python

[Python and OpenCV] Measure the Distance Between Two Clicked Points

higashi Hi, I’m Higashi. Here’s how to measure the straight-line (Euclidean) distance between two points you click in an...
Python

[Python and OpenCV] Display the Coordinates of a Clicked Point

higashi Hi, I’m Higashi. Here’s how to display the coordinates of a point you click in an image. Let’s get started! Requ...
AI

[Python] Remove Noise From Time-Series Data

higashi Hi, I’m Higashi. While preparing data for a machine-learning model, I came across the time series below. It star...