Class AsposeOcr

Class AsposeOcr

Namespace: Aspose.OCR
Assembly: Aspose.OCR.dll (25.1.0)

API หลักสำหรับห้องสมุด Aspose OCR

public class AsposeOcr

การสืบทอด

objectAsposeOcr

สมาชิกที่สืบทอด

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

ตัวสร้าง

AsposeOcr()

public AsposeOcr()

วิธีการ

CalculateSkew(OcrInput)

คำนวณมุมเอียงของภาพ รองรับ GIF, PNG, JPEG, BMP, TIFF, JFIF, stream, folder, arrays, archives

public List<skewoutput> CalculateSkew(OcrInput images)

พารามิเตอร์

images OcrInput

ตัวเก็บข้อมูลที่มีแหล่งข้อมูล Aspose.OCR.OcrInput

คืนค่า

List<SkewOutput&gt;

รายการมุมเอียงในองศา Aspose.OCR.SkewOutput

CompareImageTexts(string, string, RecognitionSettings, bool)

ตรวจสอบว่าภาพสองภาพมีข้อความเดียวกันหรือไม่

public bool CompareImageTexts(string fullPath1, string fullPath2, RecognitionSettings settings = null, bool ignoreCase = true)

พารามิเตอร์

fullPath1 string

เส้นทางไปยังภาพแรก

fullPath2 string

เส้นทางไปยังภาพที่สอง

settings RecognitionSettings

การตั้งค่าการรู้จำ

ignoreCase bool

True - หมายถึงการค้นหาแบบไม่แยกตัวพิมพ์ใหญ่พิมพ์เล็ก

คืนค่า

bool

True หากภาพมีข้อความเดียวกัน (ความคล้ายคลึง 90%)

CorrectSpelling(string, SpellCheckLanguage, string)

แก้ไขข้อความ (แทนที่คำที่สะกดผิด)

public string CorrectSpelling(string text, SpellCheckLanguage language = SpellCheckLanguage.Eng, string dictionaryPath = null)

พารามิเตอร์

text string

ข้อความสำหรับการแก้ไข

language SpellCheckLanguage

พจนานุกรมที่จะใช้

dictionaryPath string

อาจเลือกได้ เส้นทางเต็มไปยังพจนานุกรมของผู้ใช้ (พจนานุกรมความถี่) รูปแบบไฟล์พจนานุกรม: ไฟล์ข้อความธรรมดาในรูปแบบ UTF-8 คำและความถี่ของคำแยกด้วยช่องว่างหรือแท็บ โดยค่าเริ่มต้น คำจะถูกคาดหวังในคอลัมน์แรกและความถี่ในคอลัมน์ที่สอง คู่คำ-ความถี่ในบรรทัดแยกต่างหาก บรรทัดถูกกำหนดว่าเป็นลำดับของอักขระที่ตามด้วยการขึ้นบรรทัดใหม่ ("\n"), การคืนค่าบรรทัด ("\r"), หรือการคืนค่าบรรทัดที่ตามด้วยการขึ้นบรรทัดใหม่ ("\r\n") คำทุกคำคาดว่าจะอยู่ในรูปแบบตัวพิมพ์เล็ก

คืนค่า

string

ข้อความที่มีคำที่ถูกแทนที่

DetectDefects(OcrInput, DefectType)

ค้นหาอาณาเขตที่มีปัญหาในภาพโดยอัตโนมัติซึ่งอาจมีผลกระทบอย่างมากต่อความถูกต้องของ OCR รองรับภาพ PNG, JPEG, BMP, TIFF, JFIF และ GIF ที่จัดเตรียมเป็นไฟล์, stream หรือ pixel array รองรับการรู้จำแบบกลุ่ม

public List<defectoutput> DetectDefects(OcrInput images, DefectType defectType)

พารามิเตอร์

images OcrInput

ภาพต้นฉบับ Aspose.OCR.OcrInput

defectType DefectType

ประเภทของข้อบกพร่องที่จะถูกจำแนก Aspose.OCR.DefectType

คืนค่า

List<DefectOutput&gt;

ข้อบกพร่องของภาพที่ตรวจพบหรือคอลเล็กชันว่างเปล่าหากไม่พบข้อบกพร่อง Aspose.OCR.DefectOutput

DetectRectangles(OcrInput)

ตรวจจับพื้นที่ข้อความบนภาพ รองรับ GIF, PNG, JPEG, BMP, TIFF, JFIF, stream, folder, arrays, archives

