Package org.opencv.objdetect
Class QRCodeEncoder
java.lang.Object
org.opencv.objdetect.QRCodeEncoder
public class QRCodeEncoder extends 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
Modifier and Type Method Description static QRCodeEncoder
__fromPtr__(long addr)
static QRCodeEncoder
create()
Constructorstatic QRCodeEncoder
create(QRCodeEncoder_Params parameters)
Constructorvoid
encode(String encoded_info, Mat qrcode)
Generates QR code from input string.void
encodeStructuredAppend(String encoded_info, List<Mat> qrcodes)
Generates QR code from input string in Structured Append mode.protected void
finalize()
long
getNativeObjAddr()
-
Field Details
-
nativeObj
-
CORRECT_LEVEL_L
- See Also:
- Constant Field Values
-
CORRECT_LEVEL_M
- See Also:
- Constant Field Values
-
CORRECT_LEVEL_Q
- See Also:
- Constant Field Values
-
CORRECT_LEVEL_H
- See Also:
- Constant Field Values
-
ECI_UTF8
- See Also:
- Constant Field Values
-
MODE_AUTO
- See Also:
- Constant Field Values
-
MODE_NUMERIC
- See Also:
- Constant Field Values
-
MODE_ALPHANUMERIC
- See Also:
- Constant Field Values
-
MODE_BYTE
- See Also:
- Constant Field Values
-
MODE_ECI
- See Also:
- Constant Field Values
-
MODE_KANJI
- See Also:
- Constant Field Values
-
MODE_STRUCTURED_APPEND
- See Also:
- Constant Field Values
-
-
Constructor Details
-
Method Details
-
getNativeObjAddr
-
__fromPtr__
-
create
Constructor- Parameters:
parameters
- QR code encoder parameters QRCodeEncoder::Params- Returns:
- automatically generated
-
create
Constructor- Returns:
- automatically generated
-
encode
Generates QR code from input string.- Parameters:
encoded_info
- Input string to encode.qrcode
- Generated QR code.
-
encodeStructuredAppend
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
-