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

クラス legacy_Tracker

    • コンストラクタの詳細

      • legacy_Tracker

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

      • __fromPtr__

        public static legacy_Tracker __fromPtr__​(long addr)
      • init

        public boolean init​(Mat image,
                            Rect2d boundingBox)
        Initialize the tracker with a known bounding box that surrounded the target
        引数:
        image - 最初のフレーム
        boundingBox - 初期バウンディングボックス
        戻り値:
        初期化が成功した場合は true、そうでない場合は false
      • update

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