MCPcopy Create free account
hub / github.com/PABannier/sam3.cpp / sam3_create_visual_tracker

Function sam3_create_visual_tracker

sam3.cpp:12116–12130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12114*****************************************************************************/
12115
12116sam3_tracker_ptr sam3_create_visual_tracker(
12117 const sam3_model& model,
12118 const sam3_visual_track_params& params) {
12119 sam3_video_params vp;
12120 vp.text_prompt = ""; // no PCS detection
12121 vp.assoc_iou_threshold = params.assoc_iou_threshold;
12122 vp.max_keep_alive = params.max_keep_alive;
12123 vp.recondition_every = params.recondition_every;
12124 vp.fill_hole_area = params.fill_hole_area;
12125 sam3_tracker_ptr tracker(new sam3_tracker());
12126 tracker->params = vp;
12127 fprintf(stderr, "%s: visual-only tracker created (max_keep_alive=%d)\n",
12128 __func__, params.max_keep_alive);
12129 return tracker;
12130}
12131
12132sam3_result sam3_propagate_frame(
12133 sam3_tracker& tracker, sam3_state& state,

Callers 5

mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
create_trackerFunction · 0.85
run_single_benchmarkFunction · 0.85

Calls

no outgoing calls

Tested by 3

mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68