vb.net example code

Oct 11, 2011 at 6:57 PM

Could someone give me a VB example of how to use puma to OCR an image, Img:

Dim Img As New Bitmap(128, 20)

And send the output string to a textbox. 

Next question: I understand that I need the Puma.Net.dll and puma.interop.dll in the directory containing the built project executable and add a reference to puma.net.dll. Do I also need to register the COM server? Would the COM server need to be registered on any computer where the solution is deployed? Bear with me I'm very new to programming and don't really understand a lot of this.

Thanks for any help....

May 2, 2012 at 1:42 AM

THIS WORKED FOR ME

Dim pumaPage As New PumaPage(PictureBox.Image)

Dim result As String

result = pumaPage.RecognizeToString 

pumaPage.FileFormat = PumaFileFormat

.RtfAnsi

pumaPage.EnableSpeller =

False

pumaPage.Language =

PumaLanguage.English

Textbox.Text = result