We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5721f7 commit 0d802a7Copy full SHA for 0d802a7
python/cli/process/process.py
@@ -259,7 +259,8 @@ def onMappingOutput(output):
259
fileName = f"{args.output}/tmp/frame_{frameId:05}.{args.image_format}"
260
cv2.imwrite(fileName, bgrImage)
261
262
- if frameSet.depthFrame.image is not None and not useMono:
+ # Legacy: support SDK versions which also produced images where frameSet.depthFrame.image was None
263
+ if frameSet.depthFrame is not None and frameSet.depthFrame.image is not None and not useMono:
264
alignedDepth = frameSet.getAlignedDepthFrame(undistortedFrame)
265
depthData = alignedDepth.image.toArray()
266
depthFrameName = f"{args.output}/tmp/depth_{frameId:05}.png"
0 commit comments