Skip to content

Commit

Permalink
fix spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
ericleonardis committed May 16, 2024
1 parent a5f0a28 commit d051e3b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions sleap_anipose/calibration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit d051e3b

Please sign in to comment.