I'm still having problems getting the new Pro PoE camera to work with the C++ API. It gets to the point where it's grabbing the detections from the queue and it either hangs or throws an exception. This is the line:
auto inDet = qDet->get<dai::SpatialImgDetections>();
Having previously called this:
auto qDet = device.getOutputQueue("nn", 4, false);
And set up:
auto nnOut = pipeline.create<dai::node::XLinkOut>();
nnOut->setStreamName("nn");
I'm following the C++ code here:
https://docs.luxonis.com/projects/api/en/latest/samples/SpatialDetection/spatial_mobilenet/#rgb-mobilenetssd-with-spatial-data
But a few of the calls are different using the older API. For example:
monoLeft->setCamera("left");
Instead of:
monoLeft->setBoardSocket(dai::CameraBoardSocket::LEFT);
and
stereo->setDepthAlign(dai::CameraBoardSocket::CAM_A);
Instead of:
stereo->setDepthAlign(dai::CameraBoardSocket::RGB);
If I don't use the depth part and treat it like it's a standard camera I can get the dai::ImgDetections
without the spatial data and everything works fine.