Skip to content
Snippets Groups Projects
Commit 4a8848e6 authored by Ossi Laine's avatar Ossi Laine
Browse files

Fixed indentation bug in embody_plot.py

parent c21c9bd9
No related branches found
No related tags found
No related merge requests found
......@@ -210,11 +210,7 @@ def plot_coordinates(coordinates, image_path=DEFAULT_IMAGE_PATH):
except IndexError as err:
app.logger.info(err)
point = ndimage.gaussian_filter(frame, sigma=5)
ax2.imshow(point, cmap='hot', interpolation='none')
# Try to send progress information to socket.io
if idx == 0:
continue
......@@ -222,12 +218,14 @@ def plot_coordinates(coordinates, image_path=DEFAULT_IMAGE_PATH):
try:
emit('progress', {'done': step * 5, 'from': 100})
socketio.sleep(0.05)
except RuntimeError as err:
print(err)
except RuntimeError:
continue
step += 1
point = ndimage.gaussian_filter(frame, sigma=5)
ax2.imshow(point, cmap='hot', interpolation='none')
image_mask = mpimg.imread(IMAGE_PATH_MASK)
ax2.imshow(image_mask)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment