This article presents a method for reducing the number of colors in an image using K-means clustering. This is a continuation of my previously posted…

In my previous post, I talked about the Uniform Quantization algorithm, which was a simple way of reducing the colors in the image. Though it’s…

Reducing the number of colors in an image is also called Color quantization. It’s commonly used for generating GIF images which currently supports only 256…

If you divide 4 by 2 you would get 2 as the quotient, which means there are exactly two 2’s in 4. And similarly, If…

Convolution is a process used for applying general-purpose filter effects like blurring, sharpening, embossing, edge detection, and more. To understand convolutions we must first understand…

In this article, I will explain a widely used method for segmenting handwritten documents into individual lines. Below is a sample output from my algorithm.…

An important pre-processing step in any OCR tool or algorithm is to deskew the scanned document first. Take a look at the below sample scanned…

The greatest headache for any machine learning engineer is the problem of overfitting. The model we trained works perfectly on the training dataset but when…

The basic idea is to find the Xmin, Xmax, Ymin, Ymax of each identified coordinates of the contour and then create a rectangle using it.…