From 7f0079dec5da19072cfe64aee233ecacd8ef2ffd Mon Sep 17 00:00:00 2001
From: AlexeyAB <alexeyab84@gmail.com>
Date: Tue, 19 Jun 2018 12:00:36 +0000
Subject: [PATCH] Output video-file has the same FPS as source video-stream. Exit from demo by ESC.
---
scripts/log_parser/log_parser.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/scripts/log_parser/log_parser.py b/scripts/log_parser/log_parser.py
index 2804c02..631e549 100644
--- a/scripts/log_parser/log_parser.py
+++ b/scripts/log_parser/log_parser.py
@@ -10,8 +10,8 @@
import platform
import re
import sys
-
import matplotlib.pyplot as plt
+
from matplotlib.ticker import MultipleLocator, FormatStrFormatter
@@ -98,6 +98,8 @@
plt.savefig(save_path, dpi=300)
if args.show_plot:
plt.show()
+ else:
+ plt.switch_backend('agg')
if __name__ == "__main__":
--
Gitblit v1.10.0