Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (18 sloc) 659 Bytes
import sys
from PyQt5 import QtCore, QtWidgets
from facerecog import MainWidget, get_haarcascade_filepath
def main():
# We need to make the QApplication before our QMainWindow
# We also need to pass in our system argument values (sys.argv)
app = QtWidgets.QApplication(sys.argv)
main_window = QtWidgets.QMainWindow()
# QMainWindow requires a central widget.
haar_file = get_haarcascade_filepath()
central_widget = MainWidget(haar_file)
# Show our main window
# Start the event loop processing
if __name__ == '__main__':
You can’t perform that action at this time.