ret, img frame = cap.read() code example Example: ret, img_frame = cap.read() ret, img frame = cap.read()