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

How to extract images from videos? #11

Open
maywander opened this issue Aug 2, 2022 · 1 comment
Open

How to extract images from videos? #11

maywander opened this issue Aug 2, 2022 · 1 comment

Comments

@maywander
Copy link

请问在oulu-npu训练集和测试集中,如何从avi取出需要的帧

@maywander maywander changed the title How to abstract images from videos? How to extract images from videos? Aug 2, 2022
@Wamgz
Copy link

Wamgz commented Mar 5, 2023

def avi2jpg(avi_path, jpgs_path):
if not os.path.exists(jpgs_path):
os.makedirs(jpgs_path)
subprocess.run(["ffmpeg", "-i", avi_path, "-q:v", "2", jpgs_path + "/%03d.jpg"])

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

2 participants