IRONSOFTWAREHOME
바코드를 비동기적으로 읽기
using IronBarCode;

// Reading many images asynchronously using ReadAsync
string[] imagePaths = new string[] { "image1.png", "image2.png" };
var resultsAsync = BarcodeReader.ReadAsync(imagePaths, new BarcodeReaderOptions() { ExpectMultipleBarcodes = true });

// Reading many PDFs asynchronously using ReadPdfAsync
string[] pdfPaths = new string[] { "doc1.pdf", "doc2.pdf" };
var resultsPdfAsync = BarcodeReader.ReadPdfsAsync(pdfPaths, new PdfBarcodeReaderOptions() { ExpectMultipleBarcodes = true, Scale = 3, DPI = 300 });
Imports IronBarCode

' Reading many images asynchronously using ReadAsync
Dim imagePaths As String() = New String() {"image1.png", "image2.png"}
Dim resultsAsync = BarcodeReader.ReadAsync(imagePaths, New BarcodeReaderOptions() With {.ExpectMultipleBarcodes = True})

' Reading many PDFs asynchronously using ReadPdfAsync
Dim pdfPaths As String() = New String() {"doc1.pdf", "doc2.pdf"}
Dim resultsPdfAsync = BarcodeReader.ReadPdfsAsync(pdfPaths, New PdfBarcodeReaderOptions() With {.ExpectMultipleBarcodes = True, .Scale = 3, .DPI = 300})
NuGet Download
PM > Install-Package BarCode
바코드를 비동기적으로 읽기

바코드를 비동기적으로 읽기

우리는 BarcodeReader 클래스를 사용하여 바코드를 읽을 수 있습니다. 가장 쉬운 사용 방법은 BarcodeReader.Read 방법입니다. IronBarcode는 또한 다중 스레드 비동기 프로그래밍을 위한 ReadAsync 방법을 가지고 있습니다.

핵심 사항

  • 동기식 vs 비동기식 메서드

    • Read 메소드는 즉각적인 결과가 필요할 때 사용하기 쉬우며 메인 스레드에서 호출됩니다.
    • ReadAsync 메소드는 비동기 실행을 위해 사용되며, 바코드 읽기가 완료될 때까지 다른 작업을 계속 진행할 수 있습니다.
  • BarcodeReaderOptions

    • ExpectMultipleBarcodes: true로 설정되면, 리더가 이미지에서 여러 바코드를 찾으려고 합니다.
    • EnhanceAccuracy: 속도의 대가를 치르더라도 정확성을 향상시킵니다.
    • SpeedUp: 많은 이미지를 빠르게 처리하는 데 유용할 수 있는 읽기 효율성을 향상시킵니다. 그러나 이것을 true로 설정하면 정확도가 떨어질 수 있습니다.
비동기 및 멀티스레드 바코드 읽기 탐색
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일 무료 체험판 키를 받으세요.
신용카드나 계정 생성은 필요하지 않습니다.