Unable to use See3Cam video feed with ZCU104 pynq v2.5 image

I am using ZCU104 with pynq v2.5 image. I am able to get pictures from the see3cam provided with it but not live video. The camera closes after taking a single photo all the time and works only after I reattach the USB again. Any code I can refer to?

The OpenCV code in the display-port notebook should be sufficient to get live video from the included webcam. Are there any errors in dmesg?