IronOCR 이용한 방정식 처리
IronOCR 방정식을 읽을 수 있나요?
IronOCR Tesseract 4/5를 사용하며 별도의 설정 없이도 방정식을 읽는 데 상당히 잘 작동하지만, 자세한 구성 옵션을 시험해 보는 것도 좋습니다.
IronOCR 에 사용자 지정 언어 팩을 추가할 수도 있습니다. 사용자 지정 언어 팩에 대해 자세히 알아보세요 .
EQU 방정식 감지 언어 팩도 있습니다: EQU 언어 팩
// C# Example to demonstrate reading equations using IronOCR
using IronOcr; // Import the IronOcr namespace
public class EquationOcrExample
{
public void ReadEquations(string imagePath)
{
// Instantiate the IronTesseract object
var Ocr = new IronTesseract();
// Load the custom EQU language for better equation detection
Ocr.Language = Ocr.Languages.Add("equ");
// Read and OCR the image containing equations
using (var Input = new OcrInput(imagePath))
{
// Extract OcrResult from the image
var Result = Ocr.Read(Input);
// Output the contents of the OCR result as text
System.Console.WriteLine(Result.Text);
}
}
}
// C# Example to demonstrate reading equations using IronOCR
using IronOcr; // Import the IronOcr namespace
public class EquationOcrExample
{
public void ReadEquations(string imagePath)
{
// Instantiate the IronTesseract object
var Ocr = new IronTesseract();
// Load the custom EQU language for better equation detection
Ocr.Language = Ocr.Languages.Add("equ");
// Read and OCR the image containing equations
using (var Input = new OcrInput(imagePath))
{
// Extract OcrResult from the image
var Result = Ocr.Read(Input);
// Output the contents of the OCR result as text
System.Console.WriteLine(Result.Text);
}
}
}
' C# Example to demonstrate reading equations using IronOCR
Imports IronOcr ' Import the IronOcr namespace
Public Class EquationOcrExample
Public Sub ReadEquations(ByVal imagePath As String)
' Instantiate the IronTesseract object
Dim Ocr = New IronTesseract()
' Load the custom EQU language for better equation detection
Ocr.Language = Ocr.Languages.Add("equ")
' Read and OCR the image containing equations
Using Input = New OcrInput(imagePath)
' Extract OcrResult from the image
Dim Result = Ocr.Read(Input)
' Output the contents of the OCR result as text
System.Console.WriteLine(Result.Text)
End Using
End Sub
End Class
위 예제에서는 IronOCR이 이미지를 파일에서 읽기 위해 Tesseract OCR 엔진을 사용합니다. 방정식을 위한 사용자 정의 언어 팩 (equ)이 로드되어 감지 정확도를 높입니다. ReadEquations 메서드는 방정식을 포함하는 이미지 파일 경로를 수락하고, OCR을 수행하며, 인식된 텍스트를 출력합니다.

