Hi,
I have an OAK-D Lite and want to output RGB-D Side by Side images for import into Looking Glass Holographic displays. I have combined multiple DepthAI examples includingr depth alignment to color camera, software time synchronization between depth and color, and postprocessing to filter the output for a smoother fewer gaps and higher quality depthmap.
However, I cannot get any of the post processing filters to work with Depth Alignment. As soon as I enable one filter I get this error at the first frame:
frame = msg.getFrame()
RuntimeError: ImgFrame doesn't have enough data to encode specified frame, required 4147200, actual 2073600. Maybe metadataOnly transfer was made?
I tried a lot of things, but the only think that works is disabling either postprocessing or depth alignment. The only other thing I tried that does not get this error is changing the setDepthAlign to DepthAlign.CENTER instead of the CameraBoardSocket.CAM_A. However, this results in the resolutions being different and not aligned. I will try to manually crop and scale the Depth map to the same as color and see if it is aligned.
Code is here: jimdinunzio/depthai-pythonblob/main/examples/StereoDepth/rgbd_camera.py
Any help would be appreciated.
Thanks.