Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/roboflow/trackers
/ functions
Functions
754 in github.com/roboflow/trackers
⨍
Functions
754
◇
Types & classes
127
↳
Endpoints
4
↓ 3 callers
Function
_format_time
Format `seconds` as `H:MM:SS` or `M:SS`.
src/trackers/scripts/progress.py:92
↓ 3 callers
Method
_get_associated_indices
Associate detections to tracks based on IOU. Args: iou_matrix: IOU cost matrix. direction_consistency_matrix
src/trackers/core/ocsort/tracker.py:115
↓ 3 callers
Method
_get_associated_indices
Associate detections to tracks based on Similarity (IoU) using the Jonker-Volgenant algorithm approach with no initialization instead
src/trackers/core/bytetrack/tracker.py:227
↓ 3 callers
Method
_get_iou_matrix
(self, tracklets: list[BoTSORTTracklet], detections: np.ndarray)
src/trackers/core/botsort/tracker.py:322
↓ 3 callers
Function
_is_near_identity
(H: np.ndarray, atol: float = 1e-3)
tests/core/test_botsort_cmc.py:31
↓ 3 callers
Function
_make_frame
(h: int = 480, w: int = 640, seed: int = 42)
tests/core/test_botsort_tracker.py:38
↓ 3 callers
Function
_normalize_list
Wrap a scalar value in a list, pass lists through, and return None as-is. Enum members are converted to their ``.value`` so callers always re
src/trackers/utils/general.py:12
↓ 3 callers
Function
_parse_docstring_arguments
Extract parameter-to-description mapping from Google-style Args section. Supports multiple formats including `param: desc`, `param (type): desc`,
src/trackers/core/base.py:69
↓ 3 callers
Function
_resolve_assets
Return validated asset entries for a single split.
src/trackers/datasets/download.py:57
↓ 3 callers
Function
_resolve_dataset
Validate and convert a dataset identifier to a ``Dataset`` enum.
src/trackers/datasets/download.py:25
↓ 3 callers
Function
_resolve_splits
Return validated split names, defaulting to all available splits.
src/trackers/datasets/download.py:41
↓ 3 callers
Function
bindCopyButtons
(root)
docs/javascripts/pycon_copy.js:59
↓ 3 callers
Function
create_frame
Create a test frame with deterministic pixel values for verification. Each frame has all pixels set to the same value derived from the index.
tests/io/test_video.py:26
↓ 3 callers
Function
expected_frame_value
Return the expected pixel value for a frame created with create_frame(index).
tests/io/test_video.py:45
↓ 3 callers
Method
get_k_previous_obs
Get observation from delta_t steps ago. Looks back up to delta_t timesteps in the observation history. Falls back to the most recent
src/trackers/core/ocsort/tracklet.py:166
↓ 3 callers
Method
get_state_bbox
(self)
src/trackers/core/base.py:289
↓ 3 callers
Method
load
Load from a JSON file. Args: path: Source file path. Returns: `BenchmarkResult` instance. Raises:
src/trackers/eval/results.py:523
↓ 3 callers
Function
shouldStripPrompts
(codeBlock, rawText)
docs/javascripts/pycon_copy.js:112
↓ 3 callers
Method
stepNumericField
(key, action)
docs/javascripts/cli_builder_framework.js:399
↓ 3 callers
Function
stripPythonPrompts
* Strips Python REPL prompts (>>> and ...) from code text. * Also removes output lines (lines that don't start with >>> or ...). * * NOTE: This is
docs/javascripts/pycon_copy.js:151
↓ 3 callers
Method
table
Format as a table string. Args: columns: Metric columns to include. If `None`, includes all available metrics.
src/trackers/eval/results.py:425
↓ 3 callers
Function
toggleTripleQuoteState
(sourceLine)
docs/javascripts/pycon_copy.js:156
↓ 3 callers
Method
update
Process new detections and assign track IDs. Matches incoming detections to existing tracks, creates new tracks for unmatched detecti
src/trackers/core/base.py:389
↓ 3 callers
Function
weighted_avg
(field: str)
src/trackers/eval/hota.py:338
↓ 2 callers
Function
_calculate_box_ious
Calculate IoU or IoA between two sets of boxes. Args: boxes1: First set of boxes with shape `(N, 4)`. boxes2: Second set of boxes
src/trackers/eval/box.py:128
↓ 2 callers
Method
_clamp_state_bbox
Clamp geometric components based on active state representation.
src/trackers/core/botsort/tracklet.py:166
↓ 2 callers
Function
_compute_md5
Compute MD5 hex digest of a file.
src/trackers/utils/downloader.py:26
↓ 2 callers
Function
_detections
(xyxy: list[tuple[float, float, float, float]])
tests/core/test_trackers.py:57
↓ 2 callers
Method
_find_features
Detect good features to track in the grayscale image. Args: grayscale: Grayscale image. Returns: Array of fe
src/trackers/motion/estimator.py:158
↓ 2 callers
Function
_format_labels
Generate label strings for each detection. Args: detections: Detections to generate labels for. class_names: List of class names
src/trackers/scripts/track.py:698
↓ 2 callers
Function
_get_available_columns
Get column names for the metrics that were computed. Returns all summary fields for each metric type that is available. Args: has_cl
src/trackers/eval/results.py:542
↓ 2 callers
Function
_init_annotators
Initialize supervision annotators based on display options. Args: show_boxes: Create BoxAnnotator. show_masks: Create MaskAnnotat
src/trackers/scripts/track.py:648
↓ 2 callers
Function
_normalize_type
Unwrap Optional/Union/generics to base type for CLI argument parsing. Converts complex annotations like Optional[int], list[str], or int | None
src/trackers/core/base.py:142
↓ 2 callers
Function
_print_available
Print available datasets, splits, and asset types.
src/trackers/scripts/download.py:95
↓ 2 callers
Method
_prune_expired_tracklets
Remove tracklets that have been lost for too long. Returns: List of tracklets whose time_since_update has not exceeded
src/trackers/core/ocsort/tracker.py:283
↓ 2 callers
Method
_refresh_noise_from_state
Recompute Q and R from the current bbox size.
src/trackers/core/botsort/tracklet.py:139
↓ 2 callers
Function
_remap_ids
Remap original track IDs to 0-indexed contiguous values.
src/trackers/io/mot.py:369
↓ 2 callers
Function
_resolve_mot17_dirs
Resolve gt_dir and tracker_dir for MOT17 layout test data. The MOT17 test data has structure: data_path/gt/{Benchmark}-{split}/{seq}/gt/g
tests/eval/test_integration.py:156
↓ 2 callers
Function
_resolve_video_output_path
Resolve video output path, handling directories. If path is an existing directory, generates 'output.mp4' inside it. If path has no extension
src/trackers/io/paths.py:14
↓ 2 callers
Function
_run_until_n_confirmed
Advance tracker until at least n confirmed tracks exist; return their IDs.
tests/core/test_trackers.py:341
↓ 2 callers
Method
_set_scale_aware_noise
(self, w: float, h: float, *, initial: bool = False)
src/trackers/core/botsort/tracklet.py:62
↓ 2 callers
Method
_spawn_new_tracklets
Create new tracklets from bounding boxes. Args: boxes: Bounding boxes `(N, 4)` in xyxy format.
src/trackers/core/ocsort/tracker.py:152
↓ 2 callers
Method
_spawn_new_tracks
Create new tracklets from unmatched high-confidence detections. On the very first frame, new tracklets are immediately activated with a
src/trackers/core/botsort/tracker.py:369
↓ 2 callers
Method
_transform_points
Apply homography transformation to points. Args: points: Array of shape `(N, 2)` containing `(x, y)` coordinates. mat
src/trackers/motion/transformation.py:108
↓ 2 callers
Function
_valid_ground_truth_mask
Boolean mask of ground-truth rows that are scored as ground truth. Mirrors TrackEval's ``gt_to_keep_mask``: a row counts as ground truth only
src/trackers/io/mot.py:55
↓ 2 callers
Function
_validate_output_path
Validate output path and create parent directories if needed. Args: path: Output file path to validate. overwrite: If True, allow
src/trackers/io/paths.py:27
↓ 2 callers
Function
_xywh_to_xyxy
Convert boxes from xywh format to xyxy format. Args: boxes: Array of shape `(N, 4)` in xywh format `(x, y, width, height)`. Returns:
src/trackers/eval/box.py:23
↓ 2 callers
Function
add_download_subparser
Add the download subcommand to the argument parser.
src/trackers/scripts/download.py:20
↓ 2 callers
Function
box_ioa
Calculate the IoA (Intersection over Area) between two sets of boxes. IoA is calculated as intersection divided by the area of boxes1. This is
src/trackers/eval/box.py:84
↓ 2 callers
Function
compute_clear_metrics
Compute CLEAR metrics for multi-object tracking evaluation. Calculate standard CLEAR metrics including MOTA, MOTP, ID switches, and track qual
src/trackers/eval/clear.py:23
↓ 2 callers
Function
findCodeBlockForCopyButton
(copyButton)
docs/javascripts/pycon_copy.js:123
↓ 2 callers
Method
get_state_bbox
Return the current bounding-box estimate in xyxy format.
src/trackers/core/botsort/tracklet.py:204
↓ 2 callers
Function
image_directory_factory
Create a directory with *n* PNG images.
tests/scripts/test_progress.py:49
↓ 2 callers
Function
isValidClasses
(value)
docs/javascripts/command_builder.js:69
↓ 2 callers
Method
json
Serialize to JSON string. Args: indent: Indentation level for formatting. Defaults to `2`. Returns: JSON str
src/trackers/eval/results.py:414
↓ 2 callers
Method
predict
Predict the next bounding-box position. Increments ``time_since_update`` to track how many frames have elapsed since the last matched
src/trackers/core/botsort/tracklet.py:190
↓ 2 callers
Function
primeClipboardButton
(copyButton, strippedText)
docs/javascripts/pycon_copy.js:106
↓ 2 callers
Method
processValueInput
(input, options)
docs/javascripts/cli_builder_framework.js:311
↓ 2 callers
Method
reset
Reset internal state. After calling reset: - The next `estimate()` call returns identity and initializes prev-frame state.
src/trackers/utils/cmc.py:298
↓ 2 callers
Method
reset
Reset tracker state by clearing all tracks and resetting ID counter. Call this method when switching to a new video or scene.
src/trackers/core/bytetrack/tracker.py:288
↓ 2 callers
Method
resolve_tracker_id
Resolve the tracker ID for the current tracklet state. Assigns a new unique ID if the tracklet is mature but hasn't been assigned one
src/trackers/core/ocsort/tracklet.py:285
↓ 2 callers
Method
toggleCollapsibleForKey
(key, visible)
docs/javascripts/cli_builder_framework.js:356
↓ 2 callers
Method
update
Update tracklet state with a new bounding-box observation. Called only when the track is matched to a detection. Missed frames are ha
src/trackers/utils/base_tracklet.py:29
↓ 2 callers
Method
updateCheckboxVisual
(checkbox, checked)
docs/javascripts/cli_builder_framework.js:348
↓ 2 callers
Method
updateNumericModifiedState
(input)
docs/javascripts/cli_builder_framework.js:394
↓ 2 callers
Function
video_factory
Factory for creating test videos with specified number of frames.
tests/io/test_video.py:51
↓ 1 callers
Function
_add_tracker_params
Add tracker-specific parameters from registry to argument group.
src/trackers/scripts/track.py:238
↓ 1 callers
Function
_aggregate_metrics
Aggregate metrics across sequences.
src/trackers/eval/evaluate.py:388
↓ 1 callers
Function
_best_device
Return the best available PyTorch compute device, preferring acceleration. Returns: The selected device (``cuda``, ``mps``, or ``cpu``).
src/trackers/utils/device.py:15
↓ 1 callers
Function
_build_breadcrumbs
Build BreadcrumbList JSON-LD from navigation hierarchy. Returns None if the page is at the root level (no meaningful breadcrumb) or if the pa
docs/hooks/schema_inject.py:121
↓ 1 callers
Function
_build_direction_consistency_matrix_batch
Build direction consistency cost matrix for OC-SORT's OCM mechanism. Measures how well each potential (tracklet, detection) association aligns
src/trackers/core/ocsort/utils.py:48
↓ 1 callers
Function
_build_id_mappings
Collect valid IDs across all frames and build original-to-0-indexed maps. Returns: Tuple of (ground_truth_id_map, tracker_id_map) where e
src/trackers/io/mot.py:257
↓ 1 callers
Method
_build_tracker
Instantiate the tracker from sampled and fixed parameters.
src/trackers/tune/tuner.py:225
↓ 1 callers
Method
_clamp_xcycsr_state
Ensure XCYCSR state keeps positive scale and aspect ratio.
src/trackers/core/botsort/tracklet.py:161
↓ 1 callers
Method
_clamp_xcycwh_state
Ensure XCYCWH state keeps positive width and height.
src/trackers/core/botsort/tracklet.py:155
↓ 1 callers
Method
_clamp_xyxy_state
Ensure XYXY state keeps valid box corners.
src/trackers/core/botsort/tracklet.py:147
↓ 1 callers
Method
_compute
Subclass hook — compute similarity for non-empty inputs. Args: boxes_1: ``(N, 4)`` array of boxes in ``[x1, y1, x2, y2]`` format.
src/trackers/utils/iou.py:71
↓ 1 callers
Method
_compute_direction_consistency_matrix
Compute the direction consistency matrix for association, including confidence scaling.
src/trackers/core/ocsort/tracker.py:294
↓ 1 callers
Method
_compute_velocity
Compute normalized direction vector between two bounding box centers. Args: bbox1: First bounding box `[x1, y1, x2, y2]`.
src/trackers/core/ocsort/tracklet.py:186
↓ 1 callers
Method
_configure_initial_noise
Set initial P, Q, R based on the first detection's size.
src/trackers/core/botsort/tracklet.py:56
↓ 1 callers
Method
_configure_noise
Configure Kalman filter noise matrices (OC-SORT paper behaviour) and SORT behaviour for XYXY coordinates.
src/trackers/core/sort/tracklet.py:58
↓ 1 callers
Method
_configure_noise
Configure Kalman filter noise matrices (OC-SORT paper tuning).
src/trackers/core/ocsort/tracklet.py:266
↓ 1 callers
Method
_configure_noise
Configure Kalman filter noise (original ByteTrack tuning).
src/trackers/core/bytetrack/tracklet.py:62
↓ 1 callers
Method
_create_filter
Create and configure a Kalman filter for *bbox*. Args: bbox: First detection `[x1, y1, x2, y2]`. Returns: A
src/trackers/utils/state_representations.py:80
↓ 1 callers
Method
_create_writer
(self, frame: np.ndarray)
src/trackers/io/video.py:111
↓ 1 callers
Function
_detect_format
Auto-detect directory format. Args: gt_dir: Ground truth directory (direct parent of sequences). Returns: "flat" if .txt fil
src/trackers/eval/evaluate.py:297
↓ 1 callers
Function
_discover_sequences
Return the list of sequence names to tune over. Reads sequence names from ``seqmap`` when provided, otherwise discovers them by globbing ``*.
src/trackers/tune/tuner.py:367
↓ 1 callers
Function
_discover_sequences
Discover sequence names from directory structure. Args: gt_dir: Ground truth directory (direct parent of sequences). data_format:
src/trackers/eval/evaluate.py:321
↓ 1 callers
Function
_distractor_ground_truth_mask
Boolean mask of ground-truth rows belonging to a distractor class. Mirrors TrackEval's ``distractor_classes``. Tracker detections that best-m
src/trackers/io/mot.py:72
↓ 1 callers
Function
_download_file
Download a file with a progress bar and optional MD5 verification. If `destination` already exists and `md5` is provided, the existing file's
src/trackers/utils/downloader.py:35
↓ 1 callers
Method
_estimate_ecc
ECC-based affine motion estimation. This method estimates a global 2D Euclidean transform between the previous frame and the
src/trackers/utils/cmc.py:569
↓ 1 callers
Method
_estimate_feature_affine
Feature affine estimation. ORB-based or SIFT-based (different initializations of self.detector, self.extractor and self.matcher for
src/trackers/utils/cmc.py:356
↓ 1 callers
Method
_estimate_homography
Estimate homography transformation between point sets. Args: previous_points: Points from previous frame. current_poi
src/trackers/motion/estimator.py:176
↓ 1 callers
Method
_estimate_sparse_optflow
Sparse optical-flow-based affine estimation. Steps: 1) grayscale (+ optional downscale) 2) detect corners us
src/trackers/utils/cmc.py:478
↓ 1 callers
Function
_extract_ground_truth_frame
Extract and split ground truth data for a single frame. Returns: Tuple of (valid_boxes, valid_ids, all_boxes, distractor_mask). F
src/trackers/io/mot.py:288
↓ 1 callers
Function
_extract_tracker_frame
Extract tracker detections for a single frame, keeping only confirmed tracks. Returns: Tuple of (boxes, ids) with unconfirmed tracks (id
src/trackers/io/mot.py:315
↓ 1 callers
Function
_extract_tracker_params
Extract tracker parameters from CLI args. Args: tracker_id: Registered tracker name. args: Parsed CLI arguments. Returns:
src/trackers/scripts/track.py:603
↓ 1 callers
Function
_extract_zip
Extract a ZIP archive into `output_dir`.
src/trackers/utils/downloader.py:90
↓ 1 callers
Function
_find_in_nav
Recursively search nav for the page, building the path of sections.
docs/hooks/schema_inject.py:150
↓ 1 callers
Function
_format_benchmark_table
Format benchmark metrics as a table. Args: sequences: Dictionary of sequence results. aggregate: Aggregate result. column
src/trackers/eval/results.py:650
← previous
next →
101–200 of 754, ranked by callers