sorry :-), by mistake 2009/8/19 Remi Thomas <[email protected]>
> > Wrong thread + .NET question > Do you expect an answer? > > On Aug 19, 2:06 pm, Mariusz Matula <[email protected]> wrote: > > found bug in DLL ? > > who can say me what is wrong here: > > with sleep works without sleep DOES NOT WORK > > for (int i = 0; i < sectionPoints.Count;i=i+2) > > { > > subImage = new Bitmap("subImage{"+i+"}.jpg"); > > subImage.SetResolution(96, 96); > > progressBar1.Value = 0; > > > > tessnet2.Tesseract ocr = new tessnet2.Tesseract(); > > if (sectionPoints[i].isDigit) > ocr.SetVariable("tessedit_char_whitelist", > > "0123456789"); // if digits only > > ocr.Init(dictionaryPath, countryType, false); > > ocr.ProgressEvent += new > > tessnet2.Tesseract.ProgressHandler(ocr_ProgressEvent); > > ocr.OcrDone = new tessnet2.Tesseract.OcrDoneHandler(Done); > > ocr.DoOCR(subImage, Rectangle.Empty); > > this.panel1.Refresh(); > > Thread.Sleep(1000); // > > ------------------------------------------------------- > > } > > ??????????????????????????? > > > > 2009/8/19 Ab <[email protected]> > > > > > > > > > Hi Remi, > > > > > Thanks for your reply. Is it relatively not that complicated if I > > > wanted to make the required changes to make the code support multiple > > > threads - handle the globals and static variables appropriately maybe? > > > > > Abhijit > > > > > On Aug 19, 1:50 pm, Remi Thomas <[email protected]> wrote: > > > > Hi, > > > > > > No, because of global variables in OCR process. > > > > > > Remi > > > > > > On Aug 19, 10:35 am, Ab <[email protected]> wrote: > > > > > > > Just FYI: I am using v 2.03 > > > > > > > On Aug 19, 12:03 pm, Ab <[email protected]> wrote: > > > > > > > > Hi, > > > > > > > > I am using Tesseract in a multi threaded mode (in C++, Windows) > i.e. > > > > > > multiple threads will be doing OCR of different images > concurrently. > > > > > > I've based my code off the tesseract.exe project. > > > > > > > > Does Tesseract support multi threads? > > > > > > > > Thanks, > > > > > > Ab > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "tesseract-ocr" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/tesseract-ocr?hl=en -~----------~----~----~----~------~----~------~--~---

