opencv runtime_error ai_generated true

cv::TrackerCSRT: initialization failed

ID: opencv/tracker-init-error

Also available as: JSON · Markdown
80%Fix Rate
84%Confidence
3Evidence
2023-01-01First Seen

Version Compatibility

VersionStatusIntroducedDeprecatedNotes
4 active

Root Cause

Object tracker initialization failed.

generic

Workarounds

  1. 90% success Verify bounding box is within image bounds and non-zero size
  2. 85% success Use appropriate tracker: CSRT for accuracy, KCF for speed

Dead Ends

Common approaches that don't work:

  1. Use detection every frame instead 68% fail

    Much slower than tracking

  2. Initialize with full image as bbox 82% fail

    Tracks nothing useful