我需要编辑视频中的特定帧,但我只有几毫秒的时间来进行编辑。如何使用这些信息来获取框架? 一个 python 示例将不胜感激!
最佳答案
基于此link ,与给定帧相关的时间可以在属性 CV_CAP_PROP_POS_MSEC 中找到 文档说的地方:
CV_CAP_PROP_POS_MSEC Current position of the video file in milliseconds or video capture timestamp.
更新:
正如@Mouldri 在下面的评论中提到的,该值已在 openCV 3 中更改为 CAP_PROP_POS_MSEC
。
关于python - 如何根据openCV中的时间戳选择特定的帧?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22531292/