error: OpenCV(4.11.0) D:\a\opencv-python\opencv-python\opencv\modules\dnn\src\darknet\darknet_importer.cpp:210: error: (-212:Parsing error) Failed to open NetParameter file: C:/Users/endan/OneDrive/Masaüstü/YOLO/pretrained_model/yolov3.cfg in function 'cv::dnn::dnn4_v20241223::readNetFromDarknet'
When i run my code i got this error. So i reinstall opencv and yolo cfg and weight. but nothing changed pls help
This is more of an issue relating to OpenCV and not Ultralytics YOLO. If you’re attempting to use an Ultralytics YOLO model with OpenCV, I don’t believe it’s supported.
Additionally, the OpenCV DNN module for Windows requires an advanced installation process, and I would guess that could be an issue.
If you want to use Ultralytics YOLO, you need to either install the PyPi packages
pip install ultralytics
or you should clone the Ultralytics repository. If you need support with OpenCV, then you should seek out their community or open an issue on their repository (although I recommend doing some additional research on your error).