Need to read scanned data through PHP

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
sandeept
Forum Newbie
Posts: 15
Joined: Wed Sep 10, 2008 2:15 am

Need to read scanned data through PHP

Post by sandeept »

Hello,

I am looking for a script/software in PHP which would help me to read a scanned document. Something similar to OCR functionality of the scanner. But, I need to integrate it in my PHP module.

Any help would be appreciated :)

Thanks,
Sandeep
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: Need to read scanned data through PHP

Post by onion2k »

I think you'll need to explain what you want to develop in a bit more detail. What do you mean by "a scanned document" exactly? An image? Why would you want to do that with PHP?
sandeept
Forum Newbie
Posts: 15
Joined: Wed Sep 10, 2008 2:15 am

Re: Need to read scanned data through PHP

Post by sandeept »

Hi Onion2k,

Thanks for the prompt reply :)

User will scan a printed paper. I need to read text written on this paper through PHP script.

Thanks,
Sandeep
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: Need to read scanned data through PHP

Post by onion2k »

That's pretty much impossible. You probably could write some OCR software with PHP but it'd be a massive task and the final app would be horribly slow. I would recommend rethinking your entire application workflow. Why can't the user use OCR, or better yet just type in, what's on the paper?
sandeept
Forum Newbie
Posts: 15
Joined: Wed Sep 10, 2008 2:15 am

Re: Need to read scanned data through PHP

Post by sandeept »

There will be millions of records on the paper which need to be imported into MySql database.
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: Need to read scanned data through PHP

Post by onion2k »

sandeept wrote:There will be millions of records on the paper which need to be imported into MySql database.
Then PHP definitely isn't the correct solution. Try talking to a document digitising company. It'll cost a lot to get millions of documents converted to something useful, but it'd still be cheaper than writing your own solution.
Paul Arnold
Forum Contributor
Posts: 141
Joined: Fri Jun 13, 2008 10:09 am
Location: Newcastle Upon Tyne

Re: Need to read scanned data through PHP

Post by Paul Arnold »

I have absolutely no experience of this but a quick search brought it up:

http://www.phpclasses.org/browse/package/2874.html
sandeept
Forum Newbie
Posts: 15
Joined: Wed Sep 10, 2008 2:15 am

Re: Need to read scanned data through PHP

Post by sandeept »

Thanks :) I'll refer to it.
sandeept
Forum Newbie
Posts: 15
Joined: Wed Sep 10, 2008 2:15 am

Re: Need to read scanned data through PHP

Post by sandeept »

Hello,

The requirement is changed fortunately :) But, the new one is tricky too :)

I need to fire scanning functionality on a button click and scanned image should be saved on server.

Thanks,
Sandeep
Darkzaelus
Forum Commoner
Posts: 94
Joined: Tue Sep 09, 2008 7:02 am

Re: Need to read scanned data through PHP

Post by Darkzaelus »

Sounds impossible for me, unless you want to find a way using a java applet or flash. Javascript i'm sure won't cut it, and php is server side, so thats a definate no. Just get them to scan it in, and then upload it with a file field.

Cheers,

Darkzaelus.
Post Reply