ercanburak commited on
Commit
213154b
1 Parent(s): abcfaf7

remove unused

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. utils.py +0 -6
app.py CHANGED
@@ -4,7 +4,7 @@ import glob
4
 
5
  import streamlit as st
6
 
7
- from utils import get_configs, get_display_names, get_path_for_viz, get_video_height, get_text_str
8
 
9
  # st.header("EVREAL - Event-based Video Reconstruction Evaluation and Analysis Library")
10
  #
 
4
 
5
  import streamlit as st
6
 
7
+ from utils import get_configs, get_display_names, get_path_for_viz, get_text_str
8
 
9
  # st.header("EVREAL - Event-based Video Reconstruction Evaluation and Analysis Library")
10
  #
utils.py CHANGED
@@ -41,9 +41,3 @@ def get_text_str(height, width, text, fontsize, fontcolor="black"):
41
  return "drawtext=text='{}':" \
42
  "fontsize={}:fontcolor={}:" \
43
  "x=({}-text_w)/2:y=({}-text_h)/2".format(text, fontsize, fontcolor, width, height)
44
-
45
-
46
- def get_video_height(video_path):
47
- probe = ffmpeg.probe(video_path)
48
- video_streams = ffmpeg.probe(video_path, select_streams="v")
49
- return video_streams['streams'][0]['height']
 
41
  return "drawtext=text='{}':" \
42
  "fontsize={}:fontcolor={}:" \
43
  "x=({}-text_w)/2:y=({}-text_h)/2".format(text, fontsize, fontcolor, width, height)