How to read digits from an image?

This is a discussion on How to read digits from an image? within the C# Programming forums, part of the General Programming Boards category; Hi all! I am preparing to start an advanced C# Contest on C# Home . The contest will be to ...

  1. #1
    Registered User
    Join Date
    Oct 2001
    Posts
    104

    Question How to read digits from an image?

    Hi all!

    I am preparing to start an advanced C# Contest on C# Home .

    The contest will be to read digits from an image, so I am making research on the topic, so I can provide the contestants with some useful material which they can use when solving the problem.

    Any of you has any idea how is this done? Any advices?
    You can read more about this contest here

    Thanks!
    Ilia Yordanov,
    http://www.cpp-home.com ; C++ Resources

  2. #2
    and the Hat of Clumsiness GanglyLamb's Avatar
    Join Date
    Oct 2002
    Location
    between photons and phonons
    Posts
    1,109
    As stated in the linked thread, if the font size is defined, the font itself is defined and the color where the digits are being displayed in, then it isnt too difficult (I mean the logic behind it not the coding itself), background color really doesnt care too much...

    My approach at this without any search on this subject would be to just create a 2D array which would represent the pixels that would make up the digit, all the other digits around them filling the array would be "donŽt cares"....

    Suppose a digit consists of 100 pixels in total , if my program would count something like 75 % of the digits then iŽd consider it being whatever digit it should represent...

    A problem I think IŽd run into is speed of the algo, since I would examine every single pixel in the image for like 100 times easily when a digit would consist of 100 pixels....

    Anyway it looks like a great thing to code, although i would not participate in the contest or anything since I dont like deadlines ( I get them too much during the schoolyear )

    -Ganglylamb.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. "sorting news" assignment
    By prljavibluzer in forum C Programming
    Replies: 7
    Last Post: 02-06-2008, 05:45 AM
  2. Reading color tiff images?
    By compz in forum Game Programming
    Replies: 1
    Last Post: 11-20-2003, 11:48 PM
  3. Changing a treeview item's image
    By SMurf in forum Windows Programming
    Replies: 0
    Last Post: 01-14-2003, 06:08 PM
  4. How to change a mouse cursor in console mode
    By GaPe in forum Windows Programming
    Replies: 10
    Last Post: 07-03-2002, 07:42 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21