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

クラス Tracker

    • フィールドの要約

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

      コンストラクタ
      Modifier Constructor Description
      protected Tracker​(long addr)  
    • フィールドの詳細

      • nativeObj

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

      • Tracker

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

      • getNativeObjAddr

        public long getNativeObjAddr()
      • __fromPtr__

        public static Tracker __fromPtr__​(long addr)
      • init

        public void init​(Mat image,
                         Rect boundingBox)
        Initialize the tracker with a known bounding box that surrounded the target
        引数:
        image - 最初のフレーム
        boundingBox - 初期バウンディングボックス
      • update

        public boolean update​(Mat image,
                              Rect boundingBox)
        Update the tracker, find the new most likely bounding box for the target
        引数:
        image - 現在のフレーム
        boundingBox - 新しいターゲット位置を表すバウンディングボックス。true が返された場合に設定され、そうでない場合は変更されない。
        戻り値:
        true はターゲットが特定できたことを意味し、false はトラッカーが現在のフレームでターゲットを特定できないことを意味する。なお、後者は必ずしもトラッカーが失敗したことを意味するわけではなく、ターゲットが本当にフレームから消失している(たとえば視界の外にある)場合もある。
      • getTrackingScore

        public float getTrackingScore()
        Return tracking score
        戻り値:
        自動生成