OpenCV: “[ WARN:0] terminating async callback” when attempting to take a picture

I had the same warning.

Just modify the line

camera = cv.VideoCapture(camera_port)

to

camera = cv.VideoCapture(camera_port, cv.CAP_DSHOW)

Leave a Comment