001//
002// This file is auto-generated. Please don't modify it!
003//
004package org.opencv.objdetect;
005
006
007
008// C++: class Params
009/**
010 * QR code encoder parameters.
011 *      version The optional version of QR code (by default - maximum possible depending on
012 *                     the length of the string).
013 *      correction_level The optional level of error correction (by default - the lowest).
014 *      mode The optional encoding mode - Numeric, Alphanumeric, Byte, Kanji, ECI or Structured Append.
015 *      structure_number The optional number of QR codes to generate in Structured Append mode.
016 */
017public class QRCodeEncoder_Params {
018
019    protected final long nativeObj;
020    protected QRCodeEncoder_Params(long addr) { nativeObj = addr; }
021
022    public long getNativeObjAddr() { return nativeObj; }
023
024    // internal usage only
025    public static QRCodeEncoder_Params __fromPtr__(long addr) { return new QRCodeEncoder_Params(addr); }
026
027    //
028    // C++:   cv::QRCodeEncoder::Params::Params()
029    //
030
031    public QRCodeEncoder_Params() {
032        nativeObj = QRCodeEncoder_Params_0();
033    }
034
035
036    //
037    // C++: int QRCodeEncoder_Params::version
038    //
039
040    public int get_version() {
041        return get_version_0(nativeObj);
042    }
043
044
045    //
046    // C++: void QRCodeEncoder_Params::version
047    //
048
049    public void set_version(int version) {
050        set_version_0(nativeObj, version);
051    }
052
053
054    //
055    // C++: CorrectionLevel QRCodeEncoder_Params::correction_level
056    //
057
058    // Return type 'CorrectionLevel' is not supported, skipping the function
059
060
061    //
062    // C++: void QRCodeEncoder_Params::correction_level
063    //
064
065    // Unknown type 'CorrectionLevel' (I), skipping the function
066
067
068    //
069    // C++: EncodeMode QRCodeEncoder_Params::mode
070    //
071
072    // Return type 'EncodeMode' is not supported, skipping the function
073
074
075    //
076    // C++: void QRCodeEncoder_Params::mode
077    //
078
079    // Unknown type 'EncodeMode' (I), skipping the function
080
081
082    //
083    // C++: int QRCodeEncoder_Params::structure_number
084    //
085
086    public int get_structure_number() {
087        return get_structure_number_0(nativeObj);
088    }
089
090
091    //
092    // C++: void QRCodeEncoder_Params::structure_number
093    //
094
095    public void set_structure_number(int structure_number) {
096        set_structure_number_0(nativeObj, structure_number);
097    }
098
099
100    @Override
101    protected void finalize() throws Throwable {
102        delete(nativeObj);
103    }
104
105
106
107    // C++:   cv::QRCodeEncoder::Params::Params()
108    private static native long QRCodeEncoder_Params_0();
109
110    // C++: int QRCodeEncoder_Params::version
111    private static native int get_version_0(long nativeObj);
112
113    // C++: void QRCodeEncoder_Params::version
114    private static native void set_version_0(long nativeObj, int version);
115
116    // C++: int QRCodeEncoder_Params::structure_number
117    private static native int get_structure_number_0(long nativeObj);
118
119    // C++: void QRCodeEncoder_Params::structure_number
120    private static native void set_structure_number_0(long nativeObj, int structure_number);
121
122    // native support for java finalize()
123    private static native void delete(long nativeObj);
124
125}