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

クラス SegmentationModel


  • public class SegmentationModel extends Model
    このクラスはセグメンテーションモデルの高レベルAPIを表す。SegmentationModelは入力画像の前処理に関する引数を設定できる。SegmentationModelは学習済み重みと設定を含むファイルからネットを生成し、入力の前処理を設定し、順伝播を実行して各ピクセルのクラス予測を返す。
    • コンストラクタの詳細

      • SegmentationModel

        protected SegmentationModel​(long addr)
      • SegmentationModel

        public SegmentationModel​(java.lang.String model,
                                 java.lang.String config)
        Create segmentation model from network represented in one of the supported formats. An order of model and config arguments does not matter.
        引数:
        model - 学習済み重みを含むバイナリファイル。
        config - ネットワーク構成を含むテキストファイル。
      • SegmentationModel

        public SegmentationModel​(java.lang.String model)
        Create segmentation model from network represented in one of the supported formats. An order of model and config arguments does not matter.
        引数:
        model - 学習済み重みを含むバイナリファイル。
      • SegmentationModel

        public SegmentationModel​(Net network)
        Create model from deep learning network.
        引数:
        network - Net オブジェクト。
    • メソッドの詳細

      • segment

        public void segment​(Mat frame,
                            Mat mask)
        Given the input frame, create input blob, run net
        引数:
        mask - 各ピクセルのクラス予測を格納する確保済み領域
        frame - 自動生成