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

クラス WeChatQRCode


  • public class WeChatQRCode extends java.lang.Object
    WeChat QRCode は2つのCNNベースのモデルを含む。すなわち物体検出モデルと超解像モデルである。物体検出モデルはバウンディングボックス付きでQRコードを検出するために使用される。超解像モデルはQRコードが小さい場合に拡大するために使用される。
    • フィールドの要約

      フィールド
      Modifier and Type Field Description
      protected long nativeObj  
    • コンストラクタの要約

      コンストラクタ
      Modifier Constructor Description
        WeChatQRCode()
      Initialize the WeChatQRCode.
      protected WeChatQRCode​(long addr)  
        WeChatQRCode​(java.lang.String detector_prototxt_path)
      Initialize the WeChatQRCode.
        WeChatQRCode​(java.lang.String detector_prototxt_path, java.lang.String detector_caffe_model_path)
      Initialize the WeChatQRCode.
        WeChatQRCode​(java.lang.String detector_prototxt_path, java.lang.String detector_caffe_model_path, java.lang.String super_resolution_prototxt_path)
      Initialize the WeChatQRCode.
        WeChatQRCode​(java.lang.String detector_prototxt_path, java.lang.String detector_caffe_model_path, java.lang.String super_resolution_prototxt_path, java.lang.String super_resolution_caffe_model_path)
      Initialize the WeChatQRCode.
    • フィールドの詳細

      • nativeObj

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

      • WeChatQRCode

        protected WeChatQRCode​(long addr)
      • WeChatQRCode

        public WeChatQRCode​(java.lang.String detector_prototxt_path,
                            java.lang.String detector_caffe_model_path,
                            java.lang.String super_resolution_prototxt_path,
                            java.lang.String super_resolution_caffe_model_path)
        Initialize the WeChatQRCode. It includes two models, which are packaged with caffe format. Therefore, there are prototxt and caffe models (In total, four paramenters).
        引数:
        detector_prototxt_path - 検出器用のprototxtファイルパス
        detector_caffe_model_path - 検出器用のcaffeモデルファイルパス
        super_resolution_prototxt_path - 超解像モデル用のprototxtファイルパス
        super_resolution_caffe_model_path - 超解像モデル用のcaffeファイルパス
      • WeChatQRCode

        public WeChatQRCode​(java.lang.String detector_prototxt_path,
                            java.lang.String detector_caffe_model_path,
                            java.lang.String super_resolution_prototxt_path)
        Initialize the WeChatQRCode. It includes two models, which are packaged with caffe format. Therefore, there are prototxt and caffe models (In total, four paramenters).
        引数:
        detector_prototxt_path - 検出器用のprototxtファイルパス
        detector_caffe_model_path - 検出器用のcaffeモデルファイルパス
        super_resolution_prototxt_path - 超解像モデル用のprototxtファイルパス
      • WeChatQRCode

        public WeChatQRCode​(java.lang.String detector_prototxt_path,
                            java.lang.String detector_caffe_model_path)
        Initialize the WeChatQRCode. It includes two models, which are packaged with caffe format. Therefore, there are prototxt and caffe models (In total, four paramenters).
        引数:
        detector_prototxt_path - 検出器用のprototxtファイルパス
        detector_caffe_model_path - 検出器用のcaffeモデルファイルパス
      • WeChatQRCode

        public WeChatQRCode​(java.lang.String detector_prototxt_path)
        Initialize the WeChatQRCode. It includes two models, which are packaged with caffe format. Therefore, there are prototxt and caffe models (In total, four paramenters).
        引数:
        detector_prototxt_path - 検出器用のprototxtファイルパス
      • WeChatQRCode

        public WeChatQRCode()
        Initialize the WeChatQRCode. It includes two models, which are packaged with caffe format. Therefore, there are prototxt and caffe models (In total, four paramenters).
    • メソッドの詳細

      • getNativeObjAddr

        public long getNativeObjAddr()
      • __fromPtr__

        public static WeChatQRCode __fromPtr__​(long addr)
      • detectAndDecode

        public java.util.List<java.lang.String> detectAndDecode​(Mat img,
                                                                java.util.List<Mat> points)
        Both detects and decodes QR code. To simplify the usage, there is a only API: detectAndDecode
        引数:
        img - グレースケールまたはカラー (BGR) 画像をサポートする。
        points - 見つかった QR コードの四辺形の頂点を格納する省略可能な出力配列。見つからない場合は空になる。
        戻り値:
        デコードされた文字列のリスト。
      • detectAndDecode

        public java.util.List<java.lang.String> detectAndDecode​(Mat img)
        Both detects and decodes QR code. To simplify the usage, there is a only API: detectAndDecode
        引数:
        img - グレースケールまたはカラー (BGR) 画像をサポートする。見つからない場合は空となる。
        戻り値:
        デコードされた文字列のリスト。
      • setScaleFactor

        public void setScaleFactor​(float _scalingFactor)
        set scale factor QR code detector use neural network to detect QR. Before running the neural network, the input image is pre-processed by scaling. By default, the input image is scaled to an image with an area of 160000 pixels. The scale factor allows to use custom scale the input image: width = scaleFactor*width height = scaleFactor*width scaleFactor valuse must be > 0 and <= 1, otherwise the scaleFactor value is set to -1 and use default scaled to an image with an area of 160000 pixels.
        引数:
        _scalingFactor - 自動生成
      • getScaleFactor

        public float getScaleFactor()