public List<rectangleoutput> DetectRectangles(OcrInput images)

พารามิเตอร์

images OcrInput

ตัวเก็บข้อมูลที่มีแหล่งข้อมูล Aspose.OCR.OcrInput

คืนค่า

List<RectangleOutput&gt;

รายการของ Aspose.OCR.RectangleOutput ที่มีพื้นที่ข้อความหรือบรรทัดที่ตรวจพบ

DetectRectangles(OcrInput, AreasType, bool)

ตรวจจับพื้นที่ข้อความบนภาพ รองรับ GIF, PNG, JPEG, BMP, TIFF, JFIF, stream, folder, arrays, archives

public List<rectangleoutput> DetectRectangles(OcrInput images, AreasType areasType, bool detectAreas = true)

พารามิเตอร์

images OcrInput

ตัวเก็บข้อมูลที่มีแหล่งข้อมูล Aspose.OCR.OcrInput

areasType AreasType

กำหนดประเภทของสี่เหลี่ยมที่จะส่งคืน - บรรทัดหรือย่อหน้า

detectAreas bool

เปิดใช้งานการตรวจจับพื้นที่ข้อความโดยอัตโนมัติ

คืนค่า

List<RectangleOutput&gt;

รายการของ Aspose.OCR.RectangleOutput ที่มีพื้นที่ข้อความหรือบรรทัดที่ตรวจพบ

ImageHasText(string, string, RecognitionSettings, bool, bool)

ตรวจสอบว่าภาพมีข้อความที่ให้ไว้หรือไม่

public bool ImageHasText(string fullPath, string text, RecognitionSettings settings = null, bool ignoreCase = true, bool autoSkew = true)

พารามิเตอร์

fullPath string

เส้นทางไปยังภาพ

text string

ข้อความที่ต้องค้นหาในภาพ

settings RecognitionSettings

การตั้งค่าการรู้จำ

ignoreCase bool

True - หมายถึงการค้นหาแบบไม่แยกตัวพิมพ์ใหญ่พิมพ์เล็ก

autoSkew bool

เปิดใช้งานการแก้ไขเอียงของภาพโดยอัตโนมัติ

คืนค่า

bool

True หากภาพมีข้อความที่ให้ไว้ False - ภาพไม่มีข้อความที่ให้ไว้

หมายเหตุ

จำแนกภาพพร้อมความสามารถในการระบุ Aspose.OCR.RecognitionSettings รองรับ GIF, PNG, JPEG, BMP, TIFF, JFIF

ImageHasText(string, Regex, RecognitionSettings, bool)

ตรวจสอบว่าข้อความในภาพตรงกับรูปแบบปกติที่ให้ไว้หรือไม่

public bool ImageHasText(string fullPath, Regex regex, RecognitionSettings settings = null, bool autoSkew = true)

พารามิเตอร์

fullPath string

เส้นทางไปยังภาพ

regex Regex

วัตถุ System.Text.RegularExpressions ที่มีรูปแบบและตัวเลือกที่ให้ไว้

settings RecognitionSettings

การตั้งค่าการรู้จำ

autoSkew bool

เปิดใช้งานการแก้ไขเอียงของภาพโดยอัตโนมัติ

คืนค่า

bool

True หากข้อความในภาพตรงกับรูปแบบปกติที่ให้ไว้

หมายเหตุ

จำแนกภาพพร้อมความสามารถในการระบุ Aspose.OCR.RecognitionSettings รองรับ GIF, PNG, JPEG, BMP, TIFF, JFIF

ImageTextDiff(string, string, RecognitionSettings, bool, bool)

เปรียบเทียบข้อความในสองภาพและคืนค่าหมายเลขที่แสดงถึงความคล้ายคลึงกัน (0 ถึง 1)

public float ImageTextDiff(string fullPath1, string fullPath2, RecognitionSettings settings = null, bool ignoreCase = true, bool autoSkew = true)

พารามิเตอร์

fullPath1 string

เส้นทางไปยังภาพแรก

fullPath2 string

เส้นทางไปยังภาพที่สอง

settings RecognitionSettings

การตั้งค่าการรู้จำ

ignoreCase bool

True - หมายถึงการค้นหาแบบไม่แยกตัวพิมพ์ใหญ่พิมพ์เล็ก

autoSkew bool

