MCPcopy Index your code

hub / github.com/roboflow/trackers / functions

Functions754 in github.com/roboflow/trackers

↓ 40 callersMethodcompute
Compute pairwise similarity between two sets of bounding boxes. Handles the empty-input edge case (returns a correctly-shaped zero ma
src/trackers/utils/iou.py:43
↓ 31 callersMethodupdate
(self, detections: Any, frame: np.ndarray | None = None)
tests/core/test_registration.py:332
↓ 24 callersMethoditems
(self)
src/trackers/core/base.py:38
↓ 20 callersFunction_instantiate
Instantiate any registered tracker by its short ID.
tests/core/test_trackers.py:40
↓ 17 callersFunction_parse_args
Parse argv through a fresh download subparser and return the namespace.
tests/scripts/test_download.py:22
↓ 17 callersFunction_setup_dirs
(tmp_path: Path)
tests/tune/test_tuner.py:86
↓ 15 callersFunction_detection
(xyxy: tuple[float, float, float, float])
tests/core/test_trackers.py:49
↓ 15 callersFunction_frame
Build a single-frame `_MOTFrameData` with xywh boxes.
tests/io/test_mot.py:15
↓ 15 callersMethodestimate
Estimate global affine transform H (2x3) from previous frame to current frame. Args: frame_bgr: Current frame in BGR for
src/trackers/utils/cmc.py:319
↓ 13 callersFunction_make_console
Return a Console that writes to a StringIO buffer.
tests/scripts/test_progress.py:63
↓ 13 callersMethodapply_batch
Apply a 2x3 affine camera-motion transform to a list of BoT-SORT tracklets. .. note:: This method is BoT-SORT-specific. It requir
src/trackers/utils/cmc.py:751
↓ 13 callersMethodapply_cmc
Apply a 2x3 affine camera-motion transform **in place**. Delegates to :meth:`CMC.apply_batch` with ``[self]`` as the tracklet list. S
src/trackers/core/botsort/tracklet.py:208
↓ 12 callersMethod_lookup_tracker
Look up registered tracker by name. Internal method used by CLI for tracker discovery and instantiation. Args: name: Tra
src/trackers/core/base.py:346
↓ 12 callersFunctionframes_from_source
Yield numbered BGR frames from video files, webcams, network streams, or image directories. Args: source: Video file path, RTSP/HTTP
src/trackers/io/video.py:21
↓ 12 callersMethodfrom_dict
Create `HOTAMetrics` from a dictionary. Args: data: Dictionary with metric values. Returns: `HOTAMetrics` in
src/trackers/eval/results.py:222
↓ 12 callersMethodto_dict
Convert to dictionary representation. Args: include_arrays: Whether to include per-alpha arrays. Defaults to `False`.
src/trackers/eval/results.py:261
↓ 11 callersFunction_bgr_frame
Random-noise BGR frame with dense texture suitable for feature tracking.
tests/core/test_botsort_cmc.py:25
↓ 11 callersFunction_detection
(xyxy: tuple[float, float, float, float], conf: float = 0.9)
tests/core/test_cbiou_tracker.py:29
↓ 11 callersFunction_make_tracklet
Build a minimal BoTSORTTracklet with controlled state.
tests/core/test_botsort_utils.py:60
↓ 11 callersFunction_xyxy_tracklet
Build a BoTSORTTracklet whose state is XYXYStateEstimator.
tests/core/test_botsort_cmc.py:44
↓ 11 callersFunctioncompute_hota_metrics
Compute HOTA metrics for multi-object tracking evaluation. HOTA (Higher Order Tracking Accuracy) evaluates both detection and association qua
src/trackers/eval/hota.py:27
↓ 11 callersMethodwrite
Write detections for a frame in MOT format.
src/trackers/io/mot.py:447
↓ 10 callersMethod_allocate_tracker_id
Return the next tracker ID (zero-indexed) and advance the internal counter.
src/trackers/core/base.py:422
↓ 10 callersFunction_classify_source
Classify a frame source and extract metadata. The function inspects *source* without consuming any frames so it can be called before the main
src/trackers/scripts/progress.py:46
↓ 10 callersFunction_make_benchmark_result
( mota: float = 0.75, hota: float | None = None, idf1: float | None = None, )
tests/tune/test_tuner.py:30
↓ 10 callersFunction_run_download
Execute the download subcommand.
src/trackers/scripts/download.py:65
↓ 10 callersFunctionget_alive_tracklets
Remove dead or immature lost tracklets and return alive ones. A tracklet is kept if it is within ``maximum_frames_without_update`` **and**
src/trackers/core/botsort/utils.py:14
↓ 10 callersMethodwarp_xyxy_corners
Transform four box corners via R/t and return the enclosing axis-aligned box. Takes per-axis coordinate arrays (not a packed (N, 4) array) an
src/trackers/utils/cmc.py:642
↓ 10 callersFunctionxyxy_to_xcycsr
Convert bounding boxes from corner to center-scale-ratio format. Args: xyxy: Bounding boxes `[x_min, y_min, x_max, y_max]` with shape `(4
src/trackers/utils/converters.py:74
↓ 9 callersFunction_fuse_score
Fuse IoU similarity matrix with detection confidence scores. Following the original ByteTrack implementation, the IoU similarity is multiplie
src/trackers/core/botsort/utils.py:45
↓ 9 callersMethodpredict
Predict next bounding box position and advance missed-frame clock. Propagates the Kalman filter and increments `time_since_update` and
src/trackers/core/sort/tracklet.py:38
↓ 9 callersMethodrun
Create an Optuna study, run trials, and return the best parameters. Returns: Dictionary mapping ``search_space`` parameter names
src/trackers/tune/tuner.py:284
↓ 9 callersMethodstate_to_bbox
Extract an `[x1, y1, x2, y2]` bbox from the current filter state. Returns: Bounding box `[x1, y1, x2, y2]`.
src/trackers/utils/state_representations.py:102
↓ 9 callersFunctionxcycsr_to_xyxy
Convert bounding boxes from center-scale-ratio to corner format. Args: xcycsr: Bounding boxes `[x_center, y_center, scale, aspect_ratio]`
src/trackers/utils/converters.py:124
↓ 8 callersMethod_build_line
Compose the single-line progress string.
src/trackers/scripts/progress.py:187
↓ 8 callersFunction_make_cmc
Instantiate CMC, skipping the test if the method is unavailable in OpenCV.
tests/core/test_botsort_cmc.py:35
↓ 8 callersFunction_prepare_mot_sequence
Prepare GT and tracker data for metric evaluation. Compute IoU similarity matrices between GT and tracker detections for each frame, and rema
src/trackers/io/mot.py:380
↓ 8 callersMethod_registered_trackers
List all registered tracker names. Internal method used by CLI for help text and argument validation. Returns: Alphabeti
src/trackers/core/base.py:361
↓ 8 callersMethod_reset_id_allocator
Restart this tracker instance's ID allocation from zero.
src/trackers/core/base.py:418
↓ 8 callersFunctiontune
Tune tracker hyperparameters using Optuna. Args: tracker: Tracker ID to tune (e.g. bytetrack, sort). gt_dir: Directory of ground-
src/trackers/scripts/tune.py:148
↓ 8 callersMethodupdate
Update the tracker with detections from the current frame. This is the main per-frame entry point. Args: detect
src/trackers/core/botsort/tracker.py:147
↓ 8 callersMethodupdate
(self, detections)
tests/tune/test_tuner.py:194
↓ 7 callersFunction_new_tracklet
Construct a concrete tracklet class with default constructor params.
tests/core/test_tracklets.py:51
↓ 7 callersMethodcomplete
Signal that the processing loop has ended. Must be called before leaving the `with` block so that `__exit__` can render the correct f
src/trackers/scripts/progress.py:132
↓ 7 callersFunctionevaluate_mot_sequences
Evaluate multiple multi-object tracking results against ground truth. Computes standard multi-object tracking metrics (CLEAR MOT, HOTA, Identity)
src/trackers/eval/evaluate.py:138
↓ 7 callersMethodreset
(self)
tests/core/test_registration.py:335
↓ 6 callersFunction_detection
(xyxy: tuple[float, float, float, float], conf: float = 0.9)
tests/core/test_botsort_tracker.py:31
↓ 6 callersMethodannotate
Draw motion-compensated trace paths on the scene. Updates internal trajectory storage with new detection positions (converted to worl
src/trackers/annotators/trace.py:109
↓ 6 callersFunctionbox_iou
Calculate the IoU (Intersection over Union) between two sets of boxes. Compute pairwise IoU between all boxes in boxes1 and boxes2, returning a
src/trackers/eval/box.py:38
↓ 6 callersFunctioncompute_identity_metrics
Compute Identity metrics for multi-object tracking evaluation. Identity metrics measure global ID consistency by finding the optimal one-to-o
src/trackers/eval/identity.py:21
↓ 6 callersFunctionevaluate_mot_sequence
Evaluate a single multi-object tracking result against ground truth. Computes standard multi-object tracking metrics (CLEAR MOT, HOTA, Identity) f
src/trackers/eval/evaluate.py:30
↓ 6 callersFunctionisValidDecimal01
(value, min = 0)
docs/javascripts/command_builder.js:57
↓ 6 callersMethodpredict
Predict next bounding box position. Returns: Predicted bounding box `[x1, y1, x2, y2]`.
src/trackers/core/ocsort/tracklet.py:234
↓ 6 callersMethodrefresh
()
docs/javascripts/cli_builder_framework.js:161
↓ 6 callersMethodupdate
Update the C-BIoU tracker with detections from the current frame. Runs the association pipeline with a distinct BIoU instance per step
src/trackers/core/cbiou/tracker.py:153
↓ 6 callersMethodupdate
Update tracks state with new detections and return tracked objects. Performs Kalman filter prediction, two-stage association (high then low
src/trackers/core/bytetrack/tracker.py:115
↓ 6 callersFunctionxyxy_to_xywh
Convert bounding boxes from corner to center-width-height format. Args: xyxy: Bounding boxes `[x_min, y_min, x_max, y_max]` with shape `(
src/trackers/utils/converters.py:10
↓ 5 callersFunction_build_result
Build result dictionary from per-alpha arrays. Computes final metrics (DetA, DetRe, DetPr, HOTA, OWTA) and averages over alpha thresholds for
src/trackers/eval/hota.py:244
↓ 5 callersFunction_extract_params_from_init
Introspect __init__ signature and docstring to build parameter metadata. Combines type hints, default values, and docstring descriptions into a
src/trackers/core/base.py:185
↓ 5 callersFunction_format_value
Format a metric value for display. Float metrics are displayed as percentages with 3 decimal places (e.g., 99.353 for MOTA=0.99353), matching
src/trackers/eval/results.py:596
↓ 5 callersMethod_get_associated_indices
Associate detections to tracks based on IOU Args: iou_matrix: IOU cost matrix. detection_boxes: Detected bou
src/trackers/core/sort/tracker.py:115
↓ 5 callersFunction_get_metrics_dict
Get metric value from a SequenceResult. Args: result: The sequence result. col: Column name. Returns: The metric val
src/trackers/eval/results.py:565
↓ 5 callersFunctionadd_tune_subparser
Add the tune subcommand to the argument parser.
src/trackers/scripts/tune.py:16
↓ 5 callersFunctionaggregate_hota_metrics
Aggregate HOTA metrics across multiple sequences. Uses weighted averaging by HOTA_TP for association metrics, then recomputes detection and H
src/trackers/eval/hota.py:306
↓ 5 callersFunctiondefault_confidences
Return per-detection confidence, defaulting to all-ones when absent. When ``detections.confidence`` is ``None``, every detection is treated as
src/trackers/utils/detections.py:13
↓ 5 callersFunctionload_mot_file
Load a MOT Challenge format file. Parse a text file in the standard MOT format where each line represents one detection with comma-separated
src/trackers/io/mot.py:143
↓ 5 callersMethodnormalize_for_fusion
(self, similarity_matrix: np.ndarray)
src/trackers/utils/iou.py:279
↓ 5 callersFunctionresolve_mot_frame_path
Return the first existing image path for ``frame_idx`` under ``frame_dir``. Args: frame_dir: Directory containing frame images (typically
src/trackers/io/frames.py:31
↓ 5 callersMethodset_kf_covariances
Set Kalman filter parameters. Args: R: Measurement noise covariance matrix. Q: Process noise covariance matrix.
src/trackers/utils/state_representations.py:150
↓ 4 callersFunction_download_test_data
Download and cache MOT test data for a given dataset. Args: dataset_key: Key from DATASETS dict (e.g., "sportsmot_flat"). Returns:
tests/conftest.py:65
↓ 4 callersMethod_get_associated_indices
Associate detections to tracks based on Similarity (IoU) using the Jonker-Volgenant algorithm approach with no initialization instead
src/trackers/core/botsort/tracker.py:329
↓ 4 callersMethod_get_current_transformation
Get the current accumulated transformation. Returns: The accumulated transformation, or IdentityTransformation if no
src/trackers/motion/estimator.py:206
↓ 4 callersFunction_load_mot_sequence_frame
Load one MOT ``img1`` frame from ``{images_dir}/{seq_name}/img1/``.
src/trackers/tune/tuner.py:29
↓ 4 callersFunction_make_parser
Return a top-level parser with a subparsers group.
tests/scripts/test_tune.py:21
↓ 4 callersFunction_mot_frame_to_detections
(frame_data: _MOTFrameData)
src/trackers/io/mot.py:89
↓ 4 callersFunction_resolve_class_filter
Resolve a comma-separated `--classes` value to a list of integer IDs. Each token is checked independently: if it parses as an `int` it is used
src/trackers/scripts/track.py:513
↓ 4 callersFunction_resolve_track_id_filter
Resolve a comma-separated `--track-ids` value to a list of integer IDs. Args: track_ids_arg: Raw `--track-ids` string (e.g. `"1,3,5"`). `
src/trackers/scripts/track.py:487
↓ 4 callersFunction_run_tracker_on_detections
Run a tracker on a MOT detection file and write predictions. Iterates every frame from 1 to the last frame in the detection file, feeding ``s
src/trackers/tune/tuner.py:391
↓ 4 callersFunction_run_until_confirmed
Advance tracker until at least one confirmed track exists.
tests/core/test_trackers.py:328
↓ 4 callersFunction_verify_clear_metrics
Verify CLEAR metrics match expected values. Args: computed: CLEARMetrics object from our computation. expected: Expected metrics
tests/eval/test_integration.py:183
↓ 4 callersFunction_verify_hota_metrics
Verify HOTA metrics match expected values. Args: computed: HOTAMetrics object from our computation. expected: Expected metrics di
tests/eval/test_integration.py:218
↓ 4 callersFunction_verify_identity_metrics
Verify Identity metrics match expected values. Args: computed: IdentityMetrics object from our computation. expected: Expected me
tests/eval/test_integration.py:241
↓ 4 callersMethod_warn_if_frame_unused
Emit a UserWarning when a frame is passed to a tracker that ignores it. Subclasses that do not perform camera motion compensation should call
src/trackers/core/base.py:372
↓ 4 callersFunctionaggregate_identity_metrics
Aggregate Identity metrics across multiple sequences. Sums IDTP, IDFN, IDFP across sequences, then recomputes IDF1, IDR, IDP from the totals.
src/trackers/eval/identity.py:194
↓ 4 callersMethodclearNumericHold
()
docs/javascripts/cli_builder_framework.js:452
↓ 4 callersMethodget_state_bbox
Get current bounding box estimate from the filter/state.
src/trackers/core/sort/tracklet.py:54
↓ 4 callersFunctionimage_directory_factory
Factory for creating image directories with specified number of frames.
tests/io/test_video.py:69
↓ 4 callersFunctionisValidPositiveInt
(value)
docs/javascripts/command_builder.js:63
↓ 4 callersFunctionload_mot_frame_image
Load one BGR frame from a MOT ``img1`` directory. Raises: FileNotFoundError: When no file matches any supported stem/extension. O
src/trackers/io/frames.py:49
↓ 4 callersFunctionmot_frame_stems
Return filename stems to probe for ``frame_idx`` (most common layouts first).
src/trackers/io/frames.py:22
↓ 4 callersMethodupdate
Update tracklet state with a new bounding-box observation. Handles ORU: if the track was lost and is now observed again, generates a
src/trackers/core/ocsort/tracklet.py:202
↓ 4 callersMethodupdate
Record one processed frame and refresh the display.
src/trackers/scripts/progress.py:125
↓ 4 callersFunctionxywh_to_xyxy
Convert bounding boxes from center-width-height to corner format. Args: xywh: Bounding boxes `[x_center, y_center, width, height]` with s
src/trackers/utils/converters.py:37
↓ 3 callersMethod__enter__
(self)
src/trackers/io/mot.py:461
↓ 3 callersMethod__exit__
(self, *_: object)
src/trackers/io/mot.py:467
↓ 3 callersMethod_biou_matrix
( self, tracklets: list[BoTSORTTracklet], boxes: np.ndarray, iou: BIoU, )
src/trackers/core/cbiou/tracker.py:141
↓ 3 callersFunction_compute_iou_and_enclosing
Shared geometry used by GIoU, DIoU, CIoU and other variants. Args: boxes_1: ``(N, 4)`` array in ``[x1, y1, x2, y2]`` format. boxe
src/trackers/utils/iou.py:196
↓ 3 callersFunction_create_optuna_study
Create an Optuna study, optionally with a seeded TPE sampler.
src/trackers/tune/tuner.py:307
↓ 3 callersFunction_default_trial_params
Build the parameter dict for the enqueued baseline trial. Uses each ``search_space`` key's ``__init__`` default. Args: tracker_class
src/trackers/tune/tuner.py:335
↓ 3 callersFunction_extract_metric
Extract a scalar metric value from ``BenchmarkResult.aggregate``. Searches CLEAR, HOTA, and Identity metrics in order. Args: result:
src/trackers/tune/tuner.py:428
next →1–100 of 754, ranked by callers