forked from Zardoua-Yassir/A_fast_horizon_detector_and_a_new_annotated_dataset_for_maritime_video_processing
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
17 lines (13 loc) · 631 Bytes
/
main.py
File metadata and controls
17 lines (13 loc) · 631 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from FastHorizonAlg import FastHorizon
def main():
fast_horizon_algorithm = FastHorizon() # instantiate the algorithm
# demo on a video sample
# fast_horizon_algorithm.video_demo(video_path='./video sample/MMD_annotated_5.avi', display=True)
fast_horizon_algorithm.evaluate(
src_video_folder='/datasets/TMD/VideoFilesTMD/',
src_gt_folder='/datasets/TMD/GroundTruthFilesTMD/GT_Horizon/npy (For Python)/',
dst_video_folder='/datasets/TMD/results/videos/',
dst_quantitative_results_folder='/datasets/TMD/results/',
draw_and_save=True)
if __name__ == '__main__':
main()