I'm trying to play a video file using python opencv this is my code , but it is not showing the vidfeo file when I run the code
import numpy as np
import cv2
cap = capture =cv2.VideoCapture('C2.mp4')
while(cap.isOpened()):
ret, frame = cap.read()
gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
cv2.imshow('frame',gray)
cv2.waitKey(1)
cap.release()
cv2.destroyAllWindows()
I tried the answer in : link but not working again
cap = capture = .... ?Do you enter in the while loop?