-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.py
35 lines (32 loc) · 1.09 KB
/
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
from argparse import ArgumentParser
import sys, os
sys.path.append(os.path.abspath("amazon-kinesis-video-streams-consumer-library-for-python"))
"""
TECHNOLOGICAL INSTITUTE OF THE PHILIPPINES - QUEZON CITY
PERSONAL PROTECTIVE EQUIPMENT DETECTION USING YOLOR ALGORITHM [2022 - 2023]
TEAM MEMBERS:
- BALTAZAR, ZEUS JAMES
- BASBACIO, MARTIN LORENZO
- LARROSA, CLARENCE GAIL
- MARQUEZ, IAN GABRIEL
"""
# This is the main entry point of the program.
# It calls the static method of the Application
# module to run the main process.
if __name__=="__main__":
parser = ArgumentParser()
parser.add_argument(
"-l",
"--local",
action="store_true",
help="Change the mode of the application is local or cloud based"
)
args = parser.parse_args()
if args.local:
from src import localapp
print("Initializing local application")
localapp.Application.main()
else:
from src.cloud import cloudapp
print("Initializing cloud application")
cloudapp.Application.main()