简体   繁体   English

如何解决“抛出未处理的异常:读取访问冲突。 this->cc._Ptr 是 nullptr。” 错误[暂停]

[英]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.

相关问题 “抛出异常:读取访问冲突。 this-&gt;head 是 nullptr。” - “Exception thrown: read access violation. this->head was nullptr.” 如何修复“抛出异常:读取访问冲突。 **Surface** 为 nullptr。 在 SDL2 C++ 中发生” - How to fix “Exception thrown: read access violation. **Surface** was nullptr. occurred” in SDL2 C++ 引发异常:读取访问冲突。 此-&gt; m_pRenderTarget为nullptr。 C ++ - Exception thrown: read access violation. this->m_pRenderTarget was nullptr. c++ C ++ Battle4Zion项目引发未处理的异常:读取访问冲突。 **这**是nullptr。 发生了 - C++ Battle4Zion project Unhandled exception thrown: read access violation. **this** was nullptr. occurred C++ 如何修复抛出的异常:写访问冲突。 这是空指针。 20号线 - C++ How do I fix Exception thrown: write access violation. this was nullptr. on Line 20 抛出异常:读取访问冲突。 this-&gt;top 是 nullptr - Exception thrown: read access violation. this->top was nullptr 抛出异常:读取访问冲突。 这是 nullptr - Exception thrown: read access violation. this was nullptr “抛出未处理的异常:读取访问冲突。_First was nullptr”错误是什么意思? - What does "Unhandled exception thrown: read access violation. _First was nullptr" error mean? 引发异常:读取访问冲突。 std::shared_ptr<Weapon> :: 运算符 -&gt;<Weapon, 0> (...) 返回 nullptr.,发生了 - Exception raised: read access violation. std :: shared_ptr <Weapon> :: operator -> <Weapon, 0> (...) returned nullptr., happened 引发未处理的异常:读取访问冲突。 this-&gt; String为0x1C6F112 - Unhandled exception thrown: read access violation. this->String was 0x1C6F112
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM