higashi

AI

[AI] Run a Trained MLP With NumPy Matrix Multiplication

higashi Hi, I’m Higashi. Keras and PyTorch are commonly used to build deep learning models. In Keras, you can run a trai...
AI

[AI] Get the Weights and Biases of a Trained Keras MLP

higashi Hi, I’m Higashi. Here’s how to retrieve the weights and biases of a trained multilayer perceptron (MLP) built wi...
Python

[Python] Find the Intersection of Two Lines

higashi Hi, I’m Higashi. Here’s how to estimate the coordinates where two lines intersect. Start with the coordinates of...
Sponsored Links
Python

[Python] Calculate the Distance Between Two Points With numpy.linalg.norm

higashi Hi, I’m Higashi. Here’s how to calculate the distance between two points with Python and NumPy. This straight-li...
AI

[Python] Downsample Time-Series Data

higashi Hi, I’m Higashi. Here’s how to resample time-series data at a larger, regular interval. The example uses linear ...
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] Make an Amida Lottery Game

higashi Hi, I’m Higashi. Here’s how to make an animated Amida lottery in Python. Amida is a ladder lottery often used in...
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...
AI

[Python] Reorder or Shuffle an Array

higashi Hi, I’m Higashi. Here’s how to reorder a NumPy array using a list of indexes. The same technique also lets you s...
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. ...