我使用的是 VisionSDK 3.0。 我正在尝试从 OpenCV 库中运行级联分类器。
静态字符 xml_data[]={
#include "级 联/xml_data.bin"
};
{
(笑声)
cv::FileStorage file_storage (xml_data、cv::FileStorage::读取| cv::FileStorage::存储器);
cv::CascadeClassifier *级联=新的 cv::CascadeClassifier();
if (!cascade->read (file_storage.getFirstTopLevelNod()))(如果!cascade->read (file_storage.getFirstTopLevelNod())))
返回-1;
(笑声)
}
在函数级联->read(file_storage.getFirstTopLevelNode())中发生异常:
[主机 ] 9.565851秒:未处理异常:
[主机 ] 9.565881 s:ThreadType_Task 中发生异常
[host ] 9.565881 s:A15发生异常,异常类型为18
[主机 ] 9.565881 s:句柄:0x893a3db4。
[主机 ] 9.565881 s:栈基址:0x8f4a2920。
[主机 ] 9.565881 s:堆栈大小:0x8000。
[主机 ] 9.565881 s:R0 = 0x00000000 R8 = 0x895030c0
[主机 ] 9.565912 s:R1 = 0x00000018 R9 = 0x00000001
[主机 ] 9.565912 s:R2 = 0x00000098 R10 = 0x89501538
[主机 ] 9.565912 s:R3 = 0x00000001 R11 = 0x8f4a9a0c
[主机 ] 9.565912 s:R4 = 0x8f4849d8 R12 = 0x6000015f
[主机 ] 9.565912 s:R5 = 0x89502e48 SP (R13)= 0x88e70ed8
[主机 ] 9.565942 s:R6 = 0x895030a8 LR (R14)= 0x8f47033c
[主机 ] 9.565942 s:R7 = 0x89502ee8 PC (R15)= 0x88e70ed8
[主机 ] 9.565942 s:PSR = 0x00000001
[主机 ] 9.565942 s:DFSR = 0x00000206
[主机 ] 9.565942 s:IFSR = 0x00000000
[主机 ] 9.565973 s:DFAR = 0x00000008
[主机 ] 9.565973 s:IFAR = 0x00000000
[主机 ] 9.565973 s:正在终止执行...
[主机 ] 9.565973 s:
[主机 ] 9.565973 s: ### XDC 断言-错误回调开始###
[主机 ] 9.565973 s:
[主机 ] 9.566003 s:E_dataAbort:PC = 0x88e70ed8、LR = 0x8f47033c。
[主机 ] 9.566003 s:
[主机 ] 9.566003 s: ### XDC 断言-错误回调结束###
为什么会发生异常?