> ## Content Index
> Fetch the complete content index at: https://yinguobing.com/blog/llms.txt
> Use this file to discover other available public pages before exploring further.

# OpenCV报错，提示Camera dropped frame
- URL: https://yinguobing.com/blog/opencv-crush-camera-dropped-frame/
- Published: 2015-11-29T16:50:13.000Z
- Updated: 2022-05-29T07:39:05.000Z
- Description: OpenCV报错，提示Camera dropped frame。
- Author: 尹国冰
- Tags: OpenCV, 图像处理

之前发现OpenCV官方的面部检测Tutorial在运行时会提示“Camera dropped frame”，然后报错停止运行。折腾了一番后发现原因如下：

第一个问题：官方Tutorial中除了面部检测还加入了眼睛检测的功能，所加载的XML文件是`haarcascade_eye_tree_eyeglasses.xml`。不知是何原因这个配置文件在我的计算机上无法正常运行。将该文件替换为`haarcascade_eye`之后就OK了。

第二个问题：Camera dropped frame是因为计算机性能不足，所以将检测频率降低一点就好了。

我的环境：OpenCV 3.0 + Xcode @ Macbook Air with EL Captain(10.11.1).