เปิดใช้งานการแก้ไขเอียงของภาพโดยอัตโนมัติ

คืนค่า

float

0 หมายความว่าข้อความแตกต่างกันโดยสิ้นเชิง; 1 หมายความว่าข้อความเหมือนกัน

Recognize(OcrInput)

จำแนกข้อความในภาพ / เอกสาร รองรับ GIF, PNG, JPEG, BMP, TIFF, JFIF, stream, directory, arrays, archives

public OcrOutput Recognize(OcrInput images)

พารามิเตอร์

images OcrInput

ตัวเก็บข้อมูลที่มีแหล่งข้อมูล Aspose.OCR.OcrInput

คืนค่า

OcrOutput

รายการของวัตถุ Aspose.OCR.RecognitionResult ที่มีผลลัพธ์การจำแนกภาพ

Recognize(OcrInput, RecognitionSettings, CancellationToken)

จำแนกข้อความในภาพ / เอกสาร รองรับ GIF, PNG, JPEG, BMP, TIFF, JFIF, stream, directory, arrays, archives

public OcrOutput Recognize(OcrInput images, RecognitionSettings settings, CancellationToken cancellationToken)

พารามิเตอร์

images OcrInput

ตัวเก็บข้อมูลที่มีแหล่งข้อมูล Aspose.OCR.OcrInput

settings RecognitionSettings

การตั้งค่าการจำแนก Aspose.OCR.RecognitionSettings

cancellationToken CancellationToken

วัตถุ CancellationToken

คืนค่า

OcrOutput

รายการของวัตถุ Aspose.OCR.RecognitionResult ที่มีผลลัพธ์การจำแนกภาพ

Recognize(OcrInput, RecognitionSettings)

จำแนกข้อความในภาพ / เอกสาร รองรับ GIF, PNG, JPEG, BMP, TIFF, JFIF, stream, directory, arrays, archives

public OcrOutput Recognize(OcrInput images, RecognitionSettings settings)

พารามิเตอร์

images OcrInput

ตัวเก็บข้อมูลที่มีแหล่งข้อมูล Aspose.OCR.OcrInput

settings RecognitionSettings

การตั้งค่าการจำแนก Aspose.OCR.RecognitionSettings

คืนค่า

OcrOutput

รายการของวัตถุ Aspose.OCR.RecognitionResult ที่มีผลลัพธ์การจำแนกภาพ

RecognizeCarPlate(OcrInput)

จำแนกข้อความบนป้ายทะเบียนรถ

public OcrOutput RecognizeCarPlate(OcrInput images)

พารามิเตอร์

images OcrInput

ตัวเก็บข้อมูลที่มีแหล่งข้อมูล Aspose.OCR.OcrInput

คืนค่า

OcrOutput

รายการของวัตถุ Aspose.OCR.RecognitionResult ที่มีผลลัพธ์การจำแนกภาพ

หมายเหตุ

จำแนกป้ายทะเบียนรถพร้อมความสามารถในการระบุ Aspose.OCR.CarPlateRecognitionSettings รองรับ GIF, PNG, JPEG, BMP, TIFF, JFIF, stream, directory, arrays, archives

RecognizeCarPlate(OcrInput, CarPlateRecognitionSettings)

จำแนกข้อความบนป้ายทะเบียนรถ

public OcrOutput RecognizeCarPlate(OcrInput images, CarPlateRecognitionSettings settings)

พารามิเตอร์

images OcrInput

ตัวเก็บข้อมูลที่มีแหล่งข้อมูล Aspose.OCR.OcrInput

settings CarPlateRecognitionSettings

การตั้งค่าการจำแนก Aspose.OCR.CarPlateRecognitionSettings

คืนค่า

OcrOutput

รายการของวัตถุ Aspose.OCR.RecognitionResult ที่มีผลลัพธ์การจำแนกภาพ

หมายเหตุ

จำแนกป้ายทะเบียนรถพร้อมความสามารถในการระบุ Aspose.OCR.CarPlateRecognitionSettings รองรับ GIF, PNG, JPEG, BMP, TIFF, JFIF, stream, directory, arrays, archives

RecognizeCharacters(OcrInput)

ตรวจจับสัญลักษณ์ในภาพ รองรับ GIF, PNG, JPEG, BMP, TIFF, JFIF, stream, folder, arrays, archives

public List<characterrecognitionresult> RecognizeCharacters(OcrInput images)

