def init(self):
        # self.showMaximized()
        self.resize(1200, 500)
        self.setWindowTitle('FaceFrameWork')

        # set split layout

        self.split = QtGui.QSplitter(Qt.Horizontal, self)

        # left widget is camera widget, this widget deal with take photos through OpenCV Lib
        # ans transfer OpenCV Pic to PyQt4 QImage, then use QPainter to show PyQt Pic

        self.left = Combine(self.split)

        # right widget is display widget, this widget deal with process face detection algorithm,
        # and show result in it

        self.right = Display(self.split)
        self.split.setStretchFactor(1, 1)
        self.setCentralWidget(self.split)

        # this is menu bar, in this instance, just use one to load pic
        self._action()
        menu = self.menuBar()
        file = menu.addMenu('File')
        action = menu.addMenu('Action')
        file.addAction(self._open_file)
        file.addAction(self._close_file)
        action.addAction(self._photo)
        action.addAction(self._start)
        action.addAction(self._pause)