-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
39 lines (30 loc) · 923 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import sys #, cgitb
# import asyncio
# from qasync import QEventLoop
from dotenv import load_dotenv
from PyQt5.QtWidgets import QApplication
from Modules import RootWindow
load_dotenv('.env')
def except_hook(cls, exception, traceback):
sys.__excepthook__(cls, exception, traceback)
if __name__ == '__main__':
# cgitb.enable(format='text')
sys.excepthook = except_hook
## sequential ##
app = QApplication(sys.argv)
ex = RootWindow()
ex.show()
app.exec_()
sys.exit()
# ## async ##
# app = QApplication(sys.argv)
# loop = QEventLoop(app)
# asyncio.set_event_loop(loop)
# ex = RootWindow()
# ex.show()
# loop.run_forever()
# import cv2
# from Modules.BusinessLogic.card_detection import detect_video
# capture = cv2.VideoCapture(0)
# detect_video(capture, display=True, debug=True, filtering=False)
# capture.release()