พารามิเตอร์

images OcrInput

ตัวเก็บข้อมูลที่มีแหล่งข้อมูล Aspose.OCR.OcrInput

คืนค่า

List<CharacterRecognitionResult&gt;

รายการของ Aspose.OCR.CharacterRecognitionResult ที่มีข้อมูลสัญลักษณ์ที่ตรวจจับได้

RecognizeCharacters(OcrInput, DetectAreasMode, Language)

ตรวจจับสัญลักษณ์ในภาพ รองรับ GIF, PNG, JPEG, BMP, TIFF, JFIF, stream, folder, arrays, archives

public List<characterrecognitionresult> RecognizeCharacters(OcrInput images, DetectAreasMode detectAreasMode = DetectAreasMode.UNIVERSAL, Language language = Language.Latin)

พารามิเตอร์

images OcrInput

ตัวเก็บข้อมูลที่มีแหล่งข้อมูล Aspose.OCR.OcrInput

detectAreasMode DetectAreasMode

กำหนดประเภทของเครือข่ายประสาทที่ใช้สำหรับการตรวจจับพื้นที่

language Language

ภาษาที่ใช้สำหรับ OCR

คืนค่า

List<CharacterRecognitionResult&gt;

รายการของ Aspose.OCR.Character ที่มีข้อมูลสัญลักษณ์ที่ตรวจจับได้

RecognizeFast(OcrInput)

จำแนกข้อความในภาพ / เอกสาร รองรับ GIF, PNG, JPEG, BMP, TIFF, JFIF, stream, directory, arrays, archives

public List<string> RecognizeFast(OcrInput images)

พารามิเตอร์

images OcrInput

ตัวเก็บข้อมูลที่มีแหล่งข้อมูล Aspose.OCR.OcrInput

คืนค่า

List<string&gt;

รายการของสตริงที่มีผลลัพธ์การจำแนกภาพ

RecognizeHandwrittenText(OcrInput)

จำแนกข้อความที่เขียนด้วยลายมือในภาพ

public OcrOutput RecognizeHandwrittenText(OcrInput images)

พารามิเตอร์

images OcrInput

ตัวเก็บข้อมูลที่มีแหล่งข้อมูล Aspose.OCR.OcrInput

คืนค่า

OcrOutput

รายการของวัตถุ Aspose.OCR.RecognitionResult ที่มีผลลัพธ์การจำแนกภาพ

หมายเหตุ

รองรับ GIF, PNG, JPEG, BMP, TIFF, JFIF, stream, directory, arrays, archives

RecognizeIDCard(OcrInput)

จำแนกข้อความบนบัตรประชาชน

public OcrOutput RecognizeIDCard(OcrInput images)

พารามิเตอร์

images OcrInput

ตัวเก็บข้อมูลที่มีแหล่งข้อมูล Aspose.OCR.OcrInput

คืนค่า

OcrOutput

รายการของวัตถุ Aspose.OCR.RecognitionResult ที่มีผลลัพธ์การจำแนกภาพ

หมายเหตุ

จำแนกบัตรประชาชนพร้อมความสามารถในการระบุ Aspose.OCR.IDCardRecognitionSettings รองรับ GIF, PNG, JPEG, BMP, TIFF, JFIF, stream, directory, arrays, archives

RecognizeIDCard(OcrInput, IDCardRecognitionSettings)

จำแนกข้อความบนบัตรประชาชน

public OcrOutput RecognizeIDCard(OcrInput images, IDCardRecognitionSettings settings)

พารามิเตอร์

images OcrInput

ตัวเก็บข้อมูลที่มีแหล่งข้อมูล Aspose.OCR.OcrInput

settings IDCardRecognitionSettings

การตั้งค่าการจำแนก Aspose.OCR.IDCardRecognitionSettings

คืนค่า

OcrOutput

รายการของวัตถุ Aspose.OCR.RecognitionResult ที่มีผลลัพธ์การจำแนกภาพ

หมายเหตุ

จำแนกบัตรประชาชนพร้อมความสามารถในการระบุ Aspose.OCR.IDCardRecognitionSettings รองรับ GIF, PNG, JPEG, BMP, TIFF, JFIF, stream, directory, arrays, archives

RecognizeInvoice(OcrInput)

จำแนกข้อความในใบแจ้งหนี้

public OcrOutput RecognizeInvoice(OcrInput images)

พารามิเตอร์

images OcrInput

