🤖 AIによる機械翻訳(非公式) — これは OpenCV 4.13.0 公式リファレンス(英語)を AI (Claude) で自動翻訳したものです。訳に誤りを含む場合があります。正確な情報は 公式英語版(原文) を参照してください。
Package org.opencv.tracking
クラス legacy_Tracker
- java.lang.Object
-
- org.opencv.core.Algorithm
-
- org.opencv.tracking.legacy_Tracker
-
- 既知の直接サブクラス:
legacy_TrackerBoosting,legacy_TrackerCSRT,legacy_TrackerKCF,legacy_TrackerMedianFlow,legacy_TrackerMIL,legacy_TrackerMOSSE,legacy_TrackerTLD
public class legacy_Tracker extends Algorithm
Base abstract class for the long-term tracker:
-
-
コンストラクタの要約
コンストラクタ Modifier Constructor Description protectedlegacy_Tracker​(long addr)
-
メソッドの要約
すべてのメソッド 静的メソッド インスタンスメソッド 具象メソッド Modifier and Type Method Description static legacy_Tracker__fromPtr__​(long addr)booleaninit​(Mat image, Rect2d boundingBox)Initialize the tracker with a known bounding box that surrounded the targetbooleanupdate​(Mat image, Rect2d boundingBox)Update the tracker, find the new most likely bounding box for the target-
クラス org.opencv.core.Algorithm から継承されたメソッド
clear, empty, getDefaultName, getNativeObjAddr, save
-
-
-
-
メソッドの詳細
-
__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 はトラッカーが現在のフレームでターゲットを特定できないことを意味する。なお、後者は必ずしもトラッカーが失敗したことを意味するわけではなく、ターゲットが本当にフレームから消失している(たとえば視界の外にある)場合もある。
-
-