Yanlış Pozitifler

This article was translated from English: Does it need improvement?
Translated
View the article in English

Yanlış Pozitifler Nasıl Kaldırılır?

Barkod okuma sırasında, karmaşık arka plan desenlerinin barkodları andırması veya parazit ve objeler yanlışlıkla geçerli barkodlar olarak işaretlenmesi nedeniyle yanlış pozitifler ortaya çıkabilir. IronBarcode'un okuma çıktısındaki yanlış pozitifleri kaldırmak için şu adımlar izlenebilir:

  1. Beklenen Barkod Formatlarını Belirtin: IronBarcode'u yalnızca beklediğiniz barkod formatlarını okumak için yapılandırın. Tam seçenek listesi burada mevcuttur: Barkod Kodlaması.

  2. RemoveFalsePositive Özelliğini Etkinleştirin: Barkod taraması yaparken, IronBarcode bir görüntüdeki BarCode'a en çok benzeyen "aday" bölgeleri arar, ardından bu bölgeleri çözmeye çalışır. Bu özelliği true olarak ayarlayarak, IronBarcode yalnızca kodlamasında hata olmayan bölgeleri kod çözecektir. Varsayılan olarak, RemoveFalsePositive zaten true olarak ayarlanmıştır.
using IronBarCode;

class BarcodeExample
{
    static void Main()
    {
        // Create a BarcodeReaderOptions object with specific parameters.
        BarcodeReaderOptions myOptionsExample = new BarcodeReaderOptions()
        {
            // Expect and return barcode results for only the Code 39 type.
            ExpectBarcodeTypes = IronBarCode.BarcodeEncoding.Code39,

            // Enable removal of false positives by setting to true.
            RemoveFalsePositive = true
        };

        // Read the barcode from the specified image file using the given options.
        var results = BarcodeReader.Read("barcode.png", myOptionsExample);

        // Process the results here, e.g., display them, log them, etc.
    }
}
using IronBarCode;

class BarcodeExample
{
    static void Main()
    {
        // Create a BarcodeReaderOptions object with specific parameters.
        BarcodeReaderOptions myOptionsExample = new BarcodeReaderOptions()
        {
            // Expect and return barcode results for only the Code 39 type.
            ExpectBarcodeTypes = IronBarCode.BarcodeEncoding.Code39,

            // Enable removal of false positives by setting to true.
            RemoveFalsePositive = true
        };

        // Read the barcode from the specified image file using the given options.
        var results = BarcodeReader.Read("barcode.png", myOptionsExample);

        // Process the results here, e.g., display them, log them, etc.
    }
}
Imports IronBarCode

Friend Class BarcodeExample
	Shared Sub Main()
		' Create a BarcodeReaderOptions object with specific parameters.
		Dim myOptionsExample As New BarcodeReaderOptions() With {
			.ExpectBarcodeTypes = IronBarCode.BarcodeEncoding.Code39,
			.RemoveFalsePositive = True
		}

		' Read the barcode from the specified image file using the given options.
		Dim results = BarcodeReader.Read("barcode.png", myOptionsExample)

		' Process the results here, e.g., display them, log them, etc.
	End Sub
End Class
$vbLabelText   $csharpLabel
Curtis Chau
Teknik Yazar

Curtis Chau, Bilgisayar Bilimleri alanında Lisans Derecesine (Carleton Üniversitesi) sahip ve Node.js, TypeScript, JavaScript ve React konularında uzmanlaşmış ön uç geliştirmeyle ilgileniyor. Sezgisel ve estetik açıdan hoş kullanıcı arayüzleri oluşturma tutkunu, Curtis modern çerçevelerle çalışmayı ve iyi yapı...

Daha Fazla Oku
Başlamaya Hazır mısınız?
Nuget İndirmeler 2,240,258 | Sürüm: 2026.5 just released
Still Scrolling Icon

Hâlâ Kaydırıyor Musunuz?

Hızlıca kanıt ister misiniz? PM > Install-Package BarCode
bir örnek çalıştır dizginizin barkoda dönüştüğünü izle.