22 with open(json_path,
'r')
as json_file:
23 json_dict = json.load(json_file)
25 if "python_ext" not in json_dict:
26 print(
'No python extension found')
29 python_extensions = json_dict[
'python_ext']
34 if 'xfeat' in python_extensions:
37 if 'odometry' in python_extensions:
39 vo.load_settings(python_extensions[
'odometry'])
40 tracker.setOdometryMethod(vo)
43 if 'features' in python_extensions:
44 features_json = python_extensions[
'features']
45 assert isinstance(features_json, list)
46 for fj
in features_json:
47 if fj[
'type'] ==
'xfeat':
49 xfeat.load_settings(fj)
51 tracker.addTracker(xfeat)