T O P I C R E V I E W |
Bo.Palmblad |
Posted - Aug 31 2012 : 23:39:45 I can't figure out how to be able to change language from say ENLISH to "german" between two OCR scans? This should be happening during RUNTIME, scanning any language is no problem!!
No matter how I do it, I just can't make it work. I always get a crash of different kind.
Anyone that have a suggestion..
/Bosse
after this i found a solution..........
ChDir(MainPath); // Ensure that path is program dir Screen.Cursor := crHourglass;
// Setup language i want right now Case AdvOfficeRadioGroup1.ItemIndex of 0 : e_OCR := IEVisionLib.createOCR(':ENG'); // english language 1 : e_OCR := IEVisionLib.createOCR('swedish'); // english language 2 : e_OCR := IEVisionLib.createOCR('german'); // english language End;
// perform OCR, as done in example!! SetOCRParams(); ocrrect := ImageEnVect1.SelectedRect; memo1.Lines.Text := e_OCR.recognize(ImageEnVect1.IEBitmap.GetIEVisionImage(),IEVisionRect(ocrrect.x, ocrrect.y, ocrrect.width, ocrrect.height)).c_str(); e_OCR:=nil;
Regards Bosse |
1 L A T E S T R E P L I E S (Newest First) |
xequte |
Posted - Sep 06 2012 : 15:03:29 Thanks Bosse,
We'll improve the example code in the documentation.
Nigel Xequte Software www.xequte.com nigel@xequte.com
|
|
|