Re: identifying text chars in an image

2019-10-29 Thread Phil Davis via use-livecode
Thanks for your great ideas Hermann. In my next experiment I think I'll start by looking for any scrabble tile by looking for its [known] background color, and then work out to its edges. That should give me both the grid cell size and a starting point for discovering all cells in the grid.

Re: identifying text chars in an image

2019-10-28 Thread hh via use-livecode
> Phil D. wrote: > So maybe I should first be asking about detecting the grid > established by the scrabble letters. You need some criteria to find the topleft of the grid and the size of one letter: color/transparency/a marker(fixed image part)... You could also use pattern recognition for

Re: identifying text chars in an image

2019-10-28 Thread Phil Davis via use-livecode
One thing I found is when I cropped my test image to include only one horizontal word, tesseract handled that fine. So... if I could detect the grid pattern in which all the letters are laid out, maybe I could feed the letters to an OCR tool one word or char at a time and get the results I'm

Re: identifying text chars in an image

2019-10-28 Thread Phil Davis via use-livecode
Thanks for the followup on this. I experimented some with tesseract and came to the same conclusion. Since the values assigned to each character are standard wthin Scrabble, I don't really need to detect those tiny numerals. But the alpha chars are of course essential. I believe there must

Re: identifying text chars in an image

2019-10-28 Thread hh via use-livecode
After a second read I think it will be hard to find a service to do that for you. And this is not doable using tesseract or similar from LiveCode: AFAIK, no "ordinary" OCR software is able to detect and read horizontal *and* vertical text and distinguish clearly between the board's "Score text"

Re: identifying text chars in an image

2019-10-28 Thread Phil Davis via use-livecode
Thanks Richmond and hh - really appreciate these ideas. I'll be looking into them. Phil On 10/28/19 7:26 AM, hh via use-livecode wrote: There are also emscripten ports to javascript you could use via a browser widget (and a CDN if online). https://tesseract.projectnaptha.com

Re: identifying text chars in an image

2019-10-28 Thread hh via use-livecode
There are also emscripten ports to javascript you could use via a browser widget (and a CDN if online). https://tesseract.projectnaptha.com https://antimatter15.com/ocrad.js/demo.html ___ use-livecode mailing list use-livecode@lists.runrev.com Please

Re: identifying text chars in an image

2019-10-28 Thread hh via use-livecode
The sample stack "DePerspective/Undistort Images 1.0.1" http://livecodeshare.runrev.com/stack/824/DePerspective-Undistort-Images-1-0-1 uses for a given image tesseract if installed on the system (mac/win/linux). ___ use-livecode mailing list

Re: identifying text chars in an image

2019-10-28 Thread Antti Ilola via use-livecode
Is this any help. https://github.com/tesseract-ocr/tesseract Antti ma 28. lokak. 2019 klo 11.38 Richmond Mathewson via use-livecode ( use-livecode@lists.runrev.com) kirjoitti: > Well, that'd involve some sort of OCR . . . So you've either got to wrap > some code up from elsewhere, or roll your

Re: identifying text chars in an image

2019-10-28 Thread Richmond Mathewson via use-livecode
Well, that'd involve some sort of OCR . . . So you've either got to wrap some code up from elsewhere, or roll your own OCR routine in LiveCode. Tough call. On Mon, Oct 28, 2019, 9:45 AM Phil Davis via use-livecode < use-livecode@lists.runrev.com> wrote: > I want to [programmatically] take a