Hi,
Based on the output log, the image value is None.
width: 0.0 height: 0.0
None
This indicates that OpenCV cannot read your camera correctly.
Could you try to replace the below function with this pipeline and try it again?
cap= cv2.VideoCapture(‘csi://0’)
Thanks.