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

video2npy.py for activitynet cannot read video frames. #36

Open
prote376 opened this issue Feb 23, 2022 · 1 comment
Open

video2npy.py for activitynet cannot read video frames. #36

prote376 opened this issue Feb 23, 2022 · 1 comment

Comments

@prote376
Copy link

prote376 commented Feb 23, 2022

I am trying to extract RGB frames by following ActivityNet Readme.

However, when I run video2npy.py, it cannot read frames for some videos .
In detail, VideoCapture.read() returns False while get(cv2.CAP_PROP_FRAME_COUNT) returns 770 frames.

The videos are not scaled to 112x112. (The videos are also generated by transform_videos.py.)
One of width and height is 112, but another was different.
It seems like that they keep the original aspect ratio during resizing.

Is that a problem? Then, how could I fix this?

@menghuaa
Copy link

我正在尝试按照 ActivityNet 自述文件提取 RGB 帧。

但是,当我运行 video2npy.py 时,它无法读取某些视频的帧。 详细地说,VideoCapture.read() 返回 False,而 get(cv2.CAP_PROP_FRAME_COUNT) 返回 770 帧。

视频未缩放到 112x112。(视频也是由 transform_videos.py 生成的。) 宽度和高度之一是 112,但另一个不同。 似乎它们在调整大小时保持了原始纵横比。

那是问题吗?那么,我该如何解决这个问题?

请问你解决这个问题了吗?我也遇到这个问题了

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