Questions tagged [modi]

Microsoft Office Document Imaging, an OCR library from Microsoft that comes with Office until version 2007.

64 questions
1
vote
0 answers

How can I retrieve MODI reference from COM in my application?

I got below error Retrieving the COM class factory for component with CLSID {40942A6C-1520-4132-BDF8-BDC1F71F547B} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)). How can I…
Hiren H Patel
  • 167
  • 3
  • 12
1
vote
3 answers

MODI MiSelectRects gets coordinates wrong

I have a Windows Form app that, when executed, launches Firefox, grabs the process and handle of the window, and does a screen capture of Firefox, saves it to disk (temp.bmp) and calls ProcessGetWindow. I'm basically using MiSelectRects in MODI to…
Woody
  • 1,159
  • 3
  • 15
  • 25
1
vote
2 answers

Suppress Print Dialog when printing to Microsoft Document Image Writer from Oracle BPM 10g

We have an Oracle BPM 10g activity that: Reads a form-fill protected Word document template. Merges data into the fields. Saves the merged/filled copy to the filesystem. Prints the document to a selected, pre-defined printer, OR to the default…
1
vote
2 answers

Is it possible to use MODI for OCR in a java project?

I am trying to implement OCR in my java project. I need to read text from an image. While browsing I came across lot of examples for using MODI in .NET project. Can this be done using java? If not possible can you suggest an alternate tool
soorya
  • 13
  • 2
1
vote
0 answers

Perform OCR via MODI on specific region instead of entire document

I am trying to get to perform bulk OCR on images in a selected directory via MODI. Here's the code. private void button1_Click(object sender, EventArgs e) { CommonOpenFileDialog dialog = new CommonOpenFileDialog { …
1
vote
1 answer

Why MODI doesn't let me delete the processed file?

private void button4_Click(object sender, EventArgs e) { OCR.recognize("test1.tif"); System.IO.File.Delete("test1.tif"); // <--- Problem on this line } .... public static string recognize(string filepath, MODI.MiLANGUAGES language…
John black
  • 79
  • 3
1
vote
0 answers

How to solve 'COMException not be controlled' caused by MODI (OCR reader)

I'm trying to read an image with MODI (using c#), I followed many of the links that I found on the Internet. As I can solve the problem "COMException not be controlled" by running the following code: public string reconeixNom(string filePath) { …
Pekee
  • 177
  • 1
  • 8
1
vote
1 answer

Create file with DeleteAfterOpen, and allow other process to read the file

Is it possible to create a file using the FileStream object in .net, specifying DeleteAfterClose option and allow read access to that file? I've tried using: System.IO.FileStream strBMP = new System.IO.FileStream(sFileName,…
Jeremy
  • 44,950
  • 68
  • 206
  • 332
1
vote
0 answers

OCR Error while using MODI - Sharepoint 2007

My machine has Office 2010 installed. I downloaded Sharepoint 2007 MODI for OCR. I am using VS2012. I get the following error message: An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in ImageOCR_Modi.exe Here…
1
vote
1 answer

OCR replacement for MODI

I have recently been using the builtin OCR functionality of MODI to capture text of a window. I use the window handle and could get text at any region or I could get the coordinates of specific text that I want to search for. It looks like MODI…
Jeremy
  • 44,950
  • 68
  • 206
  • 332
1
vote
0 answers

VBA - MODI OCR crashes Access

I'm trying to programmatically OCR batches of files. Microsoft Office Document Imaging (MODI) includes a decent OCR that can be controlled with VBA, but I'm running into a strange error. Microsoft provides the following code: Sub TestOCR() Dim miDoc…
1
vote
2 answers

Help with debugging COM errors? (.mdi to .pdf file conversions using Microsoft Office Document Imaging)

I thought I had a working solution for converting .mdi files to PDF using the Microsoft Office Document Imaging object model. The solution is in a Windows Service, but now I'm running into some errors that I'm having trouble tracking down info…
RyanW
  • 5,338
  • 4
  • 46
  • 58
1
vote
1 answer

Using Modi OCR To extract text from image

I Planned to use OCR in my project and searched more OCR methods and i didnt find anything correctly. And at last i heard about MODI and i tried that . But It throwing Following error: Retrieving the COM class factory for component with CLSID…
user2696179
1
vote
1 answer

Can I detect the orientation of an image with text in c# - possibly using MODI?

I have a number of documents scanned to png files. I do not know the orientation of each scan. I need to know how much to rotate them when I present them to the user; either 0, 90, 180 or 270 degrees. The documents are in English. I am using MODI…
Paul
  • 115
  • 2
  • 13
1
vote
1 answer

C# OCR tiff with MODI only ocr's the first page

I am using MODI in order to implement ocr in one of my apps and every time I feed a tiff it only ocrs the first page of the tiff for some reason. That's my code: public string OCR(string path) { try { var md = new…
user1096808
  • 253
  • 1
  • 4
  • 11