IRONSOFTWAREHOME
바코드 리더 옵션 설정
using IronBarCode;

BarcodeReaderOptions myOptionsExample = new BarcodeReaderOptions()
{
    // Choose a reading speed from: Faster, Balanced, Detailed, ExtremeDetail
    // There is a tradeoff in performance as more detail is set
    Speed = ReadingSpeed.Balanced,

    // Reader will stop scanning once a single barcode is found (if set to true)
    ExpectMultipleBarcodes = true,

    // By default, all barcode formats are scanned for
    // Specifying a subset of barcode types to search for would improve performance
    ExpectBarcodeTypes = BarcodeEncoding.AllOneDimensional,

    // Utilize multiple threads to read barcodes from multiple images in parallel
    Multithreaded = true,

    // Maximum threads for parallelized barcode reading
    // Default is 4
    MaxParallelThreads = 2,

    // The area of each image frame in which to scan for barcodes
    // Specifying a crop area will significantly improve performance and avoid noisy parts of the image
    CropArea = new System.Drawing.Rectangle(),

    // Special setting for Code39 barcodes
    // If a Code39 barcode is detected, try to read with both the base and extended ASCII character sets
    UseCode39ExtendedMode = true,

    // Minimum scan lines that must agree on a result for it to be valid
    // Default is 2. Set to 1 for thin or low-quality barcodes
    MinScanLines = 1
};
Imports IronBarCode

Dim myOptionsExample As New BarcodeReaderOptions() With {
    .Speed = ReadingSpeed.Balanced,
    .ExpectMultipleBarcodes = True,
    .ExpectBarcodeTypes = BarcodeEncoding.AllOneDimensional,
    .Multithreaded = True,
    .MaxParallelThreads = 2,
    .CropArea = New System.Drawing.Rectangle(),
    .UseCode39ExtendedMode = True,
    .MinScanLines = 1
}
NuGet Download
PM > Install-Package BarCode
바코드 리더 옵션 설정

바코드 리더 옵션 설정

IronBarcode는 맞춤형 및 최적화된 바코드 읽기를 가능하게 하기 위해 BarcodeReaderOptions 클래스 내에 다양한 설정을 제공합니다. 이러한 옵션은 리소스를 정확성으로 맞바꾸고, 읽기 범위를 제어하며, 읽기 전략을 최적화할 수 있게 합니다.

사용 가능한 BarcodeReaderOptions 유형

  • BarcodeReaderOptions: 이 클래스는 바코드 읽기를 사용자 정의할 수 있는 옵션을 제공하여 특정 요구에 따라 처리 과정을 더욱 효율적이고 정확하게 만듭니다.
  • TotalBarcodes: 이를 1으로 설정하면 첫 번째 바코드를 찾은 후 판독이 중지되며, 하나의 바코드만 예상될 경우 성능이 향상됩니다.
  • TreatAllDecodersAs: 자동으로 바코드 유형을 감지하여 다양한 바코드 형식을 다룰 때 과정을 단순화합니다.
  • CropRegion: 이미지의 특정 영역에 집중할 수 있어 바코드 위치가 대략적으로 알려진 경우 판독 시간과 정확도를 크게 향상시킬 수 있습니다.
  • MaxThreads: 병렬로 사용할 최대 스레드 수를 지정하여 여러 CPU 코어가 있는 시스템에서 성능을 향상시킵니다.
  • MinScanLines: 바코드 결과가 유효하다고 간주되기 위해 동의해야 하는 최소 스캔 라인의 수를 설정합니다. 기본값은 2입니다. 이 값을 1로 낮추면 얇거나 품질이 낮은 BARCODE에 대한 감도가 높아지며, 반대로 높이면 오탐이 줄어듭니다.

이 구성은 자원 사용, 속도 및 정확성의 균형을 맞추며, 특정 바코드 판독 요구에 맞게 조정됩니다.

IronBarcode로 이미지에서 바코드 읽기 배우기
GitHub에서 보기

시작할 준비 되셨나요?

Nuget Downloads 2,422,100버전:2026.9방금 출시

Key in blue circle

무료 30일 체험 키를 즉시 받으세요.

Your trial license will be sent to your email address

제한 없음. 100% 무제한 이용. 신용카드 불필요.

bullet_checked신용카드나 계정 생성은 필요하지 않습니다.제한 없음. 100% 무제한 이용. 신용카드 불필요.
  • Logo Aetna
  • Logo NASA
  • Logo GE
  • Logo Porsche
  • Logo USDA
  • Logo Qatar
Join Millions of Engineers who’ve tried IronPDF
무료 라이브 데모를 예약하세요
Booking Badge

전 세계 수백만 엔지니어들이 신뢰하는 제품입니다.

Iron Software의 고객 로고
부담 없는 무료 상담을 받아보세요
아래 양식을 작성하시거나 sales@ironsoftware.com으로 이메일을 보내주세요.
고객님의 정보는 항상 비밀로 유지됩니다.
전 세계 수백만 엔지니어들이 신뢰하는 제품입니다.
Iron Software의 고객 로고
지금 바로 30일 무료 체험판 키를 받으세요.
신용카드나 계정 생성은 필요하지 않습니다.