Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pre release changes #94

Conversation

Shmuel-columbia
Copy link
Contributor

@Shmuel-columbia Shmuel-columbia commented Jul 9, 2024

closes #81

@@ -344,7 +344,7 @@ def export_frames(
for frame, idx in zip(frames, frame_idxs):
cv2.imwrite(
filename=os.path.join(save_dir, "img%s.%s" % (str(idx).zfill(n_digits), format)),
img=frame[0],
img=cv2.cvtColor(frame.transpose(1, 2, 0), cv2.COLOR_RGB2BGR),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is the conversion from RGB to BGR necessary here? this should just work if we save in RGB format right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. Im getting an odd images when I remove the conversion. looks like one of the channels is missing..

lightning_pose_app/backend/extract_frames.py Outdated Show resolved Hide resolved
@themattinthehatt themattinthehatt merged commit dfe93e1 into Lightning-Universe:main Jul 10, 2024
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Why Lightning Pose Extract Black and white frames from colored video
2 participants