Class OcrOutput

Class OcrOutput

Nom dels espais: Aspose.OCR Assemblea: Aspose.OCR.dll (25.4.0)

Una classe de contenidors per emmagatzemar i gestionar els resultats de les operacions OCR.

public class OcrOutput : List<recognitionresult>, IList<recognitionresult>, ICollection<recognitionresult>, IList, ICollection, IReadOnlyList<recognitionresult>, IReadOnlyCollection<recognitionresult>, IEnumerable<recognitionresult>, IEnumerable

Inheritance

object List OcrOutput

Implements

IList , ICollection , IList , ICollection , IReadOnlyList , IReadOnlyCollection , IEnumerable , IEnumerable

Membres heretats

List.Add(RecognitionResult) , List.AddRange(IEnumerable) , List.AsReadOnly() , List.BinarySearch(int, int, RecognitionResult, IComparer?) , List.BinarySearch(RecognitionResult) , List.BinarySearch(RecognitionResult, IComparer?) , List.Clear() , List.Contains(RecognitionResult) , List.ConvertAll(Converter<recognitionresult, toutput="">) , List.CopyTo(RecognitionResult[]) , List.CopyTo(int, RecognitionResult[], int, int) , List.CopyTo(RecognitionResult[], int) , List.EnsureCapacity(int) , List.Exists(Predicate) , List.Find(Predicate) , List.FindAll(Predicate) , List.FindIndex(Predicate) , List.FindIndex(int, Predicate) , List.FindIndex(int, int, Predicate) , List.FindLast(Predicate) , List.FindLastIndex(Predicate) , List.FindLastIndex(int, Predicate) , List.FindLastIndex(int, int, Predicate) , List.ForEach(Action) , List.GetEnumerator() , List.GetRange(int, int) , List.Slice(int, int) , List.IndexOf(RecognitionResult) , List.IndexOf(RecognitionResult, int) , List.IndexOf(RecognitionResult, int, int) , List.Insert(int, RecognitionResult) , List.InsertRange(int, IEnumerable) , List.LastIndexOf(RecognitionResult) , List.LastIndexOf(RecognitionResult, int) , List.LastIndexOf(RecognitionResult, int, int) , List.Remove(RecognitionResult) , List.RemoveAll(Predicate) , List.RemoveAt(int) , List.RemoveRange(int, int) , List.Reverse() , List.Reverse(int, int) , List.Sort() , List.Sort(IComparer?) , List.Sort(int, int, IComparer?) , List.Sort(Comparison) , List.ToArray() , List.TrimExcess() , List.TrueForAll(Predicate) , List.Capacity , List.Count , List.this[int] , object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Constructors

OcrOutput()

Inicia una nova instància de la classe Aspose.OCR.OcrOutput amb una col·lecció buida.Aquest constructor crida al constructor de la classe de base per iniciar una llista buida d’Aspose.OCR.RecognitionResult.

public OcrOutput()

OcrOutput(Reconeixement > Reconeixement>, i OCRINPUT)

Inicialitza una nova instància de la classe Aspose.OCR.OcrOutput amb una col·lecció especificada d’Aspose.OCR.RecognitionResult.Aquest constructor crea un nou Aspose.OCR.OcrOutput copiant els elements de la col·lecció proporcionada.

public OcrOutput(IEnumerable<recognitionresult> collection, OcrInput input)

Parameters

collection IEnumerable < RecognitionResult >

La col·lecció de Aspose.OCR.RecognitionResultat per iniciar la llista amb.

input OcrInput

Col·lecció de dades d’imatges del client.

OcrOutput(Int)

Inicialitza una nova instància de la classe Aspose.OCR.OcrOutput amb una capacitat inicial especificada.Aquest constructor crea un nou Aspose.OCR.OcrOutput amb un nombre predefinit d’elements allotjats, optimitzant per al rendiment quan la mida és coneguda per endavant.

