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

关于摄像头视频帧的问题 #22

Open
Alvazz opened this issue Mar 1, 2022 · 1 comment
Open

关于摄像头视频帧的问题 #22

Alvazz opened this issue Mar 1, 2022 · 1 comment

Comments

@Alvazz
Copy link

Alvazz commented Mar 1, 2022

挺不错的项目,感谢你的开源。我看了一下,支持图片和视频文件的抠图,请问如果我的数据源是通过摄像头采集到的一帧一帧的数据呢?能否用这个库来完成?谢谢

@DefTruth
Copy link
Owner

DefTruth commented Mar 2, 2022

有两个方法:

    1. 次优的方案。通过摄像头采集逐帧采集视频,并实时地调用图片抠图接口rvm->detect()方法进行抠图,参数和结果含义请参考文档说明。因为没有利用到RobustVideoMatting论文中提到的视频流上下文隐向量信息,所以是次优方案。目前rvm->detect_video()接口只能跑离线视频。
    1. 最优方案。修改rvm.hrvm.cpp源码,根据你的需求,增加一个detect_capture()方法,具体实现可以参考detect_video(),逻辑基本是类似的。然后重新编译lite.ai.toolkit,并调用你实现的方法。

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