codingmasterRS Posted September 30, 2010 Share Posted September 30, 2010 Hi guys I am looking for a PHP or whatever script which will analyse a scanned in page (in now image format) and count and record to the DB which bubbles were shaded. Like a multiple choice sheet ... sort of. Any suggestions greatly appreciated, it mainly the reading of the bubbles I need help with. Thanks codingmasterRS Quote Link to comment Share on other sites More sharing options...
Namtip Posted September 30, 2010 Share Posted September 30, 2010 Can PHP do that? Quote Link to comment Share on other sites More sharing options...
codingmasterRS Posted September 30, 2010 Author Share Posted September 30, 2010 No idea which is why I am asking :-D Quote Link to comment Share on other sites More sharing options...
gizmola Posted September 30, 2010 Share Posted September 30, 2010 what is "now image format". There is absolutely nothing specific to PHP that will let you do complicated image analysis, but whatever advice I might be able to provide pretty much requires the specifics of what these images are. Quote Link to comment Share on other sites More sharing options...
codingmasterRS Posted September 30, 2010 Author Share Posted September 30, 2010 Okay so this is the process: 1) User shades the bubbles in the paper forms 2) I collect all the forms and place them in my scanner 3) They all become images (any form I am flexible on this point) stored in a folder 4) I then need PHP classes and scripts to run as a cron (or when manually set) to "read" all the images and decide on the bubbles shaded. It needs to be a PHP version of this http://www.codeproject.com/KB/showcase/SimpleOMRDotImage.aspx. As in the templates and reading the data. Quote Link to comment Share on other sites More sharing options...
gizmola Posted September 30, 2010 Share Posted September 30, 2010 When you say, any format, can you have them stored in svg format? If so, since svg is an xml format, you could use php to open the files, traverse the xml document and find out if the primitives have shading. Quote Link to comment Share on other sites More sharing options...
codingmasterRS Posted September 30, 2010 Author Share Posted September 30, 2010 yes we can do svg I believe. So how would I go about it in the case of SVG then? Quote Link to comment Share on other sites More sharing options...
codingmasterRS Posted September 30, 2010 Author Share Posted September 30, 2010 Needs to be something with a load of if statements and check if between certain x and y regions their is shading. So any ideas how to do that? Quote Link to comment Share on other sites More sharing options...
litebearer Posted September 30, 2010 Share Posted September 30, 2010 might look at http://sourceforge.net/projects/omr-ai/ Quote Link to comment Share on other sites More sharing options...
codingmasterRS Posted September 30, 2010 Author Share Posted September 30, 2010 i'll give it a go, and if you dont here from me again on it consider it solved :-D Thanks all for the help, esp to litebearer Quote Link to comment Share on other sites More sharing options...
codingmasterRS Posted September 30, 2010 Author Share Posted September 30, 2010 Actually while I am here, I am after one which will read printed bar-codes, as in these answer sheets have an identifying bar code, so it needs to read it and get the digits, any ideas how? Anyone know of any code? or another way I can do it? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.