cv2.cvtColor converts from BGR (OpenCV's default channel order) to RGB (what PIL and most display tools expect). display() + clear_output(wait=True) renders the frame in the notebook and replaces the ...