Reading video stream frame by frame

how to get rid of this warning while reading a video stream from my web cam

hey @Roopa1i_ma1hotra ,
these are just warnings related to some issues with webcam .
You can ignore them by using ,

import warnings
warnings.filterwarnings('ignore')

I Hope this would have helped you.
Thank You and Happy Coding :slightly_smiling_face:.

still giving warnings

my program is not terminating using q

To get it done , you need to open a separate window that shows your webcam stream , as cmd in itself not capable of managing user key input while running , but a separate window of cv2.imshow , can make it work.