IronBarcode에서 런타임 복사 예외 해결
This article was translated from English: Does it need improvement?
Translated
View the article in English
이 오류는 특수 머신러닝 모델용 DLL 파일이 제대로 복사되지 않는 드문 경우에 발생합니다. 아래 해결 방법을 통해 이 일회성 오류를 해결할 수 있습니다.
Machine learning DLLs were not successfully automatically copied from the runtimes directory. This may occur on various operating systems or frameworks...
해결책
- 이 문제를 해결하려면 먼저
runtimes폴더로 이동하십시오. 해결책의 경우, 이는/bin/Debug/net6.0/runtimes아래에 있습니다 (Debug는 예시이며, 설정한 구성(Configuration)을 따릅니다). (다른 대상 프레임워크를 사용하는 경우net6.0을 교체하세요.) /runtimes/에서 지원되는 모든 플랫폼과 운영 체제를 디렉터리로 볼 수 있으며, 해당되는 디렉터리로 들어가서 파일을 수동으로 출력/bin/Debug/net6.0/디렉터리로 복사하십시오.- ML 스캔을 비활성화하는 것도 오류를 방지할 수 있습니다. 그러나 ML 스캔을 끄면 이 기능이 바코드 감지에 도움이 되므로 일부 바코드를 감지하기 어려워질 수 있습니다.
// Define scanning options, disabling machine learning for basic scan only
var myOptionsExample = new BarcodeReaderOptions
{
// ScanMode is set to only use the basic scan, without ML-enhanced features
ScanMode = BarcodeScanMode.OnlyBasicScan
};
// Perform barcode reading with the specified options
var results = BarcodeReader.Read("barcode.png", myOptionsExample);
// Define scanning options, disabling machine learning for basic scan only
var myOptionsExample = new BarcodeReaderOptions
{
// ScanMode is set to only use the basic scan, without ML-enhanced features
ScanMode = BarcodeScanMode.OnlyBasicScan
};
// Perform barcode reading with the specified options
var results = BarcodeReader.Read("barcode.png", myOptionsExample);
' Define scanning options, disabling machine learning for basic scan only
Dim myOptionsExample = New BarcodeReaderOptions With {.ScanMode = BarcodeScanMode.OnlyBasicScan}
' Perform barcode reading with the specified options
Dim results = BarcodeReader.Read("barcode.png", myOptionsExample)
$vbLabelText
$csharpLabel
시작할 준비 되셨나요?
Nuget 다운로드 2,317,217 | 버전: 2026.7 방금 출시

