I am using the following code in Python in order to continuously get frame from the OpenCV VideoCapture object with a a dedicated thread and it works fine.
fr