-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
30 lines (23 loc) · 912 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
# ============================================================================
# Author: Rodolfo Ferro @ Datlacuache
# Twitter: @rodo_ferro
#
# Script: Video tracking script.
#
# ABOUT COPYING OR USING PARTIAL INFORMATION:
# This script was originally created by Rodolfo Ferro. Any
# explicit usage of this script or its contents is granted
# according to the license provided and its conditions.
# ============================================================================
from ml.track import object_tracking_in_video
def main():
"""Main function."""
video = 'assets/clip.mp4'
logo = 'assets/datlacuache_black.png'
object_tracking_in_video(video,
tracked_classes=['car', 'truck'],
threshold=0.50,
logo_path=logo,
position='bottom')
if __name__ == '__main__':
main()