Analyze only a portion of a photo

2011-06-28 Thread deangr...@gmail.com
Scenario: We have 7000+ electric meters being changed out, and while changing them out we are taking a picture of the new meter beside the old meter to capture the previous reading. We are looking for a way to extract the meter number from all 7000 pictures programmatically. I have gotten as far

Re: Analyze only a portion of a photo

2011-06-29 Thread deangr...@gmail.com
Update: on a batch of 60 meters, I was able to get 46 meters recognized. First i ran a batch that runs tesseract on every .tif, and names the output .txt. Then, I simply wrote a batch script to compare a text file of known meter numbers against every tesseract output file using findstr. The result

Re: Analyze only a portion of a photo

2011-06-29 Thread deangr...@gmail.com
Correction. The line that reads: The results show up as .tif:.txt. Should be: The results show up as .tif:. For example, the sample file submitted in the parent thread would have a result like so: CIMG0005.tif:76 207 799 -- You received this message because you are subscribed to the Google Gro

Re: Analyze only a portion of a photo

2011-06-29 Thread patrickq
Hi Dean, Scanning numbers like this works well under our ScanBizCards application - perhaps we can help you out? If your operating context is a mobile app, ScanBizCards has a "remote control" interface designed to help any app with OCR needs get it done at near zero efforts, whereby your app could

Re: Analyze only a portion of a photo

2011-06-29 Thread 8flm6
Hello, The Tesseract API provides a SetRectangle() method, to limit the character recognition to a certain area. If all of your images look nearly the same (new electric meter on the lower left side and the old on the right), you could define a static region of interest which generously covers the

Re: Analyze only a portion of a photo

2011-06-30 Thread deangr...@gmail.com
This SetRectangle() method is intriguing. Could you give me an example on how to implement it? 95% of the new meters are on the left half of the picture. Thanks! On Jun 29, 1:53 pm, 8flm6 <8f...@gmx.de> wrote: > Hello, > > The Tesseract API provides a SetRectangle() method, to limit the > chara

Re: Analyze only a portion of a photo

2011-07-01 Thread 8flm6
Take a look at TessBaseAPI::TesseractRect(). This is basically a convinience method which wraps up the calls for you. In the first step set the image you want to work on. All you need is a pointer to your image data ,the dimensions of your image (width, height), the size of one pixel in bytes (whic

Re: Analyze only a portion of a photo

2011-07-02 Thread John Brohan
dear 8flm6 Thanks for your helpful information. The case I am interested in uses bright 7 segment display of a series of numbers. The quality of the photographer is unpredictable. I would like to throw away all the surrounding words and clutter on the screen and send just these numbers to the OCR s

Re: Analyze only a portion of a photo

2011-07-03 Thread 8flm6
Hello John, could you provide an example image on which you want to apply Tesseract? I personally have not much experience with images of 7-segment displays, but I know that you're not the first who brought up this question here in the group. I think Tesseract will have some trouble with 7-Segment

Re: Analyze only a portion of a photo

2011-07-03 Thread Dmitri Silaev
Using SetRectangle() as a fruitful approach but it needs a whole lot of preparation. The problem you've stated is not an easy one - it's about automatic text extraction from loosely defined photographic images. It involves detecting the ROI (region of interest) having some predefined features from

Re: Analyze only a portion of a photo

2011-07-12 Thread deangr...@gmail.com
I guess I don't know how to call the SetRectangle() method. I am in a Windows environment, and have only been dabbling with Tesseract for about 2 weeks now. As-is, I have gotten up to about 80% success rate in extracting meter numbers. I have over 6000 meters to go, so anything better than 80% w