mp4、avi、mkv 等)或同时从视频和元数据文件(使用 RecordVideo 节点录制)中重放。如何放置
Python
Python
1with dai.Pipeline() as pipeline:
2 replay = pipeline.create(dai.node.ReplayVideo)输入和输出
用法
Python
Python
1with dai.Pipeline() as pipeline:
2 replay = pipeline.create(dai.node.ReplayVideo)
3 replay.setReplayVideoFile("video.mp4")
4 replay.setReplayMetadataFile("metadata.mcap")
5 replay.setOutFrameType(dai.ImgFrame.Type.BGR888i)
6 replay.setSize(600, 480)
7 replay.setFps(30)
8 replay.setLoop(False)功能示例
参考
class
dai::node::ReplayVideo
variable
Output out
Output for any type of messages to be transferred over XLink streamDefault queue is blocking with size 8
function
void run()function
std::filesystem::path getReplayMetadataFile()function
std::filesystem::path getReplayVideoFile()function
ImgFrame::Type getOutFrameType()function
std::tuple< int, int > getSize()function
float getFps()function
bool getLoop()function
ReplayVideo & setReplayMetadataFile(const std::filesystem::path & replayFile)function
ReplayVideo & setReplayVideoFile(const std::filesystem::path & replayVideo)function
ReplayVideo & setOutFrameType(ImgFrame::Type outFrameType)function
ReplayVideo & setSize(std::tuple< int, int > size)function
ReplayVideo & setSize(int width, int height)function
ReplayVideo & setFps(float fps)function
ReplayVideo & setLoop(bool loop)需要帮助?
请前往 Discussion Forum 获取技术支持或提出您可能有的任何其他问题。