Human detection using camera module raspberry pi, test in pc

cv2.error: OpenCV(4.5.5) /io/opencv/modules/dnn/src/caffe/caffe_io.cpp:1126: error: (-2:Unspecified error) FAILED: fs.is_open(). Can’t open “MobileNetSSD_deploy.prototxt” in function ‘ReadProtoFromTextFile’

This error message was shown whilst I tried to run python code in my linux terminal. I’m trying to execute the code using pc cam.

assert os.path.exists("MobileNetSSD_deploy.prototxt")

and when that fails, you should learn about the “current working directory” and what that has to do with relative paths