Convert an OpenCV image to a tkinter PhotoImage

def _convert_cv_to_tk(self, image_cv):
        """Convert an OpenCV image to a tkinter PhotoImage"""
        # convert BGR to RGB
        image_cv_rgb = data.cv2.cvtColor(image_cv, data.cv2.COLOR_BGR2RGB)
        # convert opencv to PIL
        image_pil = PIL_Image.fromarray(image_cv_rgb)
        # convert PIL to tkinter
        return ImageTk.PhotoImage(image_pil)