more demo less bugs

This commit is contained in:
Jan Grewe 2020-12-19 18:43:05 +01:00
parent 54ad955cbd
commit 464a3f5813

15
test.py
View File

@ -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):