473,326 Members | 2,805 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

OCR with MODI

Hi!

I'm using MODI activex from Microsoft Office 2003 and Microsoft VB.NET to
get the text from an OCR acquired image.

Why after OCR the image, the MODI component rotate the image?

Sometimes the MODI rotates the image 90 degrees and the OCR, obviously, can'
t do its job. Any ideia why this is happening?

There is my code:

Dim miDoc As MODI.Document

Dim miWord() As MODI.Word

Dim strWordInfo As String

Dim i, j As Long

Dim str As String

Dim Cont As Long

Dim IMG As Long

miDoc = New MODI.Document

miDoc.Create("C:\MultiPage.tif")

str = ""

Cont = 0

IMG = miDoc.Images.Count - 1

miDoc.OCR(MiLANGUAGES.miLANG_ENGLISH, True, True)

For j = 0 To IMG

miDoc.Images(j).rotate(0)

For i = 0 To miDoc.Images(j).Layout.Words.count - 1

ReDim Preserve miWord(Cont)

miWord(Cont) = miDoc.Images(j).Layout.Words(i)

Cont += 1

Next

Next

For i = 0 To miWord.Length - 1

str = str & " " & miWord(i).Text

Next

miDoc.Close(False)

miWord = Nothing
--
Cumprimentos,
David de Passos
--------------------------------------------------------------
RCSOFT, Lda.
E-Mail: pa****@rcsoft.pt
Móvel: +351 966931639
Telefone: +351 239708708
Fax: +351 239708701
Tel. Directo: +351 239708705 ext. 401
Nov 21 '05 #1
3 12193
* "David de Passos" <pa****@rcsoft.pt> scripsit:
[...]

Please don't multipost.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #2
Sorry but is URGENT!! :(

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
* "David de Passos" <pa****@rcsoft.pt> scripsit:
[...]

Please don't multipost.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #3
* "David de Passos" <pa****@rcsoft.pt> scripsit:
Sorry but is URGENT!! :(


I assume that every question posted to this group is urgent...

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: RicercatoreSbadato | last post by:
Is there a way to use the MODI OCR component in an application on a system whitout Office 2003? Which DLL have I to copy? tnx ;)
0
by: David de Passos | last post by:
Hi! I'm using MODI activex from Microsoft Office 2003 and Microsoft VB.NET to get the text from an OCR acquired image. Why after OCR the image, the MODI component rotate the image? ...
0
by: | last post by:
Hello I have a MODI (Microsoft Office Document Imaging) document and I want to show thumbnails form all the pages in the document on a form. How can i put a MODI-Image into a Picturebox using...
0
by: Pedro Hurtado | last post by:
I am using (Microsoft Office Document Imaging 11.0 Type Library) and I have the following problem: The method (Microsoft Office Document Imaging 11.0 Type Library) of the interface IImage me an...
1
by: Tod Birdsall | last post by:
I am using Microsoft Office Document Imaging (MODI) with great success. However, when execute the following code, I get the error "The process cannot access the file 'myFile.tif'" (File name has...
1
by: hangdee | last post by:
I am trying to use MODI (Microsoft Office Document Imaging) viewer control in my VB 2005 application. But when I drag the MODI viewer control into my form, it prompts that "Failed to import the...
0
by: fyderniX | last post by:
Hey; I'm using the Document Imagine API from Office 2003. I need to get away from the proprietary MDI/TIFF formats it produces. It looked pretty simple, but it's giving me grief when I try to...
0
by: surezu sanmugam | last post by:
Hi all, i have to developing a document processing project using microsoft office document imaging(MODI) library in visual studio 2005. My problem is when i adding MODI viewer control to the...
2
by: sphinney | last post by:
Hi everyone. I have a form in my Access 2007 database with a Microsoft Office Document Imaging Viewer Control 12.0 object on it. The object is named "GRAPHIC_mdv". When the form opens I want to...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.