What's problem? I am beginner

my code:

import cv2
cascade_path = 'cascades\\haarcascade_eye.xml'
faceCascade = cv2.CascadeClassifier(cascade_path)

I get:
[ERROR:0@0.034] global persistence.cpp:531 cv::FileStorage::Impl::open Can't open file: 'cascades\haarcascade_eye.xml' in read mode

what’s problem? I have placed the haarcascade_eye.xml in right folder

Your problem is using single backslashes in the file path… Nothing to do with OpenCV.

that’s not it (post lacked formatting).

I’m betting it’s the wrong CWD.

newbies always have these issues. they are not specific to OpenCV, but to newbies. there’s no point in us guessing.