This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

PROCESSOR-SDK-J721E: Error while executing the python script to capture video

Part Number: PROCESSOR-SDK-J721E

We are using the setup like Camera -> UB933 serializer -> FPD LInk -> UB960 deserializer -> Jacinto 7 Board.  We configured deserializer, serializer and camera.  We verified the connection using i2cdetect, i2cget and i2cdump commands.  Now to capture a video, we executed the below python script.

_________________________________________________________________________________________

import cv2

import numpy as np

video = cv2.VideoCapture(0)

while video.isOpened():

          empty, frame = video.read()

          cv2.imshow(frame)

          if cv2.waitKey(1) & 0xFF == ord('q'):

               break

video.release()

____________________________________________________________________________________________

 

After executing the above script, we are getting the error like below.

We tried different numbers in cv2.VideoCapture() function.  But same error is occuring.  

Is this problem because of camera is connected to the board after serializer and deserializer hardware (Not connected to the board directly)?

If yes, how to capture the video ?