ตัวเก็บข้อมูลที่มีแหล่งข้อมูล Aspose.OCR.OcrInput

คืนค่า

OcrOutput

รายการของวัตถุ Aspose.OCR.RecognitionResult ที่มีผลลัพธ์การจำแนกภาพ

หมายเหตุ

จำแนกใบแจ้งหนี้พร้อมความสามารถในการระบุ Aspose.OCR.InvoiceRecognitionSettings รองรับ GIF, PNG, JPEG, BMP, TIFF, JFIF, stream, directory, arrays, archives

RecognizeInvoice(OcrInput, InvoiceRecognitionSettings)

จำแนกข้อความในใบแจ้งหนี้

public OcrOutput RecognizeInvoice(OcrInput images, InvoiceRecognitionSettings settings)

พารามิเตอร์

images OcrInput

ตัวเก็บข้อมูลที่มีแหล่งข้อมูล Aspose.OCR.OcrInput

settings InvoiceRecognitionSettings

การตั้งค่าการจำแนก Aspose.OCR.InvoiceRecognitionSettings

คืนค่า

OcrOutput

รายการของวัตถุ Aspose.OCR.RecognitionResult ที่มีผลลัพธ์การจำแนกภาพ

หมายเหตุ

จำแนกใบแจ้งหนี้พร้อมความสามารถในการระบุ Aspose.OCR.InvoiceRecognitionSettings รองรับ GIF, PNG, JPEG, BMP, TIFF, JFIF, stream, directory, arrays, archives รองรับ GIF, PNG, JPEG, BMP, TIFF, JFIF, stream, directory, arrays, archives

RecognizeLines(OcrInput)

จำแนกภาพที่มีข้อความเพียงบรรทัดเดียว รองรับ GIF, PNG, JPEG, BMP, TIFF, JFIF, stream, folder, arrays, archives

public OcrOutput RecognizeLines(OcrInput images)

พารามิเตอร์

images OcrInput

ตัวเก็บข้อมูลที่มีแหล่งข้อมูล Aspose.OCR.OcrInput

คืนค่า

OcrOutput

รายการของวัตถุ Aspose.OCR.RecognitionResult ที่มีผลลัพธ์การจำแนกภาพ

RecognizeLines(OcrInput, RecognitionSettings)

จำแนกภาพที่มีข้อความเพียงบรรทัดเดียว รองรับ GIF, PNG, JPEG, BMP, TIFF, JFIF, stream, folder, arrays, archives

public OcrOutput RecognizeLines(OcrInput images, RecognitionSettings settings)

พารามิเตอร์

images OcrInput

ตัวเก็บข้อมูลที่มีแหล่งข้อมูล Aspose.OCR.OcrInput

settings RecognitionSettings

การตั้งค่าการจำแนก Aspose.OCR.RecognitionSettings

คืนค่า

OcrOutput

รายการของวัตถุ Aspose.OCR.RecognitionResult ที่มีผลลัพธ์การจำแนกภาพ

RecognizePassport(OcrInput)

จำแนกข้อความในหนังสือเดินทาง

public OcrOutput RecognizePassport(OcrInput images)

พารามิเตอร์

images OcrInput

ตัวเก็บข้อมูลที่มีแหล่งข้อมูล Aspose.OCR.OcrInput

คืนค่า

OcrOutput

รายการของวัตถุ Aspose.OCR.RecognitionResult ที่มีผลลัพธ์การจำแนกภาพ

หมายเหตุ

จำแนกหนังสือเดินทางพร้อมความสามารถในการระบุ Aspose.OCR.PassportRecognitionSettings รองรับ GIF, PNG, JPEG, BMP, TIFF, JFIF, stream, directory, arrays, archives

RecognizePassport(OcrInput, PassportRecognitionSettings)

จำแนกข้อความในหนังสือเดินทาง

public OcrOutput RecognizePassport(OcrInput images, PassportRecognitionSettings settings)

พารามิเตอร์

images OcrInput

ตัวเก็บข้อมูลที่มีแหล่งข้อมูล Aspose.OCR.OcrInput

settings PassportRecognitionSettings

การตั้งค่าการจำแนก Aspose.OCR.PassportRecognitionSettings

คืนค่า

OcrOutput

รายการของวัตถุ Aspose.OCR.RecognitionResult ที่มีผลลัพธ์การจำแนกภาพ

หมายเหตุ

