Michdd Posted December 13, 2008 Share Posted December 13, 2008 I know OCP is some type of image reader. And I need something that will work with php and allow me to read certain parts of an image, and I don't know if that's possible. For example, it would be able to read an image with several lines of text, and I need it to read those, and separate them. Is this possible? Link to comment https://forums.phpfreaks.com/topic/136785-what-is-ocr-and-can-it-be-used-with-php/ Share on other sites More sharing options...
genericnumber1 Posted December 13, 2008 Share Posted December 13, 2008 OCR (optical character recognition) isn't a library or anything like that... it's a technique. You can, for instance, use GD to pick up a pixel's color, but you would have to write the OCR library yourself. I don't know of any existing libraries (edit: that's not to say you couldn't use an existing non-php OCR program through system calls). Link to comment https://forums.phpfreaks.com/topic/136785-what-is-ocr-and-can-it-be-used-with-php/#findComment-714398 Share on other sites More sharing options...
Michdd Posted December 13, 2008 Author Share Posted December 13, 2008 OCR (optical character recognition) isn't a library or anything like that... it's a technique. You can, for instance, use GD to pick up a pixel's color, but you would have to write the OCR library yourself. I don't know of any existing libraries (edit: that's not to say you couldn't use an existing non-php OCR program through system calls). So do you have any idea how I would exactly go about getting information saved in variables from an image such as I want? There are say 5 lines of text, I want to get each separate line saved in a separate variable. Link to comment https://forums.phpfreaks.com/topic/136785-what-is-ocr-and-can-it-be-used-with-php/#findComment-714399 Share on other sites More sharing options...
Michdd Posted December 13, 2008 Author Share Posted December 13, 2008 I looked into it, and it seems like you can make some kind of library using imagecolorat(); but that seems like it would be very complicated, is there a easier way, or does anyone know if there is already a library such as this made? Link to comment https://forums.phpfreaks.com/topic/136785-what-is-ocr-and-can-it-be-used-with-php/#findComment-714406 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.