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

Inserting cropped video back in the original #41

Closed
leg0m4n opened this issue Oct 11, 2022 · 1 comment
Closed

Inserting cropped video back in the original #41

leg0m4n opened this issue Oct 11, 2022 · 1 comment

Comments

@leg0m4n
Copy link

leg0m4n commented Oct 11, 2022

Hi, Aliaksandr! Thank you for your scripts, they are super useful in my research!

I intend to do some changes to the cropped face images and then insert them back into the original, do you have any recommendations on how to better approach this task without losing quality and mismatch problems? Do you think doing everything in reverse in the crop script will be enough?

@leg0m4n
Copy link
Author

leg0m4n commented Oct 23, 2022

Yes, figured it out, I was confused about tube_bbox at first - basically it's just [minX1, minY1, maxX2, maxY2] across all frames with iou taken into account. So we crop the same bbox across all frames. Which means if we want to insert cropped frames back into the orignal video, you just simply us this tube_bbox coords again.

@leg0m4n leg0m4n closed this as completed Oct 23, 2022
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

No branches or pull requests

1 participant