From 1cbb572392d76bf6a7d6308c1d1ce2e366920741 Mon Sep 17 00:00:00 2001 From: Niclas Dobbertin Date: Thu, 14 Sep 2023 19:31:17 +0200 Subject: quick hack to align times better --- bjoern/videoanalyse/combine_ocr-logs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bjoern/videoanalyse/combine_ocr-logs.py') diff --git a/bjoern/videoanalyse/combine_ocr-logs.py b/bjoern/videoanalyse/combine_ocr-logs.py index 76c59ed..1d99629 100644 --- a/bjoern/videoanalyse/combine_ocr-logs.py +++ b/bjoern/videoanalyse/combine_ocr-logs.py @@ -24,7 +24,7 @@ print(video_date) # video_delta = timedelta(hours=video_date.hour, minutes=video_date.minute, seconds=video_date.second) def add_video_time_to_start(x, video_date): - start = timedelta(seconds=int(x)) + start = timedelta(seconds=int(round(x))) return (start + video_date).time().isoformat() analysis = pd.read_csv(vp_path / "analysis_results.csv") -- cgit v1.2.3