class MyDialog(QDialog):

    def __init__(self, parent=None):
        super(MyDialog, self).__init__(parent)
self.cvImage = cv2.imread('cat.jpg')
How to combine OpenCV with PyQt to create a simple GUI?