จำแนกหนังสือเดินทางพร้อมความสามารถในการระบุ Aspose.OCR.PassportRecognitionSettings รองรับ GIF, PNG, JPEG, BMP, TIFF, JFIF, stream, directory, arrays, archives

RecognizeReceipt(OcrInput)

จำแนกข้อความในใบเสร็จ

public OcrOutput RecognizeReceipt(OcrInput images)

พารามิเตอร์

images OcrInput

ตัวเก็บข้อมูลที่มีแหล่งข้อมูล Aspose.OCR.OcrInput

คืนค่า

OcrOutput

รายการของวัตถุ Aspose.OCR.RecognitionResult ที่มีผลลัพธ์การจำแนกภาพ

หมายเหตุ

จำแนกใบเสร็จพร้อมความสามารถในการระบุ Aspose.OCR.ReceiptRecognitionSettings รองรับ GIF, PNG, JPEG, BMP, TIFF, JFIF, stream, directory, arrays, archives

RecognizeReceipt(OcrInput, ReceiptRecognitionSettings)

จำแนกข้อความในใบเสร็จ

public OcrOutput RecognizeReceipt(OcrInput images, ReceiptRecognitionSettings settings)

พารามิเตอร์

images OcrInput

ตัวเก็บข้อมูลที่มีแหล่งข้อมูล Aspose.OCR.OcrInput

settings ReceiptRecognitionSettings

การตั้งค่าการจำแนก Aspose.OCR.ReceiptRecognitionSettings

คืนค่า

OcrOutput

รายการของวัตถุ Aspose.OCR.RecognitionResult ที่มีผลลัพธ์การจำแนกภาพ

หมายเหตุ

จำแนกใบเสร็จพร้อมความสามารถในการระบุ Aspose.OCR.ReceiptRecognitionSettings รองรับ GIF, PNG, JPEG, BMP, TIFF, JFIF, stream, directory, arrays, archives

SaveMultipageDocument(string, SaveFormat, List<recognitionresult>, string, PdfOptimizationMode)

อนุญาตให้สร้างเอกสารหลายหน้าจากรายการของวัตถุ RecognitionResult

public static void SaveMultipageDocument(string fullFileName, SaveFormat saveFormat, List<recognitionresult> results, string embeddedFontPath = null, PdfOptimizationMode optimizePdf = PdfOptimizationMode.MAXIMUM_QUALITY)

พารามิเตอร์

fullFileName string

ชื่อไฟล์พร้อมเส้นทางสำหรับบันทึกผลลัพธ์การจำแนกในรูปแบบที่เลือก

saveFormat SaveFormat

รูปแบบเอกสาร (Docx, Txt, Pdf, Xlsx, Rtf, Json, Xml)

results List<RecognitionResult&gt;

รายการของวัตถุ Aspose.OCR.RecognitionResult

embeddedFontPath string

อาจเลือกได้ เส้นทางเต็มไปยังฟอนต์ของผู้ใช้

optimizePdf PdfOptimizationMode

ลดขนาดไฟล์ PDF โดยการลดคุณภาพของภาพพื้นหลัง โดยค่าเริ่มต้นจะรักษาคุณภาพของภาพต้นฉบับ

SaveMultipageDocument(string, SaveFormat, List<recognitionresult>, bool, SpellCheckLanguage, string, string, PdfOptimizationMode)

อนุญาตให้สร้างเอกสารหลายหน้าจากรายการของวัตถุ RecognitionResult

public static void SaveMultipageDocument(string fullFileName, SaveFormat saveFormat, List<recognitionresult> results, bool applySpellingCorrection, SpellCheckLanguage language = SpellCheckLanguage.Eng, string dictionaryPath = null, string embeddedFontPath = null, PdfOptimizationMode optimizePdf = PdfOptimizationMode.MAXIMUM_QUALITY)

พารามิเตอร์

fullFileName string

ชื่อไฟล์พร้อมเส้นทางสำหรับบันทึกผลลัพธ์การจำแนกในรูปแบบที่เลือก

saveFormat SaveFormat

รูปแบบเอกสาร (Docx, Txt, Pdf, Xlsx, Rtf, Json, Xml)

results List<RecognitionResult&gt;

รายการของวัตถุ Aspose.OCR.RecognitionResult

applySpellingCorrection bool

ตั้งค่า true เพื่อแก้ไขคำที่สะกดผิดในกรณีที่คุณมีในผลลัพธ์การจำแนกของคุณ

