Commit 4a8848e6 authored by Ossi Laine's avatar Ossi Laine
Browse files

Fixed indentation bug in embody_plot.py

parent c21c9bd9
...@@ -210,24 +210,22 @@ def plot_coordinates(coordinates, image_path=DEFAULT_IMAGE_PATH): ...@@ -210,24 +210,22 @@ def plot_coordinates(coordinates, image_path=DEFAULT_IMAGE_PATH):
except IndexError as err: except IndexError as err:
app.logger.info(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 # Try to send progress information to socket.io
if idx == 0: if idx == 0:
continue continue
if round((idx / points_count) * 100) % (step * 5) == 0: if round((idx / points_count) * 100) % (step * 5) == 0:
try: try:
emit('progress', {'done':step * 5, 'from':100}) emit('progress', {'done': step * 5, 'from': 100})
socketio.sleep(0.05) socketio.sleep(0.05)
except RuntimeError as err: except RuntimeError:
print(err)
continue continue
step += 1 step += 1
point = ndimage.gaussian_filter(frame, sigma=5)
ax2.imshow(point, cmap='hot', interpolation='none')
image_mask = mpimg.imread(IMAGE_PATH_MASK) image_mask = mpimg.imread(IMAGE_PATH_MASK)
ax2.imshow(image_mask) ax2.imshow(image_mask)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment