IronBarcode 와 ZXing .NET 비교
이미 tech phone/admin phone에 바코드의 전자 이미지를 가지고 있으며 이를 영어 텍스트 데이터로 해독하려는 경우, 바코드 스캐너는 최선의 도구가 아닐 수 있습니다. 또한, 바코드 스캐너는 저장 용량이 제한된 1차원 바코드만 읽을 수 있으며, 도메인 상태, 지원 형식이 제한되어 있으며 Windows RT 클래스 라이브러리와 함께만 사용할 수 있습니다. 현재는 2차원 바코드(QR 코드라고도 함)가 더 일반적이며 업데이트된 날짜와 같은 정보를 훨씬 더 많이 저장할 수 있습니다.
바코드 스캐닝 애플리케이션은 .NET의 지원으로 인해 제3자 도구나 API에 의존하지 않고 Windows, MacOS 또는 Linux에서 실행할 수 있습니다.
ZXing.org QR Code Library 및 IronBarcode: 종합 비교: 그림 2 - 웹 애플리케이션
스팸을 피하기 위해 많은 비즈니스에서 바코드를 생성하고 스캔하는 것이 필수적이 되었습니다. 바코드를 생성하는 인기 있는 두 가지 도구는 오픈 소스 ZXing 프로젝트 decode와 IronBarcode입니다. 이 기사에서는 이러한 도구 각각의 기능과 이점을 탐구하고 비교할 것입니다.
ZXing 디코더
ZXing은 1D 및 2D 바코드를 생성하고 디코딩하는 데 널리 사용되는 오픈 소스 라이브러리입니다.
Java, C++, .NET을 포함한 여러 프로그래밍 언어를 지원합니다.
ZXing 디코더 온라인은 사용자가 바코드 및 QR 코드 이미지를 스캔하고 디코딩할 수 있는 웹 기반 도구입니다. 또한 사용자는 자신이 인코딩하고자 하는 URL이나 텍스트 형태의 정보를 위한 QR 코드를 생성할 수 있습니다.
ZXing 온라인 디코더를 사용하려면 다음 과정을 따르십시오:
- ZXing 디코더 온라인 웹사이트를 방문하십시오.
ZXing.org QR Code Library 및 IronBarcode: 종합 비교: 그림 2 - Google에서 개발한 ZXing 웹
- QR 코드 이미지 파일을 선택하기 위해 '파일 선택' 버튼을 클릭하십시오.
- 이미지를 선택한 후, '제출' 버튼을 클릭하십시오.
ZXing.org QR Code Library 및 IronBarcode: 종합 비교: 그림 3 - ZXing 디코드
- 인식 가능한 코드가 발견되면, 도구는 QR 코드를 디코드하고 결과 정보를 표시합니다.
라이브러리는 사용하기 쉽고, 웹 애플리케이션, 모바일 앱, 데스크탑 애플리케이션에 통합될 수 있습니다.
ZXing은 널리 채택되어 많은 개발자들이 개발에 기여하고 지원을 제공합니다.
라이브러리는 디바이스 모델 및 OS 버전과 같은 디바이스 정보를 수집하며, 이는 잠재적인 보안 위험으로 간주될 수 있습니다.
또한, 라이브러리가 독립적인 조직에 의해 관리되지 않는다는 것에 대한 소유권 및 제어에 대한 우려가 제기되었습니다.
전반적으로 ZXing은 바코드 생성 및 디코딩을 위한 강력하고 다재다능한 라이브러리로, 널리 채택되었으며 커뮤니티 지원을 받습니다.
예를 들어, ZXing을 사용하여 QR 코드를 생성하기 위해 개발자는 몇 줄의 코드만 작성하면 됩니다:
using ZXing;
using ZXing.QrCode;
// Create a BarcodeWriter instance to generate QR codes
BarcodeWriter writer = new BarcodeWriter
{
Format = BarcodeFormat.QR_CODE // Set format to QR_CODE
};
// Generate a QR code with the text "Hello, ZXing!"
Bitmap qrCode = writer.Write("Hello, ZXing!");Imports ZXing
Imports ZXing.QrCode
' Create a BarcodeWriter instance to generate QR codes
Private writer As New BarcodeWriter With {.Format = BarcodeFormat.QR_CODE}
' Generate a QR code with the text "Hello, ZXing!"
Private qrCode As Bitmap = writer.Write("Hello, ZXing!")ZXing 프로젝트를 사용하여 QR 코드를 디코딩하려면, 개발자는 다음 코드를 사용할 수 있습니다:
using ZXing;
using ZXing.QrCode;
// Create a BarcodeReader instance for decoding QR codes
BarcodeReader reader = new BarcodeReader();
// Decode the QR code from a bitmap image
Result result = reader.Decode(qrCode);
// Extract the text from the decoded QR code
string text = result.Text;Imports ZXing
Imports ZXing.QrCode
' Create a BarcodeReader instance for decoding QR codes
Private reader As New BarcodeReader()
' Decode the QR code from a bitmap image
Private result As Result = reader.Decode(qrCode)
' Extract the text from the decoded QR code
Private text As String = result.TextZXing.org QR Code Library 및 IronBarcode: 종합 비교: 그림 4 - QR 코드 생성기
ZXing.org QR Code Library 및 IronBarcode: 종합 비교: 그림 5 - QR 코드 파일 표시
IronBarcode 소개
IronBarcode는 Iron Software에서 만든 .NET 개발자를 위한 강력한 바코드 생성 및 스캔 라이브러리입니다.
IronBarcode는 개발자가 다양한 바코드 유형을 생성하고 스캔할 수 있는 사용하기 쉬운 API를 제공합니다. 여기에는 QR 코드, 데이터 매트릭스 코드, UPC-A 바코드가 포함됩니다.
IronBarcode 라이브러리는 ZXing.NET 라이브러리의 기능을 확장하기 위해 Iron Software에서 만든 것입니다.
ZXing.org QR Code Library 및 IronBarcode: 종합 비교: 그림 6 - 지원 바코드 형식
2D 바코드 생성, PDF417 바코드 생성 및 이미지 파일에서 직접 바코드를 읽는 기능과 같은 새로운 기능과 기능이 추가되었습니다.
IronBarcode를 사용하여 QR 코드를 생성하는 방법의 예입니다:
using IronBarCode;
// Generate a QR code with the text "Hello, IronBarcode!"
var barcode = BarcodeWriter.CreateBarcode("Hello, IronBarcode!", BarcodeWriterEncoding.QRCode);
// Save the generated QR code as a PNG image
barcode.SaveAsImage("qrcode.png");Imports IronBarCode
' Generate a QR code with the text "Hello, IronBarcode!"
Private barcode = BarcodeWriter.CreateBarcode("Hello, IronBarcode!", BarcodeWriterEncoding.QRCode)
' Save the generated QR code as a PNG image
barcode.SaveAsImage("qrcode.png")ZXing.org QR Code Library 및 IronBarcode: 종합 비교: 그림 7 - QR 코드
IronBarcode를 사용하여 바코드를 스캔하려면 다음 코드를 사용할 수 있습니다:
using IronBarCode;
// Read the QR code from the image file "qrcode.png"
var barcode = BarcodeReader.ReadBarcode("qrcode.png", BarcodeEncoding.QRCode);
// Extract the text from the decoded QR code
string text = barcode.Text;Imports IronBarCode
' Read the QR code from the image file "qrcode.png"
Private barcode = BarcodeReader.ReadBarcode("qrcode.png", BarcodeEncoding.QRCode)
' Extract the text from the decoded QR code
Private text As String = barcode.TextZXing.org QR Code Library 및 IronBarcode: 종합 비교: 그림 8 - C#에서 바코드 이미지 생성
IronBarcode는 2D 바코드, UPC-A, UPC-E, EAN-8, EAN-13, Code39, Code128, PDF417 등을 포함한 다양한 바코드 유형을 지원합니다.
ZXing.NET 라이브러리의 강점을 기반으로 하고 있으며, 더 빠르고 정확한 바코드 스캔 및 생성과 함께 새로운 기능과 기능을 추가합니다.
IronBarcode 사용 방법
IronBarcode를 사용하는 몇 가지 단계는 다음과 같습니다:
1단계: IronBarcode 라이브러리 설치
IronBarcode를 .NET 프로젝트에서 사용하려면 먼저 NuGet을 사용하여 IronBarcode 라이브러리를 설치해야 합니다. NuGet 패키지 관리자 콘솔에서 다음 명령을 실행하여 이를 수행할 수 있습니다:
2단계: 바코드 생성
IronBarcode를 사용하여 바코드를 생성하려면 BarcodeWriter 클래스를 사용할 수 있습니다.
using IronBarCode;
// Generate a QR code with the text "Hello, IronBarcode!"
var barcode = BarcodeWriter.CreateBarcode("Hello, IronBarcode!", BarcodeWriterEncoding.QRCode);
// Save the generated QR code as an image file
barcode.SaveAsImage("qrcode.png");Imports IronBarCode
' Generate a QR code with the text "Hello, IronBarcode!"
Private barcode = BarcodeWriter.CreateBarcode("Hello, IronBarcode!", BarcodeWriterEncoding.QRCode)
' Save the generated QR code as an image file
barcode.SaveAsImage("qrcode.png")이 코드는 'Hello, IronBarcode!'라는 텍스트가 포함된 QR 코드를 생성하고 이를 'qrcode.png'라는 이미지 파일로 저장합니다.
3단계: 바코드 스캔
바코드를 IronBarcode를 사용하여 스캔하려면 BarcodeReader 클래스를 사용할 수 있습니다.
using IronBarCode;
// Read the QR code from the image file "qrcode.png"
var barcode = BarcodeReader.ReadBarcode("qrcode.png", BarcodeEncoding.QRCode);
// Extract the text from the decoded QR code
string text = barcode.Text;Imports IronBarCode
' Read the QR code from the image file "qrcode.png"
Private barcode = BarcodeReader.ReadBarcode("qrcode.png", BarcodeEncoding.QRCode)
' Extract the text from the decoded QR code
Private text As String = barcode.Text이 코드는 'qrcode.png' 이미지 파일에서 QR 코드를 읽고 바코드에 인코딩된 텍스트를 반환합니다.
ZXing.org QR Code Library 및 IronBarcode: 종합 비교: 그림 9 - 바코드 스캔
4단계: 바코드 커스터마이즈
IronBarcode는 생성된 바코드 스캐닝 구현의 모양과 동작을 제어할 수 있는 다양한 커스터마이즈 옵션을 제공합니다.
바코드 스캐닝 구현을 위해 IronBarcode를 사용하여 QR 코드를 커스터마이즈하는 방법의 예입니다:
using IronBarCode;
// Customize a QR code
var barcode = BarcodeWriter.CreateBarcode("Hello, IronBarcode!", BarcodeWriterEncoding.QRCode);
barcode.ResizeTo(400, 400); // Resize the barcode
barcode.SetMargins(20); // Set margins around the barcode
barcode.SetForegroundColor(Color.Black); // Set the foreground color
barcode.SetBackgroundColor(Color.White); // Set the background color
barcode.AddCaptionAbove("Scan me with your smartphone!"); // Add a caption above the barcode
barcode.AddImageLogo("logo.png", 80, 80); // Add a logo to the barcode
barcode.SaveAsImage("qrcode.png"); // Save the customized barcode as an imageImports IronBarCode
' Customize a QR code
Private barcode = BarcodeWriter.CreateBarcode("Hello, IronBarcode!", BarcodeWriterEncoding.QRCode)
barcode.ResizeTo(400, 400) ' Resize the barcode
barcode.SetMargins(20) ' Set margins around the barcode
barcode.SetForegroundColor(Color.Black) ' Set the foreground color
barcode.SetBackgroundColor(Color.White) ' Set the background color
barcode.AddCaptionAbove("Scan me with your smartphone!") ' Add a caption above the barcode
barcode.AddImageLogo("logo.png", 80, 80) ' Add a logo to the barcode
barcode.SaveAsImage("qrcode.png") ' Save the customized barcode as an image이 코드는 'Hello, IronBarcode!'라는 텍스트가 포함된 QR 코드를 생성하고, 크기를 400x400 픽셀로 조정하고, 20px 마진을 추가하고, 전경색을 검정색으로 설정하고, 배경색을 흰색으로 설정하고, 바코드 위에 캡션을 추가하고, 로고 이미지를 추가하여 커스터마이즈합니다.
IronBarcode가 할 수 있는 기능
IronBarcode는 오픈 소스 ZXing 라이브러리 위에 구축되었지만, 더 넓은 범위의 바코드 유형을 지원하도록 기능이 확장되었습니다. 여기에는 QR 코드, Code 128, Code 39, EAN-13, EAN-8, UPC-A 등이 포함됩니다.
IronBarcode가 할 수 있는 몇 가지 기능은 다음과 같습니다:
바코드 생성
IronBarcode는 다양한 유형과 스타일의 바코드를 쉽게 생성할 수 있으며, 색상, 텍스트 및 이미지 오버레이와 같은 사용자 지정 기능을 제공합니다. 다음 코드는 QR 코드를 생성합니다:
var barcode = IronBarCode.BarcodeWriter.CreateBarcode("Hello World!", IronBarCode.BarcodeWriterEncoding.QRCode);
barcode.SaveAsJpeg("QRCode.jpg");Dim barcode = IronBarCode.BarcodeWriter.CreateBarcode("Hello World!", IronBarCode.BarcodeWriterEncoding.QRCode)
barcode.SaveAsJpeg("QRCode.jpg")ZXing.org QR Code Library 및 IronBarcode: 종합 비교: 그림 10 - 스캔할 Code128 바코드 이미지
바코드 읽기
IronBarcode는 이미지, PDF 및 실시간 카메라 스트림에서 바코드를 읽을 수 있는 강력한 바코드 스캐너도 제공합니다. 다음 코드는 이미지 파일에서 QR 코드를 읽습니다:
var barcode = IronBarCode.BarcodeReader.Read("QRCode.jpg", IronBarCode.BarcodeReaderEncoding.QRCode);
Console.WriteLine(barcode.Text);Dim barcode = IronBarCode.BarcodeReader.Read("QRCode.jpg", IronBarCode.BarcodeReaderEncoding.QRCode)
Console.WriteLine(barcode.Text)ZXing.org QR Code Library 및 IronBarcode: 종합 비교: 그림 11 - PDF에 저장된 바코드 읽기
바코드 유효성 검사
IronBarcode는 또한 다른 바코드 리더로 스캔할 수 있도록 바코드의 유효성을 검사할 수 있습니다. 다음 코드는 Code 128 바코드의 유효성을 검사하는 코드 조각입니다:
var barcode = IronBarCode.BarcodeReader.Read("Code128.jpg", IronBarCode.BarcodeReaderEncoding.Code128);
// Check if the barcode is valid
if (barcode.IsValid)
{
Console.WriteLine("Barcode is valid.");
}
else
{
Console.WriteLine("Barcode is invalid.");
}Dim barcode = IronBarCode.BarcodeReader.Read("Code128.jpg", IronBarCode.BarcodeReaderEncoding.Code128)
' Check if the barcode is valid
If barcode.IsValid Then
Console.WriteLine("Barcode is valid.")
Else
Console.WriteLine("Barcode is invalid.")
End If바코드 변환
IronBarcode는 Code 39 바코드를 QR 코드로 변환하는 등의 형식 전환을 할 수 있습니다. 다음 코드 조각은 Code 39 바코드를 QR 코드로 변환합니다:
var barcode = IronBarCode.BarcodeReader.Read("Code39.jpg", IronBarCode.BarcodeReaderEncoding.Code39);
var qrCode = IronBarCode.BarcodeWriter.CreateBarcode(barcode.Text, IronBarCode.BarcodeWriterEncoding.QRCode);
qrCode.SaveAsJpeg("QRCode.jpg");Dim barcode = IronBarCode.BarcodeReader.Read("Code39.jpg", IronBarCode.BarcodeReaderEncoding.Code39)
Dim qrCode = IronBarCode.BarcodeWriter.CreateBarcode(barcode.Text, IronBarCode.BarcodeWriterEncoding.QRCode)
qrCode.SaveAsJpeg("QRCode.jpg")IronBarcode가 ZXing Decoder Online보다 나은 이유
IronBarcode가 ZXing보다 나은 몇 가지 이유는 다음과 같습니다:
- 성능: IronBarcode는 ZXing보다 빠르며, 고속 바코드 스캔 및 생성이 필요한 웹 응용 프로그램에 적합합니다.
- 사용 용이성: IronBarcode의 API는 간단하고 직관적이어서 코드 몇 줄로 바코드를 생성하고 스캔하기 쉽습니다. 반면에, ZXing의 API는 복잡하고 초보자에게 어려울 수 있습니다.
- 출력 품질: IronBarcode는 작은 크기에서도 읽기 쉬운 고품질 바코드를 생성합니다. 반대로, ZXing의 바코드는 특히 작은 크기에서 읽기 어려운 경우가 있습니다.
- 지원 형식: IronBarcode는 UPC-A, 2D 바코드 등을 포함한 다양한 바코드 형식을 지원합니다. 비교적, ZXing 프로젝트는 제한된 수의 바코드 형식만 지원합니다.
- 라이선스: IronBarcode는 개발자들이 라이브러리를 무료로 사용하거나 필요에 따라 라이선스를 구입할 수 있는 유연한 라이선스 모델을 제공합니다. 반면, ZXing의 라이선스는 제한적이며, 개발자들이 상업적 프로젝트에서 라이브러리를 사용하기 어렵게 만듭니다.
ZXing.org QR Code Library 및 IronBarcode: 종합 비교: 그림 12 - 다중 프레임 TIFF 이미지에서 바코드 읽기
IronBarcode는 성능, 사용 용이성, 출력 품질, 지원 형식 및 라이선스 측면에서 ZXing보다 우수한 라이브러리입니다.
IronBarcode의 우수성을 직접 확인하세요
아래의 무료 바코드 읽기 데모를 사용하여 IronBarcode가 제공하는 모든 것을 탐색해보세요.
IronBarcode는 또한 무료 체험판을 제공합니다
IronBarcode를 시도하여 바코드 스캔 및 생성 기능을 어떻게 향상시킬 수 있는지 알아보시겠습니까? IronBarcode의 기능과 이점을 테스트해 볼 수 있도록 무료 체험판을 제공합니다.
체험판 기간 동안 IronBarcode의 강력한 모든 기능에 완전하게 접근할 수 있으며, 다양한 바코드 형식 지원, 고급 맞춤 설정 옵션 및 기존 프로젝트와의 매끄러운 통합을 포함하고 있습니다.
체험판을 시작하려면 당사 웹사이트를 방문하여 IronBarcode 패키지를 다운로드하세요. 그런 다음 IronBarcode가 제공하는 모든 것을 탐험할 수 있는 무료 체험판을 통해 바코드 스캔과 생성 워크플로우를 직접 확인할 수 있습니다.

커티스 차우는 칼턴 대학교에서 컴퓨터 과학 학사 학위를 취득했으며, Node.js, TypeScript, JavaScript, React를 전문으로 하는 프론트엔드 개발자입니다. 직관적이고 미적으로 뛰어난 사용자 인터페이스를 만드는 데 열정을 가진 그는 최신 프레임워크를 활용하고, 잘 구성되고 시각적으로 매력적인 매뉴얼을 제작하는 것을 즐깁니다.