Solved

Interfacing different software using VB6.0

Posted on 2003-11-03
11
585 Views
Last Modified: 2012-06-27

Hi

Does anyone know if its possible to interface OCR and Text to voice software using VB.
I'd like to use availabe OCR and Text to voice software without having to open and start them separately
e.g. scan text using OCR then text is read back automatically using text to voice software.

I'd like to achieve this in one operation, without having to constantly be clicking icons on screen etc.

Is this possible??!!!
0
Comment
Question by:Reachtabhair
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 3
  • 2
11 Comments
 
LVL 76

Expert Comment

by:GrahamSkan
ID: 9671386
Do your chosen OCR and text-to-voice packages an API each? Or even better, do they have a COM interface? If not you might be able to use Shell or CreateProcess(), but it'll be a bit messy.
0
 
LVL 4

Expert Comment

by:PBuck
ID: 9671680
There are many OCR ActiveX controls and DLL's available out there.  One of the leading companies (IMHO) is LeadTools.  Here is a link to their OCR software OCX:

http://www.leadtools.com/SDK/Document/Document-Addon-ocr.htm

Microsoft themselves provide text to speech controls and SDK's.  One being as simply using MS Agent or more sophisticated such as ; http://216.162.203.249/speech/ordersdk.asp?EventType=hp  or
http://www.microsoft.com/speech/download/sdk51/

Hope this helps some.  It sure seems possible from within VB itself using seperate OCX and DLL's.  I honestly have not used any OCR but have played with MS Agent and it is extremely simple to use.

Good luck!
0
 
LVL 4

Accepted Solution

by:
PBuck earned 350 total points
ID: 9671749
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:Reachtabhair
ID: 9678397
Could you go a bit more into detail about  'Shell' or 'CreateProcess()' 'OCX and DLL's'???

I really dont think I can afford to actually buy one of these commercially available OCR software packages as they are way outside my budjet!!

How could I interface the OCR and text to voice software without having access to the source code
0
 
LVL 76

Expert Comment

by:GrahamSkan
ID: 9678527
Shell is a VB function. Details are in the VB Help.

e.g. Shell "MyProg.exe"
0
 
LVL 76

Expert Comment

by:GrahamSkan
ID: 9678541
The Microsoft Speech SDK (software development kit) is free.
0
 
LVL 76

Expert Comment

by:GrahamSkan
ID: 9678612
0
 
LVL 76

Expert Comment

by:GrahamSkan
ID: 9678656
OCX is the extension of files which contain components which can be added to VB programs
0
 

Author Comment

by:Reachtabhair
ID: 9678732
Is it possible to interface the OCR and text to voice software without having access to the source code?
What would be easier having the source code or not.

0
 
LVL 76

Expert Comment

by:GrahamSkan
ID: 9678752
To use a windows API, you need to declare the function and the library (DLL) that it is in. Chances are that the OCR and Speech executables rely on DLL's. The will have function calls as well, but the software provider is unlikely to tell you what they are and how to use them. However, if you do know the names of the package providers, they may provide an SDK (as with Microsoft Speech)which will give that information.
0
 
LVL 4

Expert Comment

by:PBuck
ID: 9679142
Good morning all.

To expand on what GrahamSkan had mentioned, the majority of OCX controls after installation will reside under Project -> Components (similar to adding Microsoft's Internet controls).  Then you would drag this OCX onto your form to expose the methods and properties.  Some companies provide examples and source code.

As for your question how to interface with the OCX, just like how the Textbox control exposes .Text and .BorderStyle, the OCR control may provide methods such as source, output, and color grade, etc.

If it happens to be a DLL you may have to provide a Reference to it from Project -> References.  Then you will have to create an instance of the DLL something similar to:

Private myControl as LeadToolsOCR      or ...
Private myControl as LeadToolsOCR.clsScan

Within your form load event you would perform something like so;
Set myControl = New LeadToolsOCR   'To create the instance

This process would then expose the methods for the DLL.  So after created this instance you may have events declared automatically within your form.  

Whew!  Hope this info helps some.  Thanks for the grade.  Some of the OCR samples from planet-source-code didn't use a commercial product, so along with the free speech SDK, you may get lucky and find a free OCR control.

0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month7 days, 19 hours left to enroll

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question