Package org.opencv.objdetect
Class QRCodeEncoder
- java.lang.Object
-
- org.opencv.objdetect.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.
-
-
Field Summary
Fields Modifier and Type Field Description static int
CORRECT_LEVEL_H
static int
CORRECT_LEVEL_L
static int
CORRECT_LEVEL_M
static int
CORRECT_LEVEL_Q
static int
ECI_UTF8
static int
MODE_ALPHANUMERIC
static int
MODE_AUTO
static int
MODE_BYTE
static int
MODE_ECI
static int
MODE_KANJI
static int
MODE_NUMERIC
static int
MODE_STRUCTURED_APPEND
protected long
nativeObj
-
Constructor Summary
Constructors Modifier Constructor Description protected
QRCodeEncoder(long addr)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static QRCodeEncoder
__fromPtr__(long addr)
static QRCodeEncoder
create()
Constructorvoid
encode(java.lang.String encoded_info, Mat qrcode)
Generates QR code from input string.void
encodeStructuredAppend(java.lang.String encoded_info, java.util.List<Mat> qrcodes)
Generates QR code from input string in Structured Append mode.protected void
finalize()
long
getNativeObjAddr()
-
-
-
Field Detail
-
nativeObj
protected final long nativeObj
-
CORRECT_LEVEL_L
public static final int CORRECT_LEVEL_L
- See Also:
- Constant Field Values
-
CORRECT_LEVEL_M
public static final int CORRECT_LEVEL_M
- See Also:
- Constant Field Values
-
CORRECT_LEVEL_Q
public static final int CORRECT_LEVEL_Q
- See Also:
- Constant Field Values
-
CORRECT_LEVEL_H
public static final int CORRECT_LEVEL_H
- See Also:
- Constant Field Values
-
ECI_UTF8
public static final int ECI_UTF8
- See Also:
- Constant Field Values
-
MODE_AUTO
public static final int MODE_AUTO
- See Also:
- Constant Field Values
-
MODE_NUMERIC
public static final int MODE_NUMERIC
- See Also:
- Constant Field Values
-
MODE_ALPHANUMERIC
public static final int MODE_ALPHANUMERIC
- See Also:
- Constant Field Values
-
MODE_BYTE
public static final int MODE_BYTE
- See Also:
- Constant Field Values
-
MODE_ECI
public static final int MODE_ECI
- See Also:
- Constant Field Values
-
MODE_KANJI
public static final int MODE_KANJI
- See Also:
- Constant Field Values
-
MODE_STRUCTURED_APPEND
public static final int MODE_STRUCTURED_APPEND
- See Also:
- Constant Field Values
-
-
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 classjava.lang.Object
- Throws:
java.lang.Throwable
-
-