more demo less bugs
This commit is contained in:
parent
54ad955cbd
commit
464a3f5813
15
test.py
15
test.py
@ -7,12 +7,17 @@ import image_marker as im
|
|||||||
|
|
||||||
def show_tracking_results(dlc_results_file):
|
def show_tracking_results(dlc_results_file):
|
||||||
tr = TrackingResult(dlc_results_file)
|
tr = TrackingResult(dlc_results_file)
|
||||||
tr.plot(bodypart="snout")
|
print("scorer: ", tr.scorer)
|
||||||
t, x, y, l = tr.position_values(framerate=30)
|
print("bodyparts:", tr.bodyparts)
|
||||||
print("frame_count", len(t))
|
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 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 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 likelihood: %.2f, max likelihood: %.2f" % (np.min(l), np.max(l)))
|
||||||
|
|
||||||
|
tr.plot(bodypart="snout")
|
||||||
|
|
||||||
|
|
||||||
def show_image_marking(video_file):
|
def show_image_marking(video_file):
|
||||||
|
Loading…
Reference in New Issue
Block a user