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는 예시이며, 설정하신 구성에 따라 달라집니다). (If you're using a different target framework, replacenet6.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,240,258 | 버전: 2026.5 just released

