IronOCR 语言 附加 OCR 语言包 Curtis Chau 已更新:八月 24, 2025 下载 IronOCR NuGet 下载 DLL 下载 Windows 安装程序 免费试用 法学硕士副本 法学硕士副本 将页面复制为 Markdown 格式,用于 LLMs 在 ChatGPT 中打开 向 ChatGPT 咨询此页面 在双子座打开 向 Gemini 询问此页面 在双子座打开 向 Gemini 询问此页面 打开困惑 向 Perplexity 询问有关此页面的信息 分享 在 Facebook 上分享 分享到 X(Twitter) 在 LinkedIn 上分享 复制链接 电子邮件文章 This article was translated from English: Does it need improvement? Translated View the article in English IronOCR 支持 125 种国际语言,但 IronOCR 默认只安装了英语。 可以通过 NuGet 或 DLL 文件轻松地将其他语言包添加到您的 C#、VB 或ASP.NET项目中,下载这些 DLL 文件并将其添加为项目引用。 代码示例 国际语言示例 Install-Package IronOcr.Languages.ChineseSimplified using IronOcr; var ocr = new IronTesseract(); // Set the OCR to use Chinese Simplified ocr.Language = OcrLanguage.ChineseSimplified; using (var input = new OcrInput()) { // Add an image to be processed input.AddImage("img/chinese.gif"); // Optional: Enhance the input by deskewing or denoising the image // input.Deskew(); // input.DeNoise(); // Process the image and retrieve the result var result = ocr.Read(input); // Store the recognized text in a string string testResult = result.Text; // Save the recognized text to a file since the console might not display Unicode characters properly result.SaveAsTextFile("chinese.txt"); } using IronOcr; var ocr = new IronTesseract(); // Set the OCR to use Chinese Simplified ocr.Language = OcrLanguage.ChineseSimplified; using (var input = new OcrInput()) { // Add an image to be processed input.AddImage("img/chinese.gif"); // Optional: Enhance the input by deskewing or denoising the image // input.Deskew(); // input.DeNoise(); // Process the image and retrieve the result var result = ocr.Read(input); // Store the recognized text in a string string testResult = result.Text; // Save the recognized text to a file since the console might not display Unicode characters properly result.SaveAsTextFile("chinese.txt"); } Imports IronOcr Private ocr = New IronTesseract() ' Set the OCR to use Chinese Simplified ocr.Language = OcrLanguage.ChineseSimplified Using input = New OcrInput() ' Add an image to be processed input.AddImage("img/chinese.gif") ' Optional: Enhance the input by deskewing or denoising the image ' input.Deskew(); ' input.DeNoise(); ' Process the image and retrieve the result Dim result = ocr.Read(input) ' Store the recognized text in a string Dim testResult As String = result.Text ' Save the recognized text to a file since the console might not display Unicode characters properly result.SaveAsTextFile("chinese.txt") End Using $vbLabelText $csharpLabel 竖式书写语言示例 专为竖写语言设计的词典。 使用韩语和日语 OCR 语言的"垂直"变体。 using IronOcr; var ocr = new IronTesseract(); // Set the OCR to use Japanese Vertical language ocr.Language = OcrLanguage.JapaneseVertical; using (var input = new OcrInput(@"images\image.png")) { // Process the image and get the OCR result var result = ocr.Read(input); // Output the recognized text to the console Console.WriteLine(result.Text); } using IronOcr; var ocr = new IronTesseract(); // Set the OCR to use Japanese Vertical language ocr.Language = OcrLanguage.JapaneseVertical; using (var input = new OcrInput(@"images\image.png")) { // Process the image and get the OCR result var result = ocr.Read(input); // Output the recognized text to the console Console.WriteLine(result.Text); } Imports IronOcr Private ocr = New IronTesseract() ' Set the OCR to use Japanese Vertical language ocr.Language = OcrLanguage.JapaneseVertical Using input = New OcrInput("images\image.png") ' Process the image and get the OCR result Dim result = ocr.Read(input) ' Output the recognized text to the console Console.WriteLine(result.Text) End Using $vbLabelText $csharpLabel 自定义语言示例 适用于您下载或自行训练的任何 Tesseract .traineddata 语言文件。 using IronOcr; var ocr = new IronTesseract(); // Use a custom Tesseract language file ocr.UseCustomTesseractLanguageFile("custom_tesseract_files/custom.traineddata"); using (var input = new OcrInput(@"images\image.png")) { // Process the image and get the OCR result var result = ocr.Read(input); // Output the recognized text to the console Console.WriteLine(result.Text); } using IronOcr; var ocr = new IronTesseract(); // Use a custom Tesseract language file ocr.UseCustomTesseractLanguageFile("custom_tesseract_files/custom.traineddata"); using (var input = new OcrInput(@"images\image.png")) { // Process the image and get the OCR result var result = ocr.Read(input); // Output the recognized text to the console Console.WriteLine(result.Text); } Imports IronOcr Private ocr = New IronTesseract() ' Use a custom Tesseract language file ocr.UseCustomTesseractLanguageFile("custom_tesseract_files/custom.traineddata") Using input = New OcrInput("images\image.png") ' Process the image and get the OCR result Dim result = ocr.Read(input) ' Output the recognized text to the console Console.WriteLine(result.Text) End Using $vbLabelText $csharpLabel 多语言示例 同时学习多种语言。 Install-Package IronOcr.Languages.Arabic using IronOcr; var ocr = new IronTesseract(); // Set the primary language to English ocr.Language = OcrLanguage.English; // Add Arabic as a secondary language ocr.AddSecondaryLanguage(OcrLanguage.Arabic); // Add any number of languages using (var input = new OcrInput(@"images\multi-lang.pdf")) { // Process the PDF and get the OCR result var result = ocr.Read(input); // Output the recognized text to the console Console.WriteLine(result.Text); } using IronOcr; var ocr = new IronTesseract(); // Set the primary language to English ocr.Language = OcrLanguage.English; // Add Arabic as a secondary language ocr.AddSecondaryLanguage(OcrLanguage.Arabic); // Add any number of languages using (var input = new OcrInput(@"images\multi-lang.pdf")) { // Process the PDF and get the OCR result var result = ocr.Read(input); // Output the recognized text to the console Console.WriteLine(result.Text); } Imports IronOcr Private ocr = New IronTesseract() ' Set the primary language to English ocr.Language = OcrLanguage.English ' Add Arabic as a secondary language ocr.AddSecondaryLanguage(OcrLanguage.Arabic) ' Add any number of languages Using input = New OcrInput("images\multi-lang.pdf") ' Process the PDF and get the OCR result Dim result = ocr.Read(input) ' Output the recognized text to the console Console.WriteLine(result.Text) End Using $vbLabelText $csharpLabel 更快的语言示例 专为快速使用而设计的词典。 使用任何 OcrLanguage 的"快速"版本。 using IronOcr; var ocr = new IronTesseract(); // Set the OCR to use the fast variant of English ocr.Language = OcrLanguage.EnglishFast; using (var input = new OcrInput(@"images\image.png")) { // Process the image and get the OCR result var result = ocr.Read(input); // Output the recognized text to the console Console.WriteLine(result.Text); } using IronOcr; var ocr = new IronTesseract(); // Set the OCR to use the fast variant of English ocr.Language = OcrLanguage.EnglishFast; using (var input = new OcrInput(@"images\image.png")) { // Process the image and get the OCR result var result = ocr.Read(input); // Output the recognized text to the console Console.WriteLine(result.Text); } Imports IronOcr Private ocr = New IronTesseract() ' Set the OCR to use the fast variant of English ocr.Language = OcrLanguage.EnglishFast Using input = New OcrInput("images\image.png") ' Process the image and get the OCR result Dim result = ocr.Read(input) ' Output the recognized text to the console Console.WriteLine(result.Text) End Using $vbLabelText $csharpLabel 更高精度的详细语言示例 词典经过优化,准确性更高,但检索速度较慢。 使用任何 OcrLanguage 的"最佳"版本。 Install-Package IronOcr.Languages.French using IronOcr; var ocr = new IronTesseract(); // Set the OCR to use the best variant of French ocr.Language = OcrLanguage.FrenchBest; using (var input = new OcrInput(@"images\image.png")) { // Process the image and get the OCR result var result = ocr.Read(input); // Output the recognized text to the console Console.WriteLine(result.Text); } using IronOcr; var ocr = new IronTesseract(); // Set the OCR to use the best variant of French ocr.Language = OcrLanguage.FrenchBest; using (var input = new OcrInput(@"images\image.png")) { // Process the image and get the OCR result var result = ocr.Read(input); // Output the recognized text to the console Console.WriteLine(result.Text); } Imports IronOcr Private ocr = New IronTesseract() ' Set the OCR to use the best variant of French ocr.Language = OcrLanguage.FrenchBest Using input = New OcrInput("images\image.png") ' Process the image and get the OCR result Dim result = ocr.Read(input) ' Output the recognized text to the console Console.WriteLine(result.Text) End Using $vbLabelText $csharpLabel 如何安装 OCR 语言包 其他 OCR 语言包可供下载,详情请见下方。 任何一个 安装 NuGet 包。 在 NuGet 上搜索 IronOCR 语言。 或者下载"ocrdata"文件,并将其添加到您 .NET 项目中任意文件夹下。设置CopyToOutputDirectory = CopyIfNewer 下载 OCR 语言包 Afrikaans Language Pack Afrikaans Zip NuGet Albanian Language Pack gjuha shqipe Zip NuGet Amharic Language Pack አማርኛ Zip NuGet Ancient Greek Language Pack Ἑλληνική Zip NuGet Arabic Language Pack العربية Zip NuGet Armenian Language Pack Հայերեն Zip NuGet Assamese Language Pack অসমীযা Zip NuGet Azerbaijani Language Pack azərbaycan dili Zip NuGet Basque Language Pack euskara Zip NuGet Belarusian Language Pack беларуская мова Zip NuGet Bengali Language Pack Bangla Zip NuGet Bosnian Language Pack bosanski jezik Zip NuGet Breton Language Pack brezhoneg Zip NuGet Bulgarian Language Pack български език Zip NuGet Canadian Aboriginal Alphabet Language Pack Canadian First Nations Zip NuGet Catalan Language Pack català Zip NuGet Cebuano Language Pack Bisaya Zip NuGet Cherokee Language Pack ᏣᎳᎩ ᎦᏬᏂᎯᏍᏗ Zip NuGet Chinese Simplified Language Pack 中文 (Zhōngwén) Zip NuGet Corsican Language Pack corsu Zip NuGet Croatian Language Pack hrvatski jezik Zip NuGet Cyrillic Language Pack Cyrillic scripts Zip NuGet Czech Language Pack čeština Zip NuGet Danish Language Pack dansk Zip NuGet Devanagari Language Pack Nagair Zip NuGet Divehi Language Pack ދވހ Zip NuGet Dutch Language Pack Nederlands Zip NuGet Dzongkha Language Pack རང་ཁ Zip NuGet Esperanto Language Pack Esperanto Zip NuGet Estonian Language Pack eesti Zip NuGet Ethiopic Alphabet Language Pack Ge'ez Zip NuGet Faroese Language Pack føroyskt Zip NuGet Filipino Language Pack The Philippines Zip NuGet Financial Language Pack Spreadsheets & Numbers Zip NuGet Finnish Language Pack suomi Zip NuGet Fraktur Language Pack Generic Fraktur Zip NuGet Frankish Language Pack Frenkisk Zip NuGet French Language Pack français Zip NuGet Galician Language Pack galego Zip NuGet Georgian Language Pack ქართული Zip NuGet German Language Pack Deutsch Zip NuGet Greek Language Pack ελληνικά Zip NuGet Gujarati Language Pack ગજરાતી Zip NuGet Gurmukhi Alphabet Language Pack Gurmukhī Zip NuGet Haitian Language Pack Kreyòl ayisyen Zip NuGet Han Simplified Alphabet Language Pack Samhan Zip NuGet Hangul Language Pack Hangul Alphabet Zip NuGet Hebrew Language Pack עברית Zip NuGet Hindi Language Pack हिनदी Zip NuGet Hungarian Language Pack magyar Zip NuGet Icelandic Language Pack Íslenska Zip NuGet Indonesian Language Pack Bahasa Indonesia Zip NuGet Inuktitut Language Pack ᐃᓄᒃᑎᑐᑦ Zip NuGet Irish Language Pack Gaeilge Zip NuGet Italian Language Pack italiano Zip NuGet Japanese Language Pack 日本語 (にほんご) Zip NuGet Javanese Language Pack basa Jawa Zip NuGet Kannada Language Pack ಕನನಡ Zip NuGet Kazakh Language Pack қазақ тілі Zip NuGet Khmer Language Pack ខមែរ Zip NuGet Korean Language Pack 한국어 (韓國語) Zip NuGet Kyrgyz Language Pack Кыргызча Zip NuGet Lao Language Pack ພາສາລາວ Zip NuGet Latin Language Pack latine Zip NuGet Latin Alphabet Language Pack latine Zip NuGet Latvian Language Pack latviešu valoda Zip NuGet Lithuanian Language Pack lietuvių kalba Zip NuGet Luxembourgish Language Pack Lëtzebuergesch Zip NuGet Macedonian Language Pack македонски јазик Zip NuGet Malay Language Pack bahasa Melayu Zip NuGet Malayalam Language Pack മലയാളം Zip NuGet Maltese Language Pack Malti Zip NuGet Maori Language Pack te reo Māori Zip NuGet Marathi Language Pack मराठी Zip NuGet MICR Language Pack Magnetic Ink Character Recognition Zip NuGet Middle English Language Pack English (1100-1500 AD) Zip NuGet Middle French Language Pack Moyen Français Zip NuGet Mongolian Language Pack монгол Zip NuGet Myanmar Language Pack Burmese Zip NuGet Nepali Language Pack नपाली Zip NuGet Northern Kurdish Language Pack Kurmanji Zip NuGet Norwegian Language Pack Norsk Zip NuGet Occitan Language Pack occitan Zip NuGet Oriya Language Pack ଓଡଆ Zip NuGet Panjabi Language Pack ਪਜਾਬੀ Zip NuGet Pashto Language Pack پښتو Zip NuGet Persian Language Pack فارسی Zip NuGet Polish Language Pack język polski Zip NuGet Portuguese Language Pack português Zip NuGet Quechua Language Pack Runa Simi Zip NuGet Romanian Language Pack limba română Zip NuGet Russian Language Pack русский язык Zip NuGet Sanskrit Language Pack ससकतम Zip NuGet Scottish Gaelic Language Pack Gàidhlig Zip NuGet Serbian Language Pack српски језик Zip NuGet Sindhi Language Pack सिनधी Zip NuGet Sinhala Language Pack සංහල Zip NuGet Slovak Language Pack slovenčina Zip NuGet Slovene Language Pack slovenski jezik Zip NuGet Spanish Language Pack español Zip NuGet Sundanese Language Pack Basa Sunda Zip NuGet Swahili Language Pack Kiswahili Zip NuGet Swedish Language Pack Svenska Zip NuGet Syriac Language Pack Syrian Zip NuGet Tagalog Language Pack Wikang Tagalog Zip NuGet Tajik Language Pack тоҷикӣ Zip NuGet Tamil Language Pack தமிழ Zip NuGet Tatar Language Pack татар теле Zip NuGet Telugu Language Pack తలుగు Zip NuGet Thaana Alphabet Language Pack Taana Zip NuGet Thai Language Pack ไทย Zip NuGet Tibetan Language Pack Tibetan Standard Zip NuGet Tigrinya Language Pack ትግርኛ Zip NuGet Tonga Language Pack faka Tonga Zip NuGet Turkish Language Pack Türkçe Zip NuGet Ukrainian Language Pack українська мова Zip NuGet Urdu Language Pack اردو Zip NuGet Uyghur Language Pack Uyƣurqə Zip NuGet Uzbek Language Pack O‘zbek Zip NuGet Vietnamese Language Pack Tiếng Việt Zip NuGet Welsh Language Pack Cymraeg Zip NuGet Western Frisian Language Pack Frysk Zip NuGet Yiddish Language Pack יידיש Zip NuGet Yoruba Language Pack Yorùbá Zip NuGet 帮助 如果您要阅读的语言不在上面的列表中,请 [联系我们](https://ironsoftware.com/contact-us/)。 如有需要,我们还提供其他多种语言版本。 优先考虑 IronOCR 许可证持有者的生产资源,因此请考虑 [为 IronOCR 申请许可证](/csharp/ocr/licensing/),以访问您所需的语言包。