Sign in

Student of Computer Science.

While trying to develop an OCR system for low-resolution images, I realized the shortcomings of the pre-trained tesseract models. For this reason, I decided to train it using my own data. Unfortunately, resources on how to do this on the internet are few and far between, and the ones you can find are not very detailed and are hard to understand for people with less experience. This is a detailed guide on how to set up the image files and train a custom tesseract model.

Steps involved:

  • Gathering and naming image files.
  • Generating Box files.
  • Annotating Box files.
  • Training Tesseract.

Gathering and naming image files.

The first…


About a month ago, I had to develop a software that compares pictures and checks if they are the same person. After scouring the internet for tutorials on how to do this, I gave up and decided to do it on my own. I decided to write this blog post to help out anyone who needs to implement facial similarity in their project.

Steps involved:

  • Extracting the face using a hog detector.
  • Computing embeddings for the given face.
  • Finding the euclidean distance between the 2 faces to check similarity.

Extracting the face.

Given an input picture, we must first locate the face that is present…

Sai Ashish

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store