Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Python/src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,4 @@ def create_args():
print("Please specify the path to the video meta csv file.")
sys.exit(1)
visualization_plot = VisualizationPlot(created_arguments, tracks, static_info, meta_dictionary)
visualization_plot.show()
visualization_plot.show()
3 changes: 1 addition & 2 deletions Python/src/utils/plot_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ def set_val(self, val):
self.val = val
if not self.eventson:
return
for cid, func in self.observers.items():
func(discrete_val)
self._observers.process('changed',discrete_val)

def update_val_external(self, val):
self.set_val(val)
3 changes: 2 additions & 1 deletion Python/src/visualization/visualize_frame.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import os
import scipy.ndimage
import matplotlib as mpl
from matplotlib.pyplot import imread

from data_management.read_csv import *

Expand Down Expand Up @@ -36,7 +37,7 @@ def __init__(self, arguments, read_tracks, static_info, meta_dictionary, fig=Non
background_image_path = arguments["background_image"]
if background_image_path is not None and os.path.exists(background_image_path):
# Plot the image
self.background_image = scipy.ndimage.imread(background_image_path)
self.background_image = imread(background_image_path)
self.y_sign = 1
im = self.background_image[:, :, :]
self.ax.imshow(im)
Expand Down