I had the same warning.
Just modify the line
camera = cv.VideoCapture(camera_port)
to
camera = cv.VideoCapture(camera_port, cv.CAP_DSHOW)
I had the same warning.
Just modify the line
camera = cv.VideoCapture(camera_port)
to
camera = cv.VideoCapture(camera_port, cv.CAP_DSHOW)