Safemotion Lib
Loading...
Searching...
No Matches
motion_builder.py
Go to the documentation of this file.
1from smtrack.models.motion.kalman_filter import KalmanFilter
2
3__motion_builders__ = {
4 "KalmanFilter" : KalmanFilter,
5}
6
7def build_motion(args):
8 assert args.type in __motion_builders__, \
9 f'not found motion model type : {args.type}'
10
11 motion_builder = __motion_builders__[args.type]
12 motion_args = args.copy()
13 motion_args.pop('type')
14 return motion_builder(**motion_args)