Class QRCodeEncoder


  • public class QRCodeEncoder
    extends java.lang.Object
    Groups the object candidate rectangles. rectList Input/output vector of rectangles. Output vector includes retained and grouped rectangles. (The Python list is not modified in place.) weights Input/output vector of weights of rectangles. Output vector includes weights of retained and grouped rectangles. (The Python list is not modified in place.) groupThreshold Minimum possible number of rectangles minus 1. The threshold is used in a group of rectangles to retain it. eps Relative difference between sides of the rectangles to merge them into a group.
    • Constructor Detail

      • QRCodeEncoder

        protected QRCodeEncoder​(long addr)
    • Method Detail

      • getNativeObjAddr

        public long getNativeObjAddr()
      • __fromPtr__

        public static QRCodeEncoder __fromPtr__​(long addr)
      • create

        public static QRCodeEncoder create()
        Constructor
        Returns:
        automatically generated
      • encode

        public void encode​(java.lang.String encoded_info,
                           Mat qrcode)
        Generates QR code from input string.
        Parameters:
        encoded_info - Input string to encode.
        qrcode - Generated QR code.
      • encodeStructuredAppend

        public void encodeStructuredAppend​(java.lang.String encoded_info,
                                           java.util.List<Mat> qrcodes)
        Generates QR code from input string in Structured Append mode. The encoded message is splitting over a number of QR codes.
        Parameters:
        encoded_info - Input string to encode.
        qrcodes - Vector of generated QR codes.
      • finalize

        protected void finalize()
                         throws java.lang.Throwable
        Overrides:
        finalize in class java.lang.Object
        Throws:
        java.lang.Throwable