Asposeocr for net
Author: s | 2025-04-24
AsposeOcr class. Main API for Aspose OCR library. The AsposeOcr type exposes the following members: Constructors AsposeOcr class. Main API for Aspose OCR library. The AsposeOcr type exposes the following members: Constructors
.NET Versions Explained - .NET, .NET Core, .NET Standard, .NET
Finding the right font can be challenging. Sometimes, you come across a font in an image that you want to use. In this blog post, we will explore how to find font from image online. This process is simple and efficient, making it accessible for everyone.이미지에서 온라인 글꼴 식별기이미지에서 글꼴을 쉽게 찾을 수 있는 온라인 글꼴 식별 도구가 있습니다. 이 도구를 사용하면 이미지를 업로드하고 그 안에 사용된 글꼴을 빠르게 식별할 수 있습니다.이미지에서 폰트를 찾는 방법 온라인다음 간단한 단계를 따라 이미지에서 온라인으로 폰트를 찾으세요:Visit the Aspose OCR Font Detector website.“업로드” 버튼을 클릭하여 이미지 파일을 선택하세요.업로드한 후, "이 글꼴은 무엇인가요?" 버튼을 클릭하세요.도구가 이미지를 분석할 때까지 기다리세요.스크린에 표시된 감지된 글꼴 정보를 확인하십시오.우리는 귀하의 개인 정보와 보안을 보장하기 위해 24시간 후에 서버에서 모든 파일을 자동으로 삭제합니다.OCR 이미지: 개발자 가이드Aspose.OCR은 스캔된 이미지를 편집 가능하고 검색 가능한 텍스트로 변환하는 최첨단 광학 문자 인식 라이브러리입니다. 빠르고 정확하며 여러 언어를 지원합니다. 문서를 디지털화하든, 데이터 입력을 자동화하든, 접근성을 향상시키든, Aspose.OCR은 원활한 결과를 제공합니다. 사용자 친화적인 API는 귀하의 애플리케이션에 손쉽게 통합됩니다. 플랫폼 간에 작동하며, 귀하의 시스템과의 호환성을 보장합니다.이미지에서 텍스트 찾기 C#다음 단계와 C#에서 이미지에서 텍스트를 찾기 위한 코드 예제를 따라 주십시오.Install Aspose.OCR for .NET 를 통해 NuGet 에서 귀하의 애플리케이션에 설치하십시오.아래 코드를 복사하여 이미지 파일에서 텍스트를 찾고 추출하세요:using Aspose.OCR;// AsposeOcr의 인스턴스를 초기화합니다.AsposeOcr api = new AsposeOcr();OcrInput images = new OcrInput(InputType.SingleImage){ "source.jpg"};// 스크린샷 이미지를 OCR로 인식하기var result = api.Recognize(images);// 인식된 텍스트를 표시하세요.foreach (var image in result){ Console.WriteLine(image.FileName); Console.WriteLine(image.RecognitionText);}이미지에서 텍스트 찾기 파이썬으로You can also find text from an image using Aspose.OCR in Python. Here`s how:Install Aspose.OCR for Python 을 pip 명령어를 통해 애플리케이션에 설치하십시오.아래 코드를 복사하여 이미지 파일에서 텍스트를 찾고 추출하세요:import aspose.ocr as ocr# Aspose.OCR API 인스턴스화api = ocr.AsposeOcr()# 인식 배치에 이미지를 추가하세요img = ocr.OcrInput(ocr.InputType.SINGLE_IMAGE)img.add("source.jpg")# 이미지를 인식하다result = api.recognize(img)# 인식 결과 출력print(result[0].recognition_text)이미지에서 텍스트 찾기 자바유사하게, Java에서 이미지에서 텍스트를 찾을 수도 있습니다. 방법은 다음과 같습니다:Install Aspose.OCR for Java 를 귀하의 애플리케이션에 설치하십시오.아래 코드를 복사하여 이미지 파일에서 텍스트를 찾고 추출하세요:// AsposeOCR 인식 엔진 초기화AsposeOCR api = new AsposeOCR();// 이미지를 로드하고 인식합니다.String result = RecognizePage("source.png");// 결과를 보여주세요System.out.println("Recognition result:\n" + result + "\n\n");무료 라이센스 받기Aspose 제품 탐색에 관심이 있으신가요? 라이센스 페이지를 방문하여 무료 임시 라이센스를 받으세요. 쉽고 빠릅니다! 오늘부터 프로젝트를 향상시키기 시작하세요.이미지에서 글꼴 찾기: 무료 리소스이미지에서 글꼴을 찾는 것 외에도, Aspose.OCR에 대한 이해를 깊게 할 수 있는 다양한 자료를 제공합니다. 더 많은 통찰력과 실제 예제는 우리 문서와 튜토리얼을 확인해 보세요.개발자 가이드무료 온라인 애플리케이션API 참조사용 방법 가이드 및 기사결론이 블로그 게시물에서는 Aspose.OCR을 사용하여 온라인에서 이미지에서 글꼴을 찾는 방법을 탐색했습니다. 우리는 온라인 도구를 다루었고 C#, Java 및 Python에 대한 단계별 가이드를 제공했습니다. 프로젝트를 향상하고 작업 흐름을 간소화하기 위해 Aspose.OCR에 대해 더 알아보세요.질문이 있거나 추가 도움이 필요하시면, 언제든지 free support forum 에 연락해 주시기 바랍니다.See Also이미지를 온라인으로 텍스트로 변환하기온라인에서 손글씨를 텍스트로 변환하기Best Arabic OCR Online Tool
Net Net - definition of Net Net by The Free Dictionary
高效精准的OCR借助先进的 Python 技术,体验 OCR 结果无与伦比的速度和精度。多种语言识别 140 多种语言的文本:英语、法语、德语、西班牙语、俄语、中文、印地语、日语、韩语、泰米尔语、阿拉伯语、波斯语等。普遍的使用 Python 轻松处理来自不同来源(扫描仪、相机和智能手机)的图像。亚洲语言实现中文、阿拉伯文、梵文和德拉威文字以及混合语言文本的精确识别。保留布局维护源格式以实现准确的文本表示并识别表格。准备好识别 准备好识别 将文件拖放到此处或单击浏览** 通过上传您的文件或使用我们的服务,您同意我们的 使用条款 和 隐私政策.# Initialize OCR enginerecognitionEngine = AsposeOcr()# Add image to batchinput = OcrInput(InputType.SINGLE_IMAGE)input.add("sample.png")# Extract text from imageresult = recognitionEngine.recognize(input)# Display the recognition resultprint(result[0].recognition_text)Python via .NET易于开发、代码可读性和可维护性拥有最多的功能并接收最频繁的更新整体速度可能比其他平台慢一点Python via Java在任何平台上使用相同的库在任何设备上无缝运行您的应用程序需要 Java 运行时环境 (JRE) 版本 8 或更高版本Python via C++无论平台如何,最快的速度对资源管理的大量控制针对经验丰富的开发人员批量OCRMulti-page PDFDjVuZIPFolder识别结果TextPDFMicrosoft WordMicrosoft ExcelHTMLRTFePubJSONXML可搜索的 PDF将任何扫描件转换为完全可搜索、可索引和可编辑的文档。任何字体和样式识别并识别所有流行字体和样式的文本。微调识别调整每个 OCR 参数以获得最佳识别结果。查找图像中的文本在一组图像中搜索文本或正则表达式。比较图像文本比较两个图像上的文本,无论大小写和布局如何。安装Aspose.OCR for Python via .NET 作为 Python Wheel 或独立的可下载包进行分发,很容易分发。直接从您首选的 Python 集成开发环境 (IDE) 集成到您的 Python 项目是一个无缝的过程。只需安装它,您就可以利用完整的 OCR 功能,以各种格式保存识别结果。安装后,您可以立即开始通过 .NET 使用 Aspose.OCR for Python ,尽管有一定的限制。临时许可证可解除 30 天内的所有试用版限制。利用这段时间开始开发功能齐全的 OCR 应用程序,以便您在稍后阶段做出明智的决定是否通过 .NET 购买 Aspose.OCR for Python。加载许可证lic = License()lic.set_license(self.licPath)识别照片上的文字从 Aspose OCR for Python 中的任何内容读取文本就像调用通用识别方法一样简单。将照片转换为文本 - Pythonapi = AsposeOcr()# Add image to the recognition batchinput = OcrInput(InputType.SINGLE_IMAGE)input.add("source1.png")# Set recognition languagerecognitionSettings = RecognitionSettings()recognitionSettings.language = Language.UKR;# Recognize the imageresults = api.recognize(input, recognitionSettings)# Print recognition resultfor result in results:print(result.recognition_text)Python 通用转换器我们的 API 能够熟练地读取来自扫描仪、相机或智能手机的任何图像:PDF 文档、JPEG、PNG、TIFF、GIF、BMP 图像,甚至 DjVu 文件。对多页 PDF 文档、TIFF 和 DjVu 图像的全面支持确保了多功能性。您还可以通过 URL 提供来自网络的图像。识别结果以流行的文档和数据交换格式返回:纯文本、PDF、Microsoft Word、Microsoft Excel、JSON 和 XML。识别 PDF 并将结果保存为各种输出格式 - Pythonapi = AsposeOcr()# Create OcrInput and add imagesinput = OcrInput(aspose.ocr.models.InputType.PDF)file = os.path.join(self.dataDir, "pdfs/multi_page_1.pdf")input.add(file, 0, 3)set = RecognitionSettings()set.set_detect_areas_mode = DetectAreasMode.NONEresult = api.recognize(input, set)api.save_multipage_document("test.xml", SaveFormat.XML, result)api.save_multipage_document("test.json", SaveFormat.JSON, result)api.save_multipage_document("test.pdf", SaveFormat.PDF, result)api.save_multipage_document("test.xlsx", SaveFormat.XLSX, result)api.save_multipage_document("test.docx", SaveFormat.DOCX, result)api.save_multipage_document("test.txt", SaveFormat.TEXT, result)api.save_multipage_document("test.html", SaveFormat.HTML, result)api.save_multipage_document("test.epub", SaveFormat.EPUB, result)api.save_multipage_document("test.rtf", SaveFormat.RTF, result)Python 中的资源优化光学字符识别需要资源。我们的 API 提供了灵活的方法来平衡经典的时间-价格-质量三元组:在彻底识别和快速识别之间进行选择。指定分配用于识别的线程数,或允许库自动缩放到处理器核心的数量。通过将计算卸载到 .NET 后端来释放 CPU。快速识别——Pythonapi = AsposeOcr()# Create OcrInput and add imagesinput = OcrInput(InputType.SINGLE_IMAGE)input.add("sample_line.png")result = api.recognize_fast(input)识别单行如果您的图像已被修剪为单行文本,则可以以最快的模式对其进行识别,而无需自动更正、内容结构检测和其他消耗资源的步骤。它可以将 OCR 速度比正常识别过程快 7 倍。识别图像上的单行文本 - Pythonapi = AsposeOcr()# Create OcrInput and add imagesinput = OcrInput(InputType.SINGLE_IMAGE)input.add("sample_line.png")# recognize without regions detectionsettings = RecognitionSettings()settings.recognize_single_line = Trueresult = api.recognize(input, settings)print(result[0].recognition_text)Net-Net - Urban Dictionary: net'
.NET Framework (7.1.1.120)Released Nov 15, 2013Requires Microsoft .NET Framework 2.0 (works with .NET 3.x and 4.x).WPF controls and multithreaded recalc require .NET 4.0 (works with .NET 4.5).SpreadsheetGear 2012 for Silverlight (7.1.1.120)Released Nov 15, 2013Requires Silverlight 5.SpreadsheetGear 2012 for .NET Framework (7.0.6.138)Released Oct 29, 2012Requires Microsoft .NET Framework 2.0 (works with .NET 3.x and 4.x).WPF controls and multithreaded recalc require .NET 4.0 (works with .NET 4.5).SpreadsheetGear 2012 for Silverlight (7.0.6.138)Released Oct 29, 2012Requires Silverlight 5.SpreadsheetGear 2010 for .NET Framework (6.0.3.236)Released Jun 15, 2010Requires Microsoft .NET Framework 2.0 (works with .NET 3.x and 4.0).SpreadsheetGear 2009 for .NET Framework (5.1.1.198)Released Aug 7, 2009Requires Microsoft .NET Framework 2.0 (works with .NET 3.x).SpreadsheetGear 2009 for .NET Framework (5.0.3.118)Released Jun 16, 2009Requires Microsoft .NET Framework 2.0 (works with .NET 3.x).SpreadsheetGear 2008 for .NET Framework (4.0.12.106)Released Jul 1, 2008Requires Microsoft .NET Framework 2.0 (works with .NET 3.x).SpreadsheetGear 2007 for .NET Framework (3.1.2.102)Released Dec 12, 2007Requires Microsoft .NET Framework 2.0 (works with .NET 3.x).SpreadsheetGear 2007 for .NET Framework (3.1.1.106)Released Dec 12, 2007Requires Microsoft .NET Framework 2.0 (works with .NET 3.x).SpreadsheetGear 2007 for .NET Framework (3.1.0.104)Released Dec 12, 2007Requires Microsoft .NET Framework 2.0 (works with .NET 3.x).SpreadsheetGear 2007 for .NET Framework (3.0.2.112)Released May 23, 2007Requires Microsoft .NET Framework 2.0 (works with .NET 3.x).SpreadsheetGear 2007 for .NET Framework (3.0.1.104)Released May 23, 2007Requires Microsoft .NET Framework 2.0 (works with .NET 3.x).SpreadsheetGear 2007 for .NET Framework (3.0.0.122)Released May 23, 2007Requires Microsoft .NET Framework 2.0 (works with .NET 3.x).SpreadsheetGear 2006 for .NET Framework (2.5.1.120)Released Jan 9, 2007Requires Microsoft .NET Framework 2.0 (works with .NET 3.x).SpreadsheetGear 2006 for .NET Framework (2.5.0.106)Released Jan 9, 2007Requires Microsoft .NET Framework 2.0 (works with .NET 3.x).SpreadsheetGear 2006 for .NET Framework (2.1.0.16)Released Sep 19, 2006Requires Microsoft .NET Framework 2.0 (works with .NET 3.x).SpreadsheetGear 2006 for .NET Framework (2.0.1.14)Released Jun 22, 2006Requires Microsoft .NET Framework 2.0 (works with .NET 3.x).SpreadsheetGear 2006 for .NET Framework (2.0.0.50)Released Jun 22, 2006Requires Microsoft .NET Framework 2.0 (works with .NET 3.x).SpreadsheetGear for .NET Framework Version 1 (1.7.2.102)Released Dec 12, 2007Requires Microsoft .NET Framework 1.1 or 2.0 (works with .NET 3.x).Includes no Windows Forms controls.SpreadsheetGear for .NET Framework Version 1 (1.7.1.106)Released Dec 12, 2007Requires Microsoft .NET Framework 1.1 or 2.0 (works with .NET 3.x).Includes no Windows Forms controls.SpreadsheetGear for .NET Framework Version 1 (1.7.0.104)Released Dec 12, 2007Requires Microsoft .NET Framework 1.1 or 2.0 (works with .NET 3.x).Includes no Windows Forms controls.SpreadsheetGear for .NET Framework Version 1 (1.6.2.112)Released May 23, 2007Requires Microsoft .NET Framework 1.1 or 2.0 (works with .NET 3.x).Includes no Windows Forms controls.SpreadsheetGear for .NET Framework Version 1 (1.6.1.104)Released May 23, 2007Requires Microsoft .NET Framework 1.1 or 2.0 (works with .NET 3.x).Includes no Windows Forms controls.SpreadsheetGear for .NET Framework Version 1 (1.6.0.122)Released May 23, 2007Requires Microsoft .NET Framework 1.1 or 2.0 (works with .NET 3.x).Includes. AsposeOcr class. Main API for Aspose OCR library. The AsposeOcr type exposes the following members: Constructors.NET May 2025 Updates – .NET 6.0.5, .NET and, .NET
Pesquisar, copiar ou manipular o conteúdo do documento.Aspose .NET OCR oferece uma maneira rápida, fácil e altamente confiável de converter qualquer PDF digitalizado em um documento totalmente pesquisável e indexável. Ele reconhece com precisão o conteúdo da página, convertendo-o em uma camada de texto legível por máquina sobre a imagem original que pode ser selecionada, copiada, lida por software de conversão de texto em fala e até mesmo processada automaticamente por tradutores, resumidores e outras análises baseadas em IA. ferramentas.Adicionar sobreposição de texto ao PDF - C#// Load the scanned PDFOcrInput pdf = new OcrInput(InputType.PDF);pdf.Add("Delivery-Agreement.pdf");// Recognize the text from documentAsposeOcr api = new AsposeOcr();ListRecognitionResult> result = api.Recognize(pdf);// Save searchable PDFAsposeOcr.SaveMultipageDocument("Readable-Contract.pdf", SaveFormat.Pdf, result);// Report progressConsole.WriteLine($@"Recognition finished. See '{Directory.GetCurrentDirectory()}\Readable-Contract.pdf'.");Pesquisar texto em imagensOs arquivos digitais, especialmente em grandes organizações, geralmente consistem em uma vasta coleção de digitalizações e fotos, muitas das quais podem conter documentos de várias páginas. A gestão eficiente e a organização eficaz de tais arquivos são essenciais para facilitar a recuperação e navegação de informações. No entanto, as imagens não contêm texto legível por máquina, impossibilitando a pesquisa e análise do conteúdo do documento.A biblioteca C# OCR permite pesquisar facilmente texto em imagens, independentemente da fonte, tamanho do texto, estilo e outros parâmetros. A biblioteca também oferece suporte a pesquisas que não diferenciam maiúsculas de minúsculas e expressões regulares, que são extremamente úteis em vários aplicativos e setores. Esta funcionalidade pode ser utilizada para categorizar documentos com base no conteúdo, palavras-chave ou padrões encontrados no texto; pesquisa de termos ou cláusulas específicas em acordos e contratos; reorganizar arquivos com base em palavras-chave ou conteúdo encontrado neles; localizar e identificar dados pessoais em documentos, tornando mais fácil garantir a conformidade com o GDPR e gerenciar informações confidenciais de maneira mais eficaz. A pesquisa em imagens também permite criar fluxos de trabalho automatizados e agilizar diversos processos de negócios ao receber contratos e faturas assinadas.Pesquisar texto em imagens - C#string sourceFolder = "images";string searchFor = "OCR";// Search for text in imagesAsposeOcr api = new AsposeOcr();foreach(var image in Directory.GetFiles(sourceFolder,"*.png")){ bool found = api.ImageHasText(image, searchFor); if(found) Console.WriteLine($@"Found ""{searchFor}"" in image ""{image}""");}.NET May 2025 Updates .NET 6.0.5, .NET and, .NET
A screenshot can include text, image, drawings etc. where you might need to extract written information. In such scenarios, you can convert the screenshot to text in order to retrieve the text information. For example, there may be different incoming screenshots as the proof of payment to a company and the text information about the amount required to be extracted. In accordance with such requirements, this article covers how to convert a screenshot to text with OCR in C#.Screenshot to Text with OCR – C# API InstallationConvert Screenshot to Text with OCR in C#Convert Screenshot from URL to Text with OCR in C#Screenshot to Text with OCR – C# API InstallationAspose.OCR for .NET API can be used to perform optical recognition operations over an image. Screenshots are basically the images of screen contents so you can process such images to extract some information. Simply access the API by downloading the DLL reference file from the New Releases page or using the NuGet installation command below:PM> Install-Package Aspose.OCRYou can convert a screenshot to text with OCR in C# with the following steps:Create an object of AsposeOcr class.Convert a screenshot to text using the RecognizeImage method.Display the recognized text.The following sample code demonstrates how to convert a screenshot to text in C#:Convert Screenshot from URL to Text with OCR in C#In some cases, the screenshots are shared via URL links of DropBox, Imgur, etc. The API enables you to utilize the URL link instead of downloading and then processing such screenshots. The steps below explain how to convert a screenshot from URL to Text with OCR in C#:Get a screenshot from URL for OCR operations.Create an instance of AsposeOcr class.Recognize the text from the screenshot with OCR.Print the recognized text from the URL.The code snippet below explains how to convert a screenshot from URL to text with OCR in C#:Get a Free Evaluation LicenseYou may request a Free Temporary License to evaluate the API in its full capacity.ConclusionIn this article, you have learned how to convert a screenshot to text with OCR in C#. This way you can extract a lot of useful information based on your requirements. Furthermore, you may write to us at the forum in case you have any concerns.See AlsoConvert JPG or PNG Image to XML with OCR in C#.NET March 2025 Updates – .NET 6.0.3, .NET and, .NET
全球 OCR 應用C# OCR 可辨識英語、西里爾語、阿拉伯語、波斯語、中文、日語、韓語、印地語、泰米爾語和混合語言文本。閱讀所有內容從透過掃描器或相機獲得的任何文件中獲取文本,並直接從網絡鏈接處理圖像。可靠的結果對所有影像(包括失焦、旋轉、扭曲和雜訊影像)實現高辨識精度。大量識別大量識別資料夾和檔案中的所有影像;閱讀多頁 PDF 文件和 TIFF 影像。佈局檢測識別圖像中的內容區塊並對其進行分類,以確保提取文字的順序正確,無論佈局如何。準備好識別 準備好識別 將檔案拖曳到此處或按一下瀏覽** 透過上傳您的文件或使用我們的服務,您同意我們的 使用條款 和 隱私權政策.// Initialize OCR enginevar recognitionEngine = new Aspose.OCR.AsposeOcr();// Add image to the recognition batchvar source = new Aspose.OCR.OcrInput(Aspose.OCR.InputType.SingleImage);source.Add("");// Perform OCRListAspose.OCR.RecognitionResult> results = recognitionEngine.Recognize(source);// Output recognized textConsole.WriteLine(results[0].RecognitionText);批量OCRMulti-page PDFDjVuZIPFolder識別結果TextPDFMicrosoft WordMicrosoft ExcelHTMLRTFePubJSONXML可搜尋的 PDF將任何掃描結果轉換為完全可搜尋和可索引的文件。任何字體和样式識別並識別所有流行字體和样式的文字。微調識別調整每個 OCR 參數以獲得最佳識別結果。尋找圖像中的文本在一組圖像中搜尋文字或正規表示式。比較圖像文本比較兩個圖像上的文本,無論大小寫和佈局如何。安裝.NET OCR 以NuGet 套件或作為可下載檔案分發/ ) 具有最小的依賴性。該套件可以直接從 Microsoft Visual Studio 新增到您的專案中。只需將其安裝到您的專案中,您就可以從圖像中提取文字並以任何支援的格式儲存識別結果。如果您的系統具有支援 CUDA 的 GPU,則可以使用GPU 加速 OCR 引擎來顯著提高識別效能。您可以在安裝後立即開始使用 Aspose OCR for .NET,但有一些限制。臨時授權可消除試用版 30 天的所有限制。使用它開始建立功能齊全的 OCR 應用程序,並稍後做出購買 .NET OCR 的最終決定。從照片中提取文本當人們通常想到 OCR(光學字元辨識)時,第一個聯想通常是掃描器作為主要捕捉設備。這種關聯有歷史原因,並且在許多情況下仍然普遍存在,為從實體文件中捕獲列印文字提供了一致且受控的環境,具有無與倫比的品質。然而,掃描器是專用設備,並非總是在手邊,需要固定工作站才能操作。幸運的是,現代世界提供了傳統掃描器的便利替代品 - 智慧型手機相機。智慧型手機相機技術的進步確保即使是入門級智慧型手機也能提供足夠的品質來捕獲 OCR 就緒文件。內建記憶體讓您可以比以往更輕鬆地隨時隨地數位化大量文件、報紙、書籍、街道標誌和其他文字。您所需要的只是將這些照片轉換為機器可讀文字的正確技術。我們的 C# OCR 庫專門設計用於識別所有類型的開箱即用的圖像,並且可以進一步微調以處理低品質的照片。與現代智慧型手機結合,它允許您為大多數日常掃描和文字辨識任務創建強大的 OCR 應用程式。最先進的影像處理和文件結構分析只需幾行程式碼即可執行,使您能夠專注於業務而不是複雜的數學演算法、神經網路和其他複雜的技術。照片 OCR - C#// Configure preprocessing filtersPreprocessingFilter filters = new PreprocessingFilter { PreprocessingFilter.ContrastCorrectionFilter(), PreprocessingFilter.AutoDewarping()};// Add a photo for recognitionOcrInput photos = new OcrInput(InputType.SingleImage, filters);photos.Add("photo.png");// Fine-tune recognition setingsRecognitionSettings settings = new RecognitionSettings();settings.Language = Language.Eng;settings.DetectAreasMode = DetectAreasMode.CURVED_TEXT;// Extract text from a pageAsposeOcr api = new AsposeOcr();ListRecognitionResult> results = api.Recognize(photos, settings);// Automatically correct spelling (English)string text = results[0].GetSpellCheckCorrectedText(SpellCheckLanguage.Eng);// Display recognized textConsole.WriteLine(text);從掃描件建立可搜尋的 PDFPDF 是掃描紙本文件最受歡迎的格式之一,特別是因為它能夠將多個頁面合併為一個文件。這種格式廣泛用於個人、企業、銀行和政府機構之間交換合約、發票、法律文件、護照和身分證以及許多其他文件。然而,任何掃描的 PDF 本質上都是影像的集合。它不包含機器可讀的文本,因此使用者無法搜尋、複製或以其他方式操作文件內容。Aspose .NET OCR 為您提供了一種快速、簡單且高度可靠的方法,將任何掃描的 PDF 轉換為完全可搜尋和可索引的文件。它可以準確地識別頁面內容,將其轉換為原始圖像上的機器可讀文字圖層,可以透過文字轉語音軟體進行選擇、複製和讀取,甚至可以由翻譯器、摘要器和其他人工智慧分析工具自動處理工具。在 PDF 中添加文字疊加 - C#// Load the scanned PDFOcrInput pdf = new OcrInput(InputType.PDF);pdf.Add("Delivery-Agreement.pdf");// Recognize the text from documentAsposeOcr api = new AsposeOcr();ListRecognitionResult> result = api.Recognize(pdf);// Save searchable PDFAsposeOcr.SaveMultipageDocument("Readable-Contract.pdf", SaveFormat.Pdf, result);// Report progressConsole.WriteLine($@"Recognition finished. See '{Directory.GetCurrentDirectory()}\Readable-Contract.pdf'.");搜尋圖像中的文字數位檔案,特別是在大型組織中,通常包含大量掃描和照片,其中許多可能包含多頁文件。有效地管理和組織此類檔案對於輕鬆的資訊檢索和導航至關重要。然而,圖像不包含機器可讀的文本,因此無法搜尋和分析文件內容。C# OCR 庫可讓您輕鬆搜尋圖像中的文本,無論字體、文字大小、樣式和其他參數如何。該庫還支援不區分大小寫的搜尋和正規表示式,這在各種應用程式和行業中都非常有用。此功能可用於根據文字中的內容、關鍵字或模式對文件進行分類;搜尋協議和合約中的具體條款或條款;根據關鍵字或文件中的內容重新組織文件;尋找和識別文件中的個人數據,從而更輕鬆地確保 GDPR 合規性並更有效地管理敏感資訊。透過圖像搜尋還可以建立自動化工作流程,並在收到簽署的合約和發票後簡化各種業務流程。搜尋圖像中的文字 - C#string sourceFolder = "images";string searchFor = "OCR";// Search for text in imagesAsposeOcr api = new AsposeOcr();foreach(var image in Directory.GetFiles(sourceFolder,"*.png")){ bool found = api.ImageHasText(image, searchFor); if(found) Console.WriteLine($@"Found ""{searchFor}"" in image ""{image}""");}.NET April 2025 Updates – .NET 6.0.4, .NET and, .NET
在本文中,我们将比较两个最常用的 OCR 光栅格式和 PDF 文档图像库和应用程序。 它们是Aspose.OCRIronOCR1.0 简介1.1 Aspose.OCR 简介和功能Aspose.OCR for .NET 是一款功能强大的光学字符识别软件包。 这对任何应用程序来说都是一个极好的补充,可以实现流程自动化。 独立的 OCR API 具有可扩展性、用户友好性和紧凑性。 它包含一组简单的类,可提供开始识别文本所需的所有功能,无需任何额外的麻烦,并能保持正确的文本顺序。 Aspose.OCR 可读取 100 多种不同的格式,并提供了大量有用的功能,包括读取字体、应用样式效果等。(粗体/斜体)此外,您还可以在翻译过程中去除图像中的噪点。 API 可以使用 GPU 执行光学字符识别,从而节省 CPU 的功耗。Aspose.OCR 的功能以编程方式检测、识别和读取图像中的字符。扫描整个图像或仅扫描图像的特定部分。对 OCR 操作进行倾斜校正。 扫描旋转图像。支持 JPEG、PNG、GIF 等格式。有关支持的文件格式的完整列表,请访问支持的文件格式页面并订阅 Aspose 产品。支持多种字符,包括数字和字母。 有关支持字符的完整列表,请访问支持字符页面。目前,它支持 20 种欧洲语言和中文。检测并读取 Arial、Times New Roman、Courier New、Tahoma、Calibri 和 Verdana 等常用字体。支持正体、粗体和斜体字体样式。应用各种去噪过滤器来辅助图像识别。计算行或段落的边界框。获取每个识别字符的可能选择。传递 URI 并从中识别图像。识别文件夹或压缩包中的多个图像。以 JSON 格式获取结果。将结果保存为文本、DOCX 或 PDF 格式对于切换导航的集成,Aspose 是一个不错的选择。 识别文本控制台和文档文本识别或图像到文本或图像 OCR API 是可能有用的功能示例。除自动拼写检查外,图像检测软件的设计还支持多种输出格式(如 PNG)在翻译过程中,翻译人员必须能够在不需要额外的 OCR API 的情况下忽略非文本块。 可在开发环境中访问独立的 API 功能,从图像中捕捉文本。1.2 IronOCR - 简介和功能IronOCR for .NET在 .NET 应用程序和网站中读取照片和 PDF 中的文本内容。 该软件有助于扫描照片中的文字和 BarCode。 它能以纯文本或结构化数据的形式输出内容。 IronOCR 支持多种全球语言。 OCR 库可用于 MVC、Web、控制台和桌面 .NET 应用程序。 对于商业部署,在开发团队的直接协助下提供 License。IronOCR 使用最新的 Tesseract 5 引擎,可以从任何图片或 PDF 格式中读取文本、条形码和 QR 码。 该库可将 OCR 快速添加到桌面、控制台和网络应用程序中。IronOCR支持127种国际语言。 它还支持自定义语言和单词表。它可以读取 20 多种条形码和 QR 码格式。IronOCR 支持多页 GIF 和 TIFF 图像格式。它可以纠正低质量的扫描图像。IronOCR 支持多线程。 它可以同时执行一个或多个进程。IronOCR 可以将结构化数据输出到页面、段落、行、单词、字符等。IronOCR 支持 Windows、Linux、macOS 等操作系统。2.在 Visual Studio 中创建新项目打开 Visual Studio,进入文件菜单。 选择新建项目,然后选择控制台应用程序。控制台应用程序在相应文本框中输入项目名称并选择文件路径。 然后,单击 Create 按钮并选择 .NET Framework:新项目配置现在,项目将为所选应用程序生成结构。程序.cs 文件3.0 安装3.1 安装 Aspose.OCR通过 NuGet 安装 Aspose.OCR for .NET我们可以使用 NuGet 在应用程序中安装 Aspose.OCR API。 只需进入 Visual Studio 的 "工具 "菜单,选择 "NuGet 包管理器 "即可。 从侧菜单中选择 Manage NuGet Package for a solution。 它将打开一个 NuGet 包管理器窗口。 转到 "浏览 "选项卡并搜索 Aspose.OCR。 然后从搜索结果中选择 Aspose API,点击 "安装 "按钮。 Aspose API 将在项目中安装和使用。使用软件包管理器控制台安装或更新 Aspose.OCR同样,您也可以使用控制台安装 Aspose.OCR。 打开通常位于 Visual Studio 项目底部的 NuGet 控制台,编写以下命令并点击回车。“Install-Package Aspose.OCR -Version x.x.0”3.2 安装 IronOCRIronOCR 库可以通过四种方式下载和安装。它们是使用 Visual Studio。使用命令行。直接从 NuGet 网站下载。从 IronPDF 网站下载。3.2.1 使用 Visual Studio下面的截图显示了如何打开 NuGet 包管理器。NuGet 软件包管理器在 "软件包管理器 "窗口中,点击 "浏览 "并搜索关键字 "IronOCR",如下图所示:IronOCR 安装从上图中,我们可以看到相关搜索的列表。 我们需要选择所需的选项,将软件包安装到解决方案中。3.2.2 使用命令行在 Visual Studio 中转到工具 -> NuGet软件包管理器 -> 软件包管理器控制台在控制台选项卡中输入以下一行。现在,软件包将下载/安装到当前项目,并可随时使用。3.2.3 直接从 NuGet 网站下载第三种方法是直接从网站上下载 NuGet 软件包。导航至链接.从右侧菜单中选择下载包选项。双击下载的软件包。 它将自动安装。接下来,重新加载解决方案并开始在项目中使用。3.2.4 直接从 IronOCR 网站下载点击链接请点击此处直接从网站下载最新软件包。下载完成后,请按照以下步骤将软件包添加到项目中。右键单击解决方案窗口中的项目。然后,选择 "参考文献 "选项并浏览下载参考文献的位置。然后,单击 "确定 "添加引用。4.0 OCR 图像IronOCR 和 Aspose.OCR 都有一种 OCR 技术,可以将图像转换成文本。4.1 使用 Aspose.OCR下面的代码片段演示了使用识别图像方法对页面图像执行 OCR 操作。// For complete examples and data files, please go to The path to the documents directory.string dataDir = RunExamples.GetDataDir_OCR();// Initialize an instance of AsposeOcrAsposeOcr api = new AsposeOcr();// Recognize imagestring result = api.RecognizeImage(dataDir + "Sampleocr.bmp");// Display the recognized textConsole.WriteLine(result);// For complete examples and data files, please go to The path to the documents directory.string dataDir = RunExamples.GetDataDir_OCR();// Initialize an instance of AsposeOcrAsposeOcr api = new AsposeOcr();// Recognize imagestring result = api.RecognizeImage(dataDir + "Sampleocr.bmp");// Display the recognized textConsole.WriteLine(result);' For complete examples and data files, please go to The path to the documents directory.Dim dataDir As String = RunExamples.GetDataDir_OCR()' Initialize an instance of AsposeOcrDim api As New AsposeOcr()' Recognize imageDim result As String = api.RecognizeImage(dataDir & "Sampleocr.bmp")' Display the recognized textConsole.WriteLine(result)$vbLabelText $csharpLabel下面的代码片段演示了使用识别线方法对包含单行的图像执行 OCR 操作。// For complete examples and data files, please go to The path to the documents directory.string dataDir = RunExamples.GetDataDir_OCR();// Initialize an instance of AsposeOcrAsposeOcr api = new AsposeOcr();// Recognize imagestring result = api.RecognizeLine(dataDir + "sample_line.png");// Display the recognized textConsole.WriteLine(result);// For complete examples and data files, please go to The path to the documents directory.string dataDir = RunExamples.GetDataDir_OCR();// Initialize an instance of AsposeOcrAsposeOcr api = new AsposeOcr();// Recognize imagestring result = api.RecognizeLine(dataDir + "sample_line.png");// Display the recognized textConsole.WriteLine(result);' For complete examples and data files, please go to The path to the documents directory.Dim dataDir As String = RunExamples.GetDataDir_OCR()' Initialize an instance of AsposeOcrDim api As New AsposeOcr()' Recognize imageDim result As String = api.RecognizeLine(dataDir & "sample_line.png")' Display the recognized textConsole.WriteLine(result)$vbLabelText $csharpLabel4.2 使用 IronOCRvar Ocr = new IronTesseract(); // nothing to configureOcr.Language = OcrLanguage.EnglishBest;Ocr.Configuration.TesseractVersion = TesseractVersion.Tesseract5;using (var Input = new OcrInput()){ Input.AddImage(@"3.png"); var Result = Ocr.Read(Input); Console.WriteLine(Result.Text); Console.ReadKey();}var Ocr. AsposeOcr class. Main API for Aspose OCR library. The AsposeOcr type exposes the following members: Constructors AsposeOcr class. Main API for Aspose OCR library. The AsposeOcr type exposes the following members: Constructors
.NET December 2025 Updates – .NET 7.0.1, .NET, .NET
O OCR para .NET posteriormente.Extraia texto de uma fotoQuando as pessoas normalmente pensam em OCR (reconhecimento óptico de caracteres), a primeira associação geralmente é com um scanner como dispositivo de captura principal. Esta associação tem razões históricas e ainda prevalece em muitos contextos, proporcionando um ambiente consistente e controlado para a captura de texto impresso de documentos físicos com qualidade incomparável. No entanto, um scanner é um equipamento especializado que nem sempre está disponível e requer uma estação de trabalho fixa para funcionar. Felizmente, o mundo moderno oferece uma alternativa conveniente aos scanners tradicionais - uma câmera de smartphone. Os avanços na tecnologia de câmeras de smartphones garantem que mesmo um smartphone básico forneça qualidade suficiente para capturar documentos prontos para OCR. E a memória incorporada torna mais fácil do que nunca a digitalização de grandes quantidades de documentos, jornais, livros, placas de rua e outros textos em trânsito. Tudo que você precisa é da tecnologia certa para converter essas fotos em texto legível por máquina.Nossa biblioteca C# OCR foi projetada especificamente para reconhecer todos os tipos de imagens prontas para uso e pode ser ajustada ainda mais para lidar até mesmo com fotos de baixa qualidade. Combinado com um smartphone moderno, permite criar aplicativos OCR poderosos para a maioria das tarefas diárias de digitalização e reconhecimento de texto. O processamento de imagem e a análise da estrutura de documentos mais avançados são realizados em poucas linhas de código, permitindo que você se concentre nos negócios em vez de algoritmos matemáticos complexos, redes neurais e outras complexidades técnicas.OCR de fotos - C#// Configure preprocessing filtersPreprocessingFilter filters = new PreprocessingFilter { PreprocessingFilter.ContrastCorrectionFilter(), PreprocessingFilter.AutoDewarping()};// Add a photo for recognitionOcrInput photos = new OcrInput(InputType.SingleImage, filters);photos.Add("photo.png");// Fine-tune recognition setingsRecognitionSettings settings = new RecognitionSettings();settings.Language = Language.Eng;settings.DetectAreasMode = DetectAreasMode.CURVED_TEXT;// Extract text from a pageAsposeOcr api = new AsposeOcr();ListRecognitionResult> results = api.Recognize(photos, settings);// Automatically correct spelling (English)string text = results[0].GetSpellCheckCorrectedText(SpellCheckLanguage.Eng);// Display recognized textConsole.WriteLine(text);Crie um PDF pesquisável a partir da digitalizaçãoPDF é um dos formatos mais populares para digitalização de documentos em papel, especialmente devido à sua capacidade de combinar várias páginas em um único arquivo. Este formato é amplamente utilizado para a troca de contratos, faturas, documentos legais, passaportes e carteiras de identidade, e muitos outros documentos entre indivíduos, empresas, bancos e agências governamentais. No entanto, qualquer PDF digitalizado é essencialmente uma coleção de imagens. Ele não contém texto legível por máquina, portanto os usuários não podem.NET December 2025 Updates .NET 7.0.1, .NET, .NET
Aspose.Words for .NET Resources Aspose.PDF for .NET Resources Aspose.Cells for .NET Resources Aspose.Email for .NET Resources Aspose.Slides for .NET Resources Aspose.Imaging for .NET Resources Aspose.BarCode for .NET Resources Aspose.Diagram for .NET Resources Aspose.Tasks for .NET Resources Aspose.OCR for .NET Resources Aspose.Note for .NET Resources Aspose.CAD for .NET Resources Aspose.3D for .NET Resources Aspose.HTML for .NET Resources Aspose.GIS for .NET Resources Aspose.ZIP for .NET Resources Aspose.Page for .NET Resources Aspose.PSD for .NET Resources Aspose.OMR for .NET Resources Aspose.PUB for .NET Resources Aspose.SVG for .NET Resources Aspose.Finance for .NET Resources Aspose.Drawing for .NET Resources Aspose.Font for .NET Resources Welcome to Aspose.Words for .NETAspose.Words for .NET is a class library that enables your applications to perform a great range of document processing tasks. Aspose.Words supports DOC, DOCX, RTF, HTML, OpenDocument, PDF, XPS, EPUB and other formats. With Aspose.Words you can generate, modify, convert, render, and print documents without utilizing Microsoft Word®.Aspose.Words for .NET ResourcesThe following are the links to some useful resources you may need to accomplish your tasks.Aspose.Words for .NET Online DocumentationAspose.Words for .NET FeaturesAspose.Words for .NET LimitationsAspose.Words for .NET Release NotesAspose.Words for .NET Product PageDownload Aspose.Words for .NETInstall Aspose.Words for .NET NuGet PackageAspose.Words for .NET API Reference GuideDownload Examples at GitHub RepositoryAspose.Words for .NET Free Support ForumAspose.Words for .NET Paid Support HelpdeskWelcome to the Aspose.PDF for .NETAspose.PDF is a .NET component built to allow developers to create PDF documents, whether simple or complex, on the fly programmatically. Aspose.PDF for .NET allows developers to insert tables, graphs, images, hyperlinks, custom fonts - and more - into PDF documents. Moreover, it is also possible to compress PDF documents. Aspose.PDF for .NET provides excellent security features to develop secure PDF documents. And the most distinct feature of Aspose.PDF for .NET is that it supports the creation of PDF documents through both an API and from XML templates.Aspose.PDF for .NET ResourcesThe following are the links to some useful resources you may need to accomplish your tasks.Aspose.PDF for .NET Online DocumentationAspose.PDF for .NET FeaturesAspose.PDF for .NET Release NotesAspose.PDF for .NET Product PageInstall Aspose.PDF for .NET NuGet PackageAspose.PDF for .NET API Reference GuideAspose.PDF for .NET Free Support. AsposeOcr class. Main API for Aspose OCR library. The AsposeOcr type exposes the following members: Constructors.NET March 2025 Updates .NET 6.0.3, .NET and, .NET
Xceed .NET Libraries Documentation Welcome to Xceed Data Manipulation Components for .NET and .NET Standard Components covered by this documentationXceed Zip for .NET Framework and .NET Standard Xceed Zip for Compact Framework Xceed FTP for .NET Framework and .NET Standard Xceed FTP for Compact Framework Xceed SFTP for .NET Framework and .NET Standard Xceed Tar for .NET Framework and .NET Standard Xceed GZip for .NET Framework and .NET Standard Xceed Synchronization for .NET Framework and .NET Standard The Xceed Real-Time Zip for .NET and .NET Standard component has its own documentation that can be found on the Xceed web site..NET versions supported by the componentsXceed data manipulation compoents can be used in applications that target the following .NET frameworks.NET 9 .NET 8 .NET 7 .NET 6 .NET 5 .NET Standard 2.1 .NET Standard 2.0 Mono 2.8 and later .NET Core 3.1 .NET Core 3.0 .NET Core 2.2 .NET Core 2.1 .NET Core 2.0 Xamarin, Xamarin.iOS, Xamarin.Android .NET Framework 4.8 .NET Framework 4.7 .NET Framework 4.6 .NET Framework 4.5 .NET Framework 4.0 .NET Compact Framework 3.5 (provided open request) .NET Framework 2.0 (provided open request) Xceed data manipulation libraries will run on all of the operating systems that the .NET framework supports. This includes, but not limited toWindows XP SP3, Vista SP1, 7, 8, 10, 11 Windows Server 2003 SP2, 2008, 2012, 2016, 2022 All Linux and MacOS versions that support Mono 2.8 and later Version covered by this documentationThis documentation covers version 7.2 of the components.The different platforms of aComments
Finding the right font can be challenging. Sometimes, you come across a font in an image that you want to use. In this blog post, we will explore how to find font from image online. This process is simple and efficient, making it accessible for everyone.이미지에서 온라인 글꼴 식별기이미지에서 글꼴을 쉽게 찾을 수 있는 온라인 글꼴 식별 도구가 있습니다. 이 도구를 사용하면 이미지를 업로드하고 그 안에 사용된 글꼴을 빠르게 식별할 수 있습니다.이미지에서 폰트를 찾는 방법 온라인다음 간단한 단계를 따라 이미지에서 온라인으로 폰트를 찾으세요:Visit the Aspose OCR Font Detector website.“업로드” 버튼을 클릭하여 이미지 파일을 선택하세요.업로드한 후, "이 글꼴은 무엇인가요?" 버튼을 클릭하세요.도구가 이미지를 분석할 때까지 기다리세요.스크린에 표시된 감지된 글꼴 정보를 확인하십시오.우리는 귀하의 개인 정보와 보안을 보장하기 위해 24시간 후에 서버에서 모든 파일을 자동으로 삭제합니다.OCR 이미지: 개발자 가이드Aspose.OCR은 스캔된 이미지를 편집 가능하고 검색 가능한 텍스트로 변환하는 최첨단 광학 문자 인식 라이브러리입니다. 빠르고 정확하며 여러 언어를 지원합니다. 문서를 디지털화하든, 데이터 입력을 자동화하든, 접근성을 향상시키든, Aspose.OCR은 원활한 결과를 제공합니다. 사용자 친화적인 API는 귀하의 애플리케이션에 손쉽게 통합됩니다. 플랫폼 간에 작동하며, 귀하의 시스템과의 호환성을 보장합니다.이미지에서 텍스트 찾기 C#다음 단계와 C#에서 이미지에서 텍스트를 찾기 위한 코드 예제를 따라 주십시오.Install Aspose.OCR for .NET 를 통해 NuGet 에서 귀하의 애플리케이션에 설치하십시오.아래 코드를 복사하여 이미지 파일에서 텍스트를 찾고 추출하세요:using Aspose.OCR;// AsposeOcr의 인스턴스를 초기화합니다.AsposeOcr api = new AsposeOcr();OcrInput images = new OcrInput(InputType.SingleImage){ "source.jpg"};// 스크린샷 이미지를 OCR로 인식하기var result = api.Recognize(images);// 인식된 텍스트를 표시하세요.foreach (var image in result){ Console.WriteLine(image.FileName); Console.WriteLine(image.RecognitionText);}이미지에서 텍스트 찾기 파이썬으로You can also find text from an image using Aspose.OCR in Python. Here`s how:Install Aspose.OCR for Python 을 pip 명령어를 통해 애플리케이션에 설치하십시오.아래 코드를 복사하여 이미지 파일에서 텍스트를 찾고 추출하세요:import aspose.ocr as ocr# Aspose.OCR API 인스턴스화api = ocr.AsposeOcr()# 인식 배치에 이미지를 추가하세요img = ocr.OcrInput(ocr.InputType.SINGLE_IMAGE)img.add("source.jpg")# 이미지를 인식하다result = api.recognize(img)# 인식 결과 출력print(result[0].recognition_text)이미지에서 텍스트 찾기 자바유사하게, Java에서 이미지에서 텍스트를 찾을 수도 있습니다. 방법은 다음과 같습니다:Install Aspose.OCR for Java 를 귀하의 애플리케이션에 설치하십시오.아래 코드를 복사하여 이미지 파일에서 텍스트를 찾고 추출하세요:// AsposeOCR 인식 엔진 초기화AsposeOCR api = new AsposeOCR();// 이미지를 로드하고 인식합니다.String result = RecognizePage("source.png");// 결과를 보여주세요System.out.println("Recognition result:\n" + result + "\n\n");무료 라이센스 받기Aspose 제품 탐색에 관심이 있으신가요? 라이센스 페이지를 방문하여 무료 임시 라이센스를 받으세요. 쉽고 빠릅니다! 오늘부터 프로젝트를 향상시키기 시작하세요.이미지에서 글꼴 찾기: 무료 리소스이미지에서 글꼴을 찾는 것 외에도, Aspose.OCR에 대한 이해를 깊게 할 수 있는 다양한 자료를 제공합니다. 더 많은 통찰력과 실제 예제는 우리 문서와 튜토리얼을 확인해 보세요.개발자 가이드무료 온라인 애플리케이션API 참조사용 방법 가이드 및 기사결론이 블로그 게시물에서는 Aspose.OCR을 사용하여 온라인에서 이미지에서 글꼴을 찾는 방법을 탐색했습니다. 우리는 온라인 도구를 다루었고 C#, Java 및 Python에 대한 단계별 가이드를 제공했습니다. 프로젝트를 향상하고 작업 흐름을 간소화하기 위해 Aspose.OCR에 대해 더 알아보세요.질문이 있거나 추가 도움이 필요하시면, 언제든지 free support forum 에 연락해 주시기 바랍니다.See Also이미지를 온라인으로 텍스트로 변환하기온라인에서 손글씨를 텍스트로 변환하기Best Arabic OCR Online Tool
2025-04-06高效精准的OCR借助先进的 Python 技术,体验 OCR 结果无与伦比的速度和精度。多种语言识别 140 多种语言的文本:英语、法语、德语、西班牙语、俄语、中文、印地语、日语、韩语、泰米尔语、阿拉伯语、波斯语等。普遍的使用 Python 轻松处理来自不同来源(扫描仪、相机和智能手机)的图像。亚洲语言实现中文、阿拉伯文、梵文和德拉威文字以及混合语言文本的精确识别。保留布局维护源格式以实现准确的文本表示并识别表格。准备好识别 准备好识别 将文件拖放到此处或单击浏览** 通过上传您的文件或使用我们的服务,您同意我们的 使用条款 和 隐私政策.# Initialize OCR enginerecognitionEngine = AsposeOcr()# Add image to batchinput = OcrInput(InputType.SINGLE_IMAGE)input.add("sample.png")# Extract text from imageresult = recognitionEngine.recognize(input)# Display the recognition resultprint(result[0].recognition_text)Python via .NET易于开发、代码可读性和可维护性拥有最多的功能并接收最频繁的更新整体速度可能比其他平台慢一点Python via Java在任何平台上使用相同的库在任何设备上无缝运行您的应用程序需要 Java 运行时环境 (JRE) 版本 8 或更高版本Python via C++无论平台如何,最快的速度对资源管理的大量控制针对经验丰富的开发人员批量OCRMulti-page PDFDjVuZIPFolder识别结果TextPDFMicrosoft WordMicrosoft ExcelHTMLRTFePubJSONXML可搜索的 PDF将任何扫描件转换为完全可搜索、可索引和可编辑的文档。任何字体和样式识别并识别所有流行字体和样式的文本。微调识别调整每个 OCR 参数以获得最佳识别结果。查找图像中的文本在一组图像中搜索文本或正则表达式。比较图像文本比较两个图像上的文本,无论大小写和布局如何。安装Aspose.OCR for Python via .NET 作为 Python Wheel 或独立的可下载包进行分发,很容易分发。直接从您首选的 Python 集成开发环境 (IDE) 集成到您的 Python 项目是一个无缝的过程。只需安装它,您就可以利用完整的 OCR 功能,以各种格式保存识别结果。安装后,您可以立即开始通过 .NET 使用 Aspose.OCR for Python ,尽管有一定的限制。临时许可证可解除 30 天内的所有试用版限制。利用这段时间开始开发功能齐全的 OCR 应用程序,以便您在稍后阶段做出明智的决定是否通过 .NET 购买 Aspose.OCR for Python。加载许可证lic = License()lic.set_license(self.licPath)识别照片上的文字从 Aspose OCR for Python 中的任何内容读取文本就像调用通用识别方法一样简单。将照片转换为文本 - Pythonapi = AsposeOcr()# Add image to the recognition batchinput = OcrInput(InputType.SINGLE_IMAGE)input.add("source1.png")# Set recognition languagerecognitionSettings = RecognitionSettings()recognitionSettings.language = Language.UKR;# Recognize the imageresults = api.recognize(input, recognitionSettings)# Print recognition resultfor result in results:print(result.recognition_text)Python 通用转换器我们的 API 能够熟练地读取来自扫描仪、相机或智能手机的任何图像:PDF 文档、JPEG、PNG、TIFF、GIF、BMP 图像,甚至 DjVu 文件。对多页 PDF 文档、TIFF 和 DjVu 图像的全面支持确保了多功能性。您还可以通过 URL 提供来自网络的图像。识别结果以流行的文档和数据交换格式返回:纯文本、PDF、Microsoft Word、Microsoft Excel、JSON 和 XML。识别 PDF 并将结果保存为各种输出格式 - Pythonapi = AsposeOcr()# Create OcrInput and add imagesinput = OcrInput(aspose.ocr.models.InputType.PDF)file = os.path.join(self.dataDir, "pdfs/multi_page_1.pdf")input.add(file, 0, 3)set = RecognitionSettings()set.set_detect_areas_mode = DetectAreasMode.NONEresult = api.recognize(input, set)api.save_multipage_document("test.xml", SaveFormat.XML, result)api.save_multipage_document("test.json", SaveFormat.JSON, result)api.save_multipage_document("test.pdf", SaveFormat.PDF, result)api.save_multipage_document("test.xlsx", SaveFormat.XLSX, result)api.save_multipage_document("test.docx", SaveFormat.DOCX, result)api.save_multipage_document("test.txt", SaveFormat.TEXT, result)api.save_multipage_document("test.html", SaveFormat.HTML, result)api.save_multipage_document("test.epub", SaveFormat.EPUB, result)api.save_multipage_document("test.rtf", SaveFormat.RTF, result)Python 中的资源优化光学字符识别需要资源。我们的 API 提供了灵活的方法来平衡经典的时间-价格-质量三元组:在彻底识别和快速识别之间进行选择。指定分配用于识别的线程数,或允许库自动缩放到处理器核心的数量。通过将计算卸载到 .NET 后端来释放 CPU。快速识别——Pythonapi = AsposeOcr()# Create OcrInput and add imagesinput = OcrInput(InputType.SINGLE_IMAGE)input.add("sample_line.png")result = api.recognize_fast(input)识别单行如果您的图像已被修剪为单行文本,则可以以最快的模式对其进行识别,而无需自动更正、内容结构检测和其他消耗资源的步骤。它可以将 OCR 速度比正常识别过程快 7 倍。识别图像上的单行文本 - Pythonapi = AsposeOcr()# Create OcrInput and add imagesinput = OcrInput(InputType.SINGLE_IMAGE)input.add("sample_line.png")# recognize without regions detectionsettings = RecognitionSettings()settings.recognize_single_line = Trueresult = api.recognize(input, settings)print(result[0].recognition_text)
2025-03-31Pesquisar, copiar ou manipular o conteúdo do documento.Aspose .NET OCR oferece uma maneira rápida, fácil e altamente confiável de converter qualquer PDF digitalizado em um documento totalmente pesquisável e indexável. Ele reconhece com precisão o conteúdo da página, convertendo-o em uma camada de texto legível por máquina sobre a imagem original que pode ser selecionada, copiada, lida por software de conversão de texto em fala e até mesmo processada automaticamente por tradutores, resumidores e outras análises baseadas em IA. ferramentas.Adicionar sobreposição de texto ao PDF - C#// Load the scanned PDFOcrInput pdf = new OcrInput(InputType.PDF);pdf.Add("Delivery-Agreement.pdf");// Recognize the text from documentAsposeOcr api = new AsposeOcr();ListRecognitionResult> result = api.Recognize(pdf);// Save searchable PDFAsposeOcr.SaveMultipageDocument("Readable-Contract.pdf", SaveFormat.Pdf, result);// Report progressConsole.WriteLine($@"Recognition finished. See '{Directory.GetCurrentDirectory()}\Readable-Contract.pdf'.");Pesquisar texto em imagensOs arquivos digitais, especialmente em grandes organizações, geralmente consistem em uma vasta coleção de digitalizações e fotos, muitas das quais podem conter documentos de várias páginas. A gestão eficiente e a organização eficaz de tais arquivos são essenciais para facilitar a recuperação e navegação de informações. No entanto, as imagens não contêm texto legível por máquina, impossibilitando a pesquisa e análise do conteúdo do documento.A biblioteca C# OCR permite pesquisar facilmente texto em imagens, independentemente da fonte, tamanho do texto, estilo e outros parâmetros. A biblioteca também oferece suporte a pesquisas que não diferenciam maiúsculas de minúsculas e expressões regulares, que são extremamente úteis em vários aplicativos e setores. Esta funcionalidade pode ser utilizada para categorizar documentos com base no conteúdo, palavras-chave ou padrões encontrados no texto; pesquisa de termos ou cláusulas específicas em acordos e contratos; reorganizar arquivos com base em palavras-chave ou conteúdo encontrado neles; localizar e identificar dados pessoais em documentos, tornando mais fácil garantir a conformidade com o GDPR e gerenciar informações confidenciais de maneira mais eficaz. A pesquisa em imagens também permite criar fluxos de trabalho automatizados e agilizar diversos processos de negócios ao receber contratos e faturas assinadas.Pesquisar texto em imagens - C#string sourceFolder = "images";string searchFor = "OCR";// Search for text in imagesAsposeOcr api = new AsposeOcr();foreach(var image in Directory.GetFiles(sourceFolder,"*.png")){ bool found = api.ImageHasText(image, searchFor); if(found) Console.WriteLine($@"Found ""{searchFor}"" in image ""{image}""");}
2025-04-10A screenshot can include text, image, drawings etc. where you might need to extract written information. In such scenarios, you can convert the screenshot to text in order to retrieve the text information. For example, there may be different incoming screenshots as the proof of payment to a company and the text information about the amount required to be extracted. In accordance with such requirements, this article covers how to convert a screenshot to text with OCR in C#.Screenshot to Text with OCR – C# API InstallationConvert Screenshot to Text with OCR in C#Convert Screenshot from URL to Text with OCR in C#Screenshot to Text with OCR – C# API InstallationAspose.OCR for .NET API can be used to perform optical recognition operations over an image. Screenshots are basically the images of screen contents so you can process such images to extract some information. Simply access the API by downloading the DLL reference file from the New Releases page or using the NuGet installation command below:PM> Install-Package Aspose.OCRYou can convert a screenshot to text with OCR in C# with the following steps:Create an object of AsposeOcr class.Convert a screenshot to text using the RecognizeImage method.Display the recognized text.The following sample code demonstrates how to convert a screenshot to text in C#:Convert Screenshot from URL to Text with OCR in C#In some cases, the screenshots are shared via URL links of DropBox, Imgur, etc. The API enables you to utilize the URL link instead of downloading and then processing such screenshots. The steps below explain how to convert a screenshot from URL to Text with OCR in C#:Get a screenshot from URL for OCR operations.Create an instance of AsposeOcr class.Recognize the text from the screenshot with OCR.Print the recognized text from the URL.The code snippet below explains how to convert a screenshot from URL to text with OCR in C#:Get a Free Evaluation LicenseYou may request a Free Temporary License to evaluate the API in its full capacity.ConclusionIn this article, you have learned how to convert a screenshot to text with OCR in C#. This way you can extract a lot of useful information based on your requirements. Furthermore, you may write to us at the forum in case you have any concerns.See AlsoConvert JPG or PNG Image to XML with OCR in C#
2025-04-11在本文中,我们将比较两个最常用的 OCR 光栅格式和 PDF 文档图像库和应用程序。 它们是Aspose.OCRIronOCR1.0 简介1.1 Aspose.OCR 简介和功能Aspose.OCR for .NET 是一款功能强大的光学字符识别软件包。 这对任何应用程序来说都是一个极好的补充,可以实现流程自动化。 独立的 OCR API 具有可扩展性、用户友好性和紧凑性。 它包含一组简单的类,可提供开始识别文本所需的所有功能,无需任何额外的麻烦,并能保持正确的文本顺序。 Aspose.OCR 可读取 100 多种不同的格式,并提供了大量有用的功能,包括读取字体、应用样式效果等。(粗体/斜体)此外,您还可以在翻译过程中去除图像中的噪点。 API 可以使用 GPU 执行光学字符识别,从而节省 CPU 的功耗。Aspose.OCR 的功能以编程方式检测、识别和读取图像中的字符。扫描整个图像或仅扫描图像的特定部分。对 OCR 操作进行倾斜校正。 扫描旋转图像。支持 JPEG、PNG、GIF 等格式。有关支持的文件格式的完整列表,请访问支持的文件格式页面并订阅 Aspose 产品。支持多种字符,包括数字和字母。 有关支持字符的完整列表,请访问支持字符页面。目前,它支持 20 种欧洲语言和中文。检测并读取 Arial、Times New Roman、Courier New、Tahoma、Calibri 和 Verdana 等常用字体。支持正体、粗体和斜体字体样式。应用各种去噪过滤器来辅助图像识别。计算行或段落的边界框。获取每个识别字符的可能选择。传递 URI 并从中识别图像。识别文件夹或压缩包中的多个图像。以 JSON 格式获取结果。将结果保存为文本、DOCX 或 PDF 格式对于切换导航的集成,Aspose 是一个不错的选择。 识别文本控制台和文档文本识别或图像到文本或图像 OCR API 是可能有用的功能示例。除自动拼写检查外,图像检测软件的设计还支持多种输出格式(如 PNG)在翻译过程中,翻译人员必须能够在不需要额外的 OCR API 的情况下忽略非文本块。 可在开发环境中访问独立的 API 功能,从图像中捕捉文本。1.2 IronOCR - 简介和功能IronOCR for .NET在 .NET 应用程序和网站中读取照片和 PDF 中的文本内容。 该软件有助于扫描照片中的文字和 BarCode。 它能以纯文本或结构化数据的形式输出内容。 IronOCR 支持多种全球语言。 OCR 库可用于 MVC、Web、控制台和桌面 .NET 应用程序。 对于商业部署,在开发团队的直接协助下提供 License。IronOCR 使用最新的 Tesseract 5 引擎,可以从任何图片或 PDF 格式中读取文本、条形码和 QR 码。 该库可将 OCR 快速添加到桌面、控制台和网络应用程序中。IronOCR支持127种国际语言。 它还支持自定义语言和单词表。它可以读取 20 多种条形码和 QR 码格式。IronOCR 支持多页 GIF 和 TIFF 图像格式。它可以纠正低质量的扫描图像。IronOCR 支持多线程。 它可以同时执行一个或多个进程。IronOCR 可以将结构化数据输出到页面、段落、行、单词、字符等。IronOCR 支持 Windows、Linux、macOS 等操作系统。2.在 Visual Studio 中创建新项目打开 Visual Studio,进入文件菜单。 选择新建项目,然后选择控制台应用程序。控制台应用程序在相应文本框中输入项目名称并选择文件路径。 然后,单击 Create 按钮并选择 .NET Framework:新项目配置现在,项目将为所选应用程序生成结构。程序.cs 文件3.0 安装3.1 安装 Aspose.OCR通过 NuGet 安装 Aspose.OCR for .NET我们可以使用 NuGet 在应用程序中安装 Aspose.OCR API。 只需进入 Visual Studio 的 "工具 "菜单,选择 "NuGet 包管理器 "即可。 从侧菜单中选择 Manage NuGet Package for a solution。 它将打开一个 NuGet 包管理器窗口。 转到 "浏览 "选项卡并搜索 Aspose.OCR。 然后从搜索结果中选择 Aspose API,点击 "安装 "按钮。 Aspose API 将在项目中安装和使用。使用软件包管理器控制台安装或更新 Aspose.OCR同样,您也可以使用控制台安装 Aspose.OCR。 打开通常位于 Visual Studio 项目底部的 NuGet 控制台,编写以下命令并点击回车。“Install-Package Aspose.OCR -Version x.x.0”3.2 安装 IronOCRIronOCR 库可以通过四种方式下载和安装。它们是使用 Visual Studio。使用命令行。直接从 NuGet 网站下载。从 IronPDF 网站下载。3.2.1 使用 Visual Studio下面的截图显示了如何打开 NuGet 包管理器。NuGet 软件包管理器在 "软件包管理器 "窗口中,点击 "浏览 "并搜索关键字 "IronOCR",如下图所示:IronOCR 安装从上图中,我们可以看到相关搜索的列表。 我们需要选择所需的选项,将软件包安装到解决方案中。3.2.2 使用命令行在 Visual Studio 中转到工具 -> NuGet软件包管理器 -> 软件包管理器控制台在控制台选项卡中输入以下一行。现在,软件包将下载/安装到当前项目,并可随时使用。3.2.3 直接从 NuGet 网站下载第三种方法是直接从网站上下载 NuGet 软件包。导航至链接.从右侧菜单中选择下载包选项。双击下载的软件包。 它将自动安装。接下来,重新加载解决方案并开始在项目中使用。3.2.4 直接从 IronOCR 网站下载点击链接请点击此处直接从网站下载最新软件包。下载完成后,请按照以下步骤将软件包添加到项目中。右键单击解决方案窗口中的项目。然后,选择 "参考文献 "选项并浏览下载参考文献的位置。然后,单击 "确定 "添加引用。4.0 OCR 图像IronOCR 和 Aspose.OCR 都有一种 OCR 技术,可以将图像转换成文本。4.1 使用 Aspose.OCR下面的代码片段演示了使用识别图像方法对页面图像执行 OCR 操作。// For complete examples and data files, please go to The path to the documents directory.string dataDir = RunExamples.GetDataDir_OCR();// Initialize an instance of AsposeOcrAsposeOcr api = new AsposeOcr();// Recognize imagestring result = api.RecognizeImage(dataDir + "Sampleocr.bmp");// Display the recognized textConsole.WriteLine(result);// For complete examples and data files, please go to The path to the documents directory.string dataDir = RunExamples.GetDataDir_OCR();// Initialize an instance of AsposeOcrAsposeOcr api = new AsposeOcr();// Recognize imagestring result = api.RecognizeImage(dataDir + "Sampleocr.bmp");// Display the recognized textConsole.WriteLine(result);' For complete examples and data files, please go to The path to the documents directory.Dim dataDir As String = RunExamples.GetDataDir_OCR()' Initialize an instance of AsposeOcrDim api As New AsposeOcr()' Recognize imageDim result As String = api.RecognizeImage(dataDir & "Sampleocr.bmp")' Display the recognized textConsole.WriteLine(result)$vbLabelText $csharpLabel下面的代码片段演示了使用识别线方法对包含单行的图像执行 OCR 操作。// For complete examples and data files, please go to The path to the documents directory.string dataDir = RunExamples.GetDataDir_OCR();// Initialize an instance of AsposeOcrAsposeOcr api = new AsposeOcr();// Recognize imagestring result = api.RecognizeLine(dataDir + "sample_line.png");// Display the recognized textConsole.WriteLine(result);// For complete examples and data files, please go to The path to the documents directory.string dataDir = RunExamples.GetDataDir_OCR();// Initialize an instance of AsposeOcrAsposeOcr api = new AsposeOcr();// Recognize imagestring result = api.RecognizeLine(dataDir + "sample_line.png");// Display the recognized textConsole.WriteLine(result);' For complete examples and data files, please go to The path to the documents directory.Dim dataDir As String = RunExamples.GetDataDir_OCR()' Initialize an instance of AsposeOcrDim api As New AsposeOcr()' Recognize imageDim result As String = api.RecognizeLine(dataDir & "sample_line.png")' Display the recognized textConsole.WriteLine(result)$vbLabelText $csharpLabel4.2 使用 IronOCRvar Ocr = new IronTesseract(); // nothing to configureOcr.Language = OcrLanguage.EnglishBest;Ocr.Configuration.TesseractVersion = TesseractVersion.Tesseract5;using (var Input = new OcrInput()){ Input.AddImage(@"3.png"); var Result = Ocr.Read(Input); Console.WriteLine(Result.Text); Console.ReadKey();}var Ocr
2025-03-25O OCR para .NET posteriormente.Extraia texto de uma fotoQuando as pessoas normalmente pensam em OCR (reconhecimento óptico de caracteres), a primeira associação geralmente é com um scanner como dispositivo de captura principal. Esta associação tem razões históricas e ainda prevalece em muitos contextos, proporcionando um ambiente consistente e controlado para a captura de texto impresso de documentos físicos com qualidade incomparável. No entanto, um scanner é um equipamento especializado que nem sempre está disponível e requer uma estação de trabalho fixa para funcionar. Felizmente, o mundo moderno oferece uma alternativa conveniente aos scanners tradicionais - uma câmera de smartphone. Os avanços na tecnologia de câmeras de smartphones garantem que mesmo um smartphone básico forneça qualidade suficiente para capturar documentos prontos para OCR. E a memória incorporada torna mais fácil do que nunca a digitalização de grandes quantidades de documentos, jornais, livros, placas de rua e outros textos em trânsito. Tudo que você precisa é da tecnologia certa para converter essas fotos em texto legível por máquina.Nossa biblioteca C# OCR foi projetada especificamente para reconhecer todos os tipos de imagens prontas para uso e pode ser ajustada ainda mais para lidar até mesmo com fotos de baixa qualidade. Combinado com um smartphone moderno, permite criar aplicativos OCR poderosos para a maioria das tarefas diárias de digitalização e reconhecimento de texto. O processamento de imagem e a análise da estrutura de documentos mais avançados são realizados em poucas linhas de código, permitindo que você se concentre nos negócios em vez de algoritmos matemáticos complexos, redes neurais e outras complexidades técnicas.OCR de fotos - C#// Configure preprocessing filtersPreprocessingFilter filters = new PreprocessingFilter { PreprocessingFilter.ContrastCorrectionFilter(), PreprocessingFilter.AutoDewarping()};// Add a photo for recognitionOcrInput photos = new OcrInput(InputType.SingleImage, filters);photos.Add("photo.png");// Fine-tune recognition setingsRecognitionSettings settings = new RecognitionSettings();settings.Language = Language.Eng;settings.DetectAreasMode = DetectAreasMode.CURVED_TEXT;// Extract text from a pageAsposeOcr api = new AsposeOcr();ListRecognitionResult> results = api.Recognize(photos, settings);// Automatically correct spelling (English)string text = results[0].GetSpellCheckCorrectedText(SpellCheckLanguage.Eng);// Display recognized textConsole.WriteLine(text);Crie um PDF pesquisável a partir da digitalizaçãoPDF é um dos formatos mais populares para digitalização de documentos em papel, especialmente devido à sua capacidade de combinar várias páginas em um único arquivo. Este formato é amplamente utilizado para a troca de contratos, faturas, documentos legais, passaportes e carteiras de identidade, e muitos outros documentos entre indivíduos, empresas, bancos e agências governamentais. No entanto, qualquer PDF digitalizado é essencialmente uma coleção de imagens. Ele não contém texto legível por máquina, portanto os usuários não podem
2025-04-06