Re: Poor man's OCR: need performance improvement tips

2005-09-25 Thread tvrtko . sokolovski
Imagine a large matrix with dimensions [W,H], and a lots of smaller matrices with dimensions [p,q1], [p,q1], [p,q2], [p,q1], ... I have to slide a small window [p,q] horizontally over a larger matrix. After each slide I have to compare smaller matrices with the data from larger matrix (as defined b

Re: Poor man's OCR: need performance improvement tips

2005-09-24 Thread John J. Lee
"qvx" <[EMAIL PROTECTED]> writes: [...] > 4. Process each line: compare pixels of each letter of alphabet with > corresponding pixels in line of input picture. This consists of loops > comparing pixel by pixel. This is my performance bottleneck. > > I'm using PIL for initial image processing. But

Re: Poor man's OCR: need performance improvement tips

2005-09-24 Thread D.Hering
I thought I should correct and clarify the use of EMSL (even though this isn't specific toward your request, qvx.) http://esml.itsc.uah.edu/index.jsp It's more for data format recognition and conversion. Here's a description from the site. The sw was developed for earth science, but is very usefu

Re: Poor man's OCR: need performance improvement tips

2005-09-24 Thread D.Hering
I'm working on essentially the same thing for a real-time context. No formal schema developed yet, but I know that I'll be using some combination of the following: ADaM, ESML (Binary data format unification...xml config), Numarray/Scipy, Pytables (DataBase), PIL, Cairo (svg), and MatPlotlib. -- h

Re: Poor man's OCR: need performance improvement tips

2005-09-24 Thread qvx
I also have 0 OCR experience, but the case is simple enough. I know about scipy but I have 0 experience with it. I was actually hoping somebody who knows about it might have some recipe. I also tried psyco, but unfortunetly, the speedup is only few percent. I will check out ADaM's site. I was h

Re: Poor man's OCR: need performance improvement tips

2005-09-24 Thread Alex Stapleton
On 24 Sep 2005, at 19:14, qvx wrote: > Hi all, > > > 4. Process each line: compare pixels of each letter of alphabet with > corresponding pixels in line of input picture. This consists of loops > comparing pixel by pixel. This is my performance bottleneck. > > I'm using PIL for initial image p

Re: Poor man's OCR: need performance improvement tips

2005-09-24 Thread D.Hering
Hi Take a look at ADaM's image processing functionality. I'd also suggest seeing if Numarray of Scipy can be utilized. Here's ADaM's site. I'm sure your familiar with the others mentioned. http://datamining.itsc.uah.edu/adam/ hth, Dieter -- http://mail.python.org/mailman/listinfo/python-list

Poor man's OCR: need performance improvement tips

2005-09-24 Thread qvx
Hi all, I have a performance problem in my app. It is a poor man's version of OCR app. I started this app as a prototype before implementing it in C++. But now, after I have a working copy in Python, I don't feel like doing the job again in C++. A speed improvement of at least 5 times would be nec