OpenCV 人体检测样本崩溃
编译 peopleDetect.cpp 进展顺利,但是当我尝试运行该程序时,它在
hog.setSVMDetector(HOGDescriptor::getDefaultPeopleDetector());
错误消息行处崩溃: openCV.exe 中 0x74a9ae7a 处未处理的异常:0xC0000005:访问冲突写入位置 0x00000000。
调用堆栈:
msvcr90.dll!74a9ae7a()
opencv_objdetect231.dll!6dbfe397()
openCV.exe!main() Line 27 + 0x49 bytes
openCV.exe!__tmainCRTStartup() Line 555 + 0x19 bytes
openCV.exe!mainCRTStartup() Line 371
kernel32.dll!74f63677()
ntdll.dll!77319d72()
ntdll.dll!77319d45()
在互联网上潜伏后,我找不到任何东西,感谢任何帮助。
Compiling peopledetect.cpp goes just fine, but when I try to run the program, it crashes at the line
hog.setSVMDetector(HOGDescriptor::getDefaultPeopleDetector());
The error message:
Unhandled exception at 0x74a9ae7a in openCV.exe: 0xC0000005: Access violation writing location 0x00000000.
Call stack:
msvcr90.dll!74a9ae7a()
opencv_objdetect231.dll!6dbfe397()
openCV.exe!main() Line 27 + 0x49 bytes
openCV.exe!__tmainCRTStartup() Line 555 + 0x19 bytes
openCV.exe!mainCRTStartup() Line 371
kernel32.dll!74f63677()
ntdll.dll!77319d72()
ntdll.dll!77319d45()
After lurking around on the internet, I couldn't find anything, any help appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
它在 OS X 下工作。有东西正在尝试访问空指针。尝试替换
为
以查看错误是否发生在
getDefaultPeopleDetector
或hog.setSVMDetector
中。这可能有助于缩小问题范围。It works here under OS X. Something is trying to access a null pointer. Try replacing
with
to see whether the error is occurring in
getDefaultPeopleDetector
orhog.setSVMDetector
. That might help narrow down the issue.