Class AsposeOcr
ชื่อพื้นที่: Aspose.OCR การประกอบ: Aspose.OCR.dll (25.4.0)
API หลักสําหรับห้องสมุด ASPOSE OCR
public class AsposeOcr : IDisposable
Inheritance
Implements
อนุญาโตตุลาการ
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Constructors
AsposeOcr()
public AsposeOcr()
Methods
CalculateSkew(OcrInput)
การคํานวณมุมของภาพสนับสนุน GIF, PNG, JPEG, BMP, TIFF, JFIF, stream, folder, arrays, archives
public List<skewoutput> CalculateSkew(OcrInput images)
Parameters
images
OcrInput
ภาชนะที่มีแหล่งข้อมูล.Aspose.OCR.OcrInput
Returns
List < SkewOutput >
รายการมุมสกปรกในระดับ Aspose.OCR.SkewOutput
CompareImageTexts(string, string, RecognitionSettings, bool)
ตรวจสอบว่าสองภาพมีข้อความเดียวกันหรือไม่
public bool CompareImageTexts(string fullPath1, string fullPath2, RecognitionSettings settings = null, bool ignoreCase = true)
Parameters
fullPath1
string
ขั้นตอนไปสู่ภาพแรก
fullPath2
string
ทางไปสู่ภาพที่สอง
settings
RecognitionSettings
การตั้งค่าการยอมรับ
ignoreCase
bool
จริงหมายถึงการค้นหาที่ไม่มีความไวต่อกรณี
Returns
จริงถ้าภาพมีข้อความเดียวกัน (ความคล้ายคลึงกัน 90% )
CorrectSpelling(ลวด, SpellCheckLanguage, ลวด)
ข้อความที่ถูกต้อง (แทนที่คําที่ไม่ถูกต้อง)
public string CorrectSpelling(string text, SpellCheckLanguage language = SpellCheckLanguage.Eng, string dictionaryPath = null)
Parameters
text
string
ข้อความสําหรับการแก้ไข
language
SpellCheckLanguage
คําพูดที่จะใช้
dictionaryPath
string
ตัวเลือกเส้นทางเต็มไปสู่คําพูดของผู้ใช้ (คําพูดความถี่)รูปแบบไฟล์คําพูด:ไฟล์ข้อความเรียบในรหัส UTF-8Word และ Word Frequency จะแยกโดย space หรือ tab. โดยเริ่มต้นคําจะคาดหวังในคอลัมน์แรกและ frequency ในคอลัมน์ที่สองคู่คําความถี่แต่ละครั้งในเส้นที่แยกต่างหากเส้น A จะถูกกําหนดเป็น sequence of characters followed by a line feed ("\n"), a carriage return ("\r"),หรือการคืนค่าขนส่งโดยตรงตามของสายฟีด("\r\n").ทุกคําคาดว่าจะอยู่ในกรณีที่ต่ํากว่า
Returns
ข้อความที่มีคําแทน
DetectDefects(OcrInput, ประเภทข้อผิดพลาด)
ค้นหาพื้นที่ที่มีปัญหาของภาพโดยอัตโนมัติซึ่งอาจส่งผลกระทบต่อความแม่นยําของ OCRสนับสนุนภาพ PNG, JPEG, BMP, TIFF, JFIF และ GIF ที่จัดหาเป็นไฟล์ Stream หรือ Pixel Array สนับสนุนการรับรู้จํานวนมาก
public List<defectoutput> DetectDefects(OcrInput images, DefectType defectType)
Parameters
images
OcrInput
รูปภาพแหล่งกําเนิด Aspose.OCR.OcrInput
defectType
DefectType
ประเภทข้อบกพร่องที่จะได้รับการยอมรับ Aspose.OCR.DefectType
Returns
List < DefectOutput >
การตรวจพบข้อบกพร่องของภาพหรือการเก็บรวบรวมที่ว่างเปล่าหากไม่มีข้อบกพร่องที่พบได้ Aspose.OCR.DefectOutput
DetectDocumentLayout(OcrInput)
การวิเคราะห์ภาพและระบุประเภทต่างๆของพื้นที่เนื้อหาภายในรองรับภาพ PNG, JPEG, BMP, TIFF, JFIF และ GIF จากไฟล์ Streams และ pixel arrays สามารถประมวลผลโฟลเดอร์และไฟล์
public List<layoutoutput> DetectDocumentLayout(OcrInput images)
Parameters
images
OcrInput
รูปภาพแหล่งที่มา.Aspose.OCR.OcrInput
Returns
List < LayoutOutput >
พื้นที่เนื้อหาที่พบ, Aspose.OCR.LayoutOutput
DetectLanguages(OcrInput)
การวิเคราะห์ข้อความบนภาพเพื่อกําหนดภาษาที่เขียนไว้นี่ช่วยให้คุณเลือกภาษาการรับรู้ที่เหมาะสมที่สุดและช่วยในการประมวลผลข้อความเพิ่มเติมเช่น spellchecking หรือแปล
public List<languagedetectionoutput> DetectLanguages(OcrInput images)
Parameters
images
OcrInput
รูปภาพแหล่งกําเนิด Aspose.OCR.OcrInput
Returns
List < LanguageDetectionOutput >
แนะนํารายชื่อของภาษาที่มีแนวโน้มมากที่สุดที่จัดอันดับโดยความน่าเชื่อถือ Aspose.OCR.LanguageDetectionOutput
DetectRectangles(OcrInput)
การตรวจจับพื้นที่ข้อความบนภาพสนับสนุน GIF, PNG, JPEG, BMP, TIFF, JFIF, stream, folder, arrays, archives
[Obsolete("Will be removed in the release 25.8.0")]
public List<rectangleoutput> DetectRectangles(OcrInput images)
Parameters
images
OcrInput
ภาชนะที่มีแหล่งข้อมูล.Aspose.OCR.OcrInput
Returns
List < RectangleOutput >
รายชื่อ Aspose.OCR.RectangleOutput กับพื้นที่หรือเส้นข้อความที่พบ
DetectRectangles(OcrInput, AreasType, บอล)
การตรวจจับพื้นที่ข้อความบนภาพสนับสนุน GIF, PNG, JPEG, BMP, TIFF, JFIF, stream, folder, arrays, archives
public List<rectangleoutput> DetectRectangles(OcrInput images, AreasType areasType, bool detectAreas = true)
Parameters
images
OcrInput
ภาชนะที่มีแหล่งข้อมูล.Aspose.OCR.OcrInput
areasType
AreasType
กําหนดเส้นตรงเพื่อกลับ - เส้นหรือ paragraphs
detectAreas
bool
เปิดใช้งานการตรวจจับพื้นที่ข้อความอัตโนมัติ
Returns
List < RectangleOutput >
รายชื่อ Aspose.OCR.RectangleOutput กับพื้นที่หรือเส้นข้อความที่พบ
Dispose()
ทรัพยากรที่ชัดเจนสําหรับการรับรู้
public void Dispose()
ImageHasText(string, string, RecognitionSettings, bool, bool)
ตรวจสอบว่าภาพประกอบด้วยชิ้นส่วนข้อความที่ให้
public bool ImageHasText(string fullPath, string text, RecognitionSettings settings = null, bool ignoreCase = true, bool autoSkew = true)
Parameters
fullPath
string
ทางไปสู่ภาพ
text
string
ชิ้นส่วนข้อความสําหรับการค้นหาบนภาพ
settings
RecognitionSettings
การตั้งค่าการยอมรับ
ignoreCase
bool
จริงหมายถึงการค้นหาที่ไม่มีความไวต่อกรณี
autoSkew
bool
ช่วยให้การแก้ไขภาพสกปรกอัตโนมัติ
Returns
จริงถ้าภาพมีชิ้นส่วนข้อความ ภาพที่ซ่อนไม่ได้มีชิ้นส่วนข้อความ
Remarks
การรับรู้ภาพด้วยความสามารถในการระบุ Aspose.OCR.RecognitionSettingsสนับสนุน GIF, PNG, JPEG, BMP, TIFF, JFIF
ImageHasText(รั้ว, Regex, RecognitionSettings, bool)
ตรวจสอบว่าข้อความภาพตรงกับคําอธิบายปกติที่ให้
public bool ImageHasText(string fullPath, Regex regex, RecognitionSettings settings = null, bool autoSkew = true)
Parameters
fullPath
string
ทางไปสู่ภาพ
regex
Regex
System.Text.RegularExpressions object ด้วยรูปแบบและตัวเลือกที่ให้
settings
RecognitionSettings
การตั้งค่าการยอมรับ
autoSkew
bool
ช่วยให้การแก้ไขภาพสกปรกอัตโนมัติ
Returns
จริงถ้าข้อความภาพตรงกับคําอธิบายปกติที่ให้
Remarks
การรับรู้ภาพด้วยความสามารถในการระบุ 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)
Parameters
fullPath1
string
ขั้นตอนไปสู่ภาพแรก
fullPath2
string
ทางไปสู่ภาพที่สอง
settings
RecognitionSettings
การตั้งค่าการยอมรับ
ignoreCase
bool
จริงหมายถึงการค้นหาที่ไม่มีความไวต่อกรณี
autoSkew
bool
ช่วยให้การแก้ไขภาพสกปรกอัตโนมัติ
Returns
0 หมายความว่าข้อความนั้นแตกต่างกันทั้งหมด 1 หมายความว่าข้อความนั้นเหมือนกัน
Recognize(OcrInput)
การยอมรับข้อความบนภาพ / เอกสารรองรับ GIF, PNG, JPEG, BMP, TIFF, JFIF, Stream, Directory, arrays, archives
public OcrOutput Recognize(OcrInput images)
Parameters
images
OcrInput
ภาชนะที่มีแหล่งข้อมูล.Aspose.OCR.OcrInput
Returns
รายการของ Aspose.OCR.Recognitionผลลัพธ์ของวัตถุที่มีผลการรับรู้ภาพ
Recognize(OcrInput, RecognitionSettings, CancellationToken)
การยอมรับข้อความบนภาพ / เอกสารรองรับ GIF, PNG, JPEG, BMP, TIFF, JFIF, Stream, Directory, arrays, archives
public OcrOutput Recognize(OcrInput images, RecognitionSettings settings, CancellationToken cancellationToken)
Parameters
images
OcrInput
ภาชนะที่มีแหล่งข้อมูล.Aspose.OCR.OcrInput
settings
RecognitionSettings
การตั้งค่าการรับรู้ Aspose.OCR.RecognitionSettings
cancellationToken
CancellationToken
การยกเลิกวัตถุ
Returns
รายการของ Aspose.OCR.Recognitionผลลัพธ์ของวัตถุที่มีผลการรับรู้ภาพ
Recognize(OcrInput, การรับรู้การตั้งค่า)
การยอมรับข้อความบนภาพ / เอกสารรองรับ GIF, PNG, JPEG, BMP, TIFF, JFIF, Stream, Directory, arrays, archives
public OcrOutput Recognize(OcrInput images, RecognitionSettings settings)
Parameters
images
OcrInput
ภาชนะที่มีแหล่งข้อมูล.Aspose.OCR.OcrInput
settings
RecognitionSettings
การตั้งค่าการรับรู้ Aspose.OCR.RecognitionSettings
Returns
รายการของ Aspose.OCR.Recognitionผลลัพธ์ของวัตถุที่มีผลการรับรู้ภาพ
RecognizeCarPlate(OcrInput)
การยอมรับข้อความบนแผ่นรถ
public OcrOutput RecognizeCarPlate(OcrInput images)
Parameters
images
OcrInput
ภาชนะที่มีแหล่งข้อมูล.Aspose.OCR.OcrInput
Returns
รายการของ Aspose.OCR.Recognitionผลลัพธ์ของวัตถุที่มีผลการรับรู้ภาพ
Remarks
การรับรู้แผ่นรถยนต์ด้วยความสามารถในการระบุ Aspose.OCR.CarPlateRecognitionSettingsรองรับ GIF, PNG, JPEG, BMP, TIFF, JFIF, Stream, Directory, arrays, archives
RecognizeCarPlate(OcrInput, CarPlateRecognitionตั้งค่า)
การยอมรับข้อความบนแผ่นรถ
public OcrOutput RecognizeCarPlate(OcrInput images, CarPlateRecognitionSettings settings)
Parameters
images
OcrInput
ภาชนะที่มีแหล่งข้อมูล.Aspose.OCR.OcrInput
settings
CarPlateRecognitionSettings
การตั้งค่าการรับรู้ Aspose.OCR.CarPlateRecognitionSettings
Returns
รายการของ Aspose.OCR.Recognitionผลลัพธ์ของวัตถุที่มีผลการรับรู้ภาพ
Remarks
การรับรู้แผ่นรถยนต์ด้วยความสามารถในการระบุ 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)
Parameters
images
OcrInput
ภาชนะที่มีแหล่งข้อมูล.Aspose.OCR.OcrInput
Returns
List < CharacterRecognitionResult >
รายการ Aspose.OCR.CharacterRecognitionผลลัพธ์ที่มีข้อมูลสัญลักษณ์ที่พบ
RecognizeCharacters(OcrInput, DetectAreasMode, ภาษา)
การตรวจจับสัญลักษณ์บนภาพสนับสนุน GIF, PNG, JPEG, BMP, TIFF, JFIF, stream, folder, arrays, archives
public List<characterrecognitionresult> RecognizeCharacters(OcrInput images, DetectAreasMode detectAreasMode = DetectAreasMode.UNIVERSAL, Language language = Language.Latin)
Parameters
images
OcrInput
ภาชนะที่มีแหล่งข้อมูล.Aspose.OCR.OcrInput
detectAreasMode
DetectAreasMode
กําหนดประเภทของเครือข่ายประสาทที่ใช้ในการตรวจจับพื้นที่
language
Language
ภาษาที่ใช้สําหรับ OCR
Returns
List < CharacterRecognitionResult >
รายชื่อ Aspose.OCR.ตัวละครที่มีข้อมูลสัญลักษณ์ที่พบ
RecognizeFast(OcrInput)
การยอมรับข้อความบนภาพ / เอกสารรองรับ GIF, PNG, JPEG, BMP, TIFF, JFIF, Stream, Directory, arrays, archives
public List<string> RecognizeFast(OcrInput images)
Parameters
images
OcrInput
ภาชนะที่มีแหล่งข้อมูล.Aspose.OCR.OcrInput
Returns
รายการแถวที่มีผลการรับรู้ภาพ
RecognizeHandwrittenText(OcrInput)
การยอมรับข้อความที่เขียนด้วยมือบนภาพ
public OcrOutput RecognizeHandwrittenText(OcrInput images)
Parameters
images
OcrInput
ภาชนะที่มีแหล่งข้อมูล.Aspose.OCR.OcrInput
Returns
รายการของ Aspose.OCR.Recognitionผลลัพธ์ของวัตถุที่มีผลการรับรู้ภาพ
Remarks
รองรับ GIF, PNG, JPEG, BMP, TIFF, JFIF, Stream, Directory, arrays, archives
การยอมรับ IDCard(OcrInput)
การยอมรับข้อความบนบัตร ID
public OcrOutput RecognizeIDCard(OcrInput images)
Parameters
images
OcrInput
ภาชนะที่มีแหล่งข้อมูล.Aspose.OCR.OcrInput
Returns
รายการของ Aspose.OCR.Recognitionผลลัพธ์ของวัตถุที่มีผลการรับรู้ภาพ
Remarks
การระบุบัตร ID ด้วยความสามารถในการระบุ Aspose.OCR.IDCardRecognitionSettingsรองรับ GIF, PNG, JPEG, BMP, TIFF, JFIF, Stream, Directory, arrays, archives
การยอมรับ IDCard(OcrInput, IDCardRecognitionตั้งค่า)
การยอมรับข้อความบนบัตร ID
public OcrOutput RecognizeIDCard(OcrInput images, IDCardRecognitionSettings settings)
Parameters
images
OcrInput
ภาชนะที่มีแหล่งข้อมูล.Aspose.OCR.OcrInput
settings
IDCardRecognitionSettings
การตั้งค่าการรับรู้ Aspose.OCR.IDCardRecognitionSettings
Returns
รายการของ Aspose.OCR.Recognitionผลลัพธ์ของวัตถุที่มีผลการรับรู้ภาพ
Remarks
การระบุบัตร ID ด้วยความสามารถในการระบุ Aspose.OCR.IDCardRecognitionSettingsรองรับ GIF, PNG, JPEG, BMP, TIFF, JFIF, Stream, Directory, arrays, archives
RecognizeInvoice(OcrInput)
การยอมรับข้อความบนบัญชี
public OcrOutput RecognizeInvoice(OcrInput images)
Parameters
images
OcrInput
ภาชนะที่มีแหล่งข้อมูล.Aspose.OCR.OcrInput
Returns
รายการของ Aspose.OCR.Recognitionผลลัพธ์ของวัตถุที่มีผลการรับรู้ภาพ
Remarks
การรับรู้บัญชีด้วยความสามารถในการระบุ Aspose.OCR.InvoiceRecognitionSettingsรองรับ GIF, PNG, JPEG, BMP, TIFF, JFIF, Stream, Directory, arrays, archives
RecognizeInvoice(OcrInput, InvoiceRecognitionตั้งค่า)
การยอมรับข้อความบนบัญชี
public OcrOutput RecognizeInvoice(OcrInput images, InvoiceRecognitionSettings settings)
Parameters
images
OcrInput
ภาชนะที่มีแหล่งข้อมูล.Aspose.OCR.OcrInput
settings
InvoiceRecognitionSettings
การตั้งค่าการรับรู้ Aspose.OCR.InvoiceRecognitionSettings
Returns
รายการของ Aspose.OCR.Recognitionผลลัพธ์ของวัตถุที่มีผลการรับรู้ภาพ
Remarks
การรับรู้บัญชีด้วยความสามารถในการระบุ 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)
Parameters
images
OcrInput
ภาชนะที่มีแหล่งข้อมูล.Aspose.OCR.OcrInput
Returns
รายการของ Aspose.OCR.Recognitionผลลัพธ์ของวัตถุที่มีผลการรับรู้ภาพ
RecognizeLines(OcrInput, การรับรู้การตั้งค่า)
การรับรู้ภาพที่มีเส้นข้อความเดียวสนับสนุน GIF, PNG, JPEG, BMP, TIFF, JFIF, stream, folder, arrays, archives
public OcrOutput RecognizeLines(OcrInput images, RecognitionSettings settings)
Parameters
images
OcrInput
ภาชนะที่มีแหล่งข้อมูล.Aspose.OCR.OcrInput
settings
RecognitionSettings
การตั้งค่าการรับรู้ Aspose.OCR.RecognitionSettings
Returns
รายการของ Aspose.OCR.Recognitionผลลัพธ์ของวัตถุที่มีผลการรับรู้ภาพ
RecognizePassport(OcrInput)
การยอมรับข้อความบนรหัสผ่าน
public OcrOutput RecognizePassport(OcrInput images)
Parameters
images
OcrInput
ภาชนะที่มีแหล่งข้อมูล.Aspose.OCR.OcrInput
Returns
รายการของ Aspose.OCR.Recognitionผลลัพธ์ของวัตถุที่มีผลการรับรู้ภาพ
Remarks
เรียนรู้รหัสผ่านที่มีความสามารถในการระบุ Aspose.OCR.PassportRecognitionSettingsรองรับ GIF, PNG, JPEG, BMP, TIFF, JFIF, Stream, Directory, arrays, archives
RecognizePassport(OcrInput, PassportRecognitionตั้งค่า)
การยอมรับข้อความบนรหัสผ่าน
public OcrOutput RecognizePassport(OcrInput images, PassportRecognitionSettings settings)
Parameters
images
OcrInput
ภาชนะที่มีแหล่งข้อมูล.Aspose.OCR.OcrInput
settings
PassportRecognitionSettings
การตั้งค่าการรับรู้ Aspose.OCR.PassportRecognitionSettings
Returns
รายการของ Aspose.OCR.Recognitionผลลัพธ์ของวัตถุที่มีผลการรับรู้ภาพ
Remarks
เรียนรู้รหัสผ่านที่มีความสามารถในการระบุ Aspose.OCR.PassportRecognitionSettingsรองรับ GIF, PNG, JPEG, BMP, TIFF, JFIF, Stream, Directory, arrays, archives
RecognizeReceipt(OcrInput)
การยอมรับข้อความบนใบรับรอง
public OcrOutput RecognizeReceipt(OcrInput images)
Parameters
images
OcrInput
ภาชนะที่มีแหล่งข้อมูล.Aspose.OCR.OcrInput
Returns
รายการของ Aspose.OCR.Recognitionผลลัพธ์ของวัตถุที่มีผลการรับรู้ภาพ
Remarks
การระบุบัญชีด้วยความสามารถในการระบุ Aspose.OCR.ReceiptRecognitionSettingsรองรับ GIF, PNG, JPEG, BMP, TIFF, JFIF, Stream, Directory, arrays, archives
RecognizeReceipt(OcrInput, ReceiptRecognitionตั้งค่า)
การยอมรับข้อความบนใบรับรอง
public OcrOutput RecognizeReceipt(OcrInput images, ReceiptRecognitionSettings settings)
Parameters
images
OcrInput
ภาชนะที่มีแหล่งข้อมูล.Aspose.OCR.OcrInput
settings
ReceiptRecognitionSettings
การตั้งค่าการรับรู้ Aspose.OCR.ReceiptRecognitionSettings
Returns
รายการของ Aspose.OCR.Recognitionผลลัพธ์ของวัตถุที่มีผลการรับรู้ภาพ
Remarks
การระบุบัญชีด้วยความสามารถในการระบุ Aspose.OCR.ReceiptRecognitionSettingsรองรับ GIF, PNG, JPEG, BMP, TIFF, JFIF, Stream, Directory, arrays, archives
SaveMultipageDocument(string, SaveFormat, List, string, PdfOptimizationMode)
สามารถรับเอกสารหลายหน้าจากรายการ RecognitionResult วัตถุ
public static void SaveMultipageDocument(string fullFileName, SaveFormat saveFormat, List<recognitionresult> results, string embeddedFontPath = null, PdfOptimizationMode optimizePdf = PdfOptimizationMode.MAXIMUM_QUALITY)
Parameters
fullFileName
string
ชื่อไฟล์ที่มีเส้นทางเพื่อบันทึกการรับรู้ผลในรูปแบบที่เลือก
saveFormat
SaveFormat
รูปแบบเอกสาร (Docx, Txt, PDF, Xlsx, Rtf, Json, Xml)
results
List
<
RecognitionResult
>
รายการของ Aspose.OCR.RecognitionResult วัตถุ
embeddedFontPath
string
ตัวเลือก. เส้นทางเต็มไปสู่ font user.
optimizePdf
PdfOptimizationMode
ลดขนาดไฟล์ PDF โดยลดคุณภาพของภาพพื้นหลัง โดย default คุณภาพภาพเดิมจะยังคงอยู่
SaveMultipageDocument(string, SaveFormat, List, 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)
Parameters
fullFileName
string
ชื่อไฟล์ที่มีเส้นทางเพื่อบันทึกการรับรู้ผลในรูปแบบที่เลือก
saveFormat
SaveFormat
รูปแบบเอกสาร (Docx, Txt, PDF, Xlsx, Rtf, Json, Xml)
results
List
<
RecognitionResult
>
รายการของ Aspose.OCR.RecognitionResult วัตถุ
applySpellingCorrection
bool
ปรับรองการแก้ไขคําล้มเหลวหากคุณมีคําล้มเหลวในผลการรับรู้ของคุณ
language
SpellCheckLanguage
Dictionary for spell check (ตัวเลือก)
dictionaryPath
string
ตัวเลือก. เส้นทางเต็มไปสู่คําพูดของผู้ใช้ในรูปแบบ .txt. รูปแบบคือ [คํา - พื้นที่ - ความถี่(หมายเลข)].ตัวอย่าง: 23135851162\nthat 3400031103\n
embeddedFontPath
string
ตัวเลือก. เส้นทางเต็มไปสู่ font user.
optimizePdf
PdfOptimizationMode
ลดขนาดไฟล์ PDF โดยลดคุณภาพของภาพพื้นหลัง โดย default คุณภาพภาพเดิมจะยังคงอยู่
SaveMultipageDocument(MemoryStream, SaveFormat, รายการ<การยอมรับผลลัพธ์>, string, PdfOptimizationMode)
สามารถรับเอกสารหลายหน้าจากรายการ RecognitionResult วัตถุ
public static void SaveMultipageDocument(MemoryStream stream, SaveFormat saveFormat, List<recognitionresult> results, string embeddedFontPath = null, PdfOptimizationMode optimizePdf = PdfOptimizationMode.MAXIMUM_QUALITY)
Parameters
stream
MemoryStream
MemoryStream สําหรับการบันทึกการรับรู้ผลในรูปแบบที่เลือก
saveFormat
SaveFormat
รูปแบบเอกสาร (Docx, Txt, PDF, Xlsx, Rtf, Json, Xml)
results
List
<
RecognitionResult
>
รายการของ Aspose.OCR.RecognitionResult วัตถุ
embeddedFontPath
string
ตัวเลือก. เส้นทางเต็มไปสู่ font user.
optimizePdf
PdfOptimizationMode
ลดขนาดไฟล์ PDF โดยลดคุณภาพของภาพพื้นหลัง โดย default คุณภาพภาพเดิมจะยังคงอยู่
SaveMultipageDocument(MemoryStream, SaveFormat, รายการ<การยอมรับผลลัพธ์>, 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)
Parameters
stream
MemoryStream
MemoryStream สําหรับการบันทึกการรับรู้ผลในรูปแบบที่เลือก
saveFormat
SaveFormat
รูปแบบเอกสาร (Docx, Txt, PDF, Xlsx, Rtf, Json, Xml)
results
List
<
RecognitionResult
>
รายการของ Aspose.OCR.RecognitionResult วัตถุ
applySpellingCorrection
bool
ปรับรองการแก้ไขคําล้มเหลวหากคุณมีคําล้มเหลวในผลการรับรู้ของคุณ
language
SpellCheckLanguage
Dictionary for spell check (ตัวเลือก)
dictionaryPath
string
ตัวเลือก. เส้นทางเต็มไปสู่คําพูดของผู้ใช้ในรูปแบบ .txt. รูปแบบคือ [คํา - พื้นที่ - ความถี่(หมายเลข)].ตัวอย่าง: 23135851162\nthat 3400031103\n
embeddedFontPath
string
ตัวเลือก. เส้นทางเต็มไปสู่ font user.
optimizePdf
PdfOptimizationMode
ลดขนาดไฟล์ PDF โดยลดคุณภาพของภาพพื้นหลัง โดย default คุณภาพภาพเดิมจะยังคงอยู่
OcrProgress
เหตุการณ์ที่จะติดตามขั้นตอนของการรับรู้ภาพหลายหน้า
public event OcrRecognizeEventHandler OcrProgress