Error in Cascade Classifier

<class ‘cv2.CascadeClassifier’> returned a result with an error set
I am getting this error while writing the code for the question.
Could you please explain the possible reason for this?

Hey @taniya.r,downgrade the opencv version using
pip install opencv-python==3.4.2.16 or any other version that is 3.4.2.* if .18 is not available.

Hope this resolved your doubt.
Plz mark the doubt as resolved in my doubts section. :blush: