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

クラス GraphicalCodeDetector

    • フィールドの詳細

      • nativeObj

        protected final long nativeObj
    • コンストラクタの詳細

      • GraphicalCodeDetector

        protected GraphicalCodeDetector​(long addr)
    • メソッドの詳細

      • getNativeObjAddr

        public long getNativeObjAddr()
      • detect

        public boolean detect​(Mat img,
                              Mat points)
        Detects graphical code in image and returns the quadrangle containing the code.
        引数:
        img - グラフィカルコードを含む(または含まない)グレースケールまたはカラー(BGR)画像
        points - コードを含む最小面積の四角形の頂点を格納する出力ベクトル
        戻り値:
        自動生成
      • decode

        public java.lang.String decode​(Mat img,
                                       Mat points,
                                       Mat straight_code)
        Decodes graphical code 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 - グラフィカルコードを含むグレースケールまたはカラー(BGR)画像
        points - detect() メソッド(または他のアルゴリズム)で見つかった四角形の頂点
        straight_code - 2値化されたコードを含む省略可能な出力画像。見つからない場合は空になる
        戻り値:
        自動生成
      • decode

        public java.lang.String decode​(Mat img,
                                       Mat points)
        Decodes graphical code 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 - グラフィカルコードを含むグレースケールまたはカラー(BGR)画像
        points - detect() メソッド(または他のアルゴリズム)で見つかった四角形の頂点
        戻り値:
        自動生成
      • detectAndDecode

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

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

        public java.lang.String detectAndDecode​(Mat img)
        Both detects and decodes graphical code
        引数:
        img - グラフィカルコードを含むグレースケールまたはカラー(BGR)画像
        戻り値:
        自動生成
      • detectMulti

        public boolean detectMulti​(Mat img,
                                   Mat points)
        Detects graphical codes in image and returns the vector of the quadrangles containing the codes.
        引数:
        img - グラフィカルコードを含む(または含まない)グレースケールまたはカラー(BGR)画像
        points - コードを含む最小面積の四角形の頂点のベクトルを格納する出力ベクトル
        戻り値:
        自動生成
      • decodeMulti

        public boolean decodeMulti​(Mat img,
                                   Mat points,
                                   java.util.List<java.lang.String> decoded_info,
                                   java.util.List<Mat> straight_code)
        Decodes graphical codes in image once it's found by the detect() method.
        引数:
        img - グラフィカルコードを含むグレースケールまたはカラー(BGR)画像
        decoded_info - UTF8エンコードされた文字列の出力ベクトル。コードをデコードできない場合は空の文字列ベクトル。
        points - detect() メソッド(または他のアルゴリズム)で見つかった四角形の頂点のベクトル
        straight_code - 2値化されたコードを含む省略可能な画像の出力ベクトル
        戻り値:
        自動生成
      • decodeMulti

        public boolean decodeMulti​(Mat img,
                                   Mat points,
                                   java.util.List<java.lang.String> decoded_info)
        Decodes graphical codes in image once it's found by the detect() method.
        引数:
        img - グラフィカルコードを含むグレースケールまたはカラー(BGR)画像
        decoded_info - UTF8エンコードされた文字列の出力ベクトル。コードをデコードできない場合は空の文字列ベクトル。
        points - detect() メソッド(または他のアルゴリズム)で見つかった四角形の頂点のベクトル
        戻り値:
        自動生成
      • detectAndDecodeMulti

        public boolean detectAndDecodeMulti​(Mat img,
                                            java.util.List<java.lang.String> decoded_info,
                                            Mat points,
                                            java.util.List<Mat> straight_code)
        Both detects and decodes graphical codes
        引数:
        img - グラフィカルコードを含むグレースケールまたはカラー(BGR)画像
        decoded_info - UTF8エンコードされた文字列の出力ベクトル。コードをデコードできない場合は空の文字列ベクトル。
        points - 見つかったグラフィカルコードの四角形の頂点を格納する省略可能な出力ベクトル。見つからない場合は空になる
        straight_code - The optional vector of images containing binarized codes
        • 画像上にStructured AppendモードでエンコードされたQRコードが存在し、それらすべてが正しく検出・デコードされた場合、本メソッドはシーケンス中の0番目のコードに対応する位置に完全なメッセージを書き込む。同一シーケンス内の残りのQRコードには空文字列が入る。
        戻り値:
        自動生成
      • detectAndDecodeMulti

        public boolean detectAndDecodeMulti​(Mat img,
                                            java.util.List<java.lang.String> decoded_info,
                                            Mat points)
        Both detects and decodes graphical codes
        引数:
        img - グラフィカルコードを含むグレースケールまたはカラー(BGR)画像
        decoded_info - UTF8エンコードされた文字列の出力ベクトル。コードをデコードできない場合は空の文字列ベクトル。
        points - optional output vector of vertices of the found graphical code quadrangles. Will be empty if not found.
        • 画像上にStructured AppendモードでエンコードされたQRコードが存在し、それらすべてが正しく検出・デコードされた場合、本メソッドはシーケンス中の0番目のコードに対応する位置に完全なメッセージを書き込む。同一シーケンス内の残りのQRコードには空文字列が入る。
        戻り値:
        自動生成
      • detectAndDecodeMulti

        public boolean detectAndDecodeMulti​(Mat img,
                                            java.util.List<java.lang.String> decoded_info)
        Both detects and decodes graphical codes
        引数:
        img - グラフィカルコードを含むグレースケールまたはカラー(BGR)画像
        decoded_info - UTF8-encoded output vector of string or empty vector of string if the codes cannot be decoded.
        • 画像上にStructured AppendモードでエンコードされたQRコードが存在し、それらすべてが正しく検出・デコードされた場合、本メソッドはシーケンス中の0番目のコードに対応する位置に完全なメッセージを書き込む。同一シーケンス内の残りのQRコードには空文字列が入る。
        戻り値:
        自動生成
      • detectAndDecodeBytes

        public byte[] detectAndDecodeBytes​(Mat img,
                                           Mat points,
                                           Mat straight_code)
      • detectAndDecodeBytes

        public byte[] detectAndDecodeBytes​(Mat img,
                                           Mat points)
      • detectAndDecodeBytes

        public byte[] detectAndDecodeBytes​(Mat img)
      • decodeBytes

        public byte[] decodeBytes​(Mat img,
                                  Mat points,
                                  Mat straight_code)
      • decodeBytes

        public byte[] decodeBytes​(Mat img,
                                  Mat points)
      • decodeBytesMulti

        public boolean decodeBytesMulti​(Mat img,
                                        Mat points,
                                        java.util.List<byte[]> decoded_info,
                                        java.util.List<Mat> straight_code)
      • decodeBytesMulti

        public boolean decodeBytesMulti​(Mat img,
                                        Mat points,
                                        java.util.List<byte[]> decoded_info)
      • detectAndDecodeBytesMulti

        public boolean detectAndDecodeBytesMulti​(Mat img,
                                                 java.util.List<byte[]> decoded_info,
                                                 Mat points,
                                                 java.util.List<Mat> straight_code)
      • detectAndDecodeBytesMulti

        public boolean detectAndDecodeBytesMulti​(Mat img,
                                                 java.util.List<byte[]> decoded_info,
                                                 Mat points)
      • detectAndDecodeBytesMulti

        public boolean detectAndDecodeBytesMulti​(Mat img,
                                                 java.util.List<byte[]> decoded_info)