i am doing a project to predict age and gender using tensorflow and opencv. and how to add path for xml file.
OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\objdetect\src\cascadedetect.cpp:1689: error: (-215:Assertion failed) !empty() in function 'cv::CascadeClassifier::detectMultiScale.
after running the code, webcam of PC will on but not capture any image. code is https://github.com/ashubansal005/Gend...
You don't even test that videcapture. read() succeeds... that's what ret is for. Likely your videocaoture is not even opened, but your code diesn't fail in that case, it just waits for a miracle.
please show your code here
If your xml in currently directory. But you have this on your folder *GenderReco_AgeEsti\pretrained_models*. But you don't have Drive E:. You actually have on Drive C: You should change this:
To:
i have tried but have the same error
Are you certainly on Drive C: instead of Drive E:? Is xml is in currently folder?