🤖 AIによる機械翻訳(非公式) — これは OpenCV 5.0.0 公式リファレンス(英語)を AI (Claude) で自動翻訳したものです。訳に誤りを含む場合があります。正確な情報は 公式英語版(原文) を参照してください。
Package org.opencv.video
クラス Tracker
- java.lang.Object
-
- org.opencv.video.Tracker
-
- 既知の直接サブクラス:
TrackerCSRT,TrackerDaSiamRPN,TrackerKCF,TrackerMIL,TrackerNano,TrackerVit
public class Tracker extends java.lang.ObjectBase abstract class for the long-term tracker
-
-
フィールドの要約
フィールド Modifier and Type Field Description protected longnativeObj
-
コンストラクタの要約
コンストラクタ Modifier Constructor Description protectedTracker​(long addr)
-
メソッドの要約
すべてのメソッド 静的メソッド インスタンスメソッド 具象メソッド Modifier and Type Method Description static Tracker__fromPtr__​(long addr)longgetNativeObjAddr()floatgetTrackingScore()Return tracking scorevoidinit​(Mat image, Rect boundingBox)Initialize the tracker with a known bounding box that surrounded the targetbooleanupdate​(Mat image, Rect boundingBox)Update the tracker, find the new most likely bounding box for the target
-
-
-
メソッドの詳細
-
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- 戻り値:
- 自動生成
-
-