IronOCR OCR 프로그램의 SEHException 및 AVX 지원 이미지 텍스트 변환 문제 해결
처리되지 않은 예외: System.Runtime.InteropServices.SEHException

이 문제는 구형 Xeon, Celeron, Pentium 또는 Atom 프로세서를 사용하는 컴퓨터에서 AVX 지원이 없는 경우 흔히 발생합니다.
AVX 프로세서를 지원하지 않는 IronOcr의 지원은 버전 2022.8.7804에 추가되었으므로 최신 릴리스로 업그레이드하세요.
// Example: Checking AVX support programmatically in C#
using System;
class ProcessorFeatures
{
// Main method to check AVX support
static void Main()
{
// Check if the machine's processor supports AVX
if (IsAvxSupported())
{
Console.WriteLine("AVX is supported.");
}
else
{
Console.WriteLine("AVX is not supported. Consider updating IronOcr to the latest version that supports non-AVX processors.");
}
}
// Function to determine if AVX is supported
static bool IsAvxSupported()
{
return System.Runtime.Intrinsics.X86.Avx.IsSupported;
}
}
// Example: Checking AVX support programmatically in C#
using System;
class ProcessorFeatures
{
// Main method to check AVX support
static void Main()
{
// Check if the machine's processor supports AVX
if (IsAvxSupported())
{
Console.WriteLine("AVX is supported.");
}
else
{
Console.WriteLine("AVX is not supported. Consider updating IronOcr to the latest version that supports non-AVX processors.");
}
}
// Function to determine if AVX is supported
static bool IsAvxSupported()
{
return System.Runtime.Intrinsics.X86.Avx.IsSupported;
}
}
' Example: Checking AVX support programmatically in C#
Imports System
Friend Class ProcessorFeatures
' Main method to check AVX support
Shared Sub Main()
' Check if the machine's processor supports AVX
If IsAvxSupported() Then
Console.WriteLine("AVX is supported.")
Else
Console.WriteLine("AVX is not supported. Consider updating IronOcr to the latest version that supports non-AVX processors.")
End If
End Sub
' Function to determine if AVX is supported
Private Shared Function IsAvxSupported() As Boolean
Return System.Runtime.Intrinsics.X86.Avx.IsSupported
End Function
End Class
이 예제 코드에서는 프로세서가 AVX 명령어를 지원하는지 확인하기 위해 System.Runtime.Intrinsics.X86.Avx.IsSupported 속성을 사용합니다. AVX가 지원되지 않는 경우 AVX 프로세서를 지원하는 IronOcr 버전을 사용하고 있는지 확인하는 것이 좋습니다.

