

- #Ocr tool in microsoft office document imaging how to
- #Ocr tool in microsoft office document imaging pdf
- #Ocr tool in microsoft office document imaging full
#Ocr tool in microsoft office document imaging how to
If someone find this interesting, I'm still looking how to select the area of the caracter recognition.

You can also recognize character in other language, go in the MODI_TLB.pas file to know are the other supported languages by this control. Layout := IDispatch(Img.Layout) as ILayout A friendly, clear, and convenient design makes working with the application easy and understandable.
#Ocr tool in microsoft office document imaging pdf
Textual detection of a PDF document and handwritten text with further translation to 114 languages. Procedure TForm.Button1Click(Sender: TObject) ĭoc := IDispatch(CreateOleObject('MODI.Document')) as IDocument ĭoc.create(FileName) // just put here the filename of an image Accurate and fast text recognition from any image taken with a snapshot, screenshot, or chosen from the device. In the uses clause add : ComObj, MODI_TLB units.ĭrop a MiDocView object from the activeX page onto your form. After doing so, the component will be in the ActiveX Select the "Microsoft Office Document Imaging 11.0 Type Library" and click on Go in the Component menu of Delphi and select Import An activeX control. You can find some more informations on this control in : Looking after many good but not freeVCls I tried to use the Active X given with Microsoft Office named Microsoft Office Document Imaging. I was looking for nights how to do some character recognition within delphi. The simpliest wayīefore reading, please excuse me for my poor english. MODI.Word word = : How to do some character recognition in delphi. Optionally you can get only first word by using word.Text Md.OnOCRProgress += new MODI._IDocumentEvents_OnOCRProgressEventHandler(this.ShowProgress) Md.Create(FullPath) // Fill MODI.Document with my file MODI.Document md = new MODI.Document() // Create MODI.Document String txtFileName = foo.DirectoryName + "\\" + (foo.Extension,"") + ".txt" įileStream createFile = new FileStream(txtFileName, FileMode.OpenOrCreate) Public string CheckFileAndDoOCR(string directoryPath)įileInfo foo = new FileInfo(Convert.ToString(files.Current))

#Ocr tool in microsoft office document imaging full
Here is the fully working code! thanks to code just specifies a folder full of pictures and one by one does OCR scan on them. If anyone can answer any of the questions above it would be appreciated. Is there anyways to stop OCR action and deplete all objects in use? MessageBox.Show(ex.Message, "OCR Exception", MessageBoxButtons.OK, MessageBoxIcon.Information) īut MODI gives the OCR running! or Cant reach file.File is in use. Logger(LogPath, "| Exception: Source Message InnerException StackTrace | ") String LogPath = + "\\OCRTempPictures\\OCRInfo.txt" StreamWriter writeFile = new StreamWriter(createFile) Create text file with the same Image file nameįileStream createFile = new FileStream(foo.DirectoryName + "\\" + (foo.Extension,string.Empty) + ".txt", FileMode.CreateNew) MODI.Image image = (MODI.Image)md.Images If (foo.Extension = ".jpg" || foo.Extension = ".JPG") IEnumerator files = Directory.GetFiles(directoryPath).GetEnumerator() įileInfo nfo = new FileInfo(Convert.ToString(files.Current)) So far ive done this : public string CheckFilesAndDoOCR(string directoryPath)ĭirectoryPath = + "\\OCRTempPictures\\" jpg pictures in a folder and I would like to do OCR in C# serially for each of my documents in that folder.
