LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I use low level functions in ImaqOcr.dll file from Borland C++?

I want to perform OCR on images with Borland C++.
I tried to use the function OcrMgr in ImaqOcr.dll but without success (Exception reading address 0000000).
Is there any header file which describes this dll?
0 Kudos
Message 1 of 3
(2,360 Views)
I just realized (I think) that this is an IMAQ DLL. If this is in fact the case, you are not going to be able to access these functions, unless you were to happen to stumble upon the function calls.

National Instruments protects their code vehimently, as they should. You will not be able to find a header file for this DLL.

I would; however; suggest contacting NI to get some specific answers to your questions. They are very good at providing work arounds for some of these types of problems, at least most of the time...


Alternatively, if these functions are available in the IMAQ subVIs and functions, you can either just look at the code to see how to call the DLLs yourself, or build the code around the DLL into another DLL (yeah, I know...but if it
works...)
0 Kudos
Message 2 of 3
(2,360 Views)
You could create a LabVIEW ActiveX server VI which you could then call
from Borland C++. That would be the easiest way to do what you want
to do using the LabVIEW IMAQ OCR functionality without having to find,
buy, learn, and implement another OCR package.

There are also various packages available for OCR work at various
prices from free to BIG $$$$$$ which are intended more specifically
for C/C++ coders. There is a freeware Linux / UNIX project called
GOCR written in C which you may be able to port. Try going to
www.programmersheaven.com and type in OCR and you will get quite a lot
of options.

My company is using a mixture of EconOCR and LV IMAQ OCR, to handle
our OCR needs. LV IMAQ OCR is very easy to use but just not very
flexible or trainab
le. (I did come up with a neat and simple trick
using an Access database to add trainability to the LV IMAQ OCR
though.) EconOCR is more cumbersome to use but is more flexible.
There are other packages available as well.

Douglas De Clue
LabVIEW programmer
ddeclue@bellsouth.net


Labviewguru wrote in message news:<506500000005000000C1880000-1023576873000@exchange.ni.com>...
> I just realized (I think) that this is an IMAQ DLL. If this is in
> fact the case, you are not going to be able to access these functions,
> unless you were to happen to stumble upon the function calls.
>
> National Instruments protects their code vehimently, as they should.
> You will not be able to find a header file for this DLL.
>
> I would; however; suggest contacting NI to get some specific answers
> to your questions. They are very good at providing work arounds for
> some of these types of problems, at least most of the time...
>
>
> Alternatively, if these functions are available in
the IMAQ subVIs and
> functions, you can either just look at the code to see how to call the
> DLLs yourself, or build the code around the DLL into another DLL
> (yeah, I know...but if it works...)
0 Kudos
Message 3 of 3
(2,360 Views)