-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmain.py
35 lines (28 loc) · 892 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
import logging
from utils import logger
from PyInquirer import prompt
from FeatureExtraction.main import featureExtractor
from FramesExtraction.frameExtractor import frameExtractor
modules = ['Frame Extraction', 'Visual Features Extraction']
def getUserInput():
questions = [
{
'type': 'list',
'name': 'Action',
'message': 'Choose the module you want to use:',
'choices': modules
},
]
userInputs = prompt(questions)
return userInputs
def __init__():
# Creating log file
logging.basicConfig(filename='logger.log', level=logging.INFO)
logger('Framework started!')
# Getting inputs from users
userInputs = getUserInput()['Action']
if userInputs == 'Frame Extraction':
frameExtractor()
elif userInputs == 'Visual Features Extraction':
featureExtractor()
__init__()