-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
18 lines (14 loc) · 812 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from app.FrameHandler import FrameHandler
from app.UserInterface import UserInterface
from classification.EstimatorVideo import EstimatorVideo
from preprocessing.PreProcessorVideo import PreProcessorVideo
from preprocessing.representation.HistogramOfGradients import HistogramOfGradients
from preprocessing.segmentation.BackgroundSubtractor import BackgroundSubtractor
from preprocessing.segmentation.MRFVideo import MRFVideo
preprocessor = PreProcessorVideo(BackgroundSubtractor(0.5), segmenter=MRFVideo(),
descriptor=HistogramOfGradients(window_size=6, n_bins=16))
frame_handler = FrameHandler(preprocessor, EstimatorVideo(model_path="../../resource/examples/model_hog_asl.pkl"))
ui = UserInterface(frame_handler)
frame_handler.daemon = True
frame_handler.start()
ui.run()