This is the code snippet I am currently working on.
cap = cv2.VideoCapture('/home/nvidia/TensorFlowTX2/Faster-RCNN_TF/data/demo/vid.mp4')
while (cap.isOpened()):
frame = cap # get current frame
frameId = cap.get(1)
(grabbed, f) = cap.read()
#if grabbed == True:
if(0==0):
demo(sess, net, f)
plt.show()
The output displayed works framewise. I want to create a live video of the output.
I am interested in converting plt.show
(matplotlib function) to imshow
(OpenCV function) so that I can work on continous output video processing.
Thanks