Aspose.OCR

Hi all,

My name is Marcio and I´m testing Aspose.OCR for my company. I´m using OCR with Visual Studio 2010 (VB) running in a Windows Xp machine.

I used the code available in help, but it is not working.

First: In the line "Using ocr.Resource" I´m receiving the error "Property Resourve is Write Only".

Second: Where is the file 3GNResources.zip ?

Thanks in advance ...

Hi Marcio,

Thanks for considering Aspose.

Please follow the guidelines and code example given in this topic http://www.aspose.com/documentation/.net-components/aspose.ocr-for-.net/perform-ocr-on-image.html

You can also download Aspose.OCR for .NET demos for Visual Studio 2010 from http://www.aspose.com/community/files/51/.net-components/aspose.ocr_for_.net/category1405.aspx

Each version of Aspose.OCR for .NET has its specific resource file which can be downloaded from http://www.aspose.com/community/files/51/.net-components/aspose.ocr_for_.net/category1404.aspx

Please feel free to contact us in case you have further comments or questions.

Best Regards,

Hello muhammad,

Please, look at the code below:

================================================================================

Dim license As Aspose.OCR.License = New Aspose.OCR.License
license.SetLicense("C:\Arquivos de Programas\Aspose\Aspose.OCR.NET\License\Aspose.Ocr.lic")

' resource file
Const resourceFileName As String = "C:\Arquivos de programas\Aspose\Aspose.OCR for .NET\Bin\2011.07.02 v1.0 Aspose.OCR.Resouces.zip"

' image document on which OCR is to be performed
Dim imageFile As String = Me.txtFilename.Text

' Initialize OcrEngine
Dim ocr As OcrEngine = New OcrEngine()

' Set the image
ocr.Image = ImageStream.FromFile(imageFile)

' Add language
ocr.Languages.AddLanguage(Language.Load("english"))

' Load the resource file
ocr.Resource = New FileStream(resourceFileName, FileMode.Open)

Try

' Process the whole image
If ocr.Process() Then
' Get the complete recognized text found from the image
Me.txtPDF.Text = ocr.Text.ToString
MsgBox("Finish !")
End If

Catch ex As Exception
Me.txtPDF.Text = "Exception: " & ex.Message

End Try

================================================================================

I prepared a .bmp file with the following text: "we are the champions".

When I try to read this file with the code above I receive this: "c3wW#MM# > m## xM xzhd".

Do you know what I´m doing wrong ?

Do you have a resource file for Brazilian Portuguese ?

Thanks in advance.

Hi Marcio,

Brazilian Portuguese is not supported at the moment but a new feature request to support this feature has been logged into our issue tracking system as OCR-29406. We will keep you updated on this issue in this thread.

Regarding other issue, can you please share your sample file or the font name and size? Arial and Times New Roman fonts and 16/32 pt font sizes are supported in the first release of Aspose.OCR for .NET. We will gradually support all fonts and sizes and some other features will also be added in the future releases.

Best Regards,

I used Arial 8pt.

I changed to Arial 24pt and the result was better.

Thanks for the support.

The issues you have found earlier (filed as OCR-29406) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.
(2)

The issues you have found earlier (filed as ) have been fixed in this Aspose.Words for JasperReports 18.3 update.