🤖 AIによる機械翻訳(非公式) — これは OpenCV 4.13.0 公式リファレンス(英語)を AI (Claude) で自動翻訳したものです。訳に誤りを含む場合があります。正確な情報は 公式英語版(原文) を参照してください。

クラス QRCodeDetector

    • コンストラクタの詳細

      • QRCodeDetector

        protected QRCodeDetector​(long addr)
      • QRCodeDetector

        public QRCodeDetector()
    • メソッドの詳細

      • __fromPtr__

        public static QRCodeDetector __fromPtr__​(long addr)
      • setEpsX

        public QRCodeDetector setEpsX​(double epsX)
        sets the epsilon used during the horizontal scan of QR code stop marker detection.
        引数:
        epsX - イプシロン近傍。QR コード規格に従い、1:1:3:1:1 のパターンを水平方向に判定するために用いる。
        戻り値:
        自動生成
      • setEpsY

        public QRCodeDetector setEpsY​(double epsY)
        sets the epsilon used during the vertical scan of QR code stop marker detection.
        引数:
        epsY - イプシロン近傍。QR コード規格に従い、1:1:3:1:1 のパターンを垂直方向に判定するために用いる。
        戻り値:
        自動生成
      • setUseAlignmentMarkers

        public QRCodeDetector setUseAlignmentMarkers​(boolean useAlignmentMarkers)
        use markers to improve the position of the corners of the QR code alignmentMarkers using by default
        引数:
        useAlignmentMarkers - 自動生成
        戻り値:
        自動生成
      • decodeCurved

        public java.lang.String decodeCurved​(Mat img,
                                             Mat points,
                                             Mat straight_qrcode)
        Decodes QR code on a curved surface in image once it's found by the detect() method. Returns UTF8-encoded output string or empty string if the code cannot be decoded.
        引数:
        img - QR コードを含むグレースケールまたはカラー (BGR) 画像。
        points - detect() メソッド(または他のアルゴリズム)で見つかった四角形の頂点
        straight_qrcode - 補正・二値化された QR コードを含む省略可能な出力画像
        戻り値:
        自動生成
      • decodeCurved

        public java.lang.String decodeCurved​(Mat img,
                                             Mat points)
        Decodes QR code on a curved surface in image once it's found by the detect() method. Returns UTF8-encoded output string or empty string if the code cannot be decoded.
        引数:
        img - QR コードを含むグレースケールまたはカラー (BGR) 画像。
        points - detect() メソッド(または他のアルゴリズム)で見つかった四角形の頂点
        戻り値:
        自動生成
      • detectAndDecodeCurved

        public java.lang.String detectAndDecodeCurved​(Mat img,
                                                      Mat points,
                                                      Mat straight_qrcode)
        Both detects and decodes QR code on a curved surface
        引数:
        img - QR コードを含むグレースケールまたはカラー (BGR) 画像。
        points - 見つかった QR コードの四辺形の頂点を格納する省略可能な出力配列。見つからない場合は空になる。
        straight_qrcode - 補正・二値化された QR コードを含む省略可能な出力画像
        戻り値:
        自動生成
      • detectAndDecodeCurved

        public java.lang.String detectAndDecodeCurved​(Mat img,
                                                      Mat points)
        Both detects and decodes QR code on a curved surface
        引数:
        img - QR コードを含むグレースケールまたはカラー (BGR) 画像。
        points - 見つかった QR コードの四辺形の頂点を格納する省略可能な出力配列。見つからない場合は空になる。
        戻り値:
        自動生成
      • detectAndDecodeCurved

        public java.lang.String detectAndDecodeCurved​(Mat img)
        Both detects and decodes QR code on a curved surface
        引数:
        img - QR コードを含むグレースケールまたはカラー (BGR) 画像。
        戻り値:
        自動生成
      • getEncoding

        public int getEncoding​(int codeIdx)
        Returns a kind of encoding for the decoded info from the latest REF: decode or REF: detectAndDecode call
        引数:
        codeIdx - 以前にデコードされた QR コードのインデックス。REF: decode または REF: detectAndDecode を使用する場合、有効な値はゼロである。REF: decodeMulti または REF: detectAndDecodeMulti を使用する場合は、出力順に対応するインデックスを用いる。
        戻り値:
        自動生成
      • getEncoding

        public int getEncoding()
        Returns a kind of encoding for the decoded info from the latest REF: decode or REF: detectAndDecode call When REF: decode or REF: detectAndDecode is used, valid value is zero. For REF: decodeMulti or REF: detectAndDecodeMulti use indices corresponding to the output order.
        戻り値:
        自動生成