graham23s Posted December 28, 2009 Share Posted December 28, 2009 Hi Guys, From my initial search i know this isn't the easiest of things to do I am coding up a small game for my mates little boy, it's guess the numbers etc with each number on a seperate .jpg, the part i am doing just now is the AI (in it's basic form) of the computer player, they are white text on a black background, i was wondering how hard it would be to code in PHP to read that number? it's not a captcha or anything just basic number, plus double figure number would have 2 numbers on it, a bit more difficult. is there any tutorials or anything i could read up on, reading images? thanks for any help guys Graham Link to comment https://forums.phpfreaks.com/topic/186487-reading-a-basic-image/ Share on other sites More sharing options...
JAY6390 Posted December 28, 2009 Share Posted December 28, 2009 If you are generating the images, couldn't you just save the values in a session variable of what the numbers are and then make the computer "guess" correctly based on a random value Link to comment https://forums.phpfreaks.com/topic/186487-reading-a-basic-image/#findComment-984810 Share on other sites More sharing options...
Buddski Posted December 28, 2009 Share Posted December 28, 2009 There is a PHP class for OCR which I believe will read basic numbers but it might take a bit of work.. Is there any specific reason you are using pictures as apposed to styled tags? Link to comment https://forums.phpfreaks.com/topic/186487-reading-a-basic-image/#findComment-984862 Share on other sites More sharing options...
graham23s Posted December 28, 2009 Author Share Posted December 28, 2009 Hi Guys, I was looking at it as more of a challenge to myself to see if i could do it lol, i usaualy get there in the end with programming tasks, but the more i read it looks like it might be a lot of wasted time in the end eh? thanks guys Graham Link to comment https://forums.phpfreaks.com/topic/186487-reading-a-basic-image/#findComment-984996 Share on other sites More sharing options...
Buddski Posted December 28, 2009 Share Posted December 28, 2009 Nothing is impossible.. It depends on how much you like this kid Link to comment https://forums.phpfreaks.com/topic/186487-reading-a-basic-image/#findComment-984997 Share on other sites More sharing options...
graham23s Posted December 28, 2009 Author Share Posted December 28, 2009 lol that is a very good point hehe, i think i might just finish watching the bond movie and leave this till next year lol thanks guys Graham Link to comment https://forums.phpfreaks.com/topic/186487-reading-a-basic-image/#findComment-985011 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.