OpenCV error (-212:Parsing error) Failed to open NetParameter file: ''cv::dnn::dnn4_v20220524::readNetFromDarknet'

File “e:/Research/Upwork/Projects/Social-Distancing-AI/main40.py”, line 383, in
net_yl = cv2.dnn.readNetFromDarknet(configPath, weightsPath)
cv2.error: OpenCV(4.6.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: ./models/E:/Research/Upwork/Projects/Social-Distancing-AI/models/yolov4-tiny-custom.cfg in function ‘cv::dnn::dnn4_v20220524::readNetFromDarknet’

So what? Oh, you want people to tell what is wrong in your code, which you don’t show.

There is clearly at least this path:
./models/E:/Research(…)

1 Like