First time here? Check out the FAQ!
Maybe use threading... https://www.pyimagesearch.com/2015/12/28/increasing-raspberry-pi-fps-with-python-and-opencv/