Are there any free OCR libraries that work with PHP or Python on a Linux server? The idea is to be able to upload an image and pull out characters from it, or allow users to “draw characters”, and parse them out of said image.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Since you’re on a Linux box, I would highly recommend Google’s open source project ocropus.
It’s not PHP, but I think it will be your best option. Of course you can call it from within PHP via
exec. Its mature and has a lot of options. From the project site:There is also another open source project, tesseract. I’ve used this in the past as well and have been pleased with the results. Includes training, limiting your alphabet, etc.