At 00.43 -0500 03-03-11, Carl West wrote:
Take Seb's plan and modify it slightly:

Have a list of rects, one for each checkbox on the form. Be sure each rect is big enough to handle variations in the printing and scanning of the form. If you can, be sure the form is designed with these problems in mind (lots of white space around the check boxes).

Cycle through the list of rects and use them in place of 'startImg.rect' in line 2 of the second section of Seb's averaging technique (below) to look at each rect and see if it is dark enough to be considered marked.

It would be a very good idea to have a portion (or two or three) of the form that is supposed to be white, then you can check those first and use the result for a reference. If someone copies the form on a crappy copier or colored paper, you want to be able to handle it.

- Carl

I don't think the reference is needed. The checkboxes always come in pairs: one checked and one unchecked. It's sufficient to compare those to see which one is darker.


-A.


[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]

Reply via email to