techycs18 / age-detection-python-opencv

This is a Real-time age detection project. The project is built with Python and OpenCV
3 stars 4 forks source link

Script cannot find file #1

Open syproduction opened 6 months ago

syproduction commented 6 months ago
python real_time_age_detection.py --face face_detector --age age_detector
Traceback (most recent call last):
  File "/Users/user/dev/age-detection-python-opencv/real_time_age_detection.py", line 78, in <module>
    faceNet = cv2.dnn.readNet(prototxtpath, weightsPath)
cv2.error: OpenCV(4.8.0) /Users/xperience/GHA-OpenCV-Python/_work/opencv-python/opencv-python/opencv/modules/dnn/src/caffe/caffe_io.cpp:1126: error: (-2:Unspecified error) FAILED: fs.is_open(). Can't open "face_detector/deploy.prototxt" in function 'ReadProtoFromTextFile'

I guess there is no face_detector folder at all.

om-baji commented 3 months ago

Any updates on this issue? i am facing the same