-
Notifications
You must be signed in to change notification settings - Fork 0
/
ak_frame_extractor_main.py
47 lines (37 loc) · 1.75 KB
/
ak_frame_extractor_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
40
41
42
43
44
45
46
47
"""
Project: AK_FRAEX Azure Kinect Frame Extractor https://github.com/GRAP-UdL-AT/ak_frame_extractor
* PAgFRUIT https://www.pagfruit.udl.cat/en/
* GRAP https://www.grap.udl.cat/
Author: Juan Carlos Miranda. https://github.com/juancarlosmiranda
Date: November 2021
Description:
User interface that contains functions related to extracting video data from the Azure Kinect camera.
Use:
python ak_frame_extractor.py
"""
import os
from os.path import expanduser
import sys
sys.path.append(os.path.join(os.path.abspath('.'), 'src'))
from src.gui_frame_ext.gui_frame_ext_console import GUIFrameExtractorConsole2
from src.gui_frame_ext.gui_frame_ext_config import GUIFrameExtractorConfig2
from src.dataset_management.dataset_config import DatasetConfig
from src.video_extraction_management.frame_extraction_config import FramesManagerConfig
if __name__ == '__main__':
BASE_DIR = os.path.abspath('src/gui_frame_ext')
ui_path_config_file = os.path.join(BASE_DIR, 'src/conf', 'ui_frames_extractor.conf')
path_extractor_config_file = os.path.join(BASE_DIR, 'src/conf', 'frames_extractor.conf')
user_path = expanduser("~")
base_path = os.path.join(user_path, 'Downloads')
dataset_name = 'KA_Story_RGB_IR_DEPTH_dataset'
dataset_manager_config_obj = DatasetConfig(base_path, dataset_name)
frames_extractor_config = FramesManagerConfig(path_extractor_config_file)
ui_frame_extractor_config = GUIFrameExtractorConfig2(ui_path_config_file)
app = GUIFrameExtractorConsole2(ui_frame_extractor_config, dataset_manager_config_obj, frames_extractor_config)
app.mainloop()
# todo: check automation of settings
# todo:config files
# todo:save config form
# todo: add validations of fields
# todo: add unit tests
# todo: add integration tests