Jump to content

What is OCR and can it be used with Php?


Michdd

Recommended Posts

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

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).

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.

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?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.