{
  "id": "opencv/tracker-goturn-initialization-failed",
  "signature": "cv::error: (-215:Assertion failed) !goturnModel.empty() in function 'init'",
  "signature_zh": "cv::error: (-215:断言失败) !goturnModel.empty()，函数'init'",
  "regex": "cv::error: \\(-215:Assertion failed\\) !goturnModel\\.empty\\(\\) in function 'init'",
  "domain": "opencv",
  "category": "runtime_error",
  "subcategory": null,
  "root_cause": "GOTURN tracker requires a pre-trained model file (prototxt and caffemodel) that is either missing or not loaded correctly.",
  "root_cause_type": "generic",
  "root_cause_zh": "GOTURN跟踪器需要预训练模型文件（prototxt和caffemodel），这些文件缺失或未正确加载。",
  "versions": [
    {
      "version": "4.5.3",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "4.6.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "4.7.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Reinstalling OpenCV without downloading GOTURN model",
      "why_fails": "GOTURN model is not bundled with OpenCV; must be downloaded separately from opencv_extra or official repository.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "Setting cv2.TrackerGOTURN_create() with no arguments",
      "why_fails": "The function does not accept model paths; model must be placed in a specific location or set via environment variable.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Download GOTURN model files (goturn.prototxt and goturn.caffemodel) from https://github.com/opencv/opencv_extra/tree/master/testdata/tracking and place them in the current working directory or set OPENCV_GOTURN_MODEL_PATH environment variable.",
      "success_rate": 0.9,
      "how": "Download GOTURN model files (goturn.prototxt and goturn.caffemodel) from https://github.com/opencv/opencv_extra/tree/master/testdata/tracking and place them in the current working directory or set OPENCV_GOTURN_MODEL_PATH environment variable.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use a different tracker (e.g., CSRT or KCF) if GOTURN model download is not feasible.",
      "success_rate": 0.95,
      "how": "Use a different tracker (e.g., CSRT or KCF) if GOTURN model download is not feasible.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "从https://github.com/opencv/opencv_extra/tree/master/testdata/tracking下载GOTURN模型文件（goturn.prototxt和goturn.caffemodel），放在当前工作目录或设置OPENCV_GOTURN_MODEL_PATH环境变量。",
    "如果无法下载GOTURN模型，使用其他跟踪器（如CSRT或KCF）。"
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://docs.opencv.org/4.x/d2/d0a/tutorial_introduction_to_tracker.html",
  "official_doc_section": null,
  "error_code": "-215",
  "verification_tier": "ai_generated",
  "confidence": 0.88,
  "fix_success_rate": 0.82,
  "resolvable": "true",
  "first_seen": "2023-09-20",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}