language SpellCheckLanguage

พจนานุกรมสำหรับการตรวจสอบการสะกด (อาจเลือกได้)

dictionaryPath string

อาจเลือกได้ เส้นทางเต็มไปยังพจนานุกรมของผู้ใช้ในรูปแบบ .txt รูปแบบคือ [word - space - frequence(number)]. ตัวอย่าง: the 23135851162\nthat 3400031103\n

embeddedFontPath string

อาจเลือกได้ เส้นทางเต็มไปยังฟอนต์ของผู้ใช้

optimizePdf PdfOptimizationMode

ลดขนาดไฟล์ PDF โดยการลดคุณภาพของภาพพื้นหลัง โดยค่าเริ่มต้นจะรักษาคุณภาพของภาพต้นฉบับ

SaveMultipageDocument(MemoryStream, SaveFormat, List<recognitionresult>, string, PdfOptimizationMode)

อนุญาตให้สร้างเอกสารหลายหน้าจากรายการของวัตถุ RecognitionResult

public static void SaveMultipageDocument(MemoryStream stream, SaveFormat saveFormat, List<recognitionresult> results, string embeddedFontPath = null, PdfOptimizationMode optimizePdf = PdfOptimizationMode.MAXIMUM_QUALITY)

พารามิเตอร์

stream MemoryStream

MemoryStream สำหรับบันทึกผลลัพธ์การจำแนกในรูปแบบที่เลือก

saveFormat SaveFormat

รูปแบบเอกสาร (Docx, Txt, Pdf, Xlsx, Rtf, Json, Xml)

results List<RecognitionResult&gt;

รายการของวัตถุ Aspose.OCR.RecognitionResult

embeddedFontPath string

อาจเลือกได้ เส้นทางเต็มไปยังฟอนต์ของผู้ใช้

optimizePdf PdfOptimizationMode

ลดขนาดไฟล์ PDF โดยการลดคุณภาพของภาพพื้นหลัง โดยค่าเริ่มต้นจะรักษาคุณภาพของภาพต้นฉบับ

SaveMultipageDocument(MemoryStream, SaveFormat, List<recognitionresult>, bool, SpellCheckLanguage, string, string, PdfOptimizationMode)

อนุญาตให้สร้างเอกสารหลายหน้าจากรายการของวัตถุ RecognitionResult

public static void SaveMultipageDocument(MemoryStream stream, SaveFormat saveFormat, List<recognitionresult> results, bool applySpellingCorrection, SpellCheckLanguage language = SpellCheckLanguage.Eng, string dictionaryPath = null, string embeddedFontPath = null, PdfOptimizationMode optimizePdf = PdfOptimizationMode.MAXIMUM_QUALITY)

พารามิเตอร์

stream MemoryStream

MemoryStream สำหรับบันทึกผลลัพธ์การจำแนกในรูปแบบที่เลือก

saveFormat SaveFormat

รูปแบบเอกสาร (Docx, Txt, Pdf, Xlsx, Rtf, Json, Xml)

results List<RecognitionResult&gt;

รายการของวัตถุ Aspose.OCR.RecognitionResult

applySpellingCorrection bool

ตั้งค่า true เพื่อแก้ไขคำที่สะกดผิดในกรณีที่คุณมีในผลลัพธ์การจำแนกของคุณ

language SpellCheckLanguage

พจนานุกรมสำหรับการตรวจสอบการสะกด (อาจเลือกได้)

dictionaryPath string

อาจเลือกได้ เส้นทางเต็มไปยังพจนานุกรมของผู้ใช้ในรูปแบบ .txt รูปแบบคือ [word - space - frequence(number)]. ตัวอย่าง: the 23135851162\nthat 3400031103\n

embeddedFontPath string

อาจเลือกได้ เส้นทางเต็มไปยังฟอนต์ของผู้ใช้

optimizePdf PdfOptimizationMode

ลดขนาดไฟล์ PDF โดยการลดคุณภาพของภาพพื้นหลัง โดยค่าเริ่มต้นจะรักษาคุณภาพของภาพต้นฉบับ

OcrProgress

เหตุการณ์เพื่อติดตามความก้าวหน้าของการจำแนกภาพหลายหน้า

public event OcrRecognizeEventHandler OcrProgress

ประเภทเหตุการณ์

OcrRecognizeEventHandler

 แบบไทย