How to Read, Write, Show Videos from Camera in OpenCV in Arabic in this video we will learn how to read and write an image also we will learn how to open your own camera or external camera to make action in real time import cv2 # import opencv cap = cv2 . VideoCapture ( 0 )#open your laptop camera fourcc = cv2 . VideoWriter_fourcc ( * 'XVID' ) #use any fourcc type to improve quality for the saved video out = cv2 . VideoWriter ( 'output.avi' , fourcc , 20.0 , ( 640 , 480 )) #Video settings print ( cap . isOpened ()) #check if the camera is opened while ( cap . isOpened ()): #while loop to read all frames ret , frame = cap . read () #read all frams if ret is TRUE it means that there is a frames to process if ret == True : #if ret is true print ( cap . get ( cv2 . CAP_PROP_FRAME_WIDTH )) #get the frame width print ( cap . get ( cv2 . CAP_PROP_FRAME_HEIGHT )) #get the frame height out . write ( frame ) #save y...