将下列代码修改成自己的路径eye_xml=cv.CascadeClassifier('C:/ProgramFiles(x86)/Intel/openvino_2021.4.752/opencv/etc/haarcascades/haarcascade_eye_tree_eyeglasses.xml')
时间: 2023-11-27 17:03:06 浏览: 67
你需要把这段代码中的路径改成你自己的路径:
```python
eye_xml = cv.CascadeClassifier('C:/Program Files (x86)/Intel/openvino_2021.4.752/opencv/etc/haarcascades/haarcascade_eye_tree_eyeglasses.xml')
```
修改后的代码如下所示:
```python
eye_xml = cv.CascadeClassifier('C:/ProgramFiles(x86)/Intel/openvino_2021.4.752/opencv/etc/haarcascades/haarcascade_eye_tree_eyeglasses.xml')
```
阅读全文