From 464a3f5813bb35a72362a63666664eee27822db5 Mon Sep 17 00:00:00 2001 From: Jan Grewe Date: Sat, 19 Dec 2020 18:43:05 +0100 Subject: [PATCH] more demo less bugs --- test.py | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/test.py b/test.py index 9b6d5d6..a71afb5 100644 --- a/test.py +++ b/test.py @@ -7,12 +7,17 @@ import image_marker as im def show_tracking_results(dlc_results_file): tr = TrackingResult(dlc_results_file) - tr.plot(bodypart="snout") - t, x, y, l = tr.position_values(framerate=30) - print("frame_count", len(t)) + print("scorer: ", tr.scorer) + print("bodyparts:", tr.bodyparts) + t, x, y, l, name = tr.position_values(bodypart="snout", framerate=30) + + print("frame_count:", len(t)) + print("bodypart: %s" % name) print("min x pos: %.2f, max x pos: %.2f" % (np.min(x), np.max(x))) - print("min y pos: %.2f, max y pos: %.2f" % (np.min(y), np,max(y))) - print("min likelihood: %.2f, max likelihood: %.2f" % (np.min(l), np,max(l))) + print("min y pos: %.2f, max y pos: %.2f" % (np.min(y), np.max(y))) + print("min likelihood: %.2f, max likelihood: %.2f" % (np.min(l), np.max(l))) + + tr.plot(bodypart="snout") def show_image_marking(video_file):