Daniel Gil-U Fuhge commited on
Commit
a54d9bd
1 Parent(s): f7da327

Bugfix path bbox

Browse files
src/postprocessing/postprocessing.py CHANGED
@@ -36,7 +36,10 @@ def animate_logo(model_output: pd.DataFrame, logo_path: str):
36
  total_animations = []
37
  for animation_id in animations_by_id.keys():
38
  print(animation_id)
39
- path_xmin, path_xmax, path_ymin, path_ymax = get_path_bbox(logo_path, animation_id)
 
 
 
40
  xmin = logo_xmin - path_xmin
41
  xmax = logo_xmax - path_xmax
42
  ymin = logo_ymin - path_ymin
 
36
  total_animations = []
37
  for animation_id in animations_by_id.keys():
38
  print(animation_id)
39
+ try:
40
+ path_xmin, path_xmax, path_ymin, path_ymax = get_path_bbox(logo_path, animation_id)
41
+ except:
42
+ path_xmin, path_xmax, path_ymin, path_ymax = 0, 0, 0, 0
43
  xmin = logo_xmin - path_xmin
44
  xmax = logo_xmax - path_xmax
45
  ymin = logo_ymin - path_ymin