Class AbstractBarcodeDecoder

    • Constructor Detail

      • AbstractBarcodeDecoder

        public AbstractBarcodeDecoder()
    • Method Detail

      • check

        protected void check​(AbstractImageContainer image)
        Performs checks on the image.

        Default implementation just ensures that an image is present.
        Parameters:
        image - the image to check
      • doDecode

        protected abstract TextContainer doDecode​(AbstractImageContainer image)
        Performs the actual decoding.
        Parameters:
        image - the image to extract the barcode from
        Returns:
        a TextContainer with the decoded barcode text and (optional) meta-data
      • decode

        public TextContainer decode​(AbstractImageContainer image)
        Attempts to decode the barcode in the image.
        Parameters:
        image - the image to extract the barcode from
        Returns:
        a TextContainer with the decoded barcode text and (optional) meta-data