public OcrOutput(int capacity)

Parameters

capacity int

Aquest nombre representa el nombre màxim d’elements que la llista pot mantenir abans de resetjar.

Methods

AddRange(Reconeixement > Reconeixement>)

Afegeix els elements de la col·lecció especificada al final de la llista Aspose.OCR.OcrOutput.Aquest mètode supera el comportament AddRange estàndard per realitzar operacions addicionals, si és necessari.

public void AddRange(IEnumerable<recognitionresult> collection)

Parameters

collection IEnumerable < RecognitionResult >

La col·lecció de Aspose.OCR.RecognitionResultat per afegir.

Save(fonts, SaveFormat, fonts, PdfOptimizationMode)

Salvar tots els resultats de reconeixement en un fitxer.

public void Save(string fullFileName, SaveFormat saveFormat = SaveFormat.Text, string embeddedFontPath = null, PdfOptimizationMode optimizePdf = PdfOptimizationMode.MAXIMUM_QUALITY)

Parameters

fullFileName string

El nom de fil amb un recorregut de reconeixement resultant en el format seleccionat.

saveFormat SaveFormat

Format de document (Docx, Txt, PDF, Xlsx, Rtf, Json, Xml, Epub).

embeddedFontPath string

Opcionalment. recorregut complet a la font d’usuari.

optimizePdf PdfOptimizationMode

Reduir la mida del fitxer PDF reduint la qualitat de les imatges de fons. per default, es conserva la qualitat d’imatge original.

Save(MemoryStream, SaveFormat, string, PdfOptimizationMode)

Salvar tots els resultats de reconeixement a un flux de memòria en el format especificat.

public void Save(MemoryStream stream, SaveFormat saveFormat = SaveFormat.Text, string embeddedFontPath = null, PdfOptimizationMode optimizePdf = PdfOptimizationMode.MAXIMUM_QUALITY)

Parameters

stream MemoryStream

MemoryStream per a l’estalvi de reconeixement resulta en el format seleccionat.

saveFormat SaveFormat

Format de document (Docx, Txt, PDF, Xlsx, Rtf, Json, Xml, Epub).

embeddedFontPath string

Opcionalment. recorregut complet a la font d’usuari.

optimizePdf PdfOptimizationMode

Reduir la mida del fitxer PDF reduint la qualitat de les imatges de fons. per default, es conserva la qualitat d’imatge original.

SavePdf(Tècnic, Tècnic, PdfOptimizationMode)

Salvar tots els resultats de reconeixement en un fitxer PDF que es pot buscar, amb les imatges originals configurades com el fons.

public void SavePdf(string fullFileName, string embeddedFontPath = null, PdfOptimizationMode optimizePdf = PdfOptimizationMode.MAXIMUM_QUALITY)

Parameters

fullFileName string

El nom de fil amb un recorregut de reconeixement resultant en el format seleccionat.

embeddedFontPath string

Opcionalment. recorregut complet a la font d’usuari.

optimizePdf PdfOptimizationMode

Reduir la mida del fitxer PDF reduint la qualitat de les imatges de fons. per default, es conserva la qualitat d’imatge original.

SavePdf(MemoryStream, cordes, PdfOptimizationMode)

Salvar tots els resultats de reconeixement en un document PDF buscable en memòria, incorporant les imatges originals com el fons.

public void SavePdf(MemoryStream stream, string embeddedFontPath = null, PdfOptimizationMode optimizePdf = PdfOptimizationMode.MAXIMUM_QUALITY)

Parameters

stream MemoryStream

MemoryStream per a l’estalvi de reconeixement resulta en el format seleccionat.

embeddedFontPath string

Opcionalment. recorregut complet a la font d’usuari.

optimizePdf PdfOptimizationMode

Reduir la mida del fitxer PDF reduint la qualitat de les imatges de fons. per default, es conserva la qualitat d’imatge original.</recognitionresult,>

 Català