'Declaration
Public NotInheritable Class GdPictureOCR
public sealed class GdPictureOCR
public class GdPictureOCR sealed;
public sealed class GdPictureOCR
public __gc __sealed class GdPictureOCR
public ref class GdPictureOCR sealed
'Declaration
Public NotInheritable Class GdPictureOCR
public sealed class GdPictureOCR
public class GdPictureOCR sealed;
public sealed class GdPictureOCR
public __gc __sealed class GdPictureOCR
public ref class GdPictureOCR sealed
Dim caption As String = "Example: GdPictureOCR class" Using gdpictureOCR As GdPictureOCR = New GdPictureOCR() 'Set up your prefered parameters for OCR. gdpictureOCR.ResourcesFolder = "\GdPicture.Net 14\redist\OCR" gdpictureOCR.AddLanguage(OCRLanguage.English) 'Set up the image you want to process. 'Run the OCR process. Dim resID As String = gdpictureOCR.RunOCR() If gdpictureOCR.GetStat() = GdPictureStatus.OK Then 'Check the results. Dim wordCount As Integer = gdpictureOCR.GetWordCount(resID) 'Continue ... Else MessageBox.Show("The OCR process has failed with the status: " + gdpictureOCR.GetStat().ToString(), caption) End If 'Continue ... End Using
string caption = "Example: GdPictureOCR class"; using (GdPictureOCR gdpictureOCR = new GdPictureOCR()) { //Set up your prefered parameters for OCR. gdpictureOCR.ResourcesFolder = "\\GdPicture.Net 14\\redist\\OCR"; gdpictureOCR.AddLanguage(OCRLanguage.English); //Set up the image you want to process. //Run the OCR process. string resID = gdpictureOCR.RunOCR(); if (gdpictureOCR.GetStat() == GdPictureStatus.OK) { //Check the results. int wordCount = gdpictureOCR.GetWordCount(resID); //Continue ... } else { MessageBox.Show("The OCR process has failed with the status: " + gdpictureOCR.GetStat().ToString(), caption); } //Continue ... }
System.Object
GdPicture14.GdPictureOCR