// Plot the labels for each body part
for bpindex, bp in enumerate(bodyparts2plot):
axes1.imshow(cv2.cvtColor(frame_cam1, cv2.COLOR_BGR2RGB))
axes2.imshow(cv2.cvtColor(frame_cam2, cv2.COLOR_BGR2RGB))
if (df_cam1_view[scorer_cam1][bp]["likelihood"].values[k]) > pcutoff and (
df_cam2_view[scorer_cam2][bp]["likelihood"].values[k]
) > pcutoff:
After Change
// Set the x,y, and z limits for the 3d view
numberFrames = min(len(vid_cam1), len(vid_cam2))
df_x = np.empty((len(bodyparts2plot), numberFrames))
df_y = np.empty((len(bodyparts2plot), numberFrames))
df_z = np.empty((len(bodyparts2plot), numberFrames))