[英]How to fix “Unhandled exception thrown: read access violation. this->cc._Ptr was nullptr.” error [on hold]
I found a face detecting project and am trying to recreate it.我找到了一个人脸检测项目,并正在尝试重新创建它。 You can find it here: https://github.com/hrastnik/face_detect_n_track
你可以在这里找到它: https://github.com/hrastnik/face_detect_n_track
But when I try to run the code it comes up with this: https://imgur.com/a/tcO6LVT但是当我尝试运行代码时,它会出现: https://imgur.com/a/tcO6LVT
I ignored it and pressed continue then this showed up: https://imgur.com/a/1F8MFhI我忽略它并按下继续然后出现: https://imgur.com/a/1F8MFhI
I pressed continue but it just showed back up.我按了继续,但它又重新出现了。 I am very new and coding so I have no idea what I'm doing wrong.
我是一个非常新的和编码的人,所以我不知道我做错了什么。 I included the first error (even though it went away when I pressed continue) because I'm not sure if it has anything to do with the problem.
我包括了第一个错误(即使当我按下继续时它消失了),因为我不确定它是否与问题有关。 Any help will be greatly appreciated.
任何帮助将不胜感激。
You need to copy haarcascade_frontalface_default.xml
to the directory in which demo
executable is built.您需要将
haarcascade_frontalface_default.xml
复制到构建demo
可执行文件的目录中。
So, for me demo
is built in directory Debug/
and I have copied haarcascade_frontalface_default.xml
to Debug
directory.所以,对我来说,
demo
是在目录Debug/
中构建的,我已将haarcascade_frontalface_default.xml
复制到Debug
目录。
$ ls -l Debug/
total 2672
-rwxr-xr-x 1 gautamjha staff 109868 Oct 26 12:32 demo
-rw-rw-r-- 1 gautamjha staff 1254733 Oct 26 12:35 haarcascade_frontalface_default.xml
$
For more details read this opencv thread有关更多详细信息,请阅读此opencv 线程
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.