Czytnik kodów kreskowych .NET dla C#
sgcCapture to czytnik kodów kreskowych .NET dla C#: odczytuje QR Code, Data Matrix, PDF417 i kody liniowe z obrazów, plików TIFF i PDF, skanuje dokumenty i dekoduje obraz z kamery na żywo.
using System;
using esegece.sgcCapture;
class Program
{
static void Main()
{
using (TsgcCaptureBarcodeReader oReader = new TsgcCaptureBarcodeReader())
{
// all 11 formats by default; here only the formats of the label
oReader.Formats = TsgcCaptureBarcodeFormats.cbfGS1_128 |
TsgcCaptureBarcodeFormats.cbfQRCode;
oReader.TryHarder = true;
// JPEG, PNG, BMP, TIFF and PDF files: every page is read
oReader.ReadFromFile("shipping-label.png");
for (int i = 0; i < oReader.Results.Count; i++)
{
TsgcCaptureBarcodeResult oResult = oReader.Results[i];
Console.WriteLine(oResult.Format + ": " + oResult.Text);
}
}
}
}> ReadBarcodes.exe
cbfQRCode: https://www.esegece.com/products/sgccapture/
cbfGS1_128: (01)09501101530003(17)271231(10)LOT42Program zbudowany dla .NET 8 i uruchomiony na etykiecie przesyłki z kodem kreskowym GS1-128 i kodem QR Code.