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,169,908 | 버전: 2026.4 방금 출시되었습니다

