Hello Erik, Sorry I did not have a chance to try out the changes extensively till now. When I increased the ImageManip maximum frame size, I got another error. It seems that the program would keep running and display the output windows for a while till a person walked into the FOV and then the program would stop with the error message:
[18443010F1AECE1200] [1056.112] [SpatialDetectionNetwork(4)] [critical] Fatal error in openvino '2021.4'. Likely because the model was compiled for different openvino version. If you want to select an explicit openvino version use: setOpenVINOVersion while creating pipeline. If error persists please report to developers. Log: 'Gather' '217'
[18443010F1AECE1200] [1059.100] [system] [critical] Fatal error. Please report to developers. Log: 'Fatal error on MSS CPU: trap: 00, address: 00000000' '0'
Traceback (most recent call last):
File "/home/francis/Desktop/learningOAK-D-Lite/spacial_face_det copy.py", line 161, in <module>
disp_frame = in_disp.getCvFrame()
AttributeError: 'depthai.ADatatype' object has no attribute 'getCvFrame'
Stack trace (most recent call last):
#14 Object "/bin/python", at 0x587533, in
#13 Object "/lib/aarch64-linux-gnu/libc.so.6", at 0x7f9be56217, in __libc_start_main
#12 Object "/bin/python", at 0x587637, in Py_BytesMain
#11 Object "/bin/python", at 0x5b79eb, in Py_RunMain
#10 Object "/bin/python", at 0x5c958f, in Py_FinalizeEx
#9 Object "/bin/python", at 0x5cdde3, in
#8 Object "/bin/python", at 0x5ce40f, in _PyGC_CollectNoFail
#7 Object "/bin/python", at 0x485b1b, in
#6 Object "/bin/python", at 0x5bdabf, in
#5 Object "/bin/python", at 0x525723, in PyDict_Clear
#4 Object "/home/francis/.local/lib/python3.9/site-packages/depthai.cpython-39-aarch64-linux-gnu.so", at 0x7f8972f06f, in
#3 Object "/home/francis/.local/lib/python3.9/site-packages/depthai.cpython-39-aarch64-linux-gnu.so", at 0x7f897eea77, in
#2 Object "/home/francis/.local/lib/python3.9/site-packages/depthai.cpython-39-aarch64-linux-gnu.so", at 0x7f89965a03, in dai::DataOutputQueue::~DataOutputQueue()
#1 Object "/home/francis/.local/lib/python3.9/site-packages/depthai.cpython-39-aarch64-linux-gnu.so", at 0x7f89962c97, in
#0 Object "/home/francis/.local/lib/python3.9/site-packages/depthai.cpython-39-aarch64-linux-gnu.so", at 0x7f89a6199c, in
Segmentation fault (Address not mapped to object [0x39303100000018])
Segmentation fault
I went back and reviewed all the models I tried from the same model zoo. These worked and provided the detected bounding box: face-detection-adas-001, face-detection-retail-0004, person-detection-0200, person-detection-0201 and person-detection-0202. The model that produced the error is person-detection-0203. One thing that I noticed is that all the models that worked has the same output blob shape and format- blob with shape: 1, 1, 200, 7 in the format 1, 1, N, 7. The model person-detections-0203 has an output blob with the shape 100, 5 in the format N, 5. Do I have to add additional parameters in my program to account for the difference in the model output blob shape and format, or, have to select a different openvino version to use, as the error message is suggesting. Thanks, Francis.