From d051e3b616a4479fab0eb7f9b7ba6e31799f1a81 Mon Sep 17 00:00:00 2001 From: Eric Leonardis Date: Thu, 16 May 2024 14:19:01 -0700 Subject: [PATCH] fix spacing --- sleap_anipose/calibration.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/sleap_anipose/calibration.py b/sleap_anipose/calibration.py index a52dbe9..60ff54b 100644 --- a/sleap_anipose/calibration.py +++ b/sleap_anipose/calibration.py @@ -102,18 +102,15 @@ def make_reproj_imgs( sampled_frames = sample(frames, n_samples) for i, cam in enumerate(cam_folders): - # grab file name image_path = list(cam.glob(f"*calibration_images/*.mp4")) - - # open mp4 vid = imageio.get_reader(image_path[0], 'ffmpeg') for frame in sampled_frames: img = vid.get_data(frame) - + fig = plt.figure(figsize=(14, 12), dpi=120, facecolor="w") plt.scatter( - detections[i, frames.index(frame), :, 0], ## could it be frames[frame] vs frames.index(frame) + detections[i, frames.index(frame), :, 0], detections[i, frames.index(frame), :, 1], s=300, color="r",