Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6964611
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T15:56:47+00:00 2026-05-27T15:56:47+00:00

I need to write an OCR program for digits only. I will use MNIST

  • 0

I need to write an OCR program for digits only. I will use MNIST datasets. The problem is I do not know where to start. There are a lot of papers which doesn’t really explain the algorithm. I don’t really have much knowledge about pattern recognition. So I have a few questions.

Q1 : Where can I find the algorithm (or a tutorial)
Q2 : How do I classify digits? I don’t need very advanced things. First thing that comes to my mind is finding the ratio of upper half/lower half and left side/ right side. Is there more useful and easy classification methods.
Q3 : What is back propagation and the layers which is shown in most of the papers. Do I need them for my simple OCR.

Note: I know my OCR program won’t be accurate. It isn’t very important for now.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T15:56:48+00:00Added an answer on May 27, 2026 at 3:56 pm

    If the closest engineering library to you has a section on image processing, computer vision, or machine vision, then with luck that library will have a copy of a book I recommend for OCR:

    Character Recognition Systems by Cheriet, Kharma, Liu, and Suen

    This book provides a fairly comprehensive overview of OCR techniques and recent research. It does not go into great depth on any particular subject, but it does provide references to academic papers.

    Make sure you have access to a good introductory textbook on image processing. The book by Gonzalez and Woods is a standard in many universities:

    Digital Image Processing by Gonzalez and Woods

    Even “simple” OCR gets tricky very quickly. It could be overwhelming if you jump into a class about neural networks, Bayes theorem, etc., before you have a firm grasp of basic image processing principles.

    If you can, try writing one or more OCR algorithms for machine-printed characters before you attempt to write an algorithm for handwritten characters.

    Q1 : Where can I find the algorithm (or a tutorial)

    There are numerous algorithms for OCR. The Cheriet book will give you a good start.

    Q2 : How do I classify digits? I don’t need very advanced things. First thing that comes to my mind is finding the ratio of upper half/lower half and left side/ right side. Is there more useful and easy classification methods.

    Try implementing that technique and see how well it works. Even if the implementation doesn’t work as well as you’d like, lessons learned while implementing it could help you later.

    You can also subdivide a character into a 2 x 2 grid or 3 x 3 grid and check for relatively densities of pixels. Unlike machine printed characters, handwritten characters won’t line up nicely in rectilinear grids.

    Template matching using normalized correlation is simple, and it can work reasonably well for machine printed characters for a single, known font. It’s relatively simple to implement and worth learning:
    http://en.wikipedia.org/wiki/Cross-correlation#Normalized_cross-correlation

    For OCR it’s common to thin the characters in your sample as an initial step. Thinning is a technique to reduce a character (or any other shape) to a representation that is 1 pixel wide. Once you have a thinned character it can be easier to identify lines and intersections. If you can identify lines (or curves) and intesections, then one technique is to look at the relative position and angle of each line with respect to the others.

    Common thinning algorithms include Stentiford and Zhang-Suen. There’s a freeware version of WinTopo that demonstrates both of these algorithms:
    http://wintopo.com/

    You can look into academic papers about “stroke extraction”, but those techniques tend to be more difficult to implement.

    Q3 : What is back propagation and the layers which is shown in most of the papers. Do I need them for my simple OCR.

    These terms refer to artificial neural networks. For a simple OCR algorithm you’ll hard-code the recognition logic OR use simple training methods. Artificial neural networks can be trained to recognize characters that aren’t hard-coded in your software.
    http://en.wikipedia.org/wiki/Neural_network

    Although you don’t need to learn about artificial neural network to write a simple OCR algorithm, a simple algorithm will have only limited success with handwritten characters.

    Above all, keep in mind that OCR for handwritten characters is an extremely difficult problem. If you could achieve a handwritten character read rate of 20% with a simple technique, then consider that a success.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to write a program used internally where different users will have different
I need write a program to resize other program's windows, what I know is
I need write a program on Mac OS X to manage some number of
I need to write a program for someone to enter 5 numbers from 10
I use node.js for a while, now I need write an add-on, but I
I need write an update statement that used multiple tables to determine which rows
I need to write a Java Comparator class that compares Strings, however with one
I need to write a Delphi application that pulls entries up from various tables
I need to write a web application using SQL Server 2005, asp.net, and ado.net.
I need to write a java script. This is supposed to validate if the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.