Read text from an image with PHP

I would like to try to read some of text from an image with PHP.

So if I have an image like this:

Read text from an image with PHP

How can I extract the text "Some text" into a string.

All help and suggestions are appreciated.

-------------Problems Reply------------

The process you are looking for is called Optical Character Recognition.

There is a package available, called phpOCR, that does exactly what you need.

That's called OCR. (See ).

It's not a trival task (that's why captcha's work as good as they do).

You'd be better of googling 'OCR PHP' if you want to find solutions.

phpOCR ist not the best choice, I would recommend TesseractOCR for PHP "A wrapper to work with TesseractOCR inside your PHP scripts."

Category:php Views:0 Time:2010-01-07
Tags: image php

Related post

  • Getting the text from a drop-down box 2008-08-08

    This gets the value of whatever is selected in my dropdown menu. document.getElementById('newSkill').value I cannot however find out what property to go after for the text that's currently displayed by the drop down menu. I tried "text" then looked a

  • Multicore Text File Parsing 2008-08-10

    I have a quad core machine and would like to write some code to parse a text file that takes advantage of all four cores. The text file basically contains one record per line. Multithreading isn't my forte so I'm wondering if anyone could give me som

  • How to display unicode text in OpenGL? 2008-08-11

    Is there a good way for displaying unicode text in opengl under Windows? For example, when you have to deal with different languages. The most common approach like #define FONTLISTRANGE 128 GLuint list; list = glGenLists(FONTLISTRANGE); wglUseFontBit

  • Center text output from Graphics.DrawString() 2008-08-11

    I'm using the .NETCF (Windows Mobile) Graphics class and the DrawString() method to render a single character to the screen. The problem is that I can't seem to get it centered properly. No matter what I set for the Y coordinate of the location of th

  • How do you retrieve selected text using Regex in C#? 2008-08-12

    How do you retrieve selected text using Regex in C#? I am looking for C# code that is equivalent to this Perl code: $indexVal = 0; if($string =~ /Index: (\d*)/){$indexVal = $1;} --------------Solutions------------- int indexVal = 0; Regex re = new Re

  • Getting selected text in a browser, cross-platform 2008-08-13

    One of the things I'd like to do in my browser-based application is allow the user to select some text (not in a <textarea>, just plain ol' text!), and have my application pop up a small toolbar that then can interact with the next (in my case,

  • Formatting text in WinForm Label 2008-08-14

    Is it possible to format certain text in a WinForm Label instead of breaking the text into multiple labels? Please disregard the HTML tags within the label's text; it's only used to get my point out. For example: Dim myLabel As New Label myLabel.Text

  • Is there any kind of non text interface to MySQL? 2008-08-14

    I have a MySQL query that returns a result with a single column of integers. Is there any way to get the MySQL C API to transfer this as actually integers rather than as ASCII text? For that matter is there a way to get MySQL to do /any/ of the API s

  • How to get started with speech-to-text? 2008-08-18

    I'm really interested in speech-to-text algorithms, but I'm not sure where to start studying up on them. A bunch of searching around led me to this, but it's from 1996 and I'm fairly certain that there have been improvements since then. Does anyone w

  • Is there anyway to disable the client-side validation for dojo date text box? 2008-08-19

    In my example below I'm using a dijit.form.DateTextBox: <input type="text" name="startDate" dojoType="dijit.form.DateTextBox" constraints="{datePattern:'MM/dd/yyyy'}" value='<c:out value="${sessionScope.adminMessageForm.startDate}"/>' />

  • SQL Server Full Text Searching 2008-08-19

    I'm currently working on an application where we have a SQL-Server database and I need to get a full text search working that allows us to search people's names. Currently the user can enter a into a name field that searches 3 different varchar cols.

  • How to monitor a text file in realtime 2008-08-20

    for debugging purpose in a somewhat closed system, I have to output text in a file. Does anyone knows of a tool that runs on windows ( console based or not ) that detects changes to a file and outputs them in real-time ? --------------Solutions------

  • Getting UI text from external app in C# 2008-08-20

    Is it possible to get UI text from an external application in C#. In particular, is there a way to read Unicode text from a label (I assume it's a normal Windows label control) from an external Win32 app that was written by a 3rd party? The text is v

  • Obscuring network proxy password in plain text files on Linux/UNIX-likes 2008-08-20

    Typically in a large network a computer needs to operate behind an authenticated proxy - any connections to the outside world require a username/password which is often the password a user uses to log into email, workstation etc. This means having to

  • Cleaning up RTF text 2008-08-21

    I'd like to take some RTF input and clean it to remove all RTF formatting except \ul \b \i to paste it into Word with minor format information. The command used to paste into Word will be something like: oWord.ActiveDocument.ActiveWindow.Selection.Pa

  • Mac text/code editor 2008-08-21

    I searched for this and found Maudite's question about text editors but they were all for Windows. As you have no doubt guessed, I am trying to find out if there are any text/code editors for the Mac besides what I know of. I'll edit my post to inclu

  • What is the easiest-to-use web "rich text editor" 2008-08-21

    I am looking for a text editor to be used in a web page. Where users can format the text and get a WYSIWYG experience. Doesn't need to be too fancy. But has to be easy to use and integrate into the page. Has to generate HTML as output. Support AJAX (

  • Is there a Unix utility to prepend timestamps to lines of text? 2008-08-22

    I ended up writing a quick little script for this in Python, but I was wondering if there was a utility you could feed text into which would prepend each line with some text -- in my specific case, a timestamp. Ideally, the use would be something lik

  • Reading from text file until EOF repeats last line 2008-08-22

    The following C++ code uses a ifstream object to read integers from a text file (which has one number per line) until it hits EOF. Why does it read the integer on the last line twice? How to fix this? Code: #include <iostream> #include <fstr

  • Word Automation: Write RTF text without going through clipboard 2008-08-22

    I am trying to replace the current selection in Word (2003/2007) by some RTF string stored in a variable. Here is the current code: Clipboard.SetText(strRTFString, TextDataFormat.Rtf) oWord.ActiveDocument.ActiveWindow.Selection.PasteAndFormat(0) Is t

Copyright (C), All Rights Reserved.

processed in 0.158 (s). 11 q(s)