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 Link to comment https://forums.phpfreaks.com/topic/214795-shaded-bubble/ Share on other sites More sharing options...
Namtip Posted September 30, 2010 Share Posted September 30, 2010 Can PHP do that? Link to comment https://forums.phpfreaks.com/topic/214795-shaded-bubble/#findComment-1117452 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 Link to comment https://forums.phpfreaks.com/topic/214795-shaded-bubble/#findComment-1117466 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. Link to comment https://forums.phpfreaks.com/topic/214795-shaded-bubble/#findComment-1117471 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. Link to comment https://forums.phpfreaks.com/topic/214795-shaded-bubble/#findComment-1117475 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. Link to comment https://forums.phpfreaks.com/topic/214795-shaded-bubble/#findComment-1117509 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? Link to comment https://forums.phpfreaks.com/topic/214795-shaded-bubble/#findComment-1117511 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? Link to comment https://forums.phpfreaks.com/topic/214795-shaded-bubble/#findComment-1117607 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/ Link to comment https://forums.phpfreaks.com/topic/214795-shaded-bubble/#findComment-1117611 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 Link to comment https://forums.phpfreaks.com/topic/214795-shaded-bubble/#findComment-1117622 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? Link to comment https://forums.phpfreaks.com/topic/214795-shaded-bubble/#findComment-1117623 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.