我正在尝试运行人脸检测应用程序,但出现以下错误:
Unexpected Standard exception from MEX file.
What() is:..\..\..\..\opencv\modules\core\src\persistence.cpp:2697: error: (-27)
NULL or empty buffer in function cvOpenFileStorage
最佳答案
如果您使用的是 haarcascade_frontalface_default.xml,请检查 xml 文件内容。
前三行应该是:
<?xml version="1.0"?>
<!--
Stump-based 24x24 discrete(?) adaboost frontal face detector.
我无意中下载了链接到 haarcascade_frontalface_default.xml 文件的 html 而不是 xml 本身,并得到了与您相同的错误。
关于c++ - opencv\modules\core\src\persistence.cpp :2697: error: (-27) NULL or empty buffer in function cvOpenFileStorage,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31696892/