VintaSoft Barcode .NET SDK 16.0: Documentation for .NET developer
In This Topic
    Detect barcode regions using AI in .NET application
    In This Topic
    VintaSoft Barcode .NET SDK 16.0+ can use a neural network (artificial intelligence) to find barcode regions in an image.

    If SDK should find regions of 1D barcodes using a neural network, the following steps should be made:
    If SDK should find regions of 2D barcodes using a neural network, the following steps should be made:

    When should a neural network be used to recognize barcode regions in an image?

    Enable the usage of neural network in your .NET application if one of the following conditions is met:

    The detection of barcode regions using a neural network takes between 30 and 70 milliseconds per image. The AI​barcode region detector (Ai1DBarcodeRegionDetector, Ai2DBarcodeRegionDetector) contains settings that only activate the neural network when it is expected to improve performance.

    How is the barcode recognition process accelerated?

    If the SDK uses a neural network to find barcode regions in an image, the SDK first finds barcode regions in the image using a neural network (30 to 70 milliseconds per image) and then performs multi-threaded barcode recognition in the found regions. Using multi-threading accelerates the barcode recognition process.

    What to do when I do not know number of barcodes in an image?

    If you do not know the number of barcodes in image, please use the neural network and set the ReaderSettings.ExpectedBarcodes property to 0.

    I know where the barcodes are located in the image. Is there a way to speed up the barcode recognition process?

    Use the BarcodeLayoutInfo class to define the image layout - this will allow the barcode recognizer to perform recognition only in the required regions and use multithreading effectively.